@commercelayer/app-elements 1.12.4 → 1.12.6
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/{InputDateComponent-41c3fe81.js → InputDateComponent-c02f0480.js} +1 -1
- package/dist/hooks/useOverlay.d.ts +1 -14
- package/dist/{main-a6ce8ff2.js → main-a4d55194.js} +5060 -4929
- package/dist/main.js +1 -1
- package/dist/ui/atoms/Icon/Icon.d.ts +1 -1
- package/dist/ui/atoms/Icon/icons.d.ts +4 -1
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +2 -2
- package/dist/ui/composite/PageLayout.d.ts +5 -1
- package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +1 -1
- package/dist/ui/forms/InputReadonly.d.ts +1 -1
- package/dist/ui/internals/Overlay.d.ts +16 -0
- package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +25 -0
- package/dist/ui/resources/ResourceListItem/common.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/promotions.d.ts +3 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { aA as c, bd as i, aB as p, aC as b, aD as l, aE as d, aF as g, aG as m, aH as S, aI as I, aJ as k, be as T, aK as D, aL as R, ar as y, bf as h, bg as C, bh as A, bi as H, aM as P, au as f, av as B, aN as F, aO as v, bu as N, bv as O, bx as w, bz as L, bB as G, bF as V, bH as x, bM as E, bP as M, bR as W, bY as U, b_ as J, c0 as j, c2 as q, c4 as z, c8 as Y, c9 as Z, aP as $, aQ as K, bw as Q, by as X, bA as _, bC as aa, bE as ea, bG as sa, bI as ta, bJ as oa, bK as ra, bL as na, bN as ua, bO as ca, bQ as ia, bS as pa, bZ as ba, b$ as la, c1 as da, c3 as ga, c5 as ma, c6 as Sa, c7 as Ia, bj as ka, bk as Ta, bl as Da, bm as Ra, ax as ya, bn as ha, aR as Ca, bo as Aa, bp as Ha, aS as Pa, aT as fa, aU as Ba, aV as Fa, bq as va, cc as Na, cd as Oa, ce as wa, cf as La, cg as Ga, ch as Va, ci as xa, cj as Ea, ck as Ma, aW as Wa, br as Ua, aX as Ja, aY as ja, aZ as qa, a_ as za, b0 as Ya, b1 as Za, b2 as $a, b3 as Ka, b4 as Qa, b9 as Xa, b5 as _a, bs as ae, ba as ee, bb as se, b6 as te, bc as oe, b7 as re, bt as ne, ay as ue, b8 as ce, a8 as ie, ab as pe, ac as be, Z as le, a7 as de, bT as ge, bD as me, $ as Se, a0 as Ie, a1 as ke, a9 as Te, aa as De, ad as Re, cm as ye, cn as he, bU as Ce, a2 as Ae, a3 as He, a4 as Pe, co as fe, cp as Be, cq as Fe, cr as ve, cs as Ne, ct as Oe, ae as we, af as Le, cu as Ge, cv as Ve, cw as xe, cx as Ee, ag as Me, ah as We, cy as Ue, cz as Je, cA as je, ak as qe, al as ze, U as Ye, ai as Ze, aj as $e, W as Ke, bV as Qe, bW as Xe, bX as _e, V as as, Y as es, ca as ss, a5 as ts, a6 as os, am as rs, as as ns, at as us, an as cs, ao as is, ap as ps, aq as bs, cl as ls, aw as ds, az as gs, cb as ms, a$ as Ss } from "./main-
|
|
2
|
+
import { aA as c, bd as i, aB as p, aC as b, aD as l, aE as d, aF as g, aG as m, aH as S, aI as I, aJ as k, be as T, aK as D, aL as R, ar as y, bf as h, bg as C, bh as A, bi as H, aM as P, au as f, av as B, aN as F, aO as v, bu as N, bv as O, bx as w, bz as L, bB as G, bF as V, bH as x, bM as E, bP as M, bR as W, bY as U, b_ as J, c0 as j, c2 as q, c4 as z, c8 as Y, c9 as Z, aP as $, aQ as K, bw as Q, by as X, bA as _, bC as aa, bE as ea, bG as sa, bI as ta, bJ as oa, bK as ra, bL as na, bN as ua, bO as ca, bQ as ia, bS as pa, bZ as ba, b$ as la, c1 as da, c3 as ga, c5 as ma, c6 as Sa, c7 as Ia, bj as ka, bk as Ta, bl as Da, bm as Ra, ax as ya, bn as ha, aR as Ca, bo as Aa, bp as Ha, aS as Pa, aT as fa, aU as Ba, aV as Fa, bq as va, cc as Na, cd as Oa, ce as wa, cf as La, cg as Ga, ch as Va, ci as xa, cj as Ea, ck as Ma, aW as Wa, br as Ua, aX as Ja, aY as ja, aZ as qa, a_ as za, b0 as Ya, b1 as Za, b2 as $a, b3 as Ka, b4 as Qa, b9 as Xa, b5 as _a, bs as ae, ba as ee, bb as se, b6 as te, bc as oe, b7 as re, bt as ne, ay as ue, b8 as ce, a8 as ie, ab as pe, ac as be, Z as le, a7 as de, bT as ge, bD as me, $ as Se, a0 as Ie, a1 as ke, a9 as Te, aa as De, ad as Re, cm as ye, cn as he, bU as Ce, a2 as Ae, a3 as He, a4 as Pe, co as fe, cp as Be, cq as Fe, cr as ve, cs as Ne, ct as Oe, ae as we, af as Le, cu as Ge, cv as Ve, cw as xe, cx as Ee, ag as Me, ah as We, cy as Ue, cz as Je, cA as je, ak as qe, al as ze, U as Ye, ai as Ze, aj as $e, W as Ke, bV as Qe, bW as Xe, bX as _e, V as as, Y as es, ca as ss, a5 as ts, a6 as os, am as rs, as as ns, at as us, an as cs, ao as is, ap as ps, aq as bs, cl as ls, aw as ds, az as gs, cb as ms, a$ as Ss } from "./main-a4d55194.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "@commercelayer/sdk";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { iconMapping } from './icons';
|
|
3
|
-
type IconWeight = 'regular' | 'bold';
|
|
3
|
+
type IconWeight = 'regular' | 'bold' | 'light';
|
|
4
4
|
export interface IconProps extends ComponentPropsWithRef<'svg'> {
|
|
5
5
|
/**
|
|
6
6
|
* Name of the icon to display
|
|
@@ -9,6 +9,7 @@ export declare const iconMapping: {
|
|
|
9
9
|
readonly arrowLeft: phosphor.Icon;
|
|
10
10
|
readonly arrowRight: phosphor.Icon;
|
|
11
11
|
readonly arrowsLeftRight: phosphor.Icon;
|
|
12
|
+
readonly arrowSquareOut: phosphor.Icon;
|
|
12
13
|
readonly arrowUpRight: phosphor.Icon;
|
|
13
14
|
readonly arrowUUpLeft: phosphor.Icon;
|
|
14
15
|
readonly asteriskSimple: phosphor.Icon;
|
|
@@ -25,6 +26,7 @@ export declare const iconMapping: {
|
|
|
25
26
|
readonly cloudArrowUp: phosphor.Icon;
|
|
26
27
|
readonly creditCard: phosphor.Icon;
|
|
27
28
|
readonly currencyEur: phosphor.Icon;
|
|
29
|
+
readonly dotsThree: phosphor.Icon;
|
|
28
30
|
readonly download: phosphor.Icon;
|
|
29
31
|
readonly eye: phosphor.Icon;
|
|
30
32
|
readonly flag: phosphor.Icon;
|
|
@@ -32,6 +34,7 @@ export declare const iconMapping: {
|
|
|
32
34
|
readonly funnelSimple: phosphor.Icon;
|
|
33
35
|
readonly gearFine: phosphor.Icon;
|
|
34
36
|
readonly gift: phosphor.Icon;
|
|
37
|
+
readonly gitFork: phosphor.Icon;
|
|
35
38
|
readonly githubLogo: phosphor.Icon;
|
|
36
39
|
readonly globeSimple: phosphor.Icon;
|
|
37
40
|
readonly googleLogo: phosphor.Icon;
|
|
@@ -42,8 +45,8 @@ export declare const iconMapping: {
|
|
|
42
45
|
readonly lightbulbFilament: phosphor.Icon;
|
|
43
46
|
readonly linkSimple: phosphor.Icon;
|
|
44
47
|
readonly list: phosphor.Icon;
|
|
45
|
-
readonly lockSimpleOpen: phosphor.Icon;
|
|
46
48
|
readonly lockSimple: phosphor.Icon;
|
|
49
|
+
readonly lockSimpleOpen: phosphor.Icon;
|
|
47
50
|
readonly magnifyingGlass: phosphor.Icon;
|
|
48
51
|
readonly megaphoneSimple: phosphor.Icon;
|
|
49
52
|
readonly minus: phosphor.Icon;
|
|
@@ -288,7 +288,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
288
288
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
289
289
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
290
290
|
label: string;
|
|
291
|
-
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "
|
|
291
|
+
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsThree" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "megaphoneSimple" | "minus" | "minusCircle" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "ticket" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "users" | "warehouse" | "warning" | "warningCircle" | "xCircle" | "keep-space" | undefined;
|
|
292
292
|
href: string;
|
|
293
293
|
target?: string | undefined;
|
|
294
294
|
delayMs?: number | undefined;
|
|
@@ -563,7 +563,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
563
563
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
564
564
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
565
565
|
label: string;
|
|
566
|
-
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "
|
|
566
|
+
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsThree" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "megaphoneSimple" | "minus" | "minusCircle" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "ticket" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "users" | "warehouse" | "warning" | "warningCircle" | "xCircle" | "keep-space" | undefined;
|
|
567
567
|
href?: undefined;
|
|
568
568
|
delayMs?: number | undefined;
|
|
569
569
|
isLoading?: boolean | undefined;
|
|
@@ -10,12 +10,16 @@ export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'descr
|
|
|
10
10
|
* When mode is `test`, it will render a `TEST DATA` Badge to inform user api is working in test mode.
|
|
11
11
|
*/
|
|
12
12
|
mode?: 'test' | 'live';
|
|
13
|
+
/**
|
|
14
|
+
* Renders as overlay
|
|
15
|
+
*/
|
|
16
|
+
overlay?: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* Optional prop to enable scroll to top behavior on location change
|
|
15
19
|
*/
|
|
16
20
|
scrollToTop?: boolean;
|
|
17
21
|
}
|
|
18
|
-
export declare function PageLayout({ title, description, navigationButton, children, actionButton, mode, gap, minHeight, scrollToTop, ...rest }: PageLayoutProps): JSX.Element;
|
|
22
|
+
export declare function PageLayout({ title, description, navigationButton, children, actionButton, mode, gap, minHeight, scrollToTop, overlay, ...rest }: PageLayoutProps): JSX.Element;
|
|
19
23
|
export declare namespace PageLayout {
|
|
20
24
|
var displayName: string;
|
|
21
25
|
}
|
|
@@ -18,7 +18,7 @@ export declare const InputRadioGroup: import('../../atoms/SkeletonTemplate').Ske
|
|
|
18
18
|
showInput?: boolean | undefined;
|
|
19
19
|
viewMode?: "grid" | "list" | "inline" | undefined;
|
|
20
20
|
hint?: {
|
|
21
|
-
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "
|
|
21
|
+
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsThree" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "megaphoneSimple" | "minus" | "minusCircle" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "ticket" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "users" | "warehouse" | "warning" | "warningCircle" | "xCircle" | undefined;
|
|
22
22
|
text: ReactNode;
|
|
23
23
|
} | undefined;
|
|
24
24
|
feedback?: Omit<import("../InputFeedback").InputFeedbackProps, "className"> | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const InputReadonly: import('../atoms/SkeletonTemplate').Skeleton
|
|
|
25
25
|
showCopyAction?: boolean | undefined;
|
|
26
26
|
label?: string | undefined;
|
|
27
27
|
hint?: {
|
|
28
|
-
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "
|
|
28
|
+
icon?: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsThree" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "megaphoneSimple" | "minus" | "minusCircle" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "ticket" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "users" | "warehouse" | "warning" | "warningCircle" | "xCircle" | undefined;
|
|
29
29
|
text: import("react").ReactNode;
|
|
30
30
|
} | undefined;
|
|
31
31
|
feedback?: Omit<import("./InputFeedback").InputFeedbackProps, "className"> | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface OverlayProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the overlay.
|
|
5
|
+
**/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Footer element to be rendered at the bottom of the overlay.
|
|
9
|
+
**/
|
|
10
|
+
footer?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Set a gray background color
|
|
13
|
+
*/
|
|
14
|
+
backgroundColor?: 'light';
|
|
15
|
+
}
|
|
16
|
+
export declare const Overlay: React.FC<OverlayProps>;
|
|
@@ -583,6 +583,7 @@ export declare const presetResourceListItem: {
|
|
|
583
583
|
};
|
|
584
584
|
promotionActive: {
|
|
585
585
|
type: "percentage_discount_promotions";
|
|
586
|
+
reference_origin: "app-promotions";
|
|
586
587
|
id: string;
|
|
587
588
|
created_at: string;
|
|
588
589
|
updated_at: string;
|
|
@@ -595,6 +596,7 @@ export declare const presetResourceListItem: {
|
|
|
595
596
|
};
|
|
596
597
|
promotionDisabled: {
|
|
597
598
|
type: "percentage_discount_promotions";
|
|
599
|
+
reference_origin: "app-promotions";
|
|
598
600
|
id: string;
|
|
599
601
|
created_at: string;
|
|
600
602
|
updated_at: string;
|
|
@@ -608,6 +610,7 @@ export declare const presetResourceListItem: {
|
|
|
608
610
|
};
|
|
609
611
|
promotionUpcoming: {
|
|
610
612
|
type: "free_shipping_promotions";
|
|
613
|
+
reference_origin: "app-promotions";
|
|
611
614
|
id: string;
|
|
612
615
|
created_at: string;
|
|
613
616
|
updated_at: string;
|
|
@@ -619,6 +622,7 @@ export declare const presetResourceListItem: {
|
|
|
619
622
|
};
|
|
620
623
|
promotionDisabledAndUpcoming: {
|
|
621
624
|
type: "free_shipping_promotions";
|
|
625
|
+
reference_origin: "app-promotions";
|
|
622
626
|
id: string;
|
|
623
627
|
created_at: string;
|
|
624
628
|
updated_at: string;
|
|
@@ -631,6 +635,7 @@ export declare const presetResourceListItem: {
|
|
|
631
635
|
};
|
|
632
636
|
promotionExpired: {
|
|
633
637
|
type: "free_gift_promotions";
|
|
638
|
+
reference_origin: "app-promotions";
|
|
634
639
|
id: string;
|
|
635
640
|
created_at: string;
|
|
636
641
|
updated_at: string;
|
|
@@ -641,6 +646,26 @@ export declare const presetResourceListItem: {
|
|
|
641
646
|
active: false;
|
|
642
647
|
};
|
|
643
648
|
promotionWithCoupons: {
|
|
649
|
+
type: "percentage_discount_promotions";
|
|
650
|
+
reference_origin: "app-promotions";
|
|
651
|
+
id: string;
|
|
652
|
+
created_at: string;
|
|
653
|
+
updated_at: string;
|
|
654
|
+
starts_at: string;
|
|
655
|
+
expires_at: string;
|
|
656
|
+
name: string;
|
|
657
|
+
percentage: number;
|
|
658
|
+
total_usage_limit: number;
|
|
659
|
+
active: true;
|
|
660
|
+
coupons: {
|
|
661
|
+
code: string;
|
|
662
|
+
created_at: string;
|
|
663
|
+
id: string;
|
|
664
|
+
type: "coupons";
|
|
665
|
+
updated_at: string;
|
|
666
|
+
}[];
|
|
667
|
+
};
|
|
668
|
+
promotionFromApi: {
|
|
644
669
|
type: "percentage_discount_promotions";
|
|
645
670
|
id: string;
|
|
646
671
|
created_at: string;
|
|
@@ -8,7 +8,7 @@ export declare const ListItemDescription: import('../../atoms/SkeletonTemplate')
|
|
|
8
8
|
}>;
|
|
9
9
|
export declare const ListItemIcon: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
10
10
|
color: "none" | "green" | "orange" | "red" | "gray" | "teal" | "white" | "black" | undefined;
|
|
11
|
-
icon: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "
|
|
11
|
+
icon: "download" | "package" | "tag" | "list" | "x" | "appWindow" | "arrowBendDownRight" | "arrowCircleDown" | "arrowCircleUp" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowsLeftRight" | "arrowSquareOut" | "arrowUpRight" | "arrowUUpLeft" | "asteriskSimple" | "bookOpenText" | "buildings" | "calendarBlank" | "calendarCheck" | "camera" | "caretDown" | "caretRight" | "chat" | "chatCircle" | "check" | "cloudArrowUp" | "creditCard" | "currencyEur" | "dotsThree" | "eye" | "flag" | "folderOpen" | "funnelSimple" | "gearFine" | "gift" | "gitFork" | "githubLogo" | "globeSimple" | "googleLogo" | "hourglass" | "houseSimple" | "info" | "lifebuoy" | "lightbulbFilament" | "linkSimple" | "lockSimple" | "lockSimpleOpen" | "magnifyingGlass" | "megaphoneSimple" | "minus" | "minusCircle" | "pencilSimple" | "percent" | "plus" | "printer" | "pulse" | "pushPin" | "puzzlePiece" | "question" | "receipt" | "rocketLaunch" | "seal" | "shapes" | "shield" | "shoppingBag" | "signOut" | "slackLogo" | "sliders" | "squaresFour" | "stack" | "ticket" | "treeStructure" | "truck" | "tShirt" | "upload" | "user" | "userCircle" | "users" | "warehouse" | "warning" | "warningCircle" | "xCircle";
|
|
12
12
|
delayMs?: number | undefined;
|
|
13
13
|
isLoading?: boolean | undefined;
|
|
14
14
|
}>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { Promotion } from '@commercelayer/sdk';
|
|
2
2
|
import { type ResourceToProps } from '../types';
|
|
3
|
+
export declare const referenceOrigins: {
|
|
4
|
+
readonly appPromotions: "app-promotions";
|
|
5
|
+
};
|
|
3
6
|
export declare const promotionToProps: ResourceToProps<Omit<Promotion, 'type'>>;
|