@commercelayer/app-elements 0.0.61 → 0.0.63

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/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ag as o, aS as n, ah as i, ai as l, aj as u, ak as b, al as g, am as d, an as p, aT as m, ao as c, aU as S, ap as T, a9 as I, aM as D, aN as k, aO as y, aq as C, ac as P, ar as h, as as B, at as R, au as A, a$ as v, b0 as O, b1 as L, b2 as f, b4 as F, b5 as x, b6 as N, b7 as w, b8 as M, b9 as V, ba as E, bb as G, bc as H, bi as J, bj as j, bk as q, bl as z, bm as Q, av as U, bp as W, bq as X, br as Y, bs as Z, bt as $, bu as K, ad as _, bv as aa, bw as ea, aw as sa, aV as ta, ax as ra, aW as oa, aX as na, ay as ia, az as la, aA as ua, bn as ba, bx as ga, aY as da, by as pa, bz as ma, aZ as ca, bA as Sa, aB as Ta, aC as Ia, aD as Da, aF as ka, aG as ya, aH as Ca, aI as Pa, bB as ha, bC as Ba, aJ as Ra, aK as Aa, aP as va, aL as Oa, aQ as La, a_ as fa, bo as Fa, ae as xa, aR as Na, W as wa, V as Ma, bd as Va, b3 as Ea, R as Ga, X as Ha, Y as Ja, Z as ja, be as qa, S as za, T as Qa, bD as Ua, bE as Wa, bF as Xa, bG as Ya, bH as Za, bI as $a, $ as Ka, a0 as _a, a1 as ae, a2 as ee, M as se, a3 as te, a4 as re, O as oe, bf as ne, bg as ie, bh as le, N as ue, Q as be, U as ge, a5 as de, aa as pe, ab as me, a6 as ce, a7 as Se, a8 as Te, af as Ie, aE as De } from "./main-60c98089.js";
1
+ import { ag as o, aS as n, ah as i, ai as l, aj as u, ak as b, al as g, am as d, an as p, aT as m, ao as c, aU as S, ap as T, a9 as I, aM as D, aN as k, aO as y, aq as C, ac as P, ar as h, as as B, at as R, au as A, a$ as v, b0 as O, b1 as L, b2 as f, b4 as F, b5 as x, b6 as N, b7 as w, b8 as M, b9 as V, ba as E, bb as G, bc as H, bi as J, bj as j, bk as q, bl as z, bm as Q, av as U, bp as W, bq as X, br as Y, bs as Z, bt as $, bu as K, ad as _, bv as aa, bw as ea, aw as sa, aV as ta, ax as ra, aW as oa, aX as na, ay as ia, az as la, aA as ua, bn as ba, bx as ga, aY as da, by as pa, bz as ma, aZ as ca, bA as Sa, aB as Ta, aC as Ia, aD as Da, aF as ka, aG as ya, aH as Ca, aI as Pa, bB as ha, bC as Ba, aJ as Ra, aK as Aa, aP as va, aL as Oa, aQ as La, a_ as fa, bo as Fa, ae as xa, aR as Na, W as wa, V as Ma, bd as Va, b3 as Ea, R as Ga, X as Ha, Y as Ja, Z as ja, be as qa, S as za, T as Qa, bD as Ua, bE as Wa, bF as Xa, bG as Ya, bH as Za, bI as $a, $ as Ka, a0 as _a, a1 as ae, a2 as ee, M as se, a3 as te, a4 as re, O as oe, bf as ne, bg as ie, bh as le, N as ue, Q as be, U as ge, a5 as de, aa as pe, ab as me, a6 as ce, a7 as Se, a8 as Te, af as Ie, aE as De } from "./main-2d006085.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  import "@commercelayer/sdk";
@@ -1,7 +1,7 @@
1
- import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-173bdc70.js";
1
+ import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-a39befd2.js";
2
2
  import * as B from "react";
3
3
  import { useLayoutEffect as vn, forwardRef as Ir, useContext as Te, createElement as me, Fragment as Be, createContext as Ct, useRef as oe, useState as Ie, useMemo as Ce, useCallback as Y, Component as vr, useEffect as hn } from "react";
4
- import { _ as hr, H as se, K as Cn } from "./main-60c98089.js";
4
+ import { _ as hr, H as se, K as Cn } from "./main-2d006085.js";
5
5
  import { createPortal as Cr } from "react-dom";
