@replohq/canopy-sdk 2.0.0 → 2.2.0

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.
Files changed (52) hide show
  1. package/_vendor/replo-utils/lib/log.d.ts +11 -0
  2. package/_vendor/replo-utils/lib/misc.mjs +1 -1
  3. package/_vendor/replo-utils/react/use-iframe-rpc-channel.d.ts +14 -0
  4. package/_vendor/replo-utils/react/use-iframe-rpc-channel.mjs +14 -0
  5. package/_vendor/schemas/errors.d.ts +36 -15
  6. package/_vendor/schemas/generated/selectMode.d.ts +0 -85
  7. package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +100 -0
  8. package/_vendor/schemas/generated/selectModeIframeRpc.mjs +1 -0
  9. package/_vendor/schemas/iframeRpcChannel.d.ts +82 -0
  10. package/_vendor/schemas/iframeRpcChannel.mjs +361 -0
  11. package/_vendor/schemas/money.mjs +2 -113
  12. package/_vendor/schemas/selectMode.d.ts +0 -496
  13. package/_vendor/schemas/selectMode.mjs +3 -312
  14. package/_vendor/schemas/selectModeIframeRpc.d.ts +900 -0
  15. package/_vendor/schemas/selectModeIframeRpc.mjs +225 -0
  16. package/cart/buy-now-action.js +4 -4
  17. package/cart/buy-now-action.js.map +2 -2
  18. package/chunk-7GWIUERW.mjs +197 -0
  19. package/{chunk-UWHM3FKU.mjs → chunk-H36NDYLG.mjs} +3 -3
  20. package/chunk-OFU2QEDR.mjs +163 -0
  21. package/editor/annotations/annotationController.js +1 -1
  22. package/editor/annotations/annotationController.js.map +2 -2
  23. package/editor/select-mode/EditorSelection.js +3 -15
  24. package/editor/select-mode/EditorSelection.js.map +2 -2
  25. package/editor/select-mode/fast-refresh-relay.js +2 -4
  26. package/editor/select-mode/fast-refresh-relay.js.map +2 -2
  27. package/editor/select-mode/hooks/useEditModeStateMachine.d.ts +0 -4
  28. package/editor/select-mode/hooks/useEditModeStateMachine.js +76 -67
  29. package/editor/select-mode/hooks/useEditModeStateMachine.js.map +2 -2
  30. package/editor/select-mode/hooks/useParentMessaging.d.ts +6 -10
  31. package/editor/select-mode/hooks/useParentMessaging.js +43 -68
  32. package/editor/select-mode/hooks/useParentMessaging.js.map +2 -2
  33. package/editor/select-mode/hooks/useSelectModeController.js +5 -8
  34. package/editor/select-mode/hooks/useSelectModeController.js.map +2 -2
  35. package/editor/select-mode/hooks/useSelectionHover.js +4 -7
  36. package/editor/select-mode/hooks/useSelectionHover.js.map +2 -2
  37. package/editor/select-mode/hooks/useSelectionInteractions.js +14 -31
  38. package/editor/select-mode/hooks/useSelectionInteractions.js.map +2 -2
  39. package/editor/select-mode/hooks/useSelectionScrollSync.js +11 -18
  40. package/editor/select-mode/hooks/useSelectionScrollSync.js.map +2 -2
  41. package/editor/select-mode/iframeRpcChannel.d.ts +356 -0
  42. package/editor/select-mode/iframeRpcChannel.js +92 -0
  43. package/editor/select-mode/iframeRpcChannel.js.map +7 -0
  44. package/lib/canopy-error.js +1 -1
  45. package/lib/canopy-error.js.map +2 -2
  46. package/orders/order-status-schema.d.ts +161 -0
  47. package/orders/order-status-schema.js +83 -0
  48. package/orders/order-status-schema.js.map +7 -0
  49. package/orders/order-status.d.ts +11 -0
  50. package/orders/order-status.js +41 -0
  51. package/orders/order-status.js.map +7 -0
  52. package/package.json +9 -1
