@burger-editor/client 4.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1,10 @@
1
+ import { Config } from '@burger-editor/core';
2
+ /**
3
+ * 意味ない。たぶんそれぞれのプラットフォームでConfigの型が違うから。
4
+ * @deprecated
5
+ * @param urlOrScriptElement
6
+ * @returns
7
+ */
8
+ export declare function getConfig(urlOrScriptElement: string): Promise<Config>;
9
+ export declare function getConfig(urlOrScriptElement: HTMLScriptElement): Promise<Config>;
10
+ //# sourceMappingURL=get-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../src/get-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7E,wBAAsB,SAAS,CAAC,kBAAkB,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ *
3
+ * @param src
4
+ */
5
+ export declare function getExt(src: string): {
6
+ ext: string;
7
+ isImage: boolean;
8
+ isVideo: boolean;
9
+ isAudio: boolean;
10
+ isDoc: boolean;
11
+ isPpt: boolean;
12
+ isXls: boolean;
13
+ isPdf: boolean;
14
+ };
15
+ //# sourceMappingURL=get-ext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-ext.d.ts","sourceRoot":"","sources":["../src/get-ext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM;;;;;;;;;EAqBjC"}
@@ -0,0 +1,19 @@
1
+ import { BurgerEditorEngineOptions, BurgerEditorEngine } from '@burger-editor/core';
2
+ export declare const version: string;
3
+ /**
4
+ *
5
+ * @param engine
6
+ */
7
+ export declare function attachDraftSwitcher(engine: BurgerEditorEngine): {
8
+ cleanUp: () => void;
9
+ } | null;
10
+ /**
11
+ *
12
+ * @param options
13
+ */
14
+ export declare function createBurgerEditorClient(options: Omit<BurgerEditorEngineOptions, 'ui' | 'blockMenu'>): Promise<{
15
+ engine: BurgerEditorEngine;
16
+ }>;
17
+ export { Migrator } from '@burger-editor/migrator';
18
+ export { getConfig } from './get-config.js';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAYzD,OAAO,iBAAiB,CAAC;AAEzB,eAAO,MAAM,OAAO,QAAc,CAAC;AAEnC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,kBAAkB;;SAc7D;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,IAAI,CAAC,yBAAyB,EAAE,IAAI,GAAG,WAAW,CAAC;;GAuF5D;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * @param elA
4
+ * @param elB
5
+ * @param duration
6
+ */
7
+ export declare function replaceElement(elA: HTMLElement, elB: HTMLElement, duration?: number): Promise<void>;
8
+ //# sourceMappingURL=replace-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-element.d.ts","sourceRoot":"","sources":["../src/replace-element.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,SAAM,iBAsEtF"}
@@ -0,0 +1,10 @@
1
+ import { Component, MountOptions } from 'svelte';
2
+ /**
3
+ *
4
+ * @param component
5
+ * @param options
6
+ */
7
+ export declare function svelteMount<P extends Record<string, any>>(component: Component<P>, options: MountOptions<P>): {
8
+ cleanUp: () => void;
9
+ };
10
+ //# sourceMappingURL=svelte-mount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svelte-mount.d.ts","sourceRoot":"","sources":["../src/svelte-mount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxD,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EACvB,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;;EASxB"}
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@burger-editor/client",
3
+ "version": "4.0.0-alpha.1",
4
+ "description": "BurgerEditor client package",
5
+ "author": "D-ZERO",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "url": "https://github.com/d-zero-dev/BurgerEditor.git"
9
+ },
10
+ "private": false,
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "type": "module",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/client.js",
18
+ "types": "./dist/index.d.ts"
19
+ },
20
+ "./style": {
21
+ "import": "./dist/client.css"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "build": "vite build",
29
+ "prebuild": "tsc",
30
+ "dev": "vite build --watch"
31
+ },
32
+ "dependencies": {
33
+ "@burger-editor/core": "4.0.0-alpha.1",
34
+ "@burger-editor/migrator": "4.0.0-alpha.1",
35
+ "@burger-editor/utils": "4.0.0-alpha.1",
36
+ "@tabler/icons-svelte": "3.31.0",
37
+ "jquery": "3.7.1",
38
+ "svelte": "5.25.6"
39
+ },
40
+ "devDependencies": {
41
+ "@sveltejs/vite-plugin-svelte": "5.0.3",
42
+ "@types/jquery": "3.5.32",
43
+ "sass": "1.86.2",
44
+ "vite": "6.2.4",
45
+ "vite-plugin-dts": "4.5.3"
46
+ },
47
+ "gitHead": "1d6fef96516914352bff60f3319fc9884d882f77"
48
+ }