6
6
  function V() {
7
7
  return V = Object.assign ? Object.assign.bind() : function(t) {
@@ -16,10 +16,11 @@ interface ValidToken {
16
16
  interface InvalidToken {
17
17
  isValidToken: false;
18
18
  }
19
- export declare function isValidTokenForCurrentApp({ accessToken, kind, domain, isProduction }: {
19
+ export declare function isValidTokenForCurrentApp({ accessToken, kind, domain, isProduction, currentMode }: {
20
20
  accessToken: string;
21
21
  kind: TokenProviderTokenApplicationKind;
22
22
  domain: string;
23
23
  isProduction: boolean;
24
+ currentMode: Mode;
24
25
  }): Promise<ValidToken | InvalidToken>;
25
26
  export {};
@@ -1,12 +1,14 @@
1
- interface Props {
2
- /**
3
- * css class name
4
- */
5
- className?: string;
1
+ export interface ContainerProps {
6
2
  /**
7
3
  * set min height as screen size. Default is `true`.
8
4
  */
9
5
  minHeight?: boolean;
6
+ }
7
+ interface Props extends ContainerProps {
8
+ /**
9
+ * css class name
10
+ */
11
+ className?: string;
10
12
  /**
11
13
  * content to be rendered inside the container
12
14
  */
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- export type TextVariant = 'danger' | 'success' | 'primary' | 'warning' | 'info' | 'plain';
2
+ export type TextVariant = 'danger' | 'success' | 'primary' | 'warning' | 'info' | 'plain' | 'disabled';
3
3
  export type TextSize = 'small' | 'regular' | 'large' | 'inherit';
4
4
  export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold' | 'inherit';
5
5
  export type TextAlignment = 'center' | 'left' | 'right' | 'inherit';
@@ -1,6 +1,7 @@
1
- import { type ReactNode } from 'react';
1
+ import type { ContainerProps } from '../atoms/Container';
2
2
  import { type PageHeadingProps } from '../atoms/PageHeading';
3
- export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'description' | 'onGoBack' | 'actionButton' | 'gap'> {
3
+ import { type ReactNode } from 'react';
4
+ export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'description' | 'onGoBack' | 'actionButton' | 'gap'>, Pick<ContainerProps, 'minHeight'> {
4
5
  /**
5
6
  * Page content
6
7
  */
@@ -10,7 +11,7 @@ export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'descr
10
11
  */
11
12
  mode?: 'test' | 'live';
12
13
  }
13
- declare function PageLayout({ title, description, onGoBack, children, actionButton, mode, gap, ...rest }: PageLayoutProps): JSX.Element;
14
+ declare function PageLayout({ title, description, onGoBack, children, actionButton, mode, gap, minHeight, ...rest }: PageLayoutProps): JSX.Element;
14
15
  declare namespace PageLayout {
15
16
  var displayName: string;
16
17
  }
@@ -9,7 +9,7 @@ interface ListDetailsItemProps {
9
9
  * It represent the value.
10
10
  * Most of the type it should be a `<CopyToClipboard>` component
11
11
  */
12
- children: ReactNode;
12
+ children?: ReactNode;
13
13
  /**
14
14
  * To show the skeleton item while `children` ar not yet. Label is always rendered
15
15
  */
@@ -27,8 +27,8 @@ interface ListDetailsItemProps {
27
27
  */
28
28
  gutter?: 'none';
29
29
  }
30
- declare function ListDetailsItem({ label, children, isLoading, border, gutter, childrenAlign, ...rest }: ListDetailsItemProps): JSX.Element;
31
- declare namespace ListDetailsItem {
30
+ export declare function ListDetailsItem({ label, children, isLoading, border, gutter, childrenAlign, ...rest }: ListDetailsItemProps): JSX.Element;
31
+ export declare namespace ListDetailsItem {
32
32
  var displayName: string;
33
33
  }
34
- export { ListDetailsItem };
34
+ export {};
@@ -1,4 +1,4 @@
1
- import { _ as i } from "./main-60c98089.js";
1
+ import { _ as i } from "./main-2d006085.js";
2
2
  function p(e, t) {
3
3
  if (i(e) !== "object" || e === null)
4
4
  return e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"