@varianta/sdk 0.1.8 → 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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +586 -455
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -4
- 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 +207 -208
- 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 +2 -1
- package/dist/types/react/useCustomizer.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +13 -7
- 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,322 +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:
|
|
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
19
|
onChange: y,
|
|
20
|
-
onLayerSelect:
|
|
20
|
+
onLayerSelect: I,
|
|
21
21
|
onLayerAdd: m,
|
|
22
|
-
onLayerRemove:
|
|
23
|
-
onLayerUpdate:
|
|
24
|
-
onError:
|
|
25
|
-
onFinalize:
|
|
26
|
-
onViewChange:
|
|
27
|
-
onClose:
|
|
28
|
-
onSave:
|
|
29
|
-
} =
|
|
30
|
-
onReady:
|
|
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
31
|
onChange: y,
|
|
32
|
-
onLayerSelect:
|
|
32
|
+
onLayerSelect: I,
|
|
33
33
|
onLayerAdd: m,
|
|
34
|
-
onLayerRemove:
|
|
35
|
-
onLayerUpdate:
|
|
36
|
-
onError:
|
|
37
|
-
onFinalize:
|
|
38
|
-
onViewChange:
|
|
39
|
-
onClose:
|
|
40
|
-
onSave:
|
|
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:
|
|
42
|
+
return v(() => {
|
|
43
|
+
c.current = {
|
|
44
|
+
onReady: f,
|
|
45
45
|
onChange: y,
|
|
46
|
-
onLayerSelect:
|
|
46
|
+
onLayerSelect: I,
|
|
47
47
|
onLayerAdd: m,
|
|
48
|
-
onLayerRemove:
|
|
49
|
-
onLayerUpdate:
|
|
50
|
-
onError:
|
|
51
|
-
onFinalize:
|
|
52
|
-
onViewChange:
|
|
53
|
-
onClose:
|
|
54
|
-
onSave:
|
|
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) => {
|
|
124
122
|
if (!e.current)
|
|
125
|
-
throw new
|
|
126
|
-
return e.current.finalize();
|
|
123
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
124
|
+
return e.current.finalize(n);
|
|
127
125
|
},
|
|
128
|
-
waitForResult: async (
|
|
126
|
+
waitForResult: async (n, r) => {
|
|
129
127
|
if (!e.current)
|
|
130
|
-
throw new
|
|
131
|
-
return e.current.waitForResult(
|
|
128
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
129
|
+
return e.current.waitForResult(n, r);
|
|
132
130
|
},
|
|
133
|
-
addTextLayer: (
|
|
131
|
+
addTextLayer: (n) => {
|
|
134
132
|
if (!e.current)
|
|
135
|
-
throw new
|
|
136
|
-
e.current.addTextLayer(
|
|
133
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
134
|
+
e.current.addTextLayer(n);
|
|
137
135
|
},
|
|
138
|
-
addImageLayer: async (
|
|
136
|
+
addImageLayer: async (n) => {
|
|
139
137
|
if (!e.current)
|
|
140
|
-
throw new
|
|
141
|
-
return e.current.addImageLayer(
|
|
138
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
139
|
+
return e.current.addImageLayer(n);
|
|
142
140
|
},
|
|
143
|
-
removeLayer: (
|
|
141
|
+
removeLayer: (n) => {
|
|
144
142
|
if (!e.current)
|
|
145
|
-
throw new
|
|
146
|
-
e.current.removeLayer(
|
|
143
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
144
|
+
e.current.removeLayer(n);
|
|
147
145
|
},
|
|
148
|
-
selectLayer: (
|
|
146
|
+
selectLayer: (n) => {
|
|
149
147
|
if (!e.current)
|
|
150
|
-
throw new
|
|
151
|
-
e.current.selectLayer(
|
|
148
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
149
|
+
e.current.selectLayer(n);
|
|
152
150
|
},
|
|
153
151
|
getSelectedLayerId: () => e.current ? e.current.getSelectedLayerId() : null,
|
|
154
152
|
getActiveView: () => e.current ? e.current.getActiveView() : null,
|
|
155
153
|
getViews: () => e.current ? e.current.getViews() : [],
|
|
156
|
-
setActiveView: (
|
|
154
|
+
setActiveView: (n) => {
|
|
157
155
|
if (!e.current)
|
|
158
|
-
throw new
|
|
159
|
-
e.current.setActiveView(
|
|
156
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
157
|
+
e.current.setActiveView(n);
|
|
160
158
|
},
|
|
161
|
-
setTheme: (
|
|
159
|
+
setTheme: (n) => {
|
|
162
160
|
if (!e.current)
|
|
163
|
-
throw new
|
|
164
|
-
e.current.setTheme(
|
|
161
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
162
|
+
e.current.setTheme(n);
|
|
165
163
|
},
|
|
166
|
-
setMode: (
|
|
164
|
+
setMode: (n) => {
|
|
167
165
|
if (!e.current)
|
|
168
|
-
throw new
|
|
169
|
-
e.current.setMode(
|
|
166
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
167
|
+
e.current.setMode(n);
|
|
170
168
|
},
|
|
171
169
|
destroy: () => {
|
|
172
170
|
e.current && (e.current.destroy(), e.current = null);
|
|
173
171
|
},
|
|
174
172
|
getElement: () => {
|
|
175
173
|
if (!e.current)
|
|
176
|
-
throw new
|
|
174
|
+
throw new u("NOT_INITIALIZED", "Editor not initialized");
|
|
177
175
|
return e.current.getElement();
|
|
178
176
|
}
|
|
179
177
|
}),
|
|
180
178
|
[]
|
|
181
179
|
// Empty deps is OK - we always read from instanceRef.current
|
|
182
|
-
), /* @__PURE__ */
|
|
180
|
+
), /* @__PURE__ */ M(
|
|
183
181
|
"div",
|
|
184
182
|
{
|
|
185
|
-
ref:
|
|
186
|
-
className:
|
|
183
|
+
ref: D,
|
|
184
|
+
className: _,
|
|
187
185
|
style: {
|
|
188
186
|
width: "100%",
|
|
189
187
|
height: "100%",
|
|
190
|
-
...
|
|
188
|
+
...V
|
|
191
189
|
}
|
|
192
190
|
}
|
|
193
191
|
);
|
|
194
192
|
}
|
|
195
193
|
);
|
|
196
|
-
|
|
197
|
-
function P(
|
|
194
|
+
J.displayName = "Customizer";
|
|
195
|
+
function P(U = {}) {
|
|
198
196
|
const {
|
|
199
|
-
autoSave:
|
|
200
|
-
autoSaveKey:
|
|
201
|
-
autoSaveDebounce:
|
|
202
|
-
} =
|
|
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(
|
|
203
201
|
null
|
|
204
|
-
), [
|
|
205
|
-
|
|
206
|
-
if (!(!
|
|
207
|
-
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(() => {
|
|
208
206
|
try {
|
|
209
|
-
localStorage.setItem(
|
|
210
|
-
} catch (
|
|
211
|
-
console.error("[useCustomizer] Auto-save failed:",
|
|
207
|
+
localStorage.setItem(w, JSON.stringify(l));
|
|
208
|
+
} catch (o) {
|
|
209
|
+
console.error("[useCustomizer] Auto-save failed:", o);
|
|
212
210
|
}
|
|
213
|
-
},
|
|
214
|
-
|
|
211
|
+
}, L), () => {
|
|
212
|
+
s.current && clearTimeout(s.current);
|
|
215
213
|
};
|
|
216
|
-
}, [
|
|
217
|
-
const
|
|
218
|
-
if (!
|
|
214
|
+
}, [l, S, w, L]);
|
|
215
|
+
const N = a(() => {
|
|
216
|
+
if (!t.current) return null;
|
|
219
217
|
try {
|
|
220
|
-
return
|
|
221
|
-
} catch (
|
|
222
|
-
return console.error("[useCustomizer] getDesign failed:",
|
|
218
|
+
return t.current.getDesign();
|
|
219
|
+
} catch (o) {
|
|
220
|
+
return console.error("[useCustomizer] getDesign failed:", o), null;
|
|
223
221
|
}
|
|
224
|
-
}, []),
|
|
225
|
-
if (
|
|
222
|
+
}, []), C = a((o) => {
|
|
223
|
+
if (t.current)
|
|
226
224
|
try {
|
|
227
|
-
|
|
228
|
-
} catch (
|
|
229
|
-
console.error("[useCustomizer] setDesign failed:",
|
|
225
|
+
t.current.setDesign(o), g(o);
|
|
226
|
+
} catch (i) {
|
|
227
|
+
console.error("[useCustomizer] setDesign failed:", i);
|
|
230
228
|
}
|
|
231
|
-
}, []),
|
|
232
|
-
if (
|
|
229
|
+
}, []), D = a(() => {
|
|
230
|
+
if (t.current)
|
|
233
231
|
try {
|
|
234
|
-
|
|
235
|
-
} catch (
|
|
236
|
-
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);
|
|
237
235
|
}
|
|
238
|
-
}, []), e =
|
|
239
|
-
if (
|
|
236
|
+
}, []), e = a(() => {
|
|
237
|
+
if (t.current)
|
|
240
238
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
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);
|
|
244
242
|
}
|
|
245
|
-
}, []),
|
|
246
|
-
if (!
|
|
243
|
+
}, []), c = a(async (o) => {
|
|
244
|
+
if (!t.current || f) return null;
|
|
247
245
|
y(!0);
|
|
248
246
|
try {
|
|
249
|
-
const
|
|
250
|
-
return
|
|
251
|
-
} catch (
|
|
252
|
-
return console.error("[useCustomizer] finalize failed:",
|
|
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;
|
|
253
251
|
} finally {
|
|
254
252
|
y(!1);
|
|
255
253
|
}
|
|
256
|
-
}, [
|
|
257
|
-
if (!
|
|
254
|
+
}, [f]), n = a(async (o, i) => {
|
|
255
|
+
if (!t.current || I) return null;
|
|
258
256
|
m(!0);
|
|
259
257
|
try {
|
|
260
|
-
const
|
|
261
|
-
return
|
|
262
|
-
} catch (
|
|
263
|
-
return console.error("[useCustomizer] waitForResult failed:",
|
|
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;
|
|
264
262
|
} finally {
|
|
265
263
|
m(!1);
|
|
266
264
|
}
|
|
267
|
-
}, [
|
|
268
|
-
if (
|
|
265
|
+
}, [I]), r = a((o) => {
|
|
266
|
+
if (t.current)
|
|
269
267
|
try {
|
|
270
|
-
|
|
271
|
-
} catch (
|
|
272
|
-
console.error("[useCustomizer] addTextLayer failed:",
|
|
268
|
+
t.current.addTextLayer(o);
|
|
269
|
+
} catch (i) {
|
|
270
|
+
console.error("[useCustomizer] addTextLayer failed:", i);
|
|
273
271
|
}
|
|
274
|
-
}, []),
|
|
275
|
-
if (
|
|
272
|
+
}, []), x = a(async (o) => {
|
|
273
|
+
if (t.current)
|
|
276
274
|
try {
|
|
277
|
-
await
|
|
278
|
-
} catch (
|
|
279
|
-
console.error("[useCustomizer] addImageLayer failed:",
|
|
275
|
+
await t.current.addImageLayer(o);
|
|
276
|
+
} catch (i) {
|
|
277
|
+
console.error("[useCustomizer] addImageLayer failed:", i);
|
|
280
278
|
}
|
|
281
|
-
}, []),
|
|
282
|
-
if (
|
|
279
|
+
}, []), b = a((o) => {
|
|
280
|
+
if (t.current)
|
|
283
281
|
try {
|
|
284
|
-
|
|
285
|
-
} catch (
|
|
286
|
-
console.error("[useCustomizer] removeLayer failed:",
|
|
282
|
+
t.current.removeLayer(o);
|
|
283
|
+
} catch (i) {
|
|
284
|
+
console.error("[useCustomizer] removeLayer failed:", i);
|
|
287
285
|
}
|
|
288
|
-
}, []),
|
|
289
|
-
if (
|
|
286
|
+
}, []), k = a((o) => {
|
|
287
|
+
if (t.current)
|
|
290
288
|
try {
|
|
291
|
-
|
|
292
|
-
} catch (
|
|
293
|
-
console.error("[useCustomizer] selectLayer failed:",
|
|
289
|
+
t.current.selectLayer(o), p(o);
|
|
290
|
+
} catch (i) {
|
|
291
|
+
console.error("[useCustomizer] selectLayer failed:", i);
|
|
294
292
|
}
|
|
295
293
|
}, []);
|
|
296
294
|
return {
|
|
297
|
-
customizerRef:
|
|
298
|
-
design:
|
|
299
|
-
canUndo:
|
|
300
|
-
canRedo:
|
|
301
|
-
selectedLayerId:
|
|
302
|
-
isFinalizing:
|
|
303
|
-
isRendering:
|
|
304
|
-
finalizeResult:
|
|
305
|
-
renderResult:
|
|
306
|
-
getDesign:
|
|
307
|
-
setDesign:
|
|
308
|
-
undo:
|
|
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,
|
|
309
307
|
redo: e,
|
|
310
|
-
finalize:
|
|
311
|
-
waitForResult:
|
|
312
|
-
addTextLayer:
|
|
313
|
-
addImageLayer:
|
|
314
|
-
removeLayer:
|
|
315
|
-
selectLayer:
|
|
308
|
+
finalize: c,
|
|
309
|
+
waitForResult: n,
|
|
310
|
+
addTextLayer: r,
|
|
311
|
+
addImageLayer: x,
|
|
312
|
+
removeLayer: b,
|
|
313
|
+
selectLayer: k
|
|
316
314
|
};
|
|
317
315
|
}
|
|
318
316
|
export {
|
|
319
|
-
|
|
317
|
+
J as Customizer,
|
|
318
|
+
u as CustomizerError,
|
|
320
319
|
P as useCustomizer
|
|
321
320
|
};
|
|
322
321
|
//# sourceMappingURL=react.esm.js.map
|