@varianta/sdk 0.1.7 → 0.1.9
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/README.md +1 -2
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1266 -984
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/react.cjs.js +1 -1
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.esm.js +224 -206
- package/dist/react.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/react/Customizer.d.ts +1 -1
- package/dist/types/react/Customizer.d.ts.map +1 -1
- package/dist/types/react/index.d.ts +1 -0
- package/dist/types/react/index.d.ts.map +1 -1
- package/dist/types/react/useCustomizer.d.ts +21 -4
- package/dist/types/react/useCustomizer.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +46 -8
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/validation.d.ts +38 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/types/vanilla/index.d.ts +1 -1
- package/dist/types/vanilla/index.d.ts.map +1 -1
- package/dist/types/vue/index.d.ts +1 -0
- package/dist/types/vue/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react.esm.js
CHANGED
|
@@ -1,303 +1,321 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { initCustomizer as
|
|
4
|
-
const
|
|
5
|
-
(
|
|
1
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useRef as A, useEffect as v, useImperativeHandle as j, useState as d, useCallback as a } from "react";
|
|
3
|
+
import { initCustomizer as H, CustomizerError as u } from "./index.esm.js";
|
|
4
|
+
const J = B(
|
|
5
|
+
(U, S) => {
|
|
6
6
|
const {
|
|
7
|
-
templateId:
|
|
8
|
-
productId:
|
|
9
|
-
apiUrl:
|
|
10
|
-
theme:
|
|
11
|
-
mode:
|
|
12
|
-
debug:
|
|
13
|
-
className:
|
|
14
|
-
style:
|
|
15
|
-
initialDesign:
|
|
16
|
-
showCloseButton:
|
|
17
|
-
showSaveButton:
|
|
18
|
-
onReady:
|
|
19
|
-
onChange:
|
|
20
|
-
onLayerSelect:
|
|
21
|
-
onLayerAdd:
|
|
22
|
-
onLayerRemove:
|
|
23
|
-
onLayerUpdate:
|
|
24
|
-
onError:
|
|
25
|
-
onFinalize:
|
|
26
|
-
onViewChange:
|
|
27
|
-
onClose:
|
|
28
|
-
onSave:
|
|
29
|
-
} =
|
|
30
|
-
onReady:
|
|
31
|
-
onChange:
|
|
32
|
-
onLayerSelect:
|
|
33
|
-
onLayerAdd:
|
|
34
|
-
onLayerRemove:
|
|
35
|
-
onLayerUpdate:
|
|
36
|
-
onError:
|
|
37
|
-
onFinalize:
|
|
38
|
-
onViewChange:
|
|
39
|
-
onClose:
|
|
40
|
-
onSave:
|
|
7
|
+
templateId: w,
|
|
8
|
+
productId: L,
|
|
9
|
+
apiUrl: t,
|
|
10
|
+
theme: l = "light",
|
|
11
|
+
mode: g = "edit",
|
|
12
|
+
debug: O = !1,
|
|
13
|
+
className: _,
|
|
14
|
+
style: V,
|
|
15
|
+
initialDesign: z,
|
|
16
|
+
showCloseButton: Z,
|
|
17
|
+
showSaveButton: p,
|
|
18
|
+
onReady: f,
|
|
19
|
+
onChange: y,
|
|
20
|
+
onLayerSelect: I,
|
|
21
|
+
onLayerAdd: m,
|
|
22
|
+
onLayerRemove: h,
|
|
23
|
+
onLayerUpdate: T,
|
|
24
|
+
onError: E,
|
|
25
|
+
onFinalize: R,
|
|
26
|
+
onViewChange: s,
|
|
27
|
+
onClose: N,
|
|
28
|
+
onSave: C
|
|
29
|
+
} = U, D = A(null), e = A(null), c = A({
|
|
30
|
+
onReady: f,
|
|
31
|
+
onChange: y,
|
|
32
|
+
onLayerSelect: I,
|
|
33
|
+
onLayerAdd: m,
|
|
34
|
+
onLayerRemove: h,
|
|
35
|
+
onLayerUpdate: T,
|
|
36
|
+
onError: E,
|
|
37
|
+
onFinalize: R,
|
|
38
|
+
onViewChange: s,
|
|
39
|
+
onClose: N,
|
|
40
|
+
onSave: C
|
|
41
41
|
});
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
onReady:
|
|
45
|
-
onChange:
|
|
46
|
-
onLayerSelect:
|
|
47
|
-
onLayerAdd:
|
|
48
|
-
onLayerRemove:
|
|
49
|
-
onLayerUpdate:
|
|
50
|
-
onError:
|
|
51
|
-
onFinalize:
|
|
52
|
-
onViewChange:
|
|
53
|
-
onClose:
|
|
54
|
-
onSave:
|
|
42
|
+
return v(() => {
|
|
43
|
+
c.current = {
|
|
44
|
+
onReady: f,
|
|
45
|
+
onChange: y,
|
|
46
|
+
onLayerSelect: I,
|
|
47
|
+
onLayerAdd: m,
|
|
48
|
+
onLayerRemove: h,
|
|
49
|
+
onLayerUpdate: T,
|
|
50
|
+
onError: E,
|
|
51
|
+
onFinalize: R,
|
|
52
|
+
onViewChange: s,
|
|
53
|
+
onClose: N,
|
|
54
|
+
onSave: C
|
|
55
55
|
};
|
|
56
|
-
}, [
|
|
57
|
-
if (!
|
|
58
|
-
const
|
|
59
|
-
templateId:
|
|
60
|
-
productId:
|
|
61
|
-
apiUrl:
|
|
62
|
-
theme:
|
|
63
|
-
mode:
|
|
64
|
-
debug:
|
|
65
|
-
initialDesign:
|
|
66
|
-
showCloseButton:
|
|
67
|
-
showSaveButton:
|
|
56
|
+
}, [f, y, I, m, h, T, E, R, s, N, C]), v(() => {
|
|
57
|
+
if (!D.current) return;
|
|
58
|
+
const n = {
|
|
59
|
+
templateId: w,
|
|
60
|
+
productId: L,
|
|
61
|
+
apiUrl: t,
|
|
62
|
+
theme: l,
|
|
63
|
+
mode: g,
|
|
64
|
+
debug: O,
|
|
65
|
+
initialDesign: z,
|
|
66
|
+
showCloseButton: Z,
|
|
67
|
+
showSaveButton: p,
|
|
68
68
|
// Use callback refs to always get latest callbacks
|
|
69
|
-
onReady: () =>
|
|
70
|
-
onChange: (
|
|
71
|
-
onLayerSelect: (
|
|
72
|
-
onLayerAdd: (
|
|
73
|
-
onLayerRemove: (
|
|
74
|
-
onLayerUpdate: (
|
|
75
|
-
onError: (
|
|
76
|
-
onFinalize: (
|
|
77
|
-
onViewChange: (
|
|
78
|
-
onClose: () =>
|
|
79
|
-
onSave: (
|
|
69
|
+
onReady: () => c.current.onReady?.(),
|
|
70
|
+
onChange: (r) => c.current.onChange?.(r),
|
|
71
|
+
onLayerSelect: (r) => c.current.onLayerSelect?.(r),
|
|
72
|
+
onLayerAdd: (r) => c.current.onLayerAdd?.(r),
|
|
73
|
+
onLayerRemove: (r) => c.current.onLayerRemove?.(r),
|
|
74
|
+
onLayerUpdate: (r) => c.current.onLayerUpdate?.(r),
|
|
75
|
+
onError: (r) => c.current.onError?.(r),
|
|
76
|
+
onFinalize: (r) => c.current.onFinalize?.(r),
|
|
77
|
+
onViewChange: (r) => c.current.onViewChange?.(r),
|
|
78
|
+
onClose: () => c.current.onClose?.(),
|
|
79
|
+
onSave: (r) => c.current.onSave?.(r)
|
|
80
80
|
};
|
|
81
81
|
try {
|
|
82
|
-
const
|
|
83
|
-
e.current =
|
|
84
|
-
} catch (
|
|
85
|
-
console.error("[Customizer React] Failed to initialize:",
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
details: t
|
|
89
|
-
});
|
|
82
|
+
const r = H(D.current, n);
|
|
83
|
+
e.current = r;
|
|
84
|
+
} catch (r) {
|
|
85
|
+
console.error("[Customizer React] Failed to initialize:", r);
|
|
86
|
+
const x = r instanceof u ? r : new u("INIT_ERROR", r instanceof Error ? r.message : "Unknown error", r);
|
|
87
|
+
c.current.onError?.(x);
|
|
90
88
|
}
|
|
91
89
|
return () => {
|
|
92
90
|
e.current && (e.current.destroy(), e.current = null);
|
|
93
91
|
};
|
|
94
|
-
}, [
|
|
95
|
-
e.current && e.current.setTheme(
|
|
96
|
-
}, [
|
|
97
|
-
e.current && e.current.setMode(
|
|
98
|
-
}, [
|
|
99
|
-
|
|
92
|
+
}, [w, L, t, O, z, Z, p]), v(() => {
|
|
93
|
+
e.current && e.current.setTheme(l);
|
|
94
|
+
}, [l]), v(() => {
|
|
95
|
+
e.current && e.current.setMode(g);
|
|
96
|
+
}, [g]), j(
|
|
97
|
+
S,
|
|
100
98
|
() => ({
|
|
101
99
|
getDesign: () => {
|
|
102
100
|
if (!e.current)
|
|
103
|
-
throw new
|
|
101
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
104
102
|
return e.current.getDesign();
|
|
105
103
|
},
|
|
106
|
-
setDesign: (
|
|
104
|
+
setDesign: (n) => {
|
|
107
105
|
if (!e.current)
|
|
108
|
-
throw new
|
|
109
|
-
e.current.setDesign(
|
|
106
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
107
|
+
e.current.setDesign(n);
|
|
110
108
|
},
|
|
111
109
|
undo: () => {
|
|
112
110
|
if (!e.current)
|
|
113
|
-
throw new
|
|
111
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
114
112
|
e.current.undo();
|
|
115
113
|
},
|
|
116
114
|
redo: () => {
|
|
117
115
|
if (!e.current)
|
|
118
|
-
throw new
|
|
116
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
119
117
|
e.current.redo();
|
|
120
118
|
},
|
|
121
119
|
canUndo: () => e.current ? e.current.canUndo() : !1,
|
|
122
120
|
canRedo: () => e.current ? e.current.canRedo() : !1,
|
|
123
|
-
finalize: async () => {
|
|
121
|
+
finalize: async (n) => {
|
|
122
|
+
if (!e.current)
|
|
123
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
124
|
+
return e.current.finalize(n);
|
|
125
|
+
},
|
|
126
|
+
waitForResult: async (n, r) => {
|
|
124
127
|
if (!e.current)
|
|
125
|
-
throw new
|
|
126
|
-
return e.current.
|
|
128
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
129
|
+
return e.current.waitForResult(n, r);
|
|
127
130
|
},
|
|
128
|
-
addTextLayer: (
|
|
131
|
+
addTextLayer: (n) => {
|
|
129
132
|
if (!e.current)
|
|
130
|
-
throw new
|
|
131
|
-
e.current.addTextLayer(
|
|
133
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
134
|
+
e.current.addTextLayer(n);
|
|
132
135
|
},
|
|
133
|
-
addImageLayer: async (
|
|
136
|
+
addImageLayer: async (n) => {
|
|
134
137
|
if (!e.current)
|
|
135
|
-
throw new
|
|
136
|
-
return e.current.addImageLayer(
|
|
138
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
139
|
+
return e.current.addImageLayer(n);
|
|
137
140
|
},
|
|
138
|
-
removeLayer: (
|
|
141
|
+
removeLayer: (n) => {
|
|
139
142
|
if (!e.current)
|
|
140
|
-
throw new
|
|
141
|
-
e.current.removeLayer(
|
|
143
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
144
|
+
e.current.removeLayer(n);
|
|
142
145
|
},
|
|
143
|
-
selectLayer: (
|
|
146
|
+
selectLayer: (n) => {
|
|
144
147
|
if (!e.current)
|
|
145
|
-
throw new
|
|
146
|
-
e.current.selectLayer(
|
|
148
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
149
|
+
e.current.selectLayer(n);
|
|
147
150
|
},
|
|
148
151
|
getSelectedLayerId: () => e.current ? e.current.getSelectedLayerId() : null,
|
|
149
152
|
getActiveView: () => e.current ? e.current.getActiveView() : null,
|
|
150
153
|
getViews: () => e.current ? e.current.getViews() : [],
|
|
151
|
-
setActiveView: (
|
|
154
|
+
setActiveView: (n) => {
|
|
152
155
|
if (!e.current)
|
|
153
|
-
throw new
|
|
154
|
-
e.current.setActiveView(
|
|
156
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
157
|
+
e.current.setActiveView(n);
|
|
155
158
|
},
|
|
156
|
-
setTheme: (
|
|
159
|
+
setTheme: (n) => {
|
|
157
160
|
if (!e.current)
|
|
158
|
-
throw new
|
|
159
|
-
e.current.setTheme(
|
|
161
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
162
|
+
e.current.setTheme(n);
|
|
160
163
|
},
|
|
161
|
-
setMode: (
|
|
164
|
+
setMode: (n) => {
|
|
162
165
|
if (!e.current)
|
|
163
|
-
throw new
|
|
164
|
-
e.current.setMode(
|
|
166
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
167
|
+
e.current.setMode(n);
|
|
165
168
|
},
|
|
166
169
|
destroy: () => {
|
|
167
170
|
e.current && (e.current.destroy(), e.current = null);
|
|
168
171
|
},
|
|
169
172
|
getElement: () => {
|
|
170
173
|
if (!e.current)
|
|
171
|
-
throw new
|
|
174
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
172
175
|
return e.current.getElement();
|
|
173
176
|
}
|
|
174
177
|
}),
|
|
175
178
|
[]
|
|
176
179
|
// Empty deps is OK - we always read from instanceRef.current
|
|
177
|
-
), /* @__PURE__ */
|
|
180
|
+
), /* @__PURE__ */ M(
|
|
178
181
|
"div",
|
|
179
182
|
{
|
|
180
|
-
ref:
|
|
181
|
-
className:
|
|
183
|
+
ref: D,
|
|
184
|
+
className: _,
|
|
182
185
|
style: {
|
|
183
186
|
width: "100%",
|
|
184
187
|
height: "100%",
|
|
185
|
-
...
|
|
188
|
+
...V
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
);
|
|
189
192
|
}
|
|
190
193
|
);
|
|
191
|
-
|
|
192
|
-
function
|
|
194
|
+
J.displayName = "Customizer";
|
|
195
|
+
function P(U = {}) {
|
|
193
196
|
const {
|
|
194
|
-
autoSave:
|
|
195
|
-
autoSaveKey:
|
|
196
|
-
autoSaveDebounce:
|
|
197
|
-
} =
|
|
197
|
+
autoSave: S = !1,
|
|
198
|
+
autoSaveKey: w = "customizer-design",
|
|
199
|
+
autoSaveDebounce: L = 1e3
|
|
200
|
+
} = U, t = A(null), [l, g] = d(null), [O, _] = d(!1), [V, z] = d(!1), [Z, p] = d(null), [f, y] = d(!1), [I, m] = d(!1), [h, T] = d(
|
|
198
201
|
null
|
|
199
|
-
),
|
|
200
|
-
|
|
201
|
-
if (!(!
|
|
202
|
-
return
|
|
202
|
+
), [E, R] = d(null), s = A(void 0);
|
|
203
|
+
v(() => {
|
|
204
|
+
if (!(!S || !l))
|
|
205
|
+
return s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
203
206
|
try {
|
|
204
|
-
localStorage.setItem(
|
|
205
|
-
} catch (
|
|
206
|
-
console.error("[useCustomizer] Auto-save failed:",
|
|
207
|
+
localStorage.setItem(w, JSON.stringify(l));
|
|
208
|
+
} catch (o) {
|
|
209
|
+
console.error("[useCustomizer] Auto-save failed:", o);
|
|
207
210
|
}
|
|
208
|
-
},
|
|
209
|
-
|
|
211
|
+
}, L), () => {
|
|
212
|
+
s.current && clearTimeout(s.current);
|
|
210
213
|
};
|
|
211
|
-
}, [
|
|
212
|
-
const
|
|
213
|
-
if (!
|
|
214
|
+
}, [l, S, w, L]);
|
|
215
|
+
const N = a(() => {
|
|
216
|
+
if (!t.current) return null;
|
|
214
217
|
try {
|
|
215
|
-
return
|
|
216
|
-
} catch (
|
|
217
|
-
return console.error("[useCustomizer] getDesign failed:",
|
|
218
|
+
return t.current.getDesign();
|
|
219
|
+
} catch (o) {
|
|
220
|
+
return console.error("[useCustomizer] getDesign failed:", o), null;
|
|
218
221
|
}
|
|
219
|
-
}, []),
|
|
220
|
-
if (
|
|
222
|
+
}, []), C = a((o) => {
|
|
223
|
+
if (t.current)
|
|
221
224
|
try {
|
|
222
|
-
|
|
223
|
-
} catch (
|
|
224
|
-
console.error("[useCustomizer] setDesign failed:",
|
|
225
|
+
t.current.setDesign(o), g(o);
|
|
226
|
+
} catch (i) {
|
|
227
|
+
console.error("[useCustomizer] setDesign failed:", i);
|
|
225
228
|
}
|
|
226
|
-
}, []),
|
|
227
|
-
if (
|
|
229
|
+
}, []), D = a(() => {
|
|
230
|
+
if (t.current)
|
|
228
231
|
try {
|
|
229
|
-
|
|
230
|
-
} catch (
|
|
231
|
-
console.error("[useCustomizer] undo failed:",
|
|
232
|
+
t.current.undo(), _(t.current.canUndo()), z(t.current.canRedo());
|
|
233
|
+
} catch (o) {
|
|
234
|
+
console.error("[useCustomizer] undo failed:", o);
|
|
232
235
|
}
|
|
233
|
-
}, []),
|
|
234
|
-
if (
|
|
236
|
+
}, []), e = a(() => {
|
|
237
|
+
if (t.current)
|
|
235
238
|
try {
|
|
236
|
-
|
|
237
|
-
} catch (
|
|
238
|
-
console.error("[useCustomizer] redo failed:",
|
|
239
|
+
t.current.redo(), _(t.current.canUndo()), z(t.current.canRedo());
|
|
240
|
+
} catch (o) {
|
|
241
|
+
console.error("[useCustomizer] redo failed:", o);
|
|
239
242
|
}
|
|
240
|
-
}, []),
|
|
241
|
-
if (!
|
|
242
|
-
|
|
243
|
+
}, []), c = a(async (o) => {
|
|
244
|
+
if (!t.current || f) return null;
|
|
245
|
+
y(!0);
|
|
246
|
+
try {
|
|
247
|
+
const i = await t.current.finalize(o);
|
|
248
|
+
return T(i), i;
|
|
249
|
+
} catch (i) {
|
|
250
|
+
return console.error("[useCustomizer] finalize failed:", i), null;
|
|
251
|
+
} finally {
|
|
252
|
+
y(!1);
|
|
253
|
+
}
|
|
254
|
+
}, [f]), n = a(async (o, i) => {
|
|
255
|
+
if (!t.current || I) return null;
|
|
256
|
+
m(!0);
|
|
243
257
|
try {
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
} catch (
|
|
247
|
-
return console.error("[useCustomizer]
|
|
258
|
+
const F = await t.current.waitForResult(o, i);
|
|
259
|
+
return R(F), F;
|
|
260
|
+
} catch (F) {
|
|
261
|
+
return console.error("[useCustomizer] waitForResult failed:", F), null;
|
|
248
262
|
} finally {
|
|
249
|
-
|
|
263
|
+
m(!1);
|
|
250
264
|
}
|
|
251
|
-
}, [
|
|
252
|
-
if (
|
|
265
|
+
}, [I]), r = a((o) => {
|
|
266
|
+
if (t.current)
|
|
253
267
|
try {
|
|
254
|
-
|
|
255
|
-
} catch (
|
|
256
|
-
console.error("[useCustomizer] addTextLayer failed:",
|
|
268
|
+
t.current.addTextLayer(o);
|
|
269
|
+
} catch (i) {
|
|
270
|
+
console.error("[useCustomizer] addTextLayer failed:", i);
|
|
257
271
|
}
|
|
258
|
-
}, []),
|
|
259
|
-
if (
|
|
272
|
+
}, []), x = a(async (o) => {
|
|
273
|
+
if (t.current)
|
|
260
274
|
try {
|
|
261
|
-
await
|
|
262
|
-
} catch (
|
|
263
|
-
console.error("[useCustomizer] addImageLayer failed:",
|
|
275
|
+
await t.current.addImageLayer(o);
|
|
276
|
+
} catch (i) {
|
|
277
|
+
console.error("[useCustomizer] addImageLayer failed:", i);
|
|
264
278
|
}
|
|
265
|
-
}, []),
|
|
266
|
-
if (
|
|
279
|
+
}, []), b = a((o) => {
|
|
280
|
+
if (t.current)
|
|
267
281
|
try {
|
|
268
|
-
|
|
269
|
-
} catch (
|
|
270
|
-
console.error("[useCustomizer] removeLayer failed:",
|
|
282
|
+
t.current.removeLayer(o);
|
|
283
|
+
} catch (i) {
|
|
284
|
+
console.error("[useCustomizer] removeLayer failed:", i);
|
|
271
285
|
}
|
|
272
|
-
}, []),
|
|
273
|
-
if (
|
|
286
|
+
}, []), k = a((o) => {
|
|
287
|
+
if (t.current)
|
|
274
288
|
try {
|
|
275
|
-
|
|
276
|
-
} catch (
|
|
277
|
-
console.error("[useCustomizer] selectLayer failed:",
|
|
289
|
+
t.current.selectLayer(o), p(o);
|
|
290
|
+
} catch (i) {
|
|
291
|
+
console.error("[useCustomizer] selectLayer failed:", i);
|
|
278
292
|
}
|
|
279
293
|
}, []);
|
|
280
294
|
return {
|
|
281
|
-
customizerRef:
|
|
282
|
-
design:
|
|
283
|
-
canUndo:
|
|
284
|
-
canRedo:
|
|
285
|
-
selectedLayerId:
|
|
286
|
-
isFinalizing:
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
customizerRef: t,
|
|
296
|
+
design: l,
|
|
297
|
+
canUndo: O,
|
|
298
|
+
canRedo: V,
|
|
299
|
+
selectedLayerId: Z,
|
|
300
|
+
isFinalizing: f,
|
|
301
|
+
isRendering: I,
|
|
302
|
+
finalizeResult: h,
|
|
303
|
+
renderResult: E,
|
|
304
|
+
getDesign: N,
|
|
305
|
+
setDesign: C,
|
|
306
|
+
undo: D,
|
|
307
|
+
redo: e,
|
|
308
|
+
finalize: c,
|
|
309
|
+
waitForResult: n,
|
|
310
|
+
addTextLayer: r,
|
|
311
|
+
addImageLayer: x,
|
|
312
|
+
removeLayer: b,
|
|
313
|
+
selectLayer: k
|
|
297
314
|
};
|
|
298
315
|
}
|
|
299
316
|
export {
|
|
300
|
-
|
|
301
|
-
|
|
317
|
+
J as Customizer,
|
|
318
|
+
u as CustomizerError,
|
|
319
|
+
P as useCustomizer
|
|
302
320
|
};
|
|
303
321
|
//# sourceMappingURL=react.esm.js.map
|