@@ -0,0 +1,356 @@
1
+ import type { SelectedElement } from "../../_vendor/schemas/generated/selectMode";
2
+ import type { IframeRpcChannelInputHandlers, IframeRpcChannelRemote } from "../../_vendor/schemas/iframeRpcChannel";
3
+ import { canopyToWebsiteBuilderMethodConfig, websiteBuilderToCanopyMethodConfig } from "../../_vendor/schemas/selectModeIframeRpc";
4
+ export type WebsiteBuilderRpcRemote = IframeRpcChannelRemote<typeof canopyToWebsiteBuilderMethodConfig>;
5
+ type SelectModeParentMessagingHandlers = Omit<IframeRpcChannelInputHandlers<typeof websiteBuilderToCanopyMethodConfig>, "symbolicateSelectedElement">;
6
+ export declare function getSelectModeIframeRpcChannel(): import("../../_vendor/schemas/iframeRpcChannel").IframeRpcChannel<{
7
+ requestInlineTextEdit: {
8
+ inputSchema: import("zod").ZodObject<{
9
+ editId: import("zod").ZodString;
10
+ element: import("zod").ZodObject<{
11
+ kind: import("zod").ZodLiteral<"react-element">;
12
+ selector: import("zod").ZodString;
13
+ tagName: import("zod").ZodString;
14
+ elementType: import("zod").ZodString;
15
+ textContent: import("zod").ZodNullable<import("zod").ZodString>;
16
+ rect: import("zod").ZodObject<{
17
+ x: import("zod").ZodNumber;
18
+ y: import("zod").ZodNumber;
19
+ left: import("zod").ZodNumber;
20
+ top: import("zod").ZodNumber;
21
+ right: import("zod").ZodNumber;
22
+ bottom: import("zod").ZodNumber;
23
+ width: import("zod").ZodNumber;
24
+ height: import("zod").ZodNumber;
25
+ }, import("zod/v4/core").$strip>;
26
+ textMetrics: import("zod").ZodNullable<import("zod").ZodObject<{
27
+ tightWidth: import("zod").ZodNumber;
28
+ lineCount: import("zod").ZodNumber;
29
+ lineHeight: import("zod").ZodNumber;
30
+ }, import("zod/v4/core").$strip>>;
31
+ outerHTML: import("zod").ZodString;
32
+ definedStyles: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
33
+ property: import("zod").ZodString;
34
+ variant: import("zod").ZodNullable<import("zod").ZodObject<{
35
+ atRules: import("zod").ZodArray<import("zod").ZodObject<{
36
+ type: import("zod").ZodString;
37
+ text: import("zod").ZodString;
38
+ }, import("zod/v4/core").$strip>>;
39
+ pseudo: import("zod").ZodNullable<import("zod").ZodString>;
40
+ }, import("zod/v4/core").$strip>>;
41
+ className: import("zod").ZodNullable<import("zod").ZodString>;
42
+ raw: import("zod").ZodString;
43
+ resolved: import("zod").ZodString;
44
+ }, import("zod/v4/core").$strip>>>;
45
+ inheritedStyles: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
46
+ clickPosition: import("zod").ZodObject<{
47
+ x: import("zod").ZodNumber;
48
+ y: import("zod").ZodNumber;
49
+ }, import("zod/v4/core").$strip>;
50
+ sourceLocation: import("zod").ZodOptional<import("zod").ZodObject<{
51
+ filePath: import("zod").ZodString;
52
+ lineNumber: import("zod").ZodNumber;
53
+ columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
54
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
55
+ }, import("zod/v4/core").$strip>>;
56
+ fiberChain: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
57
+ sourceLocation: import("zod").ZodObject<{
58
+ filePath: import("zod").ZodString;
59
+ lineNumber: import("zod").ZodNumber;
60
+ columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
61
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
62
+ }, import("zod/v4/core").$strip>;
63
+ tagName: import("zod").ZodOptional<import("zod").ZodString>;
64
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
65
+ props: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
66
+ }, import("zod/v4/core").$strip>>>;
67
+ siblingSelectors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
68
+ }, import("zod/v4/core").$strip>;
69
+ }, import("zod/v4/core").$strip>;
70
+ outputSchema: import("zod").ZodObject<{
71
+ allowed: import("zod").ZodBoolean;
72
+ }, import("zod/v4/core").$strip>;
73
+ timeoutMs: number;
74
+ };
75
+ iframeReady: {
76
+ inputSchema: import("zod").ZodUndefined;
77
+ outputSchema: import("zod").ZodVoid;
78
+ };
79
+ elementSelected: {
80
+ inputSchema: import("zod").ZodObject<{
81
+ data: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
82
+ kind: import("zod").ZodLiteral<"react-element">;
83
+ selector: import("zod").ZodString;
84
+ tagName: import("zod").ZodString;
85
+ elementType: import("zod").ZodString;
86
+ textContent: import("zod").ZodNullable<import("zod").ZodString>;
87
+ rect: import("zod").ZodObject<{
88
+ x: import("zod").ZodNumber;
89
+ y: import("zod").ZodNumber;
90
+ left: import("zod").ZodNumber;
91
+ top: import("zod").ZodNumber;
92
+ right: import("zod").ZodNumber;
93
+ bottom: import("zod").ZodNumber;
94
+ width: import("zod").ZodNumber;
95
+ height: import("zod").ZodNumber;
96
+ }, import("zod/v4/core").$strip>;
97
+ textMetrics: import("zod").ZodNullable<import("zod").ZodObject<{
98
+ tightWidth: import("zod").ZodNumber;
99
+ lineCount: import("zod").ZodNumber;
100
+ lineHeight: import("zod").ZodNumber;
101
+ }, import("zod/v4/core").$strip>>;
102
+ outerHTML: import("zod").ZodString;
103
+ definedStyles: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
104
+ property: import("zod").ZodString;
105
+ variant: import("zod").ZodNullable<import("zod").ZodObject<{
106
+ atRules: import("zod").ZodArray<import("zod").ZodObject<{
107
+ type: import("zod").ZodString;
108
+ text: import("zod").ZodString;
109
+ }, import("zod/v4/core").$strip>>;
110
+ pseudo: import("zod").ZodNullable<import("zod").ZodString>;
111
+ }, import("zod/v4/core").$strip>>;
112
+ className: import("zod").ZodNullable<import("zod").ZodString>;
113
+ raw: import("zod").ZodString;
114
+ resolved: import("zod").ZodString;
115
+ }, import("zod/v4/core").$strip>>>;
116
+ inheritedStyles: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
117
+ clickPosition: import("zod").ZodObject<{
118
+ x: import("zod").ZodNumber;
119
+ y: import("zod").ZodNumber;
120
+ }, import("zod/v4/core").$strip>;
121
+ sourceLocation: import("zod").ZodOptional<import("zod").ZodObject<{
122
+ filePath: import("zod").ZodString;
123
+ lineNumber: import("zod").ZodNumber;
124
+ columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
125
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
126
+ }, import("zod/v4/core").$strip>>;
127
+ fiberChain: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
128
+ sourceLocation: import("zod").ZodObject<{
129
+ filePath: import("zod").ZodString;
130
+ lineNumber: import("zod").ZodNumber;
131
+ columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
132
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
133
+ }, import("zod/v4/core").$strip>;
134
+ tagName: import("zod").ZodOptional<import("zod").ZodString>;
135
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
136
+ props: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
137
+ }, import("zod/v4/core").$strip>>>;
138
+ siblingSelectors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
139
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
140
+ kind: import("zod").ZodLiteral<"plan">;
141
+ planId: import("zod").ZodString;
142
+ label: import("zod").ZodString;
143
+ rect: import("zod").ZodObject<{
144
+ x: import("zod").ZodNumber;
145
+ y: import("zod").ZodNumber;
146
+ left: import("zod").ZodNumber;
147
+ top: import("zod").ZodNumber;
148
+ right: import("zod").ZodNumber;
149
+ bottom: import("zod").ZodNumber;
150
+ width: import("zod").ZodNumber;
151
+ height: import("zod").ZodNumber;
152
+ }, import("zod/v4/core").$strip>;
153
+ }, import("zod/v4/core").$strip>], "kind">;
154
+ }, import("zod/v4/core").$strip>;
155
+ outputSchema: import("zod").ZodVoid;
156
+ };
157
+ hoverElement: {
158
+ inputSchema: import("zod").ZodObject<{
159
+ rect: import("zod").ZodNullable<import("zod").ZodObject<{
160
+ x: import("zod").ZodNumber;
161
+ y: import("zod").ZodNumber;
162
+ left: import("zod").ZodNumber;
163
+ top: import("zod").ZodNumber;
164
+ right: import("zod").ZodNumber;
165
+ bottom: import("zod").ZodNumber;
166
+ width: import("zod").ZodNumber;
167
+ height: import("zod").ZodNumber;
168
+ }, import("zod/v4/core").$strip>>;
169
+ }, import("zod/v4/core").$strip>;
170
+ outputSchema: import("zod").ZodVoid;
171
+ };
172
+ selectedElementRectUpdate: {
173
+ inputSchema: import("zod").ZodObject<{
174
+ rect: import("zod").ZodObject<{
175
+ x: import("zod").ZodNumber;
176
+ y: import("zod").ZodNumber;
177
+ left: import("zod").ZodNumber;
178
+ top: import("zod").ZodNumber;
179
+ right: import("zod").ZodNumber;
180
+ bottom: import("zod").ZodNumber;
181
+ width: import("zod").ZodNumber;
182
+ height: import("zod").ZodNumber;
183
+ }, import("zod/v4/core").$strip>;
184
+ clickPosition: import("zod").ZodObject<{
185
+ x: import("zod").ZodNumber;
186
+ y: import("zod").ZodNumber;
187
+ }, import("zod/v4/core").$strip>;
188
+ }, import("zod/v4/core").$strip>;
189
+ outputSchema: import("zod").ZodVoid;
190
+ };
191
+ selectedAreaRectUpdate: {
192
+ inputSchema: import("zod").ZodObject<{
193
+ rect: import("zod").ZodObject<{
194
+ x: import("zod").ZodNumber;
195
+ y: import("zod").ZodNumber;
196
+ left: import("zod").ZodNumber;
197
+ top: import("zod").ZodNumber;
198
+ right: import("zod").ZodNumber;
199
+ bottom: import("zod").ZodNumber;
200
+ width: import("zod").ZodNumber;
201
+ height: import("zod").ZodNumber;
202
+ }, import("zod/v4/core").$strip>;
203
+ }, import("zod/v4/core").$strip>;
204
+ outputSchema: import("zod").ZodVoid;
205
+ };
206
+ dragRectUpdated: {
207
+ inputSchema: import("zod").ZodObject<{
208
+ dragRect: import("zod").ZodNullable<import("zod").ZodObject<{
209
+ x: import("zod").ZodNumber;
210
+ y: import("zod").ZodNumber;
211
+ left: import("zod").ZodNumber;
212
+ top: import("zod").ZodNumber;
213
+ right: import("zod").ZodNumber;
214
+ bottom: import("zod").ZodNumber;
215
+ width: import("zod").ZodNumber;
216
+ height: import("zod").ZodNumber;
217
+ }, import("zod/v4/core").$strip>>;
218
+ selectionRects: import("zod").ZodArray<import("zod").ZodObject<{
219
+ id: import("zod").ZodString;
220
+ rect: import("zod").ZodObject<{
221
+ x: import("zod").ZodNumber;
222
+ y: import("zod").ZodNumber;
223
+ left: import("zod").ZodNumber;
224
+ top: import("zod").ZodNumber;
225
+ right: import("zod").ZodNumber;
226
+ bottom: import("zod").ZodNumber;
227
+ width: import("zod").ZodNumber;
228
+ height: import("zod").ZodNumber;
229
+ }, import("zod/v4/core").$strip>;
230
+ }, import("zod/v4/core").$strip>>;
231
+ }, import("zod/v4/core").$strip>;
232
+ outputSchema: import("zod").ZodVoid;
233
+ };
234
+ areaSelected: {
235
+ inputSchema: import("zod").ZodObject<{
236
+ rect: import("zod").ZodObject<{
237
+ x: import("zod").ZodNumber;
238
+ y: import("zod").ZodNumber;
239
+ left: import("zod").ZodNumber;
240
+ top: import("zod").ZodNumber;
241
+ right: import("zod").ZodNumber;
242
+ bottom: import("zod").ZodNumber;
243
+ width: import("zod").ZodNumber;
244
+ height: import("zod").ZodNumber;
245
+ }, import("zod/v4/core").$strip>;
246
+ items: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
247
+ kind: import("zod").ZodLiteral<"react-element">;
248
+ selector: import("zod").ZodString;
249
+ tagName: import("zod").ZodString;
250
+ elementType: import("zod").ZodString;
251
+ textContent: import("zod").ZodNullable<import("zod").ZodString>;
252
+ rect: import("zod").ZodObject<{
253
+ x: import("zod").ZodNumber;
254
+ y: import("zod").ZodNumber;
255
+ left: import("zod").ZodNumber;
256
+ top: import("zod").ZodNumber;
257
+ right: import("zod").ZodNumber;
258
+ bottom: import("zod").ZodNumber;
259
+ width: import("zod").ZodNumber;
260
+ height: import("zod").ZodNumber;
261
+ }, import("zod/v4/core").$strip>;
262
+ textMetrics: import("zod").ZodNullable<import("zod").ZodObject<{
263
+ tightWidth: import("zod").ZodNumber;
264
+ lineCount: import("zod").ZodNumber;
265
+ lineHeight: import("zod").ZodNumber;
266
+ }, import("zod/v4/core").$strip>>;
267
+ outerHTML: import("zod").ZodString;
268
+ definedStyles: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
269
+ property: import("zod").ZodString;
270
+ variant: import("zod").ZodNullable<import("zod").ZodObject<{
271
+ atRules: import("zod").ZodArray<import("zod").ZodObject<{
272
+ type: import("zod").ZodString;
273
+ text: import("zod").ZodString;
274
+ }, import("zod/v4/core").$strip>>;
275
+ pseudo: import("zod").ZodNullable<import("zod").ZodString>;
276
+ }, import("zod/v4/core").$strip>>;
277
+ className: import("zod").ZodNullable<import("zod").ZodString>;
278
+ raw: import("zod").ZodString;
279
+ resolved: import("zod").ZodString;
280
+ }, import("zod/v4/core").$strip>>>;
281
+ inheritedStyles: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
282
+ clickPosition: import("zod").ZodObject<{
283
+ x: import("zod").ZodNumber;
284
+ y: import("zod").ZodNumber;
285
+ }, import("zod/v4/core").$strip>;
286
+ sourceLocation: import("zod").ZodOptional<import("zod").ZodObject<{
287
+ filePath: import("zod").ZodString;
288
+ lineNumber: import("zod").ZodNumber;
289
+ columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
290
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
291
+ }, import("zod/v4/core").$strip>>;
292
+ fiberChain: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
293
+ sourceLocation: import("zod").ZodObject<{
294
+ filePath: import("zod").ZodString;
295
+ lineNumber: import("zod").ZodNumber;
296
+ columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
297
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
298
+ }, import("zod/v4/core").$strip>;
299
+ tagName: import("zod").ZodOptional<import("zod").ZodString>;
300
+ componentName: import("zod").ZodOptional<import("zod").ZodString>;
301
+ props: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
302
+ }, import("zod/v4/core").$strip>>>;
303
+ siblingSelectors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
304
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
305
+ kind: import("zod").ZodLiteral<"plan">;
306
+ planId: import("zod").ZodString;
307
+ label: import("zod").ZodString;
308
+ rect: import("zod").ZodObject<{
309
+ x: import("zod").ZodNumber;
310
+ y: import("zod").ZodNumber;
311
+ left: import("zod").ZodNumber;
312
+ top: import("zod").ZodNumber;
313
+ right: import("zod").ZodNumber;
314
+ bottom: import("zod").ZodNumber;
315
+ width: import("zod").ZodNumber;
316
+ height: import("zod").ZodNumber;
317
+ }, import("zod/v4/core").$strip>;
318
+ }, import("zod/v4/core").$strip>], "kind">>;
319
+ }, import("zod/v4/core").$strip>;
320
+ outputSchema: import("zod").ZodVoid;
321
+ };
322
+ textCommitted: {
323
+ inputSchema: import("zod").ZodObject<{
324
+ editId: import("zod").ZodString;
325
+ html: import("zod").ZodString;
326
+ json: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
327
+ originalInnerHTML: import("zod").ZodString;
328
+ }, import("zod/v4/core").$strip>;
329
+ outputSchema: import("zod").ZodVoid;
330
+ };
331
+ editorStateUpdate: {
332
+ inputSchema: import("zod").ZodObject<{
333
+ activeMarks: import("zod").ZodObject<{
334
+ bold: import("zod").ZodBoolean;
335
+ italic: import("zod").ZodBoolean;
336
+ underline: import("zod").ZodBoolean;
337
+ strike: import("zod").ZodBoolean;
338
+ }, import("zod/v4/core").$strip>;
339
+ isEditing: import("zod").ZodBoolean;
340
+ }, import("zod/v4/core").$strip>;
341
+ outputSchema: import("zod").ZodVoid;
342
+ };
343
+ fastRefreshComplete: {
344
+ inputSchema: import("zod").ZodUndefined;
345
+ outputSchema: import("zod").ZodVoid;
346
+ };
347
+ }> | null;
348
+ export declare function setSelectModeParentHandlers(nextHandlers: SelectModeParentMessagingHandlers | null): void;
349
+ export declare function getWebsiteBuilderRpc(): WebsiteBuilderRpcRemote | null;
350
+ export declare function requestInlineTextEdit(input: {
351
+ editId: string;
352
+ element: SelectedElement;
353
+ }): Promise<{
354
+ allowed: boolean;
355
+ }>;
356
+ export {};
@@ -0,0 +1,92 @@
1
+ import {
2
+ createIframeRpcChannel,
3
+ createIframeRpcRemote
4
+ } from "../../_vendor/schemas/iframeRpcChannel.mjs";
5
+ import {
6
+ canopyToWebsiteBuilderMethodConfig,
7
+ SELECT_MODE_IFRAME_RPC_CHANNEL_ID,
8
+ SELECT_MODE_IFRAME_RPC_CHANNEL_VERSION,
9
+ websiteBuilderToCanopyMethodConfig
10
+ } from "../../_vendor/schemas/selectModeIframeRpc.mjs";
11
+ import { symbolicateSelectedElement } from "./symbolicate";
12
+ let messagingHandlers = null;
13
+ function createSelectModeIframeRpcChannel() {
14
+ return createIframeRpcChannel({
15
+ subscriberWindow: window,
16
+ channelIdentifier: SELECT_MODE_IFRAME_RPC_CHANNEL_ID,
17
+ version: SELECT_MODE_IFRAME_RPC_CHANNEL_VERSION,
18
+ getTargetWindow: () => window.parent === window ? null : window.parent,
19
+ targetOrigin: "*",
20
+ isExpectedMessage: (event) => event.source === window.parent,
21
+ outgoingMethods: canopyToWebsiteBuilderMethodConfig,
22
+ incomingMethods: websiteBuilderToCanopyMethodConfig,
23
+ handlers: {
24
+ setDisplayMode: (input) => {
25
+ messagingHandlers?.setDisplayMode(input);
26
+ },
27
+ setSelectionType: (input) => {
28
+ messagingHandlers?.setSelectionType(input);
29
+ },
30
+ applyOptimisticUpdate: (input) => {
31
+ messagingHandlers?.applyOptimisticUpdate(input);
32
+ },
33
+ markCommitted: (input) => {
34
+ messagingHandlers?.markCommitted(input);
35
+ },
36
+ resolveSessionOverrides: (input) => {
37
+ messagingHandlers?.resolveSessionOverrides(input);
38
+ },
39
+ revertOverride: (input) => {
40
+ messagingHandlers?.revertOverride(input);
41
+ },
42
+ enterEditMode: (input) => {
43
+ messagingHandlers?.enterEditMode(input);
44
+ },
45
+ exitEditMode: (input) => {
46
+ messagingHandlers?.exitEditMode(input);
47
+ },
48
+ formatCommand: (input) => {
49
+ messagingHandlers?.formatCommand(input);
50
+ },
51
+ symbolicateSelectedElement: (element) => {
52
+ return symbolicateSelectedElement(element);
53
+ }
54
+ }
55
+ });
56
+ }
57
+ let channel = null;
58
+ let websiteBuilderRpc = null;
59
+ function getSelectModeIframeRpcChannel() {
60
+ if (typeof window === "undefined") {
61
+ return null;
62
+ }
63
+ channel ??= createSelectModeIframeRpcChannel();
64
+ return channel;
65
+ }
66
+ function setSelectModeParentHandlers(nextHandlers) {
67
+ messagingHandlers = nextHandlers;
68
+ }
69
+ function getWebsiteBuilderRpc() {
70
+ const currentChannel = getSelectModeIframeRpcChannel();
71
+ if (!currentChannel) {
72
+ return null;
73
+ }
74
+ websiteBuilderRpc ??= createIframeRpcRemote(currentChannel);
75
+ return websiteBuilderRpc;
76
+ }
77
+ function requestInlineTextEdit(input) {
78
+ const remote = getWebsiteBuilderRpc();
79
+ if (!remote) {
80
+ return Promise.reject(
81
+ new Error("Website Builder iframe RPC is unavailable")
82
+ );
83
+ }
84
+ return remote.requestInlineTextEdit(input);
85
+ }
86
+ export {
87
+ getSelectModeIframeRpcChannel,
88
+ getWebsiteBuilderRpc,
89
+ requestInlineTextEdit,
90
+ setSelectModeParentHandlers
91
+ };
92
+ //# sourceMappingURL=iframeRpcChannel.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../editor/select-mode/iframeRpcChannel.ts"],
4
+ "sourcesContent": ["import type { SelectedElement } from \"schemas/generated/selectMode\";\nimport type {\n IframeRpcChannelInputHandlers,\n IframeRpcChannelRemote,\n} from \"schemas/iframeRpcChannel\";\n\nimport {\n createIframeRpcChannel,\n createIframeRpcRemote,\n} from \"schemas/iframeRpcChannel\";\nimport {\n canopyToWebsiteBuilderMethodConfig,\n SELECT_MODE_IFRAME_RPC_CHANNEL_ID,\n SELECT_MODE_IFRAME_RPC_CHANNEL_VERSION,\n websiteBuilderToCanopyMethodConfig,\n} from \"schemas/selectModeIframeRpc\";\n\nimport { symbolicateSelectedElement } from \"./symbolicate\";\n\nexport type WebsiteBuilderRpcRemote = IframeRpcChannelRemote<\n typeof canopyToWebsiteBuilderMethodConfig\n>;\n\ntype SelectModeParentMessagingHandlers = Omit<\n IframeRpcChannelInputHandlers<typeof websiteBuilderToCanopyMethodConfig>,\n \"symbolicateSelectedElement\"\n>;\n\n// Module-level handler pointers; `useParentMessaging` sets these on mount\n// and nulls them on unmount. Inbound void methods are dropped until then.\n// `symbolicateSelectedElement` is wired permanently on the channel.\nlet messagingHandlers: SelectModeParentMessagingHandlers | null = null;\n\nfunction createSelectModeIframeRpcChannel() {\n return createIframeRpcChannel({\n subscriberWindow: window,\n channelIdentifier: SELECT_MODE_IFRAME_RPC_CHANNEL_ID,\n version: SELECT_MODE_IFRAME_RPC_CHANNEL_VERSION,\n getTargetWindow: () => (window.parent === window ? null : window.parent),\n targetOrigin: \"*\",\n isExpectedMessage: (event) => event.source === window.parent,\n outgoingMethods: canopyToWebsiteBuilderMethodConfig,\n incomingMethods: websiteBuilderToCanopyMethodConfig,\n handlers: {\n setDisplayMode: (input) => {\n messagingHandlers?.setDisplayMode(input);\n },\n setSelectionType: (input) => {\n messagingHandlers?.setSelectionType(input);\n },\n applyOptimisticUpdate: (input) => {\n messagingHandlers?.applyOptimisticUpdate(input);\n },\n markCommitted: (input) => {\n messagingHandlers?.markCommitted(input);\n },\n resolveSessionOverrides: (input) => {\n messagingHandlers?.resolveSessionOverrides(input);\n },\n revertOverride: (input) => {\n messagingHandlers?.revertOverride(input);\n },\n enterEditMode: (input) => {\n messagingHandlers?.enterEditMode(input);\n },\n exitEditMode: (input) => {\n messagingHandlers?.exitEditMode(input);\n },\n formatCommand: (input) => {\n messagingHandlers?.formatCommand(input);\n },\n symbolicateSelectedElement: (element) => {\n return symbolicateSelectedElement(element);\n },\n },\n });\n}\n\nlet channel: ReturnType<typeof createSelectModeIframeRpcChannel> | null = null;\nlet websiteBuilderRpc: WebsiteBuilderRpcRemote | null = null;\n\nexport function getSelectModeIframeRpcChannel() {\n if (typeof window === \"undefined\") {\n return null;\n }\n channel ??= createSelectModeIframeRpcChannel();\n return channel;\n}\n\nexport function setSelectModeParentHandlers(\n nextHandlers: SelectModeParentMessagingHandlers | null,\n) {\n messagingHandlers = nextHandlers;\n}\n\nexport function getWebsiteBuilderRpc(): WebsiteBuilderRpcRemote | null {\n const currentChannel = getSelectModeIframeRpcChannel();\n if (!currentChannel) {\n return null;\n }\n websiteBuilderRpc ??= createIframeRpcRemote(currentChannel);\n return websiteBuilderRpc;\n}\n\nexport function requestInlineTextEdit(input: {\n editId: string;\n element: SelectedElement;\n}) {\n const remote = getWebsiteBuilderRpc();\n if (!remote) {\n return Promise.reject(\n new Error(\"Website Builder iframe RPC is unavailable\"),\n );\n }\n return remote.requestInlineTextEdit(input);\n}\n"],
5
+ "mappings": "AAMA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,kCAAkC;AAc3C,IAAI,oBAA8D;AAElE,SAAS,mCAAmC;AAC1C,SAAO,uBAAuB;AAAA,IAC5B,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,SAAS;AAAA,IACT,iBAAiB,MAAO,OAAO,WAAW,SAAS,OAAO,OAAO;AAAA,IACjE,cAAc;AAAA,IACd,mBAAmB,CAAC,UAAU,MAAM,WAAW,OAAO;AAAA,IACtD,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,UAAU;AAAA,MACR,gBAAgB,CAAC,UAAU;AACzB,2BAAmB,eAAe,KAAK;AAAA,MACzC;AAAA,MACA,kBAAkB,CAAC,UAAU;AAC3B,2BAAmB,iBAAiB,KAAK;AAAA,MAC3C;AAAA,MACA,uBAAuB,CAAC,UAAU;AAChC,2BAAmB,sBAAsB,KAAK;AAAA,MAChD;AAAA,MACA,eAAe,CAAC,UAAU;AACxB,2BAAmB,cAAc,KAAK;AAAA,MACxC;AAAA,MACA,yBAAyB,CAAC,UAAU;AAClC,2BAAmB,wBAAwB,KAAK;AAAA,MAClD;AAAA,MACA,gBAAgB,CAAC,UAAU;AACzB,2BAAmB,eAAe,KAAK;AAAA,MACzC;AAAA,MACA,eAAe,CAAC,UAAU;AACxB,2BAAmB,cAAc,KAAK;AAAA,MACxC;AAAA,MACA,cAAc,CAAC,UAAU;AACvB,2BAAmB,aAAa,KAAK;AAAA,MACvC;AAAA,MACA,eAAe,CAAC,UAAU;AACxB,2BAAmB,cAAc,KAAK;AAAA,MACxC;AAAA,MACA,4BAA4B,CAAC,YAAY;AACvC,eAAO,2BAA2B,OAAO;AAAA,MAC3C;AAAA,IACF;AAAA,EACF,CAAC;AACH;AAEA,IAAI,UAAsE;AAC1E,IAAI,oBAAoD;AAEjD,SAAS,gCAAgC;AAC9C,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AACA,cAAY,iCAAiC;AAC7C,SAAO;AACT;AAEO,SAAS,4BACd,cACA;AACA,sBAAoB;AACtB;AAEO,SAAS,uBAAuD;AACrE,QAAM,iBAAiB,8BAA8B;AACrD,MAAI,CAAC,gBAAgB;AACnB,WAAO;AAAA,EACT;AACA,wBAAsB,sBAAsB,cAAc;AAC1D,SAAO;AACT;AAEO,SAAS,sBAAsB,OAGnC;AACD,QAAM,SAAS,qBAAqB;AACpC,MAAI,CAAC,QAAQ;AACX,WAAO,QAAQ;AAAA,MACb,IAAI,MAAM,2CAA2C;AAAA,IACvD;AAAA,EACF;AACA,SAAO,OAAO,sBAAsB,KAAK;AAC3C;",
6
+ "names": []
7
+ }
@@ -6,7 +6,7 @@ class CanopyError extends Error {
6
6
  this.message = config.message ?? this.constructor.name;
7
7
  this.config = config;
8
8
  this.id = crypto.randomUUID();
9
- const { cause } = config;
9
+ const cause = config.cause;
10
10
  if (cause) {
11
11
  this.cause = cause;
12
12
  if (cause instanceof CanopyError) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../lib/canopy-error.ts"],
4
- "sourcesContent": ["// NOTE (Ryan, 2026-07-23, REPL-27611): Local error base for canopy-sdk's\n// published-page code. Mirrors the minimal surface of `schemas`' `ReploError`\n// (a `config` bag, a stable `id`, and cause chaining) that canopy's scoped\n// error classes actually use, so nothing shipped to a generated site imports\n// from `schemas`.\n\nexport type CanopyErrorConfig = {\n /**\n * Message of the error. If not provided, defaults to the error's class name.\n */\n message?: string;\n /**\n * Additional context about the error (ids, contextual variables, etc.),\n * surfaced when the error is logged.\n */\n additionalData?: Record<string, unknown>;\n /**\n * Original cause of the error, useful when catching and re-throwing with more\n * context.\n */\n cause?: unknown;\n};\n\n/**\n * Base error that all canopy-sdk errors inherit from. Deliberately minimal and\n * self-contained; it does not depend on the `schemas` workspace package.\n */\nexport abstract class CanopyError extends Error {\n config: CanopyErrorConfig;\n id: string;\n\n constructor(config: CanopyErrorConfig) {\n super(config.message);\n this.message = config.message ?? this.constructor.name;\n this.config = config;\n // crypto.randomUUID is natively available in browsers, Node, and the\n // Cloudflare Workers runtime \u2014 the three environments canopy-sdk runs in.\n this.id = crypto.randomUUID();\n\n const { cause } = config;\n if (cause) {\n this.cause = cause;\n if (cause instanceof CanopyError) {\n this.config.additionalData = {\n ...this.config.additionalData,\n ...cause.config.additionalData,\n };\n }\n }\n }\n}\n"],
5
- "mappings": "AA2BO,MAAe,oBAAoB,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EAEA,YAAY,QAA2B;AACrC,UAAM,OAAO,OAAO;AACpB,SAAK,UAAU,OAAO,WAAW,KAAK,YAAY;AAClD,SAAK,SAAS;AAGd,SAAK,KAAK,OAAO,WAAW;AAE5B,UAAM,EAAE,MAAM,IAAI;AAClB,QAAI,OAAO;AACT,WAAK,QAAQ;AACb,UAAI,iBAAiB,aAAa;AAChC,aAAK,OAAO,iBAAiB;AAAA,UAC3B,GAAG,KAAK,OAAO;AAAA,UACf,GAAG,MAAM,OAAO;AAAA,QAClB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["// NOTE (Ryan, 2026-07-23, REPL-27611): Local error base for canopy-sdk's\n// published-page code. Mirrors the minimal surface of `schemas`' `ReploError`\n// (a `config` bag, a stable `id`, and cause chaining) that canopy's scoped\n// error classes actually use, so nothing shipped to a generated site imports\n// from `schemas`.\n\nexport type CanopyErrorConfig = {\n /**\n * Message of the error. If not provided, defaults to the error's class name.\n */\n message?: string;\n /**\n * Additional context about the error (ids, contextual variables, etc.),\n * surfaced when the error is logged.\n */\n additionalData?: Record<string, unknown>;\n /**\n * Original cause of the error, useful when catching and re-throwing with more\n * context.\n */\n cause?: unknown;\n};\n\n/**\n * Base error that all canopy-sdk errors inherit from. Deliberately minimal and\n * self-contained; it does not depend on the `schemas` workspace package.\n */\nexport abstract class CanopyError extends Error {\n config: CanopyErrorConfig;\n id: string;\n\n constructor(config: CanopyErrorConfig) {\n super(config.message);\n this.message = config.message ?? this.constructor.name;\n this.config = config;\n // crypto.randomUUID is natively available in browsers, Node, and the\n // Cloudflare Workers runtime \u2014 the three environments canopy-sdk runs in.\n this.id = crypto.randomUUID();\n\n const cause = config.cause;\n if (cause) {\n this.cause = cause;\n if (cause instanceof CanopyError) {\n this.config.additionalData = {\n ...this.config.additionalData,\n ...cause.config.additionalData,\n };\n }\n }\n }\n}\n"],
5
+ "mappings": "AA2BO,MAAe,oBAAoB,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EAEA,YAAY,QAA2B;AACrC,UAAM,OAAO,OAAO;AACpB,SAAK,UAAU,OAAO,WAAW,KAAK,YAAY;AAClD,SAAK,SAAS;AAGd,SAAK,KAAK,OAAO,WAAW;AAE5B,UAAM,QAAQ,OAAO;AACrB,QAAI,OAAO;AACT,WAAK,QAAQ;AACb,UAAI,iBAAiB,aAAa;AAChC,aAAK,OAAO,iBAAiB;AAAA,UAC3B,GAAG,KAAK,OAAO;AAAA,UACf,GAAG,MAAM,OAAO;AAAA,QAClB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,161 @@
1
+ import { z } from "zod";
2
+ export declare const orderStatusAddressSchema: z.ZodObject<{
3
+ name: z.ZodNullable<z.ZodString>;
4
+ line1: z.ZodString;
5
+ line2: z.ZodNullable<z.ZodString>;
6
+ city: z.ZodString;
7
+ state: z.ZodNullable<z.ZodString>;
8
+ postalCode: z.ZodString;
9
+ country: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export declare const orderStatusItemSchema: z.ZodObject<{
12
+ title: z.ZodString;
13
+ imageUrl: z.ZodNullable<z.ZodString>;
14
+ quantity: z.ZodNumber;
15
+ unitPrice: z.ZodNumber;
16
+ lineTotal: z.ZodNumber;
17
+ }, z.core.$strip>;
18
+ export declare const orderStatusShipmentSchema: z.ZodObject<{
19
+ carrier: z.ZodNullable<z.ZodString>;
20
+ trackingNumber: z.ZodNullable<z.ZodString>;
21
+ trackingUrl: z.ZodNullable<z.ZodString>;
22
+ shippedAt: z.ZodString;
23
+ }, z.core.$strip>;
24
+ export declare const orderFinancialStatusSchema: z.ZodEnum<{
25
+ failed: "failed";
26
+ pending: "pending";
27
+ paid: "paid";
28
+ refunded: "refunded";
29
+ partiallyRefunded: "partiallyRefunded";
30
+ }>;
31
+ export declare const orderStatusSummarySchema: z.ZodObject<{
32
+ statusToken: z.ZodString;
33
+ orderNumber: z.ZodString;
34
+ placedAt: z.ZodString;
35
+ financialStatus: z.ZodEnum<{
36
+ failed: "failed";
37
+ pending: "pending";
38
+ paid: "paid";
39
+ refunded: "refunded";
40
+ partiallyRefunded: "partiallyRefunded";
41
+ }>;
42
+ currencyCode: z.ZodString;
43
+ subtotalAmount: z.ZodNumber;
44
+ shippingAmount: z.ZodNumber;
45
+ taxAmount: z.ZodNumber;
46
+ discountAmount: z.ZodNumber;
47
+ totalAmount: z.ZodNumber;
48
+ refundedAmount: z.ZodNumber;
49
+ customerEmail: z.ZodNullable<z.ZodString>;
50
+ shippingAddress: z.ZodNullable<z.ZodObject<{
51
+ name: z.ZodNullable<z.ZodString>;
52
+ line1: z.ZodString;
53
+ line2: z.ZodNullable<z.ZodString>;
54
+ city: z.ZodString;
55
+ state: z.ZodNullable<z.ZodString>;
56
+ postalCode: z.ZodString;
57
+ country: z.ZodString;
58
+ }, z.core.$strip>>;
59
+ items: z.ZodArray<z.ZodObject<{
60
+ title: z.ZodString;
61
+ imageUrl: z.ZodNullable<z.ZodString>;
62
+ quantity: z.ZodNumber;
63
+ unitPrice: z.ZodNumber;
64
+ lineTotal: z.ZodNumber;
65
+ }, z.core.$strip>>;
66
+ shipments: z.ZodArray<z.ZodObject<{
67
+ carrier: z.ZodNullable<z.ZodString>;
68
+ trackingNumber: z.ZodNullable<z.ZodString>;
69
+ trackingUrl: z.ZodNullable<z.ZodString>;
70
+ shippedAt: z.ZodString;
71
+ }, z.core.$strip>>;
72
+ emailExpected: z.ZodBoolean;
73
+ }, z.core.$strip>;
74
+ export declare const checkoutSessionSummarySchema: z.ZodObject<{
75
+ paymentStatus: z.ZodEnum<{
76
+ paid: "paid";
77
+ unpaid: "unpaid";
78
+ no_payment_required: "no_payment_required";
79
+ }>;
80
+ currencyCode: z.ZodNullable<z.ZodString>;
81
+ subtotalAmount: z.ZodNullable<z.ZodNumber>;
82
+ totalAmount: z.ZodNullable<z.ZodNumber>;
83
+ items: z.ZodArray<z.ZodObject<{
84
+ title: z.ZodString;
85
+ quantity: z.ZodNumber;
86
+ unitPrice: z.ZodNullable<z.ZodNumber>;
87
+ lineTotal: z.ZodNumber;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>;
90
+ export declare const orderStatusResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ state: z.ZodLiteral<"order">;
92
+ order: z.ZodObject<{
93
+ statusToken: z.ZodString;
94
+ orderNumber: z.ZodString;
95
+ placedAt: z.ZodString;
96
+ financialStatus: z.ZodEnum<{
97
+ failed: "failed";
98
+ pending: "pending";
99
+ paid: "paid";
100
+ refunded: "refunded";
101
+ partiallyRefunded: "partiallyRefunded";
102
+ }>;
103
+ currencyCode: z.ZodString;
104
+ subtotalAmount: z.ZodNumber;
105
+ shippingAmount: z.ZodNumber;
106
+ taxAmount: z.ZodNumber;
107
+ discountAmount: z.ZodNumber;
108
+ totalAmount: z.ZodNumber;
109
+ refundedAmount: z.ZodNumber;
110
+ customerEmail: z.ZodNullable<z.ZodString>;
111
+ shippingAddress: z.ZodNullable<z.ZodObject<{
112
+ name: z.ZodNullable<z.ZodString>;
113
+ line1: z.ZodString;
114
+ line2: z.ZodNullable<z.ZodString>;
115
+ city: z.ZodString;
116
+ state: z.ZodNullable<z.ZodString>;
117
+ postalCode: z.ZodString;
118
+ country: z.ZodString;
119
+ }, z.core.$strip>>;
120
+ items: z.ZodArray<z.ZodObject<{
121
+ title: z.ZodString;
122
+ imageUrl: z.ZodNullable<z.ZodString>;
123
+ quantity: z.ZodNumber;
124
+ unitPrice: z.ZodNumber;
125
+ lineTotal: z.ZodNumber;
126
+ }, z.core.$strip>>;
127
+ shipments: z.ZodArray<z.ZodObject<{
128
+ carrier: z.ZodNullable<z.ZodString>;
129
+ trackingNumber: z.ZodNullable<z.ZodString>;
130
+ trackingUrl: z.ZodNullable<z.ZodString>;
131
+ shippedAt: z.ZodString;
132
+ }, z.core.$strip>>;
133
+ emailExpected: z.ZodBoolean;
134
+ }, z.core.$strip>;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ state: z.ZodLiteral<"session">;
137
+ session: z.ZodObject<{
138
+ paymentStatus: z.ZodEnum<{
139
+ paid: "paid";
140
+ unpaid: "unpaid";
141
+ no_payment_required: "no_payment_required";
142
+ }>;
143
+ currencyCode: z.ZodNullable<z.ZodString>;
144
+ subtotalAmount: z.ZodNullable<z.ZodNumber>;
145
+ totalAmount: z.ZodNullable<z.ZodNumber>;
146
+ items: z.ZodArray<z.ZodObject<{
147
+ title: z.ZodString;
148
+ quantity: z.ZodNumber;
149
+ unitPrice: z.ZodNullable<z.ZodNumber>;
150
+ lineTotal: z.ZodNumber;
151
+ }, z.core.$strip>>;
152
+ }, z.core.$strip>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ state: z.ZodLiteral<"unavailable">;
155
+ }, z.core.$strip>], "state">;
156
+ export type OrderStatusAddress = z.infer<typeof orderStatusAddressSchema>;
157
+ export type OrderStatusItem = z.infer<typeof orderStatusItemSchema>;
158
+ export type OrderStatusShipment = z.infer<typeof orderStatusShipmentSchema>;
159
+ export type OrderStatusSummary = z.infer<typeof orderStatusSummarySchema>;
160
+ export type CheckoutSessionSummary = z.infer<typeof checkoutSessionSummarySchema>;
161
+ export type OrderStatusResult = z.infer<typeof orderStatusResultSchema>;