@commercelayer/app-elements 7.13.0 → 7.14.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.
- package/dist/{CodeEditorComponent-aj99riRd.js → CodeEditorComponent-txM4ls17.js} +2 -2
- package/dist/{InputDateComponent-IsJB6qOP.js → InputDateComponent-C4QUlrmn.js} +2 -2
- package/dist/{RuleEngineComponent-DZhv94I7.js → RuleEngineComponent-dEe0FTBs.js} +266 -261
- package/dist/{en-Ccxurm3G.js → en-B-7ylwWx.js} +29 -1
- package/dist/{fetchCoreResourcesSuggestions-DuyGOmZK.js → fetchCoreResourcesSuggestions-DZuapPGj.js} +1 -1
- package/dist/helpers/numbers.d.ts +25 -0
- package/dist/helpers/numbers.test.d.ts +1 -0
- package/dist/hooks/useConfirmDialog.test.d.ts +1 -0
- package/dist/hooks/useOverlay.d.ts +9 -1
- package/dist/{it-C8-LXpKU.js → it-BXPKgQsm.js} +29 -1
- package/dist/locales/en.d.ts +28 -0
- package/dist/{main-DoRznkuw.js → main-Op1RV9MX.js} +14115 -12393
- package/dist/main.d.ts +8 -3
- package/dist/main.js +176 -166
- package/dist/mocks/data/core_schemas.d.ts +2 -0
- package/dist/mocks/data/event_stores.d.ts +2 -0
- package/dist/mocks/data/event_stores.test.d.ts +1 -0
- package/dist/{parseISO-Byyj1mNB.js → parseISO-C1OS0R6q.js} +1 -1
- package/dist/providers/TokenProvider/MockTokenProvider.d.ts +1 -1
- package/dist/providers/TokenProvider/TokenProvider.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind.global.css +8 -4
- package/dist/ui/atoms/AvatarLetter/AvatarLetter.d.ts +6 -1
- package/dist/ui/atoms/PageHeading/PageHeading.d.ts +22 -4
- package/dist/ui/atoms/RadialProgress.d.ts +2 -2
- package/dist/ui/atoms/Section.d.ts +35 -0
- package/dist/ui/atoms/Spacer.d.ts +29 -4
- package/dist/ui/atoms/Stack.d.ts +48 -2
- package/dist/ui/atoms/Table/Table.d.ts +8 -0
- package/dist/ui/atoms/Tabs.d.ts +8 -0
- package/dist/ui/atoms/VisibilityTrigger.d.ts +19 -0
- package/dist/ui/atoms/VisibilityTrigger.test.d.ts +1 -0
- package/dist/ui/composite/Address.d.ts +9 -0
- package/dist/ui/composite/ListDetailsItem.d.ts +14 -1
- package/dist/ui/composite/PageLayout.d.ts +43 -24
- package/dist/ui/composite/PageLoading.d.ts +35 -0
- package/dist/ui/composite/PageLoading.test.d.ts +1 -0
- package/dist/ui/composite/PageSkeleton.d.ts +6 -0
- package/dist/ui/composite/Routes/LoadingPage.test.d.ts +1 -0
- package/dist/ui/forms/InputSelect/InputSelect.d.ts +8 -0
- package/dist/ui/internals/Overlay.test.d.ts +1 -0
- package/dist/ui/internals/bodyScrollLock.d.ts +2 -0
- package/dist/ui/internals/overlayContext.d.ts +36 -0
- package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +12 -2
- package/dist/ui/resources/ResourceDetails/ResourceDetails.d.ts +9 -0
- package/dist/ui/resources/ResourceDetails/ResourceDetails.test.d.ts +1 -0
- package/dist/ui/resources/ResourceDetailsModal/ResourceAttributes.d.ts +11 -0
- package/dist/ui/resources/ResourceDetailsModal/ResourceDetailsContent.d.ts +43 -0
- package/dist/ui/resources/ResourceDetailsModal/ResourceDetailsContent.test.d.ts +1 -0
- package/dist/ui/resources/ResourceDetailsModal/ResourceEvents.d.ts +15 -0
- package/dist/ui/resources/ResourceDetailsModal/index.d.ts +2 -0
- package/dist/ui/resources/ResourceDetailsModal/resourceFields.d.ts +19 -0
- package/dist/ui/resources/ResourceDetailsModal/resourceFields.test.d.ts +1 -0
- package/dist/ui/resources/ResourceDetailsModal/useInfiniteScrollCursor.d.ts +39 -0
- package/dist/ui/resources/ResourceDetailsModal/useResourceDetailsModal.d.ts +23 -0
- package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +9 -0
- package/dist/ui/resources/ResourceTags.d.ts +21 -1
- package/dist/ui/resources/ResourceTags.test.d.ts +1 -0
- package/dist/ui/resources/useResourceFilters/types.d.ts +26 -2
- package/dist/ui/resources/useResourceFilters/utils.d.ts +10 -0
- package/dist/ui/resources/useResourceList/index.d.ts +1 -0
- package/dist/ui/resources/useResourceList/resourceListSignals.d.ts +46 -0
- package/dist/ui/resources/useResourceList/resourceListSignals.integration.test.d.ts +1 -0
- package/dist/ui/resources/useResourceList/resourceListSignals.test.d.ts +1 -0
- package/dist/ui/resources/useResourceTable/types.d.ts +93 -23
- package/dist/ui/resources/useResourceTable/useResourceTable.test.d.ts +1 -0
- package/package.json +4 -3
- package/dist/ui/resources/useResourceList/VisibilityTrigger.d.ts +0 -8
- /package/dist/{ui/resources/useResourceList/VisibilityTrigger.test.d.ts → dictionaries/orders.test.d.ts} +0 -0
|
@@ -221,6 +221,7 @@ const e = {
|
|
|
221
221
|
clear_text: "Clear text",
|
|
222
222
|
close: "Close",
|
|
223
223
|
continue: "Continue",
|
|
224
|
+
copy_id: "Copy ID",
|
|
224
225
|
could_not_retrieve_data: "Could not retrieve data",
|
|
225
226
|
could_not_retrieve_resource: "Could not retrieve {{resource}}",
|
|
226
227
|
create: "Create",
|
|
@@ -230,6 +231,7 @@ const e = {
|
|
|
230
231
|
custom_time_range: "Custom Time Range",
|
|
231
232
|
delete_resource: "Delete {{resource}}",
|
|
232
233
|
delete: "Delete",
|
|
234
|
+
details_options: "Details options",
|
|
233
235
|
download_file: "Download file",
|
|
234
236
|
download_json: "Download JSON",
|
|
235
237
|
edit: "Edit",
|
|
@@ -393,6 +395,31 @@ The {{organization}} team`,
|
|
|
393
395
|
},
|
|
394
396
|
no_resources: {
|
|
395
397
|
no_tags: "No tags"
|
|
398
|
+
},
|
|
399
|
+
resource_details: {
|
|
400
|
+
title: "Resource details",
|
|
401
|
+
attributes: "Attributes",
|
|
402
|
+
events: "Events",
|
|
403
|
+
json: "Json",
|
|
404
|
+
no_events: "No events found for this resource.",
|
|
405
|
+
unknown_event: "Unknown event",
|
|
406
|
+
and_more: "and {{count}} more",
|
|
407
|
+
unlock_title: "Unlock Event Stores",
|
|
408
|
+
unlock_description: "Understand what happened to any resource with a complete timeline of changes, including who made them and when.",
|
|
409
|
+
learn_more: "Learn more",
|
|
410
|
+
contact_sales: "Contact sales",
|
|
411
|
+
who_system: "System",
|
|
412
|
+
who_customer: "Customer",
|
|
413
|
+
who_application: "Application",
|
|
414
|
+
who_worker: "Worker ({{type}})",
|
|
415
|
+
event_create: "created",
|
|
416
|
+
event_update: "updated",
|
|
417
|
+
event_destroy: "deleted",
|
|
418
|
+
event_anonymization_request: "anonymization requested",
|
|
419
|
+
event_anonymization_started: "anonymization started",
|
|
420
|
+
event_anonymization_completed: "anonymization completed",
|
|
421
|
+
event_anonymization_failed: "anonymization failed",
|
|
422
|
+
event_anonymization_cancel: "anonymization cancelled"
|
|
396
423
|
}
|
|
397
424
|
},
|
|
398
425
|
resources: e,
|
|
@@ -472,7 +499,7 @@ The {{organization}} team`,
|
|
|
472
499
|
},
|
|
473
500
|
anonymize: {
|
|
474
501
|
title: "Customer cannot be deleted",
|
|
475
|
-
description: "
|
|
502
|
+
description: "Their personal data will be replaced everywhere, including orders. You can cancel the request until it starts.",
|
|
476
503
|
request_button: "Request anonymization"
|
|
477
504
|
},
|
|
478
505
|
anonymization_info: {
|
|
@@ -494,6 +521,7 @@ The {{organization}} team`,
|
|
|
494
521
|
fulfillment_status: "Fulfillment status"
|
|
495
522
|
},
|
|
496
523
|
display_status: {
|
|
524
|
+
awaiting_capture: "Awaiting capture",
|
|
497
525
|
in_progress: "In progress",
|
|
498
526
|
in_progress_manual: "In progress (Manual)"
|
|
499
527
|
},
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface FormatNumberOptions {
|
|
2
|
+
/** The value to format. `null`/`undefined` formats as `0`. */
|
|
3
|
+
value: number | null | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* BCP 47 locale, as `user?.locale` from `useTokenProvider`.
|
|
6
|
+
*
|
|
7
|
+
* Omitted, the runtime's own locale is used — right for the parts of the UI with
|
|
8
|
+
* no signed-in user to ask (the dashboard's subscription pages), and the same
|
|
9
|
+
* source `toLocaleString()` used there before. Prefer passing the user's locale
|
|
10
|
+
* wherever there is one: it is what they chose, not what their browser is set to.
|
|
11
|
+
*/
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Formats a count for display: grouped in thousands, in the user's locale.
|
|
16
|
+
*
|
|
17
|
+
* Counts come off the API as bare integers, and a four-digit one is hard to read
|
|
18
|
+
* unseparated — `12345` reads as a code rather than a quantity. Grouping is
|
|
19
|
+
* locale-specific (`1,234` in en-US, `1.234` in it-IT), which is why this takes a
|
|
20
|
+
* locale rather than leaving each call site to pick one.
|
|
21
|
+
*
|
|
22
|
+
* For money use `formatCentsToCurrency`: an amount also needs its currency's
|
|
23
|
+
* subunit and symbol, which this deliberately knows nothing about.
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatNumber({ value, locale }: FormatNumberOptions): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,7 +6,15 @@ interface OverlayOptions {
|
|
|
6
6
|
* and the `open` method will perform an history.push to add the query param as navigating to a new page.
|
|
7
7
|
* Otherwise, the overlay will be opened as a classic in-page modal.
|
|
8
8
|
**/
|
|
9
|
-
queryParam
|
|
9
|
+
queryParam?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Render the overlay already open, on its very first paint.
|
|
12
|
+
* Use it when the route itself means "open", as for a details drawer: opening it
|
|
13
|
+
* from an effect instead lets the page behind it paint once without the overlay,
|
|
14
|
+
* which shows up as a flicker when landing on the url or reloading the page.
|
|
15
|
+
* @default false
|
|
16
|
+
**/
|
|
17
|
+
initialOpen?: boolean;
|
|
10
18
|
}
|
|
11
19
|
interface OverlayHook {
|
|
12
20
|
/**
|
|
@@ -19,6 +19,7 @@ const e = {
|
|
|
19
19
|
clear_all: "Cancella tutto",
|
|
20
20
|
clear_text: "Svuota testo",
|
|
21
21
|
continue: "Continua",
|
|
22
|
+
copy_id: "Copia ID",
|
|
22
23
|
could_not_retrieve_data: "Impossibile recuperare i dati",
|
|
23
24
|
could_not_retrieve_resource: "Impossibile recuperare {{resource}}",
|
|
24
25
|
create: "Crea",
|
|
@@ -29,6 +30,7 @@ const e = {
|
|
|
29
30
|
update_resource: "Aggiorna {{resource}}",
|
|
30
31
|
delete_resource: "Elimina {{resource}}",
|
|
31
32
|
delete: "Elimina",
|
|
33
|
+
details_options: "Opzioni dettagli",
|
|
32
34
|
download_file: "Scarica file",
|
|
33
35
|
download_json: "Scarica JSON",
|
|
34
36
|
edit: "Modifica",
|
|
@@ -192,6 +194,31 @@ Il team di {{organization}}`,
|
|
|
192
194
|
},
|
|
193
195
|
no_resources: {
|
|
194
196
|
no_tags: "Nessun tag"
|
|
197
|
+
},
|
|
198
|
+
resource_details: {
|
|
199
|
+
title: "Dettagli risorsa",
|
|
200
|
+
attributes: "Attributi",
|
|
201
|
+
events: "Eventi",
|
|
202
|
+
json: "Json",
|
|
203
|
+
no_events: "Nessun evento trovato per questa risorsa.",
|
|
204
|
+
unknown_event: "Evento sconosciuto",
|
|
205
|
+
and_more: "e altri {{count}}",
|
|
206
|
+
unlock_title: "Attiva Event Stores",
|
|
207
|
+
unlock_description: "Scopri cosa è successo a una risorsa con una cronologia completa delle modifiche, incluso chi le ha fatte e quando.",
|
|
208
|
+
learn_more: "Scopri di più",
|
|
209
|
+
contact_sales: "Contatta le vendite",
|
|
210
|
+
who_system: "Sistema",
|
|
211
|
+
who_customer: "Cliente",
|
|
212
|
+
who_application: "Applicazione",
|
|
213
|
+
who_worker: "Worker ({{type}})",
|
|
214
|
+
event_create: "ha creato",
|
|
215
|
+
event_update: "ha aggiornato",
|
|
216
|
+
event_destroy: "ha eliminato",
|
|
217
|
+
event_anonymization_request: "anonimizzazione richiesta",
|
|
218
|
+
event_anonymization_started: "anonimizzazione iniziata",
|
|
219
|
+
event_anonymization_completed: "anonimizzazione completata",
|
|
220
|
+
event_anonymization_failed: "anonimizzazione fallita",
|
|
221
|
+
event_anonymization_cancel: "anonimizzazione annullata"
|
|
195
222
|
}
|
|
196
223
|
},
|
|
197
224
|
resources: {
|
|
@@ -479,7 +506,7 @@ Il team di {{organization}}`,
|
|
|
479
506
|
},
|
|
480
507
|
anonymize: {
|
|
481
508
|
title: "Il cliente non può essere eliminato",
|
|
482
|
-
description: "
|
|
509
|
+
description: "I suoi dati personali saranno sostituiti ovunque, compresi gli ordini. Puoi annullare la richiesta finché non viene avviata.",
|
|
483
510
|
request_button: "Richiedi anonimizzazione"
|
|
484
511
|
},
|
|
485
512
|
anonymization_info: {
|
|
@@ -501,6 +528,7 @@ Il team di {{organization}}`,
|
|
|
501
528
|
fulfillment_status: "Stato spedizione"
|
|
502
529
|
},
|
|
503
530
|
display_status: {
|
|
531
|
+
awaiting_capture: "Da catturare",
|
|
504
532
|
in_progress: "In corso",
|
|
505
533
|
in_progress_manual: "In corso (Manuale)"
|
|
506
534
|
},
|
package/dist/locales/en.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare const en: {
|
|
|
19
19
|
clear_text: string;
|
|
20
20
|
close: string;
|
|
21
21
|
continue: string;
|
|
22
|
+
copy_id: string;
|
|
22
23
|
could_not_retrieve_data: string;
|
|
23
24
|
could_not_retrieve_resource: string;
|
|
24
25
|
create: string;
|
|
@@ -28,6 +29,7 @@ declare const en: {
|
|
|
28
29
|
custom_time_range: string;
|
|
29
30
|
delete_resource: string;
|
|
30
31
|
delete: string;
|
|
32
|
+
details_options: string;
|
|
31
33
|
download_file: string;
|
|
32
34
|
download_json: string;
|
|
33
35
|
edit: string;
|
|
@@ -188,6 +190,31 @@ declare const en: {
|
|
|
188
190
|
no_resources: {
|
|
189
191
|
no_tags: string;
|
|
190
192
|
};
|
|
193
|
+
resource_details: {
|
|
194
|
+
title: string;
|
|
195
|
+
attributes: string;
|
|
196
|
+
events: string;
|
|
197
|
+
json: string;
|
|
198
|
+
no_events: string;
|
|
199
|
+
unknown_event: string;
|
|
200
|
+
and_more: string;
|
|
201
|
+
unlock_title: string;
|
|
202
|
+
unlock_description: string;
|
|
203
|
+
learn_more: string;
|
|
204
|
+
contact_sales: string;
|
|
205
|
+
who_system: string;
|
|
206
|
+
who_customer: string;
|
|
207
|
+
who_application: string;
|
|
208
|
+
who_worker: string;
|
|
209
|
+
event_create: string;
|
|
210
|
+
event_update: string;
|
|
211
|
+
event_destroy: string;
|
|
212
|
+
event_anonymization_request: string;
|
|
213
|
+
event_anonymization_started: string;
|
|
214
|
+
event_anonymization_completed: string;
|
|
215
|
+
event_anonymization_failed: string;
|
|
216
|
+
event_anonymization_cancel: string;
|
|
217
|
+
};
|
|
191
218
|
};
|
|
192
219
|
resources: {
|
|
193
220
|
addresses: {
|
|
@@ -489,6 +516,7 @@ declare const en: {
|
|
|
489
516
|
fulfillment_status: string;
|
|
490
517
|
};
|
|
491
518
|
display_status: {
|
|
519
|
+
awaiting_capture: string;
|
|
492
520
|
in_progress: string;
|
|
493
521
|
in_progress_manual: string;
|
|
494
522
|
};
|