@commercelayer/app-elements 2.3.1 → 2.3.3
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-Cu4p3vdh.js → InputDateComponent-BpksCVjY.js} +972 -934
- package/dist/{main-CGIaJFpK.js → main-WRXNKuA0.js} +13006 -13439
- package/dist/main.d.ts +1 -1
- package/dist/main.js +48 -48
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Card.d.ts +35 -35
- package/dist/ui/atoms/CodeBlock.d.ts +38 -0
- package/dist/ui/atoms/Icon/icons.d.ts +1 -0
- package/dist/ui/atoms/PageHeading/PageHeading.d.ts +14 -6
- package/dist/ui/atoms/PageHeading/PageHeadingToolbar.d.ts +8 -4
- package/dist/ui/atoms/Section.d.ts +7 -5
- package/dist/ui/composite/ActionButtons/ActionButtons.d.ts +2 -2
- package/dist/ui/composite/CardDialog.d.ts +13 -5
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +36 -36
- package/dist/ui/composite/ListDetailsItem.d.ts +1 -1
- package/dist/ui/composite/PageLayout.d.ts +13 -9
- package/dist/ui/composite/Timeline.d.ts +6 -6
- package/dist/ui/composite/Toolbar.d.ts +2 -2
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroup.d.ts +13 -5
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +10 -6
- package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +22 -9
- package/dist/ui/internals/InputWrapper.d.ts +22 -9
- package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +22 -6
- package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +5 -5
- package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +25 -6
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.d.ts +14 -6
- package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +3 -3
- package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +16 -0
- package/dist/ui/resources/ResourceListItem/common.d.ts +5 -5
- package/dist/ui/resources/ResourceListItem/transformers/index.d.ts +1 -0
- package/dist/ui/resources/ResourceListItem/transformers/skuListItem.d.ts +4 -0
- package/dist/ui/resources/ResourceListItem/types.d.ts +5 -2
- package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +7 -3
- package/dist/ui/resources/ResourceMetadata/ResourceMetadataForm.d.ts +2 -2
- package/dist/ui/resources/ResourceOrderTimeline.d.ts +5 -5
- package/dist/ui/resources/ResourceShipmentParcels.d.ts +3 -3
- package/dist/ui/resources/ResourceTags.d.ts +3 -3
- package/package.json +20 -20
- package/dist/ui/forms/InputReadonly.d.ts +0 -46
- /package/dist/ui/{forms/InputReadonly.test.d.ts → atoms/CodeBlock.test.d.ts} +0 -0
|
@@ -36,8 +36,12 @@ export declare const isUpdatableType: (value: any) => value is UpdatableType;
|
|
|
36
36
|
export declare const ResourceMetadata: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
37
37
|
resourceType: ListableResourceType;
|
|
38
38
|
resourceId: string;
|
|
39
|
-
mode?: ResourceMetadataMode
|
|
39
|
+
mode?: ResourceMetadataMode
|
|
40
|
+
/**
|
|
41
|
+
* Edit overlay configuration
|
|
42
|
+
*/
|
|
43
|
+
| undefined;
|
|
40
44
|
overlay: ResourceMetadataOverlay;
|
|
41
|
-
delayMs?: number;
|
|
42
|
-
isLoading?: boolean;
|
|
45
|
+
delayMs?: number | undefined;
|
|
46
|
+
isLoading?: boolean | undefined;
|
|
43
47
|
}>;
|
|
@@ -11,7 +11,7 @@ export declare const ResourceMetadataForm: import('../../atoms/SkeletonTemplate'
|
|
|
11
11
|
onSubmit: (formValues: ResourceMetadataFormValues) => void;
|
|
12
12
|
isSubmitting: boolean;
|
|
13
13
|
apiError?: any;
|
|
14
|
-
delayMs?: number;
|
|
15
|
-
isLoading?: boolean;
|
|
14
|
+
delayMs?: number | undefined;
|
|
15
|
+
isLoading?: boolean | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
export {};
|
|
@@ -10,12 +10,12 @@ export interface ResourceOrderTimelineProps {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export declare const ResourceOrderTimeline: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
13
|
-
orderId?: string;
|
|
14
|
-
refresh?: boolean;
|
|
13
|
+
orderId?: string | undefined;
|
|
14
|
+
refresh?: boolean | undefined;
|
|
15
15
|
attachmentOption?: {
|
|
16
16
|
onMessage?: (attachment: Attachment) => void;
|
|
17
17
|
referenceOrigin: typeof referenceOrigins.appOrdersNote | typeof referenceOrigins.appShipmentsNote;
|
|
18
|
-
};
|
|
19
|
-
delayMs?: number;
|
|
20
|
-
isLoading?: boolean;
|
|
18
|
+
} | undefined;
|
|
19
|
+
delayMs?: number | undefined;
|
|
20
|
+
isLoading?: boolean | undefined;
|
|
21
21
|
}>;
|
|
@@ -6,7 +6,7 @@ export interface ResourceShipmentParcelsProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const ResourceShipmentParcels: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
8
8
|
shipment: ShipmentResource;
|
|
9
|
-
onRemoveParcel?: (parcelId: string) => void;
|
|
10
|
-
delayMs?: number;
|
|
11
|
-
isLoading?: boolean;
|
|
9
|
+
onRemoveParcel?: ((parcelId: string) => void) | undefined;
|
|
10
|
+
delayMs?: number | undefined;
|
|
11
|
+
isLoading?: boolean | undefined;
|
|
12
12
|
}>;
|
|
@@ -34,8 +34,8 @@ export declare const ResourceTags: import('../atoms/SkeletonTemplate').SkeletonT
|
|
|
34
34
|
resourceType: TaggableResource;
|
|
35
35
|
resourceId: string;
|
|
36
36
|
overlay: TagsOverlay;
|
|
37
|
-
onTagClick?: (tagId: string) => void;
|
|
38
|
-
delayMs?: number;
|
|
39
|
-
isLoading?: boolean;
|
|
37
|
+
onTagClick?: ((tagId: string) => void) | undefined;
|
|
38
|
+
delayMs?: number | undefined;
|
|
39
|
+
isLoading?: boolean | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/app-elements",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -27,55 +27,55 @@
|
|
|
27
27
|
"pnpm": ">=7"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@commercelayer/sdk": "6.
|
|
30
|
+
"@commercelayer/sdk": "6.15.0",
|
|
31
31
|
"@types/lodash": "^4.17.7",
|
|
32
|
-
"@types/react": "^18.3.
|
|
32
|
+
"@types/react": "^18.3.5",
|
|
33
33
|
"@types/react-datepicker": "^6.2.0",
|
|
34
34
|
"@types/react-dom": "^18.3.0",
|
|
35
35
|
"classnames": "^2.5.1",
|
|
36
36
|
"jwt-decode": "^4.0.0",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
38
38
|
"pluralize": "^8.0.0",
|
|
39
|
-
"query-string": "^9.
|
|
39
|
+
"query-string": "^9.1.0",
|
|
40
40
|
"react": "^18.3.1",
|
|
41
41
|
"react-currency-input-field": "^3.8.0",
|
|
42
42
|
"react-datepicker": "^7.3.0",
|
|
43
43
|
"react-dom": "^18.3.1",
|
|
44
|
-
"react-hook-form": "^7.
|
|
44
|
+
"react-hook-form": "^7.53.0",
|
|
45
45
|
"react-select": "^5.8.0",
|
|
46
|
-
"react-tooltip": "^5.
|
|
46
|
+
"react-tooltip": "^5.28.0",
|
|
47
47
|
"swr": "^2.2.5",
|
|
48
48
|
"ts-invariant": "^0.10.3",
|
|
49
|
-
"type-fest": "^4.
|
|
49
|
+
"type-fest": "^4.26.0",
|
|
50
50
|
"zod": "^3.23.8"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@commercelayer/eslint-config-ts-react": "^1.4.5",
|
|
54
54
|
"@hookform/resolvers": "^3.9.0",
|
|
55
55
|
"@phosphor-icons/react": "v2.1.7",
|
|
56
|
-
"@tailwindcss/forms": "^0.5.
|
|
57
|
-
"@testing-library/jest-dom": "^6.
|
|
58
|
-
"@testing-library/react": "^16.0.
|
|
59
|
-
"@types/node": "^20.
|
|
56
|
+
"@tailwindcss/forms": "^0.5.8",
|
|
57
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
58
|
+
"@testing-library/react": "^16.0.1",
|
|
59
|
+
"@types/node": "^20.16.4",
|
|
60
60
|
"@types/pluralize": "^0.0.33",
|
|
61
61
|
"@types/react-gtm-module": "^2.0.3",
|
|
62
62
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
63
63
|
"@vitejs/plugin-react": "^4.3.1",
|
|
64
|
-
"autoprefixer": "^10.4.
|
|
64
|
+
"autoprefixer": "^10.4.20",
|
|
65
65
|
"cross-fetch": "^4.0.0",
|
|
66
66
|
"date-fns": "^3.6.0",
|
|
67
67
|
"date-fns-tz": "^3.1.3",
|
|
68
68
|
"eslint": "^8.57.0",
|
|
69
|
-
"jsdom": "^24.1.
|
|
70
|
-
"msw": "^2.
|
|
71
|
-
"postcss": "^8.4.
|
|
69
|
+
"jsdom": "^24.1.3",
|
|
70
|
+
"msw": "^2.4.2",
|
|
71
|
+
"postcss": "^8.4.45",
|
|
72
72
|
"react-gtm-module": "^2.0.11",
|
|
73
|
-
"tailwindcss": "^3.4.
|
|
74
|
-
"typescript": "^5.5.
|
|
75
|
-
"vite": "^5.3
|
|
73
|
+
"tailwindcss": "^3.4.10",
|
|
74
|
+
"typescript": "^5.5.4",
|
|
75
|
+
"vite": "^5.4.3",
|
|
76
76
|
"vite-plugin-dts": "^3.9.1",
|
|
77
|
-
"vitest": "^2.0.
|
|
78
|
-
"wouter": "^3.3.
|
|
77
|
+
"vitest": "^2.0.5",
|
|
78
|
+
"wouter": "^3.3.5"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@commercelayer/sdk": "^6.x",
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { InputWrapperBaseProps } from '../internals/InputWrapper';
|
|
2
|
-
|
|
3
|
-
export type InputReadonlyProps = InputWrapperBaseProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Optional CSS class names used for the outer wrapper/container element
|
|
6
|
-
*/
|
|
7
|
-
wrapperClassName?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Optional CSS class names used for the input element
|
|
10
|
-
*/
|
|
11
|
-
inputClassName?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Optional prop to define whether to show or not the Copy to clipboard button
|
|
14
|
-
*/
|
|
15
|
-
showCopyAction?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Value to be rendered as simple input text
|
|
18
|
-
*/
|
|
19
|
-
value?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Multi-line content to be rendered as textarea like.
|
|
22
|
-
* It only accepts a string and will respect new lines when passing a template literal (backticks).
|
|
23
|
-
*/
|
|
24
|
-
children?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Show an icon to hide/show content. Content starts hidden if `secret` is true.
|
|
27
|
-
*/
|
|
28
|
-
secret?: boolean;
|
|
29
|
-
};
|
|
30
|
-
export declare const InputReadonly: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
31
|
-
label?: string;
|
|
32
|
-
hint?: {
|
|
33
|
-
icon?: import('../atoms/Hint').HintProps["icon"];
|
|
34
|
-
text: import('../atoms/Hint').HintProps["children"];
|
|
35
|
-
};
|
|
36
|
-
feedback?: Omit<import('./InputFeedback').InputFeedbackProps, "className">;
|
|
37
|
-
inline?: boolean;
|
|
38
|
-
wrapperClassName?: string;
|
|
39
|
-
inputClassName?: string;
|
|
40
|
-
showCopyAction?: boolean;
|
|
41
|
-
value?: string;
|
|
42
|
-
children?: string;
|
|
43
|
-
secret?: boolean;
|
|
44
|
-
delayMs?: number;
|
|
45
|
-
isLoading?: boolean;
|
|
46
|
-
}>;
|
|
File without changes
|