@commercelayer/app-elements 5.2.1 → 5.3.1
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-sOC76yJV.js → CodeEditorComponent-CdciMcym.js} +1 -1
- package/dist/{InputDateComponent-BUnPCCDe.js → InputDateComponent-zfJcwzvy.js} +1 -1
- package/dist/{en-BmYJPi7w.js → en-BH0MKopU.js} +2 -1
- package/dist/helpers/appsNavigation.d.ts +3 -3
- package/dist/helpers/transactions.d.ts +7 -0
- package/dist/helpers/transactions.test.d.ts +1 -0
- package/dist/helpers/useAppLinking.d.ts +2 -3
- package/dist/{it-BG6oL8Br.js → it-CgBMZHQa.js} +2 -1
- package/dist/locales/en.d.ts +1 -0
- package/dist/{main-Bc7WPO8T.js → main-tnQun6Mf.js} +2602 -2597
- package/dist/main.d.ts +2 -1
- package/dist/main.js +32 -31
- package/dist/providers/TokenProvider/TokenProvider.d.ts +5 -5
- package/dist/providers/TokenProvider/index.d.ts +1 -1
- package/dist/providers/TokenProvider/reducer.d.ts +3 -3
- package/dist/providers/TokenProvider/storage.d.ts +4 -4
- package/dist/providers/TokenProvider/types.d.ts +24 -3
- package/dist/providers/TokenProvider/validateToken.d.ts +3 -3
- package/dist/providers/createApp.d.ts +3 -3
- package/dist/ui/composite/PageLayout.d.ts +37 -11
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as Ee, j as se, I as $e } from "./main-
|
|
2
|
+
import { u as Ee, j as se, I as $e } from "./main-tnQun6Mf.js";
|
|
3
3
|
import V, { memo as ce, useState as U, useEffect as I, useRef as w, useCallback as ue, forwardRef as Ce } from "react";
|
|
4
4
|
function Ie(e, t, r) {
|
|
5
5
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var Gr = Object.defineProperty;
|
|
3
3
|
var Xr = (o, a, t) => a in o ? Gr(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t;
|
|
4
4
|
var y = (o, a, t) => Xr(o, typeof a != "symbol" ? a + "" : a, t);
|
|
5
|
-
import { c as z, t as k, m as ht, a as mt, b as me, d as he, n as vt, e as Be, g as wr, f as Zr, h as Jr, s as ot, i as br, k as en, l as _r, o as kr, p as tn, q as rn, r as Ut, v as nn, w as an, x as Kt, y as on, z as Fe, A as sn, j as ne, B as Te, C as _e, D as xt, E as Yt, F as Mr, G as Rt, H as Cr, J as ln, K as Ee, L as Vt, M as cn, N as un, O as dn, P as pn, Q as st, R as fn, I as hn, S as mn, T as vn, U as Dn, V as gn } from "./main-
|
|
5
|
+
import { c as z, t as k, m as ht, a as mt, b as me, d as he, n as vt, e as Be, g as wr, f as Zr, h as Jr, s as ot, i as br, k as en, l as _r, o as kr, p as tn, q as rn, r as Ut, v as nn, w as an, x as Kt, y as on, z as Fe, A as sn, j as ne, B as Te, C as _e, D as xt, E as Yt, F as Mr, G as Rt, H as Cr, J as ln, K as Ee, L as Vt, M as cn, N as un, O as dn, P as pn, Q as st, R as fn, I as hn, S as mn, T as vn, U as Dn, V as gn } from "./main-tnQun6Mf.js";
|
|
6
6
|
import * as M from "react";
|
|
7
7
|
import f, { useLayoutEffect as Sr, useEffect as Lt, cloneElement as xr, createRef as Ce, Component as G, useRef as Et, useCallback as yn, createElement as wn, forwardRef as bn, useMemo as _n } from "react";
|
|
8
8
|
import * as kn from "react-dom";
|
|
@@ -469,7 +469,8 @@ The {{organization}} team`,
|
|
|
469
469
|
payment_authorization: "Payment authorization",
|
|
470
470
|
payment_capture: "Payment capture",
|
|
471
471
|
payment_refund: "Refund",
|
|
472
|
-
payment_void: "Void"
|
|
472
|
+
payment_void: "Void",
|
|
473
|
+
waiting_for_successful_capture: "Waiting for successful capture"
|
|
473
474
|
},
|
|
474
475
|
form: {
|
|
475
476
|
language: "Language",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenProviderClAppSlug } from '../providers/TokenProvider/types';
|
|
2
2
|
export interface BackToItem {
|
|
3
3
|
/**
|
|
4
4
|
* URL to be stored in sessionStorage, it will be the current URL so it can be used to navigate back.
|
|
@@ -34,7 +34,7 @@ interface NavigateToInternalParams {
|
|
|
34
34
|
/**
|
|
35
35
|
* app name to navigate to, it could be the current app (internal linking) or another app (cross linking)
|
|
36
36
|
*/
|
|
37
|
-
app:
|
|
37
|
+
app: TokenProviderClAppSlug;
|
|
38
38
|
/**
|
|
39
39
|
* resource id to open
|
|
40
40
|
*/
|
|
@@ -49,7 +49,7 @@ interface NavigateToExternalParams {
|
|
|
49
49
|
/**
|
|
50
50
|
* app name to navigate to, it could be the current app (internal linking) or another app (cross linking)
|
|
51
51
|
*/
|
|
52
|
-
app:
|
|
52
|
+
app: TokenProviderClAppSlug;
|
|
53
53
|
/**
|
|
54
54
|
* resource id to open
|
|
55
55
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Authorization, Capture, Refund, Void } from '@commercelayer/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Check if the transaction is an async capture
|
|
4
|
+
* We assume that async pending captures are those
|
|
5
|
+
* that are not succeeded and have no message or error code.
|
|
6
|
+
*/
|
|
7
|
+
export declare function orderTransactionIsAnAsyncCapture(transaction: Authorization | Void | Capture | Refund): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type AppsWithConfig = Exclude<TokenProviderAllowedApp, 'dashboard' | 'resources'>;
|
|
1
|
+
import { TokenProviderClAppSlug } from '../providers/TokenProvider/types';
|
|
3
2
|
interface UseAppLinkingHook {
|
|
4
3
|
/**
|
|
5
4
|
* Navigate to internal app path, to different app (outside router base), or to an external URL.
|
|
6
5
|
* Current path is saved in session storage to allow going back to it (when using `goBack`).
|
|
7
6
|
*/
|
|
8
7
|
navigateTo: (param: {
|
|
9
|
-
app:
|
|
8
|
+
app: TokenProviderClAppSlug;
|
|
10
9
|
resourceId?: string;
|
|
11
10
|
}) => {
|
|
12
11
|
href: string;
|
|
@@ -476,7 +476,8 @@ Il team di {{organization}}`,
|
|
|
476
476
|
payment_authorization: "Autorizzazione pagamento",
|
|
477
477
|
payment_capture: "Cattura pagamento",
|
|
478
478
|
payment_refund: "Rimborso",
|
|
479
|
-
payment_void: "Annulla"
|
|
479
|
+
payment_void: "Annulla",
|
|
480
|
+
waiting_for_successful_capture: "In attesa di catturare il pagamento"
|
|
480
481
|
},
|
|
481
482
|
form: {
|
|
482
483
|
language: "Lingua",
|