@commercelayer/app-elements 0.0.66 → 0.0.68
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-497a0261.js → Async-42f5a9e4.js} +3 -3
- package/dist/{InputDateComponent-80224952.js → InputDateComponent-2fbac399.js} +2 -2
- package/dist/{Select-597b5671.js → Select-a84c5738.js} +3 -3
- package/dist/dictionaries/orders.d.ts +3 -2
- package/dist/helpers/resources.d.ts +2 -0
- package/dist/{main-3df5f0c3.js → main-c79de937.js} +6235 -6149
- package/dist/main.d.ts +3 -2
- package/dist/main.js +76 -74
- package/dist/{overrides-ff5cc20e.js → overrides-fa4a79f7.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/ui/atoms/CopyToClipboard.d.ts +3 -3
- package/dist/ui/atoms/Icon.d.ts +31 -29
- package/dist/ui/resources/LineItems.d.ts +12 -0
- package/dist/ui/resources/LineItems.mocks.d.ts +253 -0
- package/dist/ui/resources/LineItems.test.d.ts +1 -0
- package/dist/ui/resources/OrderSummary.d.ts +4 -3
- package/dist/ui/resources/RelationshipSelector/Checkbox.d.ts +2 -1
- package/dist/ui/resources/RelationshipSelector/index.d.ts +6 -3
- package/dist/{unsupportedIterableToArray-b9c077d6.js → unsupportedIterableToArray-39086461.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as de, H as le } from "./main-
|
|
1
|
+
import { L as de, H as le } from "./main-c79de937.js";
|
|
2
2
|
import * as ce from "react";
|
|
3
3
|
import { useRef as F, useState as a, useEffect as x, useCallback as D, forwardRef as ve } from "react";
|
|
4
|
-
import { _ as Oe, a as s, h as Se, b as g, u as me, S as _e, c as he, s as ge } from "./overrides-
|
|
5
|
-
import { d as ye } from "./unsupportedIterableToArray-
|
|
4
|
+
import { _ as Oe, a as s, h as Se, b as g, u as me, S as _e, c as he, s as ge } from "./overrides-fa4a79f7.js";
|
|
5
|
+
import { d as ye } from "./unsupportedIterableToArray-39086461.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "@commercelayer/sdk";
|
|
8
8
|
var Ce = ["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-c79de937.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-39086461.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 n } from "./main-
|
|
2
|
-
import { u as s, S as m, c as p, s as i } from "./overrides-
|
|
1
|
+
import { H as n } from "./main-c79de937.js";
|
|
2
|
+
import { u as s, S as m, c as p, s as i } from "./overrides-fa4a79f7.js";
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { forwardRef as S } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
|
-
import "./unsupportedIterableToArray-
|
|
7
|
+
import "./unsupportedIterableToArray-39086461.js";
|
|
8
8
|
var f = /* @__PURE__ */ S(function(e, t) {
|
|
9
9
|
var o = s(e);
|
|
10
10
|
return /* @__PURE__ */ c.createElement(m, p({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type TriggerAttribute } from '../helpers/resources';
|
|
1
2
|
import { type IconProps } from '../ui/atoms/Icon';
|
|
2
|
-
import type { Order } from '@commercelayer/sdk';
|
|
3
|
-
type UITriggerAttributes = '_approve' | '_cancel' | '_capture' | '_refund' | '
|
|
3
|
+
import type { Order, OrderUpdate } from '@commercelayer/sdk';
|
|
4
|
+
type UITriggerAttributes = Extract<TriggerAttribute<OrderUpdate>, '_approve' | '_cancel' | '_capture' | '_refund' | '_archive' | '_unarchive'> | '_return';
|
|
4
5
|
interface OrderDisplayStatus {
|
|
5
6
|
label: string;
|
|
6
7
|
icon: IconProps['name'];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ListableResourceType } from '@commercelayer/sdk/lib/cjs/api';
|
|
2
|
+
import { type ResourceUpdate } from '@commercelayer/sdk/lib/cjs/resource';
|
|
2
3
|
/**
|
|
3
4
|
* Format a resource name for display in the UI based on the count and format.
|
|
4
5
|
* default format is lower case and singular
|
|
@@ -8,3 +9,4 @@ export declare function formatResourceName({ resource, count, format }: {
|
|
|
8
9
|
count?: number | 'singular' | 'plural';
|
|
9
10
|
format?: 'lower' | 'title';
|
|
10
11
|
}): string;
|
|
12
|
+
export type TriggerAttribute<Resource extends ResourceUpdate> = Extract<keyof Resource, `_${string}`>;
|