@commercelayer/app-elements 0.0.54 → 0.0.56
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/{Async-6f59b24c.js → Async-162c8930.js} +3 -3
- package/dist/{InputDateComponent-23a7135f.js → InputDateComponent-84a91565.js} +2 -2
- package/dist/{Select-75e1e66a.js → Select-3d98e3a6.js} +3 -3
- package/dist/helpers/appsNavigation.d.ts +50 -0
- package/dist/helpers/appsNavigation.test.d.ts +1 -0
- package/dist/{main-f2f58169.js → main-cbf3ba03.js} +3894 -3802
- package/dist/main.d.ts +1 -0
- package/dist/main.js +32 -30
- package/dist/{overrides-ea676d4e.js → overrides-e9c07b2d.js} +2 -2
- package/dist/ui/resources/ListItemOrder.d.ts +1 -0
- package/dist/ui/resources/OrderTimeline.d.ts +1 -0
- package/dist/{unsupportedIterableToArray-3631dda1.js → unsupportedIterableToArray-d8cc7c68.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as de } from "./main-
|
|
2
|
-
import { _ as le, a, h as ce, b as O, u as ve, S as Oe, c as Se, s as me } from "./overrides-
|
|
1
|
+
import { H as de } from "./main-cbf3ba03.js";
|
|
2
|
+
import { _ as le, a, h as ce, b as O, u as ve, S as Oe, c as Se, s as me } from "./overrides-e9c07b2d.js";
|
|
3
3
|
import * as _e from "react";
|
|
4
4
|
import { useRef as T, useState as s, useEffect as W, useCallback as z, forwardRef as he } from "react";
|
|
5
|
-
import { d as ge } from "./unsupportedIterableToArray-
|
|
5
|
+
import { d as ge } from "./unsupportedIterableToArray-d8cc7c68.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "@commercelayer/sdk";
|
|
8
8
|
var ye = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Ma, r as E, a as Rn, t as H, b as Mt, c as Ee, d as _, g as Cr, _ as Qt, s as je, e as cr, f as xa, h as ur, i as Ln, j as Sa, k as Oa, l as Ea, m as qr, n as _a, o as Kr, p as Pa, q as Ta, u as Na, v as An, w as ae, x as nt, y as pr, z as Hn, A as Ya, B as lr, C as Zr, D as Ia, E as Ra, F as La, G as At, H as Ke, I as Aa, J as Ha, K as Fa } from "./main-
|
|
1
|
+
import { P as Ma, r as E, a as Rn, t as H, b as Mt, c as Ee, d as _, g as Cr, _ as Qt, s as je, e as cr, f as xa, h as ur, i as Ln, j as Sa, k as Oa, l as Ea, m as qr, n as _a, o as Kr, p as Pa, q as Ta, u as Na, v as An, w as ae, x as nt, y as pr, z as Hn, A as Ya, B as lr, C as Zr, D as Ia, E as Ra, F as La, G as At, H as Ke, I as Aa, J as Ha, K as Fa } from "./main-cbf3ba03.js";
|
|
2
2
|
import * as B from "react";
|
|
3
3
|
import h, { forwardRef as Fn, createElement as ja, Component as Ua, createRef as Ba } from "react";
|
|
4
|
-
import { _ as Wa, a as I, b as R, c as N, d as D, e as b, f as Y } from "./unsupportedIterableToArray-
|
|
4
|
+
import { _ as Wa, a as I, b as R, c as N, d as D, e as b, f as Y } from "./unsupportedIterableToArray-d8cc7c68.js";
|
|
5
5
|
import * as Va from "react-dom";
|
|
6
6
|
import Qa, { findDOMNode as $a } from "react-dom";
|
|
7
7
|
import "@commercelayer/sdk";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as a } from "./main-
|
|
2
|
-
import { u as n, S as s, c as m, s as p } from "./overrides-
|
|
1
|
+
import { H as a } from "./main-cbf3ba03.js";
|
|
2
|
+
import { u as n, S as s, c as m, s as p } from "./overrides-e9c07b2d.js";
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import { forwardRef as c } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
|
-
import "./unsupportedIterableToArray-
|
|
7
|
+
import "./unsupportedIterableToArray-d8cc7c68.js";
|
|
8
8
|
var S = /* @__PURE__ */ c(function(e, t) {
|
|
9
9
|
var o = n(e);
|
|
10
10
|
return /* @__PURE__ */ i.createElement(s, m({
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ResourceTypeLock } from '@commercelayer/sdk/lib/cjs/api';
|
|
2
|
+
export interface BackToItem {
|
|
3
|
+
/**
|
|
4
|
+
* URL to be stored in sessionStorage, it will be the current URL so it can be used to navigate back.
|
|
5
|
+
*/
|
|
6
|
+
url: string;
|
|
7
|
+
/**
|
|
8
|
+
* Version of the data stored to check if it's compatible with the current code version.
|
|
9
|
+
*/
|
|
10
|
+
version: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Navigate back to the url found in sessionStorage or to the default relative path.
|
|
14
|
+
*/
|
|
15
|
+
export declare function goBack({ setLocation, defaultRelativePath }: {
|
|
16
|
+
/**
|
|
17
|
+
* React router's history.push method, this is used when linking internal app pages.
|
|
18
|
+
*/
|
|
19
|
+
setLocation: (url: string) => void;
|
|
20
|
+
/**
|
|
21
|
+
* path to default list when there is no url in sessionStorage
|
|
22
|
+
*/
|
|
23
|
+
defaultRelativePath: string;
|
|
24
|
+
}): void;
|
|
25
|
+
/**
|
|
26
|
+
* Navigate to an internal or external URL or pathname and store the current url in sessionStorage
|
|
27
|
+
* to be able to navigate back to it with the `goBack` function.
|
|
28
|
+
*/
|
|
29
|
+
export declare function navigateToDetail({ setLocation, destination }: {
|
|
30
|
+
/**
|
|
31
|
+
* React router's history.push method, this is used when linking internal app pages.
|
|
32
|
+
*/
|
|
33
|
+
setLocation?: (url: string) => void;
|
|
34
|
+
/**
|
|
35
|
+
* destination instructions to navigate to a detail page
|
|
36
|
+
*/
|
|
37
|
+
destination: {
|
|
38
|
+
/**
|
|
39
|
+
* app name to navigate to, it could be the current app (internal linking) or another app (cross linking)
|
|
40
|
+
*/
|
|
41
|
+
app: ResourceTypeLock;
|
|
42
|
+
/**
|
|
43
|
+
* resource id to open
|
|
44
|
+
*/
|
|
45
|
+
resourceId: string;
|
|
46
|
+
};
|
|
47
|
+
}): {
|
|
48
|
+
href: string;
|
|
49
|
+
onClick: (e: React.MouseEvent<HTMLAnchorElement | HTMLDivElement, MouseEvent>) => void;
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|