@veeqo/transfigure 0.0.16 → 0.0.18
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/BusinessLogic/types.d.ts +1 -0
- package/dist/components/Views/PillNotifications/styled.d.ts +13 -12
- package/dist/components/Views/ViewList/ViewsList.d.ts +1 -5
- package/dist/components/Views/ViewTab/ViewTab.d.ts +2 -3
- package/dist/hooks/useViewCountsHook/useViewCountsHook.d.ts +16 -0
- package/dist/index100.cjs +1 -80
- package/dist/index100.js +62 -94
- package/dist/index101.cjs +1 -13
- package/dist/index101.js +33 -14
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +47 -46
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +8 -8
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +30 -30
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +34 -40
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +6 -5
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +74 -68
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +33 -13
- package/dist/index80.cjs +1 -104
- package/dist/index80.js +27 -118
- package/dist/index81.cjs +19 -1
- package/dist/index81.js +23 -67
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +14 -28
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +22 -2
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +13 -41
- package/dist/index85.cjs +104 -1
- package/dist/index85.js +120 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +65 -21
- package/dist/index87.cjs +1 -19
- package/dist/index87.js +29 -24
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +2 -29
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +40 -14
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +13 -12
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +10 -21
- package/dist/index91.cjs +18 -18
- package/dist/index91.js +28 -27
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +24 -2
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +2 -19
- package/dist/index95.cjs +13 -1
- package/dist/index95.js +17 -8
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +17 -62
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +7 -29
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +63 -62
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +30 -36
- package/dist/storybookHelpers/apiMocks/v2ordersapi.d.ts +335 -0
- package/package.json +1 -1
- package/dist/components/Views/UnsavedChanges/styled.d.ts +0 -33
package/dist/index99.js
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
height: 4,
|
|
31
|
-
borderRadius: 4,
|
|
32
|
-
backgroundColor: o.colors.neutral.grey.dark,
|
|
33
|
-
opacity: 1
|
|
34
|
-
}
|
|
35
|
-
})(e);
|
|
1
|
+
import { useRef as u, useCallback as d } from "react";
|
|
2
|
+
import { pointerWithin as p, rectIntersection as a, getFirstCollision as f, closestCenter as C } from "@dnd-kit/core";
|
|
3
|
+
const h = ({ items: n }) => {
|
|
4
|
+
const i = u(null);
|
|
5
|
+
return { collisionDetectionStrategy: d(
|
|
6
|
+
(e) => {
|
|
7
|
+
var r;
|
|
8
|
+
const o = p(e), s = o.length > 0 ? (
|
|
9
|
+
// If there are droppables intersecting with the pointer, return those
|
|
10
|
+
o
|
|
11
|
+
) : a(e);
|
|
12
|
+
let t = f(s, "id");
|
|
13
|
+
if (t != null) {
|
|
14
|
+
if (t in n) {
|
|
15
|
+
const l = n[t];
|
|
16
|
+
l.length > 0 && (t = ((r = C({
|
|
17
|
+
...e,
|
|
18
|
+
droppableContainers: e.droppableContainers.filter(
|
|
19
|
+
(c) => c.id !== t && l.includes(c.id)
|
|
20
|
+
)
|
|
21
|
+
})[0]) == null ? void 0 : r.id) ?? t);
|
|
22
|
+
}
|
|
23
|
+
return i.current = t, [{ id: t }];
|
|
24
|
+
}
|
|
25
|
+
return i.current ? [{ id: i.current }] : [];
|
|
26
|
+
},
|
|
27
|
+
[n]
|
|
28
|
+
) };
|
|
29
|
+
};
|
|
36
30
|
export {
|
|
37
|
-
|
|
31
|
+
h as useCollisionDetectionStrategy
|
|
38
32
|
};
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
export declare const v2OrdersApi: {
|
|
2
|
+
data: ({
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
attributes: {
|
|
6
|
+
additional_order_level_taxless_discount: string;
|
|
7
|
+
additional_order_level_taxless_discount_in_origin_currency: string;
|
|
8
|
+
additional_order_level_taxless_discount_percentage: null;
|
|
9
|
+
adjustment_amount: string;
|
|
10
|
+
adjustment_amount_in_origin_currency: string;
|
|
11
|
+
buyer_user_id: null;
|
|
12
|
+
can_pay_by_card: null;
|
|
13
|
+
cancel_reason: null;
|
|
14
|
+
cancelled_at: null;
|
|
15
|
+
created_at: string;
|
|
16
|
+
currency_code: string;
|
|
17
|
+
currency_rate: null;
|
|
18
|
+
customer_viewable_notes: null;
|
|
19
|
+
deleted_at: null;
|
|
20
|
+
delivery_cost: string;
|
|
21
|
+
delivery_cost_in_origin_currency: string;
|
|
22
|
+
dispatch_date: null;
|
|
23
|
+
due_date: null;
|
|
24
|
+
fulfilled_by_amazon: boolean;
|
|
25
|
+
fulfillment_status: string;
|
|
26
|
+
hidden_tax: string;
|
|
27
|
+
hidden_tax_in_origin_currency: string;
|
|
28
|
+
international: boolean;
|
|
29
|
+
invoice_file_name: null;
|
|
30
|
+
invoice_generated_at: null;
|
|
31
|
+
is_amazon_premium_order: boolean;
|
|
32
|
+
is_amazon_prime: boolean;
|
|
33
|
+
number: string;
|
|
34
|
+
mergable_checksum: string;
|
|
35
|
+
merged_order: boolean;
|
|
36
|
+
origin_currency_code: null;
|
|
37
|
+
payment_due_date: null;
|
|
38
|
+
payment_terms: null;
|
|
39
|
+
picked_status: string;
|
|
40
|
+
receipt_printed: boolean;
|
|
41
|
+
refund_amount: null;
|
|
42
|
+
restock_shipped_items: boolean;
|
|
43
|
+
send_notification_email: boolean;
|
|
44
|
+
send_refund_email: null;
|
|
45
|
+
send_veeqo_email: null;
|
|
46
|
+
shipped_at: null;
|
|
47
|
+
shipping_discount: string;
|
|
48
|
+
shipping_discount_in_origin_currency: string;
|
|
49
|
+
status: string;
|
|
50
|
+
subtotal_price: string;
|
|
51
|
+
total_discounts: string;
|
|
52
|
+
total_discounts_in_origin_currency: string;
|
|
53
|
+
total_fees: string;
|
|
54
|
+
total_fees_in_origin_currency: string;
|
|
55
|
+
total_tax: string;
|
|
56
|
+
total_tax_in_origin_currency: string;
|
|
57
|
+
updated_at: string;
|
|
58
|
+
mergeable_id: string;
|
|
59
|
+
total_price: string;
|
|
60
|
+
allocated_completely: boolean;
|
|
61
|
+
paid: boolean;
|
|
62
|
+
can_be_shipped: boolean;
|
|
63
|
+
};
|
|
64
|
+
relationships: {
|
|
65
|
+
channel: {
|
|
66
|
+
data: {
|
|
67
|
+
id: string;
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
cancelled_by: {
|
|
72
|
+
data: null;
|
|
73
|
+
};
|
|
74
|
+
created_by: {
|
|
75
|
+
data: {
|
|
76
|
+
id: string;
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
updated_by: {
|
|
81
|
+
data: null;
|
|
82
|
+
};
|
|
83
|
+
delivery_method: {
|
|
84
|
+
data: null;
|
|
85
|
+
};
|
|
86
|
+
customer: {
|
|
87
|
+
data: {
|
|
88
|
+
id: string;
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
deliver_to: {
|
|
93
|
+
data: {
|
|
94
|
+
id: string;
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
billing_address: {
|
|
99
|
+
data: null;
|
|
100
|
+
};
|
|
101
|
+
customer_note: {
|
|
102
|
+
data: null;
|
|
103
|
+
};
|
|
104
|
+
employee_notes: {};
|
|
105
|
+
allocations: {};
|
|
106
|
+
line_items: {};
|
|
107
|
+
tags: {};
|
|
108
|
+
};
|
|
109
|
+
} | {
|
|
110
|
+
id: string;
|
|
111
|
+
type: string;
|
|
112
|
+
attributes: {
|
|
113
|
+
additional_order_level_taxless_discount: string;
|
|
114
|
+
additional_order_level_taxless_discount_in_origin_currency: string;
|
|
115
|
+
additional_order_level_taxless_discount_percentage: null;
|
|
116
|
+
adjustment_amount: string;
|
|
117
|
+
adjustment_amount_in_origin_currency: string;
|
|
118
|
+
buyer_user_id: null;
|
|
119
|
+
can_pay_by_card: null;
|
|
120
|
+
cancel_reason: null;
|
|
121
|
+
cancelled_at: null;
|
|
122
|
+
created_at: string;
|
|
123
|
+
currency_code: string;
|
|
124
|
+
currency_rate: null;
|
|
125
|
+
customer_viewable_notes: null;
|
|
126
|
+
deleted_at: null;
|
|
127
|
+
delivery_cost: string;
|
|
128
|
+
delivery_cost_in_origin_currency: string;
|
|
129
|
+
dispatch_date: null;
|
|
130
|
+
due_date: null;
|
|
131
|
+
fulfilled_by_amazon: boolean;
|
|
132
|
+
fulfillment_status: string;
|
|
133
|
+
hidden_tax: string;
|
|
134
|
+
hidden_tax_in_origin_currency: string;
|
|
135
|
+
international: boolean;
|
|
136
|
+
invoice_file_name: null;
|
|
137
|
+
invoice_generated_at: null;
|
|
138
|
+
is_amazon_premium_order: boolean;
|
|
139
|
+
is_amazon_prime: boolean;
|
|
140
|
+
number: string;
|
|
141
|
+
mergable_checksum: string;
|
|
142
|
+
merged_order: boolean;
|
|
143
|
+
origin_currency_code: null;
|
|
144
|
+
payment_due_date: null;
|
|
145
|
+
payment_terms: null;
|
|
146
|
+
picked_status: string;
|
|
147
|
+
receipt_printed: boolean;
|
|
148
|
+
refund_amount: null;
|
|
149
|
+
restock_shipped_items: boolean;
|
|
150
|
+
send_notification_email: boolean;
|
|
151
|
+
send_refund_email: null;
|
|
152
|
+
send_veeqo_email: null;
|
|
153
|
+
shipped_at: null;
|
|
154
|
+
shipping_discount: string;
|
|
155
|
+
shipping_discount_in_origin_currency: string;
|
|
156
|
+
status: string;
|
|
157
|
+
subtotal_price: string;
|
|
158
|
+
total_discounts: string;
|
|
159
|
+
total_discounts_in_origin_currency: string;
|
|
160
|
+
total_fees: string;
|
|
161
|
+
total_fees_in_origin_currency: string;
|
|
162
|
+
total_tax: string;
|
|
163
|
+
total_tax_in_origin_currency: string;
|
|
164
|
+
updated_at: string;
|
|
165
|
+
mergeable_id: string;
|
|
166
|
+
total_price: string;
|
|
167
|
+
allocated_completely: boolean;
|
|
168
|
+
paid: boolean;
|
|
169
|
+
can_be_shipped: boolean;
|
|
170
|
+
};
|
|
171
|
+
relationships: {
|
|
172
|
+
channel: {
|
|
173
|
+
data: {
|
|
174
|
+
id: string;
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
cancelled_by: {
|
|
179
|
+
data: null;
|
|
180
|
+
};
|
|
181
|
+
created_by: {
|
|
182
|
+
data: {
|
|
183
|
+
id: string;
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
updated_by: {
|
|
188
|
+
data: null;
|
|
189
|
+
};
|
|
190
|
+
delivery_method: {
|
|
191
|
+
data: null;
|
|
192
|
+
};
|
|
193
|
+
customer: {
|
|
194
|
+
data: {
|
|
195
|
+
id: string;
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
deliver_to: {
|
|
200
|
+
data: {
|
|
201
|
+
id: string;
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
billing_address: {
|
|
206
|
+
data: null;
|
|
207
|
+
};
|
|
208
|
+
customer_note: {
|
|
209
|
+
data: {
|
|
210
|
+
id: string;
|
|
211
|
+
type: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
employee_notes: {};
|
|
215
|
+
allocations: {};
|
|
216
|
+
line_items: {};
|
|
217
|
+
tags: {};
|
|
218
|
+
};
|
|
219
|
+
} | {
|
|
220
|
+
id: string;
|
|
221
|
+
type: string;
|
|
222
|
+
attributes: {
|
|
223
|
+
additional_order_level_taxless_discount: string;
|
|
224
|
+
additional_order_level_taxless_discount_in_origin_currency: string;
|
|
225
|
+
additional_order_level_taxless_discount_percentage: null;
|
|
226
|
+
adjustment_amount: string;
|
|
227
|
+
adjustment_amount_in_origin_currency: string;
|
|
228
|
+
buyer_user_id: null;
|
|
229
|
+
can_pay_by_card: null;
|
|
230
|
+
cancel_reason: null;
|
|
231
|
+
cancelled_at: null;
|
|
232
|
+
created_at: string;
|
|
233
|
+
currency_code: string;
|
|
234
|
+
currency_rate: null;
|
|
235
|
+
customer_viewable_notes: null;
|
|
236
|
+
deleted_at: null;
|
|
237
|
+
delivery_cost: string;
|
|
238
|
+
delivery_cost_in_origin_currency: string;
|
|
239
|
+
dispatch_date: null;
|
|
240
|
+
due_date: null;
|
|
241
|
+
fulfilled_by_amazon: boolean;
|
|
242
|
+
fulfillment_status: string;
|
|
243
|
+
hidden_tax: string;
|
|
244
|
+
hidden_tax_in_origin_currency: string;
|
|
245
|
+
international: boolean;
|
|
246
|
+
invoice_file_name: null;
|
|
247
|
+
invoice_generated_at: null;
|
|
248
|
+
is_amazon_premium_order: boolean;
|
|
249
|
+
is_amazon_prime: boolean;
|
|
250
|
+
number: string;
|
|
251
|
+
mergable_checksum: string;
|
|
252
|
+
merged_order: boolean;
|
|
253
|
+
origin_currency_code: null;
|
|
254
|
+
payment_due_date: null;
|
|
255
|
+
payment_terms: null;
|
|
256
|
+
picked_status: string;
|
|
257
|
+
receipt_printed: boolean;
|
|
258
|
+
refund_amount: null;
|
|
259
|
+
restock_shipped_items: boolean;
|
|
260
|
+
send_notification_email: boolean;
|
|
261
|
+
send_refund_email: null;
|
|
262
|
+
send_veeqo_email: null;
|
|
263
|
+
shipped_at: string;
|
|
264
|
+
shipping_discount: string;
|
|
265
|
+
shipping_discount_in_origin_currency: string;
|
|
266
|
+
status: string;
|
|
267
|
+
subtotal_price: string;
|
|
268
|
+
total_discounts: string;
|
|
269
|
+
total_discounts_in_origin_currency: string;
|
|
270
|
+
total_fees: string;
|
|
271
|
+
total_fees_in_origin_currency: string;
|
|
272
|
+
total_tax: string;
|
|
273
|
+
total_tax_in_origin_currency: string;
|
|
274
|
+
updated_at: string;
|
|
275
|
+
mergeable_id: string;
|
|
276
|
+
total_price: string;
|
|
277
|
+
allocated_completely: boolean;
|
|
278
|
+
paid: boolean;
|
|
279
|
+
can_be_shipped: boolean;
|
|
280
|
+
};
|
|
281
|
+
relationships: {
|
|
282
|
+
channel: {
|
|
283
|
+
data: {
|
|
284
|
+
id: string;
|
|
285
|
+
type: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
cancelled_by: {
|
|
289
|
+
data: null;
|
|
290
|
+
};
|
|
291
|
+
created_by: {
|
|
292
|
+
data: {
|
|
293
|
+
id: string;
|
|
294
|
+
type: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
updated_by: {
|
|
298
|
+
data: null;
|
|
299
|
+
};
|
|
300
|
+
delivery_method: {
|
|
301
|
+
data: null;
|
|
302
|
+
};
|
|
303
|
+
customer: {
|
|
304
|
+
data: {
|
|
305
|
+
id: string;
|
|
306
|
+
type: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
deliver_to: {
|
|
310
|
+
data: {
|
|
311
|
+
id: string;
|
|
312
|
+
type: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
billing_address: {
|
|
316
|
+
data: null;
|
|
317
|
+
};
|
|
318
|
+
customer_note: {
|
|
319
|
+
data: null;
|
|
320
|
+
};
|
|
321
|
+
employee_notes: {};
|
|
322
|
+
allocations: {};
|
|
323
|
+
line_items: {};
|
|
324
|
+
tags: {};
|
|
325
|
+
};
|
|
326
|
+
})[];
|
|
327
|
+
meta: {
|
|
328
|
+
page: {
|
|
329
|
+
size: string;
|
|
330
|
+
current: string;
|
|
331
|
+
total_pages: string;
|
|
332
|
+
total_count: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
declare const Notification: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
-
declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
-
declare const Pill: import('styled-components').StyledComponent<({ type, text, iconSlot, onClose, className, header, children, backgroundColor, ...props }: {
|
|
5
|
-
type?: import('../../../../node_modules/@veeqo/ui/dist/components/Banner/types').BannerTypes;
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
iconSlot?: import('react').ReactElement;
|
|
9
|
-
onClose?: import('react').ReactEventHandler;
|
|
10
|
-
className?: string;
|
|
11
|
-
header?: import('react').ReactNode;
|
|
12
|
-
children?: import('react').ReactNode;
|
|
13
|
-
}) => React.JSX.Element, any, {}, never>;
|
|
14
|
-
declare const Button: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
variant?: import('../../../../node_modules/@veeqo/ui/dist/components/Button/types').ButtonVariant | undefined;
|
|
17
|
-
size?: "base" | "sm" | undefined;
|
|
18
|
-
iconSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
19
|
-
dropdown?: boolean | undefined;
|
|
20
|
-
loading?: boolean | undefined;
|
|
21
|
-
contentStyles?: React.CSSProperties | undefined;
|
|
22
|
-
} & import('react').RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
23
|
-
declare const Hint: import('styled-components').StyledComponent<"span", any, {} & import('../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
|
|
24
|
-
declare const Text: import('styled-components').StyledComponent<"span", any, ({} & import('../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps) & {
|
|
25
|
-
margin?: string;
|
|
26
|
-
}, never>;
|
|
27
|
-
declare const Bold: import('styled-components').StyledComponent<"span", any, {} & import('../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
|
|
28
|
-
declare const Glyph: import('styled-components').StyledComponent<({ name, size, color, className, ariaLabel, style, onClick, }: import('../../../../node_modules/@veeqo/components/dist/components/common/Glyph/Glyph').GlyphProps) => React.JSX.Element, any, {
|
|
29
|
-
margin?: string;
|
|
30
|
-
}, never>;
|
|
31
|
-
declare const Wrap: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
32
|
-
declare const Item: import('styled-components').StyledComponent<string, any, ButtonHTMLAttributes<HTMLButtonElement>, never>;
|
|
33
|
-
export { Pill, Button, Text, Hint, Bold, Wrap, Notification, Glyph, Container, Item };
|