@sealpixel/vue 1.0.0-rc.11 → 1.0.0-rc.13
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.
- package/dist/index.d.ts +11 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -39
- package/dist/index.js.map +1 -1
- package/package.json +8 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { PluginOptionsMap } from '@sealpixel/core';
|
|
|
2
2
|
import { type EditorSession, type ExportResult, type SealpixelError, type SessionOptions, type SessionState, type SourceDescriptor } from '@sealpixel/core';
|
|
3
3
|
import '@sealpixel/element';
|
|
4
4
|
import type { AnyPlugin, AssetResolver, OutputOptions, Renderer } from '@sealpixel/core';
|
|
5
|
+
import type { SealpixelEditor as SealpixelEditorElement } from '@sealpixel/element';
|
|
5
6
|
import { type App, type PropType, type ShallowRef } from 'vue';
|
|
6
7
|
export type { EditorSession, SessionOptions, SessionState } from '@sealpixel/core';
|
|
7
8
|
export interface EditLogState {
|
|
@@ -46,10 +47,6 @@ export declare const SealpixelEditor: import("vue").DefineComponent<import("vue"
|
|
|
46
47
|
type: PropType<EditorSession | null>;
|
|
47
48
|
default: null;
|
|
48
49
|
};
|
|
49
|
-
server: {
|
|
50
|
-
type: PropType<SessionOptions["server"] | null>;
|
|
51
|
-
default: null;
|
|
52
|
-
};
|
|
53
50
|
limits: {
|
|
54
51
|
type: PropType<SessionOptions["limits"] | null>;
|
|
55
52
|
default: null;
|
|
@@ -92,9 +89,15 @@ export declare const SealpixelEditor: import("vue").DefineComponent<import("vue"
|
|
|
92
89
|
type: PropType<string | null>;
|
|
93
90
|
default: null;
|
|
94
91
|
};
|
|
95
|
-
}>,
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
}>, {
|
|
93
|
+
element: ShallowRef<SealpixelEditorElement | null, SealpixelEditorElement | null>;
|
|
94
|
+
getSession: () => EditorSession | undefined;
|
|
95
|
+
getEditLog: () => ReturnType<EditorSession["getEditLog"]> | undefined;
|
|
96
|
+
undo: () => void;
|
|
97
|
+
redo: () => void;
|
|
98
|
+
export: (output?: OutputOptions) => Promise<ExportResult> | undefined;
|
|
99
|
+
download: (options?: Parameters<SealpixelEditorElement["download"]>[0]) => ReturnType<SealpixelEditorElement["download"]> | undefined;
|
|
100
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
98
101
|
'update:editLog': (_state: EditLogState) => true;
|
|
99
102
|
change: (_state: EditLogState) => true;
|
|
100
103
|
process: (_result: ExportResult) => true;
|
|
@@ -134,10 +137,6 @@ export declare const SealpixelEditor: import("vue").DefineComponent<import("vue"
|
|
|
134
137
|
type: PropType<EditorSession | null>;
|
|
135
138
|
default: null;
|
|
136
139
|
};
|
|
137
|
-
server: {
|
|
138
|
-
type: PropType<SessionOptions["server"] | null>;
|
|
139
|
-
default: null;
|
|
140
|
-
};
|
|
141
140
|
limits: {
|
|
142
141
|
type: PropType<SessionOptions["limits"] | null>;
|
|
143
142
|
default: null;
|
|
@@ -188,13 +187,6 @@ export declare const SealpixelEditor: import("vue").DefineComponent<import("vue"
|
|
|
188
187
|
onReady?: () => any;
|
|
189
188
|
onLoad?: (_descriptor: SourceDescriptor) => any;
|
|
190
189
|
}>, {
|
|
191
|
-
server: {
|
|
192
|
-
endpoint: string;
|
|
193
|
-
fetch?: typeof fetch;
|
|
194
|
-
headers?: Record<string, string>;
|
|
195
|
-
uploadOver?: number;
|
|
196
|
-
uploadEndpoint?: string;
|
|
197
|
-
} | null | undefined;
|
|
198
190
|
limits: {
|
|
199
191
|
maxClientMegapixels?: number;
|
|
200
192
|
maxClientBytes?: number;
|
|
@@ -216,7 +208,7 @@ export declare const SealpixelEditor: import("vue").DefineComponent<import("vue"
|
|
|
216
208
|
locale: string;
|
|
217
209
|
dictionary: Record<string, string> | null;
|
|
218
210
|
activeTool: string | null;
|
|
219
|
-
}, {}, {}, {},
|
|
211
|
+
}, {}, {}, {}, "element" | "getSession" | "getEditLog" | "undo" | "redo" | "export" | "download", import("vue").ComponentProvideOptions, true, {}, any>;
|
|
220
212
|
/** Headless composable: a session whose state is a shallow ref, disposed with the scope. */
|
|
221
213
|
export declare function useSealpixel(options: SessionOptions): {
|
|
222
214
|
session: EditorSession;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EACL,KAAK,GAAG,EAIR,KAAK,QAAQ,EACb,KAAK,UAAU,EAEhB,MAAM,KAAK,CAAC;AAEb,YAAY,EAAE,aAAa,EAAE,cAAc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;;uJAqEvD,CAAC;AAGH,4FAA4F;AAC5F,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG;IACrD,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;CACjC,CAWA;AAGD,mEAAmE;AACnE,eAAO,MAAM,SAAS;iBACP,GAAG;CAGjB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,6 @@ export const SealpixelEditor = defineComponent({
|
|
|
20
20
|
renderer: { type: Object, default: null },
|
|
21
21
|
assets: { type: Object, default: null },
|
|
22
22
|
session: { type: Object, default: null },
|
|
23
|
-
server: { type: Object, default: null },
|
|
24
23
|
limits: { type: Object, default: null },
|
|
25
24
|
output: { type: Object, default: () => ({ format: 'image/png' }) },
|
|
26
25
|
theme: { type: String, default: 'dark' },
|
|
@@ -40,46 +39,57 @@ export const SealpixelEditor = defineComponent({
|
|
|
40
39
|
ready: () => true,
|
|
41
40
|
load: (_descriptor) => true,
|
|
42
41
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
'
|
|
64
|
-
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'.
|
|
70
|
-
'.
|
|
71
|
-
'.
|
|
72
|
-
'.
|
|
73
|
-
'.
|
|
74
|
-
'.
|
|
42
|
+
// The `expose` option, unlike an `expose()` call, types the template ref.
|
|
43
|
+
expose: ['element', 'getSession', 'getEditLog', 'undo', 'redo', 'export', 'download'],
|
|
44
|
+
setup() {
|
|
45
|
+
const element = shallowRef(null);
|
|
46
|
+
return {
|
|
47
|
+
element,
|
|
48
|
+
getSession: () => element.value?.getSession(),
|
|
49
|
+
getEditLog: () => element.value?.getEditLog(),
|
|
50
|
+
undo: () => element.value?.undo(),
|
|
51
|
+
redo: () => element.value?.redo(),
|
|
52
|
+
export: (output) => element.value?.export(output),
|
|
53
|
+
download: (options) => element.value?.download(options),
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
render() {
|
|
57
|
+
// The element shows Export in `auto` mode while a `sealpixel:process`
|
|
58
|
+
// listener exists, so listen only when the parent listens to `process`.
|
|
59
|
+
const parent = this.$.vnode.props;
|
|
60
|
+
const listensToProcess = Boolean(parent?.onProcess || parent?.onProcessOnce);
|
|
61
|
+
return h('sealpixel-editor', {
|
|
62
|
+
ref: 'element',
|
|
63
|
+
theme: this.theme,
|
|
64
|
+
'show-export': this.showExport,
|
|
65
|
+
'show-download': this.showDownload,
|
|
66
|
+
'show-history': this.showHistory,
|
|
67
|
+
'download-label': this.downloadLabel ?? undefined,
|
|
68
|
+
'.src': this.src,
|
|
69
|
+
'.editLog': this.editLog,
|
|
70
|
+
'.defaultEditLog': this.defaultEditLog,
|
|
71
|
+
'.plugins': this.plugins,
|
|
72
|
+
'.pluginOptions': this.pluginOptions,
|
|
73
|
+
'.renderer': this.renderer,
|
|
74
|
+
'.assets': this.assets,
|
|
75
|
+
'.session': this.session,
|
|
76
|
+
'.limits': this.limits,
|
|
77
|
+
'.output': this.output,
|
|
78
|
+
'.locale': this.locale,
|
|
79
|
+
'.dictionary': this.dictionary,
|
|
80
|
+
'.activeTool': this.activeTool,
|
|
75
81
|
'onSealpixel:change': (e) => {
|
|
76
|
-
emit('update:editLog', e.detail);
|
|
77
|
-
emit('change', e.detail);
|
|
82
|
+
this.$emit('update:editLog', e.detail);
|
|
83
|
+
this.$emit('change', e.detail);
|
|
78
84
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
...(listensToProcess
|
|
86
|
+
? {
|
|
87
|
+
'onSealpixel:process': (e) => this.$emit('process', e.detail),
|
|
88
|
+
}
|
|
89
|
+
: {}),
|
|
90
|
+
'onSealpixel:error': (e) => this.$emit('error', e.detail),
|
|
91
|
+
'onSealpixel:ready': () => this.$emit('ready'),
|
|
92
|
+
'onSealpixel:load': (e) => this.$emit('load', e.detail),
|
|
83
93
|
});
|
|
84
94
|
},
|
|
85
95
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,GAOpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EAEL,eAAe,EACf,CAAC,EACD,cAAc,EAGd,UAAU,GACX,MAAM,KAAK,CAAC;AASb;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;IAC7C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAuD;YAC5E,OAAO,EAAE,IAAI;SACd;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAuC,EAAE,OAAO,EAAE,SAAS,EAAE;QAC9E,cAAc,EAAE,EAAE,IAAI,EAAE,MAAuC,EAAE,OAAO,EAAE,SAAS,EAAE;QACrF,OAAO,EAAE,EAAE,IAAI,EAAE,KAA8C,EAAE,OAAO,EAAE,IAAI,EAAE;QAChF,aAAa,EAAE,EAAE,IAAI,EAAE,MAA2C,EAAE,OAAO,EAAE,IAAI,EAAE;QACnF,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAmC,EAAE,OAAO,EAAE,IAAI,EAAE;QACtE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAwC,EAAE,OAAO,EAAE,IAAI,EAAE;QACzE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAwC,EAAE,OAAO,EAAE,IAAI,EAAE;QAC1E,MA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B,CAAC,CAAC,CAAC;IACH,cAAc,CAAC,GAAG,EAAE;QAClB,WAAW,EAAE,CAAC;QACd,OAAO,CAAC,OAAO,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AACD,sBAAsB;AAEtB,mEAAmE;AACnE,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,CAAC,GAAQ;QACd,GAAG,CAAC,SAAS,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;IACpD,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealpixel/vue",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.13",
|
|
4
4
|
"description": "Vue 3 bindings for the Sealpixel image editor: <SealpixelEditor> with v-model:editLog and the useSealpixel composable.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@sealpixel/core": "1.0.0-rc.
|
|
28
|
-
"@sealpixel/element": "1.0.0-rc.
|
|
29
|
-
"@sealpixel/ui": "1.0.0-rc.
|
|
27
|
+
"@sealpixel/core": "1.0.0-rc.13",
|
|
28
|
+
"@sealpixel/element": "1.0.0-rc.13",
|
|
29
|
+
"@sealpixel/ui": "1.0.0-rc.13"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"vue": "^3.4.0"
|
|
@@ -34,11 +34,14 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@sealpixel/config": "0.0.0",
|
|
36
36
|
"@types/node": "^24.0.0",
|
|
37
|
+
"happy-dom": "^20.0.0",
|
|
37
38
|
"typescript": "^6.0.0",
|
|
39
|
+
"vitest": "^5.0.0",
|
|
38
40
|
"vue": "^3.5.0"
|
|
39
41
|
},
|
|
40
42
|
"scripts": {
|
|
41
43
|
"build": "tsc -p tsconfig.build.json",
|
|
42
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
44
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
45
|
+
"test": "vitest run"
|
|
43
46
|
}
|
|
44
47
|
}
|