@commercelayer/app-elements 7.12.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-lf915EGg.js → CodeEditorComponent-txM4ls17.js} +2 -2
- package/dist/{InputDateComponent-DD_fCyi_.js → InputDateComponent-C4QUlrmn.js} +2 -2
- package/dist/{RuleEngineComponent-CVD0pObW.js → RuleEngineComponent-dEe0FTBs.js} +266 -261
- package/dist/{en-CcBUYKzR.js → en-B-7ylwWx.js} +30 -1
- package/dist/{fetchCoreResourcesSuggestions-BS4pPkGo.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-y1Q1-MMT.js → it-BXPKgQsm.js} +30 -1
- package/dist/locales/en.d.ts +29 -0
- package/dist/{main-DIL89neT.js → main-Op1RV9MX.js} +23801 -19311
- package/dist/main.d.ts +9 -3
- package/dist/main.js +176 -165
- 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-CeYGLBle.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/ButtonFilter.d.ts +17 -1
- package/dist/ui/atoms/Container.d.ts +10 -0
- 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/HomePageLayout.d.ts +3 -2
- package/dist/ui/composite/ListDetailsItem.d.ts +14 -1
- package/dist/ui/composite/PageLayout.d.ts +71 -1
- 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/FieldOptionsSelect.d.ts +20 -0
- package/dist/ui/resources/useResourceFilters/FiltersBar.d.ts +64 -0
- package/dist/ui/resources/useResourceFilters/FiltersDrawer.d.ts +35 -0
- package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +2 -2
- package/dist/ui/resources/useResourceFilters/activeFilters.d.ts +111 -0
- package/dist/ui/resources/useResourceFilters/activeFilters.test.d.ts +1 -0
- package/dist/ui/resources/useResourceFilters/types.d.ts +50 -0
- package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +48 -0
- package/dist/ui/resources/useResourceFilters/utils.d.ts +10 -0
- package/dist/ui/resources/useResourceList/adaptMetricsOrderToCore.d.ts +5 -0
- package/dist/ui/resources/useResourceList/index.d.ts +1 -0
- package/dist/ui/resources/useResourceList/listFetcher.d.ts +7 -1
- 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/useResourceList/useResourceList.d.ts +3 -1
- package/dist/ui/resources/useResourceTable/index.d.ts +2 -0
- package/dist/ui/resources/useResourceTable/types.d.ts +252 -0
- package/dist/ui/resources/useResourceTable/useResourceTable.d.ts +11 -0
- package/dist/ui/resources/useResourceTable/useResourceTable.test.d.ts +1 -0
- package/package.json +5 -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
|
@@ -217,9 +217,11 @@ const e = {
|
|
|
217
217
|
back: "Back",
|
|
218
218
|
go_back: "Go back",
|
|
219
219
|
cancel: "Cancel",
|
|
220
|
+
clear_all: "Clear all",
|
|
220
221
|
clear_text: "Clear text",
|
|
221
222
|
close: "Close",
|
|
222
223
|
continue: "Continue",
|
|
224
|
+
copy_id: "Copy ID",
|
|
223
225
|
could_not_retrieve_data: "Could not retrieve data",
|
|
224
226
|
could_not_retrieve_resource: "Could not retrieve {{resource}}",
|
|
225
227
|
create: "Create",
|
|
@@ -229,6 +231,7 @@ const e = {
|
|
|
229
231
|
custom_time_range: "Custom Time Range",
|
|
230
232
|
delete_resource: "Delete {{resource}}",
|
|
231
233
|
delete: "Delete",
|
|
234
|
+
details_options: "Details options",
|
|
232
235
|
download_file: "Download file",
|
|
233
236
|
download_json: "Download JSON",
|
|
234
237
|
edit: "Edit",
|
|
@@ -392,6 +395,31 @@ The {{organization}} team`,
|
|
|
392
395
|
},
|
|
393
396
|
no_resources: {
|
|
394
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"
|
|
395
423
|
}
|
|
396
424
|
},
|
|
397
425
|
resources: e,
|
|
@@ -471,7 +499,7 @@ The {{organization}} team`,
|
|
|
471
499
|
},
|
|
472
500
|
anonymize: {
|
|
473
501
|
title: "Customer cannot be deleted",
|
|
474
|
-
description: "
|
|
502
|
+
description: "Their personal data will be replaced everywhere, including orders. You can cancel the request until it starts.",
|
|
475
503
|
request_button: "Request anonymization"
|
|
476
504
|
},
|
|
477
505
|
anonymization_info: {
|
|
@@ -493,6 +521,7 @@ The {{organization}} team`,
|
|
|
493
521
|
fulfillment_status: "Fulfillment status"
|
|
494
522
|
},
|
|
495
523
|
display_status: {
|
|
524
|
+
awaiting_capture: "Awaiting capture",
|
|
496
525
|
in_progress: "In progress",
|
|
497
526
|
in_progress_manual: "In progress (Manual)"
|
|
498
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
|
/**
|
|
@@ -16,8 +16,10 @@ const e = {
|
|
|
16
16
|
go_back: "Torna indietro",
|
|
17
17
|
cancel: "Annulla",
|
|
18
18
|
close: "Chiudi",
|
|
19
|
+
clear_all: "Cancella tutto",
|
|
19
20
|
clear_text: "Svuota testo",
|
|
20
21
|
continue: "Continua",
|
|
22
|
+
copy_id: "Copia ID",
|
|
21
23
|
could_not_retrieve_data: "Impossibile recuperare i dati",
|
|
22
24
|
could_not_retrieve_resource: "Impossibile recuperare {{resource}}",
|
|
23
25
|
create: "Crea",
|
|
@@ -28,6 +30,7 @@ const e = {
|
|
|
28
30
|
update_resource: "Aggiorna {{resource}}",
|
|
29
31
|
delete_resource: "Elimina {{resource}}",
|
|
30
32
|
delete: "Elimina",
|
|
33
|
+
details_options: "Opzioni dettagli",
|
|
31
34
|
download_file: "Scarica file",
|
|
32
35
|
download_json: "Scarica JSON",
|
|
33
36
|
edit: "Modifica",
|
|
@@ -191,6 +194,31 @@ Il team di {{organization}}`,
|
|
|
191
194
|
},
|
|
192
195
|
no_resources: {
|
|
193
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"
|
|
194
222
|
}
|
|
195
223
|
},
|
|
196
224
|
resources: {
|
|
@@ -478,7 +506,7 @@ Il team di {{organization}}`,
|
|
|
478
506
|
},
|
|
479
507
|
anonymize: {
|
|
480
508
|
title: "Il cliente non può essere eliminato",
|
|
481
|
-
description: "
|
|
509
|
+
description: "I suoi dati personali saranno sostituiti ovunque, compresi gli ordini. Puoi annullare la richiesta finché non viene avviata.",
|
|
482
510
|
request_button: "Richiedi anonimizzazione"
|
|
483
511
|
},
|
|
484
512
|
anonymization_info: {
|
|
@@ -500,6 +528,7 @@ Il team di {{organization}}`,
|
|
|
500
528
|
fulfillment_status: "Stato spedizione"
|
|
501
529
|
},
|
|
502
530
|
display_status: {
|
|
531
|
+
awaiting_capture: "Da catturare",
|
|
503
532
|
in_progress: "In corso",
|
|
504
533
|
in_progress_manual: "In corso (Manuale)"
|
|
505
534
|
},
|
package/dist/locales/en.d.ts
CHANGED
|
@@ -15,9 +15,11 @@ declare const en: {
|
|
|
15
15
|
back: string;
|
|
16
16
|
go_back: string;
|
|
17
17
|
cancel: string;
|
|
18
|
+
clear_all: string;
|
|
18
19
|
clear_text: string;
|
|
19
20
|
close: string;
|
|
20
21
|
continue: string;
|
|
22
|
+
copy_id: string;
|
|
21
23
|
could_not_retrieve_data: string;
|
|
22
24
|
could_not_retrieve_resource: string;
|
|
23
25
|
create: string;
|
|
@@ -27,6 +29,7 @@ declare const en: {
|
|
|
27
29
|
custom_time_range: string;
|
|
28
30
|
delete_resource: string;
|
|
29
31
|
delete: string;
|
|
32
|
+
details_options: string;
|
|
30
33
|
download_file: string;
|
|
31
34
|
download_json: string;
|
|
32
35
|
edit: string;
|
|
@@ -187,6 +190,31 @@ declare const en: {
|
|
|
187
190
|
no_resources: {
|
|
188
191
|
no_tags: string;
|
|
189
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
|
+
};
|
|
190
218
|
};
|
|
191
219
|
resources: {
|
|
192
220
|
addresses: {
|
|
@@ -488,6 +516,7 @@ declare const en: {
|
|
|
488
516
|
fulfillment_status: string;
|
|
489
517
|
};
|
|
490
518
|
display_status: {
|
|
519
|
+
awaiting_capture: string;
|
|
491
520
|
in_progress: string;
|
|
492
521
|
in_progress_manual: string;
|
|
493
522
|
};
|