@commercelayer/app-elements 1.6.5 → 1.7.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.
@@ -1,5 +1,4 @@
1
1
  import { type Address } from '@commercelayer/sdk';
2
- type ResourceAddressEditPosition = 'side' | 'bottom';
3
2
  export interface ResourceAddressProps {
4
3
  /**
5
4
  * Resource of type `Address`
@@ -15,10 +14,6 @@ export interface ResourceAddressProps {
15
14
  * requested resource before to render editable related functionalities.
16
15
  */
17
16
  editable?: boolean;
18
- /**
19
- * Optional setting to define edit button position. It can be set to 'side' or 'bottom'.
20
- */
21
- editPosition?: ResourceAddressEditPosition;
22
17
  /**
23
18
  * Optional setting to define if given `Address` `billing_info` data is visible.
24
19
  */
@@ -31,9 +26,7 @@ export declare const ResourceAddress: import('../../atoms/SkeletonTemplate').Ske
31
26
  resource: Address;
32
27
  title?: string | undefined;
33
28
  editable?: boolean | undefined;
34
- editPosition?: ResourceAddressEditPosition | undefined;
35
29
  showBillingInfo?: boolean | undefined;
36
30
  delayMs?: number | undefined;
37
31
  isLoading?: boolean | undefined;
38
32
  }>;
39
- export {};
@@ -35,4 +35,23 @@ export declare const presetAddresses: {
35
35
  created_at: string;
36
36
  updated_at: string;
37
37
  };
38
+ withNotes: {
39
+ type: "addresses";
40
+ id: string;
41
+ company: string;
42
+ first_name: string;
43
+ last_name: string;
44
+ full_name: string;
45
+ line_1: string;
46
+ line_2: string;
47
+ city: string;
48
+ country_code: string;
49
+ state_code: string;
50
+ zip_code: string;
51
+ phone: string;
52
+ billing_info: string;
53
+ created_at: string;
54
+ updated_at: string;
55
+ notes: string;
56
+ };
38
57
  };
@@ -12,6 +12,7 @@ declare const addressFormSchema: z.ZodObject<{
12
12
  country_code: z.ZodString;
13
13
  phone: z.ZodString;
14
14
  billing_info: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
16
  }, "strip", z.ZodTypeAny, {
16
17
  city: string;
17
18
  country_code: string;
@@ -24,6 +25,7 @@ declare const addressFormSchema: z.ZodObject<{
24
25
  line_2?: string | null | undefined;
25
26
  zip_code?: string | null | undefined;
26
27
  billing_info?: string | null | undefined;
28
+ notes?: string | null | undefined;
27
29
  }, {
28
30
  city: string;
29
31
  country_code: string;
@@ -36,6 +38,7 @@ declare const addressFormSchema: z.ZodObject<{
36
38
  line_2?: string | null | undefined;
37
39
  zip_code?: string | null | undefined;
38
40
  billing_info?: string | null | undefined;
41
+ notes?: string | null | undefined;
39
42
  }>;
40
43
  export type ResourceAddressFormValues = z.infer<typeof addressFormSchema>;
41
44
  export declare const ResourceAddressForm: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
@@ -24,7 +24,6 @@ export declare const presetLineItems: {
24
24
  created_at: string;
25
25
  updated_at: string;
26
26
  sku_code: string;
27
- image_url: string;
28
27
  name: string;
29
28
  quantity: number;
30
29
  formatted_total_amount: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "1.6.5",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [