@veeqo/transfigure 1.1.9 → 1.2.0
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/index10.cjs +1 -1
- package/dist/index10.js +57 -39
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +12 -26
- package/dist/index101.cjs +18 -11
- package/dist/index101.js +20 -12
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +24 -15
- package/dist/index103.cjs +12 -1
- package/dist/index103.js +16 -24
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +2 -19
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +18 -7
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +7 -63
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +60 -26
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +30 -2
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index113.cjs +7 -1
- package/dist/index113.js +10 -63
- package/dist/index114.cjs +1 -7
- package/dist/index114.js +63 -10
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +2 -2
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +2 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +4 -4
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +13 -9
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +2 -118
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -19
- package/dist/index83.cjs +3 -1
- package/dist/index83.js +13 -4
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +9 -41
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +4 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +41 -2
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +8 -8
- package/dist/index88.cjs +1 -3
- package/dist/index88.js +117 -13
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +19 -9
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +2 -2
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +2 -2
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +31 -19
- package/dist/index98.cjs +1 -19
- package/dist/index98.js +28 -23
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +19 -31
- package/dist/storybookHelpers/apiMocks/brands.d.ts +17 -0
- package/dist/storybookHelpers/apiMocks/channels.d.ts +701 -0
- package/dist/storybookHelpers/apiMocks/custom_views.d.ts +26 -0
- package/dist/storybookHelpers/handlers.d.ts +2 -0
- package/dist/types.d.ts +1 -0
- package/dist/utils/getAsyncOptions/getAsyncOptions.d.ts +1 -1
- package/package.json +1 -1
package/dist/index97.js
CHANGED
|
@@ -1,23 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useMemo as _ } from "react";
|
|
2
|
+
import p from "swr";
|
|
3
|
+
import { useStores as w } from "./index61.js";
|
|
4
|
+
import { useBusinessLogic as R } from "./index8.js";
|
|
5
|
+
import { useViews as g } from "./index62.js";
|
|
6
|
+
import { fetcherV2 as E } from "./index55.js";
|
|
7
|
+
const V = () => {
|
|
8
|
+
var i;
|
|
9
|
+
const { Filters: { queryParams: s } } = w(), { TABLE_DATA_URL: a, PAGE_NUMBER_FILTER_ID: r, PAGE_SIZE_FILTER_ID: n } = R(), { isLoading: u } = g(), c = _(() => {
|
|
10
|
+
const e = new URLSearchParams(s);
|
|
11
|
+
return e.set(r, "1"), e.set(n, "1"), e.toString();
|
|
12
|
+
}, [s, r, n]), m = !u ? `${a}?${c}` : null, {
|
|
13
|
+
data: t,
|
|
14
|
+
error: l,
|
|
15
|
+
isLoading: L,
|
|
16
|
+
mutate: d
|
|
17
|
+
} = p(
|
|
18
|
+
[m, { includeMeta: !0 }],
|
|
19
|
+
([e, f]) => E(e, f),
|
|
13
20
|
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: "Create view"
|
|
21
|
+
revalidateOnFocus: !1,
|
|
22
|
+
revalidateOnReconnect: !1,
|
|
23
|
+
keepPreviousData: !0
|
|
18
24
|
}
|
|
19
|
-
)
|
|
20
|
-
|
|
25
|
+
), o = t == null ? void 0 : t.meta;
|
|
26
|
+
return {
|
|
27
|
+
viewCounts: (i = o == null ? void 0 : o.page) == null ? void 0 : i.total_count,
|
|
28
|
+
error: l,
|
|
29
|
+
isLoadingViewCounts: L,
|
|
30
|
+
mutate: d
|
|
31
|
+
};
|
|
32
|
+
};
|
|
21
33
|
export {
|
|
22
|
-
|
|
34
|
+
V as useViewCounts
|
|
23
35
|
};
|
package/dist/index98.cjs
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
margin: ${e.theme.sizes.xs};
|
|
3
|
-
min-width: 180px;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
font-size: ${e.theme.text.body.fontSize};
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
background-color: ${e.theme.colors.neutral.grey.lightest};
|
|
9
|
-
color: ${e.theme.colors.secondary.blue.base};
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
`,n=o.default(e.Card.Surface).attrs(()=>({role:"listbox",elevation:4}))`
|
|
13
|
-
margin-top: ${e.theme.sizes.xs};
|
|
14
|
-
background-color: white;
|
|
15
|
-
`,l=o.default.hr`
|
|
16
|
-
width: 100%;
|
|
17
|
-
border-top: 1px solid ${e.theme.colors.neutral.grey.dark};
|
|
18
|
-
margin: 0;
|
|
19
|
-
`;exports.Divider=l;exports.Item=i;exports.MenuItems=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),r=({shouldShow:a,viewName:n,onCancel:t,onDelete:o})=>e.jsx(i.Modal,{headerTitle:`Delete '${n}' view?`,"data-testid":"act-react-listing-custom-confirmation-popup",variant:"sm",shouldShow:a,onClose:t,rightActions:[{className:"act-react-listing-custom-confirmation-popup-cancel",label:"Cancel",onClick:t,variant:"default"},{className:"act-react-listing-custom-confirmation-popup-delete",label:"Delete",onClick:o,variant:"primaryDestructive"}],showHeaderCloseButton:!0,children:e.jsx(i.Text,{variant:"body",children:"This cannot be undone."})});exports.Confirmation=r;
|
package/dist/index98.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as n, Text as r } from "@veeqo/ui";
|
|
3
|
+
const s = ({ shouldShow: a, viewName: i, onCancel: t, onDelete: o }) => /* @__PURE__ */ e(
|
|
4
|
+
n,
|
|
5
|
+
{
|
|
6
|
+
headerTitle: `Delete '${i}' view?`,
|
|
7
|
+
"data-testid": "act-react-listing-custom-confirmation-popup",
|
|
8
|
+
variant: "sm",
|
|
9
|
+
shouldShow: a,
|
|
10
|
+
onClose: t,
|
|
11
|
+
rightActions: [
|
|
12
|
+
{
|
|
13
|
+
className: "act-react-listing-custom-confirmation-popup-cancel",
|
|
14
|
+
label: "Cancel",
|
|
15
|
+
onClick: t,
|
|
16
|
+
variant: "default"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
className: "act-react-listing-custom-confirmation-popup-delete",
|
|
20
|
+
label: "Delete",
|
|
21
|
+
onClick: o,
|
|
22
|
+
variant: "primaryDestructive"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
showHeaderCloseButton: !0,
|
|
26
|
+
children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
|
|
13
27
|
}
|
|
14
|
-
|
|
15
|
-
margin-top: ${o.sizes.xs};
|
|
16
|
-
background-color: white;
|
|
17
|
-
`, l = t.hr`
|
|
18
|
-
width: 100%;
|
|
19
|
-
border-top: 1px solid ${o.colors.neutral.grey.dark};
|
|
20
|
-
margin: 0;
|
|
21
|
-
`;
|
|
28
|
+
);
|
|
22
29
|
export {
|
|
23
|
-
|
|
24
|
-
n as Item,
|
|
25
|
-
a as MenuItems
|
|
30
|
+
s as Confirmation
|
|
26
31
|
};
|
package/dist/index99.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@veeqo/ui"),i=require("./index104.cjs"),n=r.theme.colors.secondary.blue.base,a=({onClick:t})=>e.jsx(i.Notification,{children:e.jsx(i.Pill,{children:e.jsxs(r.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(i.Glyph,{ariaLabel:"info",name:"info",color:n}),e.jsxs(i.Wrap,{children:[e.jsx(i.Text,{variant:"body",margin:"0 4px 0 0",children:"You are currently in a"}),e.jsx(i.Bold,{variant:"bodyBoldDark",children:"draft view"}),e.jsx(i.Hint,{variant:"hintText",children:"Apply filters and save these by creating a custom view"})]}),e.jsx(i.Button,{variant:"primary",onClick:t,size:"sm",children:"Create view"})]})})});exports.DraftPill=a;
|
package/dist/index99.js
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
data: t,
|
|
14
|
-
error: l,
|
|
15
|
-
isLoading: L,
|
|
16
|
-
mutate: d
|
|
17
|
-
} = p(
|
|
18
|
-
[m, { includeMeta: !0 }],
|
|
19
|
-
([e, f]) => E(e, f),
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as a, theme as n } from "@veeqo/ui";
|
|
3
|
+
import { Notification as t, Pill as o, Glyph as l, Wrap as c, Text as d, Bold as s, Hint as h, Button as m } from "./index104.js";
|
|
4
|
+
const p = n.colors.secondary.blue.base, b = ({ onClick: e }) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(o, { children: /* @__PURE__ */ i(a, { direction: "horizontal", alignY: "center", children: [
|
|
5
|
+
/* @__PURE__ */ r(l, { ariaLabel: "info", name: "info", color: p }),
|
|
6
|
+
/* @__PURE__ */ i(c, { children: [
|
|
7
|
+
/* @__PURE__ */ r(d, { variant: "body", margin: "0 4px 0 0", children: "You are currently in a" }),
|
|
8
|
+
/* @__PURE__ */ r(s, { variant: "bodyBoldDark", children: "draft view" }),
|
|
9
|
+
/* @__PURE__ */ r(h, { variant: "hintText", children: "Apply filters and save these by creating a custom view" })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ r(
|
|
12
|
+
m,
|
|
20
13
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
variant: "primary",
|
|
15
|
+
onClick: e,
|
|
16
|
+
size: "sm",
|
|
17
|
+
children: "Create view"
|
|
24
18
|
}
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
viewCounts: (i = o == null ? void 0 : o.page) == null ? void 0 : i.total_count,
|
|
28
|
-
error: l,
|
|
29
|
-
isLoadingViewCounts: L,
|
|
30
|
-
mutate: d
|
|
31
|
-
};
|
|
32
|
-
};
|
|
19
|
+
)
|
|
20
|
+
] }) }) });
|
|
33
21
|
export {
|
|
34
|
-
|
|
22
|
+
b as DraftPill
|
|
35
23
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const brands: {
|
|
2
|
+
brands: {
|
|
3
|
+
seller_account_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
uuid: string;
|
|
6
|
+
id: string;
|
|
7
|
+
}[];
|
|
8
|
+
total_count: number;
|
|
9
|
+
meta: {
|
|
10
|
+
page: {
|
|
11
|
+
current: number;
|
|
12
|
+
size: number;
|
|
13
|
+
total_pages: number;
|
|
14
|
+
total_count: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|