From 7b7af05ffdfe27e44446f237300bb291b83d4207 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 12 Oct 2024 15:31:38 +0200 Subject: [PATCH 1/2] type issue fixed, closes #131 --- package.json | 2 +- src/index.ts | 4 ++-- src/{types/types.ts => serviceConfig.ts} | 0 src/services.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/{types/types.ts => serviceConfig.ts} (100%) diff --git a/package.json b/package.json index 8f1565d7..6c51eed4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/embed", - "version": "2.7.5", + "version": "2.8.0", "keywords": [ "codex editor", "embed", diff --git a/src/index.ts b/src/index.ts index ae5405ca..21da71d4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ import SERVICES from './services'; import './index.css'; import { debounce } from 'debounce'; -import { ServiceConfig, ServicesConfigType } from './types/types'; -import { API , PatternPasteEventDetail } from '@editorjs/editorjs'; +import { type ServiceConfig, type ServicesConfigType } from './serviceConfig'; +import { type API , type PatternPasteEventDetail } from '@editorjs/editorjs'; /** * @description Embed Tool data diff --git a/src/types/types.ts b/src/serviceConfig.ts similarity index 100% rename from src/types/types.ts rename to src/serviceConfig.ts diff --git a/src/services.ts b/src/services.ts index 79115930..2a8a68f9 100644 --- a/src/services.ts +++ b/src/services.ts @@ -1,5 +1,5 @@ /* eslint-disable no-useless-escape */ -import { ServiceConfig, ServicesConfigType } from './types/types'; +import { type ServicesConfigType } from './serviceConfig'; const SERVICES: ServicesConfigType = { vimeo: { @@ -185,4 +185,4 @@ const SERVICES: ServicesConfigType = { }, }; -export default SERVICES; \ No newline at end of file +export default SERVICES; From ffa3515b46b12278f57939c9737fd172ca678f23 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 12 Oct 2024 15:39:33 +0200 Subject: [PATCH 2/2] Minor fixes --- package.json | 2 +- src/index.ts | 4 ++-- src/services.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6c51eed4..c1087c17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/embed", - "version": "2.8.0", + "version": "2.7.6", "keywords": [ "codex editor", "embed", diff --git a/src/index.ts b/src/index.ts index 21da71d4..9f7727d4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ import SERVICES from './services'; import './index.css'; import { debounce } from 'debounce'; -import { type ServiceConfig, type ServicesConfigType } from './serviceConfig'; -import { type API , type PatternPasteEventDetail } from '@editorjs/editorjs'; +import type { ServiceConfig, ServicesConfigType } from './serviceConfig'; +import type { API , PatternPasteEventDetail } from '@editorjs/editorjs'; /** * @description Embed Tool data diff --git a/src/services.ts b/src/services.ts index 2a8a68f9..27e8e9c2 100644 --- a/src/services.ts +++ b/src/services.ts @@ -1,5 +1,5 @@ /* eslint-disable no-useless-escape */ -import { type ServicesConfigType } from './serviceConfig'; +import type { ServicesConfigType } from './serviceConfig'; const SERVICES: ServicesConfigType = { vimeo: {