@commercelayer/app-elements 2.10.2 → 2.12.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/CodeEditorComponent-CAoaYssw.js +780 -0
- package/dist/{InputDateComponent-BAwkbhQN.js → InputDateComponent-FQmQQLVC.js} +1 -1
- package/dist/{main-ZcG-83A9.js → main-Dw5hHSwr.js} +5881 -5671
- package/dist/main.d.ts +2 -0
- package/dist/main.js +175 -171
- package/dist/style.css +1 -1
- package/dist/ui/forms/CodeEditor/CodeEditor.d.ts +2 -0
- package/dist/ui/forms/CodeEditor/CodeEditorComponent.d.ts +32 -0
- package/dist/ui/forms/CodeEditor/HookedCodeEditor.d.ts +8 -0
- package/dist/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.d.ts +28 -0
- package/dist/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.test.d.ts +1 -0
- package/dist/ui/forms/CodeEditor/index.d.ts +3 -0
- package/dist/ui/forms/InputCheckbox/InputCheckbox.d.ts +1 -0
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +2 -1
- package/dist/ui/forms/InputSelect/InputSelect.d.ts +4 -0
- package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +17 -3
- package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +2 -1
- package/dist/ui/resources/ResourceAddress/useResourceAddressOverlay.d.ts +3 -2
- package/dist/ui/resources/ResourcePaymentMethod.d.ts +18 -0
- package/dist/ui/resources/ResourcePaymentMethod.mocks.d.ts +153 -0
- package/dist/ui/resources/ResourcePaymentMethod.test.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export declare const orderWithoutPaymentSourceResponse: {
|
|
2
|
+
id: string;
|
|
3
|
+
type: "orders";
|
|
4
|
+
created_at: string;
|
|
5
|
+
updated_at: string;
|
|
6
|
+
status: "approved";
|
|
7
|
+
payment_status: "paid";
|
|
8
|
+
fulfillment_status: "fulfilled";
|
|
9
|
+
payment_method: {
|
|
10
|
+
id: string;
|
|
11
|
+
type: "payment_methods";
|
|
12
|
+
name: string;
|
|
13
|
+
payment_source_type: "adyen_payments";
|
|
14
|
+
currency_code: string;
|
|
15
|
+
price_amount_cents: number;
|
|
16
|
+
price_amount_float: number;
|
|
17
|
+
formatted_price_amount: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
};
|
|
21
|
+
payment_source: {
|
|
22
|
+
id: string;
|
|
23
|
+
type: "adyen_payments";
|
|
24
|
+
public_key: null;
|
|
25
|
+
payment_methods: {};
|
|
26
|
+
mismatched_amounts: false;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const orderWithPaymentSourceResponse: {
|
|
32
|
+
id: string;
|
|
33
|
+
type: "orders";
|
|
34
|
+
created_at: string;
|
|
35
|
+
updated_at: string;
|
|
36
|
+
status: "approved";
|
|
37
|
+
payment_status: "paid";
|
|
38
|
+
fulfillment_status: "fulfilled";
|
|
39
|
+
payment_method: {
|
|
40
|
+
id: string;
|
|
41
|
+
type: "payment_methods";
|
|
42
|
+
name: string;
|
|
43
|
+
payment_source_type: "adyen_payments";
|
|
44
|
+
currency_code: string;
|
|
45
|
+
price_amount_cents: number;
|
|
46
|
+
price_amount_float: number;
|
|
47
|
+
formatted_price_amount: string;
|
|
48
|
+
created_at: string;
|
|
49
|
+
updated_at: string;
|
|
50
|
+
};
|
|
51
|
+
payment_source: {
|
|
52
|
+
id: string;
|
|
53
|
+
type: "adyen_payments";
|
|
54
|
+
public_key: null;
|
|
55
|
+
payment_methods: {
|
|
56
|
+
paymentMethods: ({
|
|
57
|
+
name: string;
|
|
58
|
+
type: string;
|
|
59
|
+
brands: string[];
|
|
60
|
+
details: ({
|
|
61
|
+
key: string;
|
|
62
|
+
type: string;
|
|
63
|
+
optional?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
key: string;
|
|
66
|
+
type: string;
|
|
67
|
+
optional: boolean;
|
|
68
|
+
})[];
|
|
69
|
+
configuration?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
name: string;
|
|
72
|
+
type: string;
|
|
73
|
+
configuration: {
|
|
74
|
+
intent: string;
|
|
75
|
+
merchantId: string;
|
|
76
|
+
};
|
|
77
|
+
brands?: undefined;
|
|
78
|
+
details?: undefined;
|
|
79
|
+
})[];
|
|
80
|
+
};
|
|
81
|
+
payment_response: {
|
|
82
|
+
amount: {
|
|
83
|
+
value: number;
|
|
84
|
+
currency: string;
|
|
85
|
+
};
|
|
86
|
+
resultCode: string;
|
|
87
|
+
fraudResult: {
|
|
88
|
+
results: {
|
|
89
|
+
FraudCheckResult: {
|
|
90
|
+
name: string;
|
|
91
|
+
checkId: number;
|
|
92
|
+
accountScore: number;
|
|
93
|
+
};
|
|
94
|
+
}[];
|
|
95
|
+
accountScore: number;
|
|
96
|
+
};
|
|
97
|
+
pspReference: string;
|
|
98
|
+
additionalData: {
|
|
99
|
+
cardSummary: string;
|
|
100
|
+
paymentMethod: string;
|
|
101
|
+
cardHolderName: string;
|
|
102
|
+
fraudResultType: string;
|
|
103
|
+
fraudManualReview: string;
|
|
104
|
+
paymentMethodVariant: string;
|
|
105
|
+
};
|
|
106
|
+
merchantReference: string;
|
|
107
|
+
};
|
|
108
|
+
mismatched_amounts: false;
|
|
109
|
+
payment_instrument: {
|
|
110
|
+
issuer_type: string;
|
|
111
|
+
card_type: string;
|
|
112
|
+
card_last_digits: string;
|
|
113
|
+
card_holder_name: string;
|
|
114
|
+
};
|
|
115
|
+
created_at: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export declare const customerPaymentSource: {
|
|
120
|
+
id: string;
|
|
121
|
+
type: "customer_payment_sources";
|
|
122
|
+
name: string;
|
|
123
|
+
created_at: string;
|
|
124
|
+
updated_at: string;
|
|
125
|
+
payment_source: {
|
|
126
|
+
id: string;
|
|
127
|
+
type: "braintree_payments";
|
|
128
|
+
client_token: string;
|
|
129
|
+
payment_method_nonce: string;
|
|
130
|
+
payment_id: null;
|
|
131
|
+
local: null;
|
|
132
|
+
options: {
|
|
133
|
+
id: string;
|
|
134
|
+
card: {
|
|
135
|
+
brand: string;
|
|
136
|
+
last4: string;
|
|
137
|
+
exp_year: string;
|
|
138
|
+
exp_month: string;
|
|
139
|
+
};
|
|
140
|
+
payment_method_token: string;
|
|
141
|
+
};
|
|
142
|
+
payment_instrument: {
|
|
143
|
+
issuer: string;
|
|
144
|
+
issuer_type: string;
|
|
145
|
+
card_type: string;
|
|
146
|
+
card_last_digits: string;
|
|
147
|
+
card_expiry_month: string;
|
|
148
|
+
card_expiry_year: string;
|
|
149
|
+
};
|
|
150
|
+
created_at: string;
|
|
151
|
+
updated_at: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/app-elements",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@commercelayer/sdk": "6.22.0",
|
|
31
|
+
"@monaco-editor/react": "4.6.0",
|
|
31
32
|
"@types/lodash": "^4.17.10",
|
|
32
33
|
"@types/react": "^18.3.11",
|
|
33
34
|
"@types/react-datepicker": "^7.0.0",
|