@commercelayer/app-elements 0.0.52 → 0.0.53
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-dfc6b253.js → Async-d80f3c80.js} +2 -2
- package/dist/{InputDateComponent-4ef11b30.js → InputDateComponent-9460bfbd.js} +1 -1
- package/dist/{Select-ab183a5a.js → Select-5ec14044.js} +2 -2
- package/dist/helpers/attachments.d.ts +8 -0
- package/dist/helpers/tracking.d.ts +2 -2
- package/dist/{main-286fe9f0.js → main-aae862a7.js} +4986 -4800
- package/dist/main.d.ts +2 -0
- package/dist/main.js +79 -76
- package/dist/{overrides-e830493a.js → overrides-cac099f7.js} +1 -1
- package/dist/ui/atoms/Card.d.ts +1 -1
- package/dist/ui/resources/OrderTimeline.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as de from "react";
|
|
2
2
|
import le, { useRef as W, useState as a, useEffect as z, useCallback as B, forwardRef as ce } from "react";
|
|
3
|
-
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-
|
|
3
|
+
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-cac099f7.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-aae862a7.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var ye = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
8
8
|
function Ce(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as A from "react";
|
|
2
2
|
import h, { forwardRef as ou, createElement as Qu, Component as Ku, createRef as zu } from "react";
|
|
3
|
-
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-
|
|
3
|
+
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-aae862a7.js";
|
|
4
4
|
import * as ds from "react-dom";
|
|
5
5
|
import hs, { findDOMNode as ys } from "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import a, { forwardRef as s } from "react";
|
|
3
|
-
import { u as m, S as p, d as c, s as i } from "./overrides-
|
|
3
|
+
import { u as m, S as p, d as c, s as i } from "./overrides-cac099f7.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-aae862a7.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var l = /* @__PURE__ */ s(function(e, t) {
|
|
8
8
|
var o = m(e);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Attachment } from '@commercelayer/sdk';
|
|
2
|
+
import { type SetNonNullable, type SetRequired } from 'type-fest';
|
|
3
|
+
export declare const referenceOrigins: {
|
|
4
|
+
readonly appOrdersNote: "app-orders--note";
|
|
5
|
+
readonly appOrdersRefundNote: "app-orders--refund-note";
|
|
6
|
+
readonly appShipmentsNote: "app-shipments--note";
|
|
7
|
+
};
|
|
8
|
+
export declare function isAttachmentValidNote(attachment: Attachment, validReferenceOrigins: Array<(typeof referenceOrigins)[keyof typeof referenceOrigins]>): attachment is SetNonNullable<SetRequired<Attachment, 'description' | 'reference_origin'>, 'description' | 'reference_origin'>;
|
|
@@ -74,6 +74,7 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
object: "TrackingDetail";
|
|
76
76
|
status: string | null;
|
|
77
|
+
description: string | null;
|
|
77
78
|
source: string | null;
|
|
78
79
|
message: string | null;
|
|
79
80
|
status_detail: string | null;
|
|
@@ -85,11 +86,11 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
85
86
|
country: string | null;
|
|
86
87
|
zip: string | null;
|
|
87
88
|
};
|
|
88
|
-
description: string | null;
|
|
89
89
|
carrier_code: string | null;
|
|
90
90
|
}, {
|
|
91
91
|
object: "TrackingDetail";
|
|
92
92
|
status: string | null;
|
|
93
|
+
description: string | null;
|
|
93
94
|
source: string | null;
|
|
94
95
|
message: string | null;
|
|
95
96
|
status_detail: string | null;
|
|
@@ -101,7 +102,6 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
101
102
|
country: string | null;
|
|
102
103
|
zip: string | null;
|
|
103
104
|
};
|
|
104
|
-
description: string | null;
|
|
105
105
|
carrier_code: string | null;
|
|
106
106
|
}>;
|
|
107
107
|
/**
|