@ingridab/sdk 0.2.0 → 0.3.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/README.md +5 -3
- package/dist/LICENSES.md +1 -35
- package/dist/index.d.ts +962 -1055
- package/dist/index.js +574 -4137
- package/dist/internal.d.ts +42 -0
- package/package.json +8 -8
package/dist/internal.d.ts
CHANGED
|
@@ -127,11 +127,18 @@ export declare const createDeliveryMolecule: ({ mode, name, customization, }: Mo
|
|
|
127
127
|
showCustomInfoText?: boolean;
|
|
128
128
|
showCustomText?: boolean;
|
|
129
129
|
showDiscountedPrice?: boolean;
|
|
130
|
+
zeroPriceDisplay?: "free" | "0";
|
|
130
131
|
showFreeShippingIndicator?: boolean;
|
|
131
132
|
showPrice?: boolean;
|
|
132
133
|
showRadioIndicator?: boolean;
|
|
133
134
|
showReturnPromise?: boolean;
|
|
134
135
|
showShippingLogo?: boolean;
|
|
136
|
+
showDeliveryTime?: boolean;
|
|
137
|
+
showLocationSection?: boolean;
|
|
138
|
+
showLocationAddress?: boolean;
|
|
139
|
+
showLocationCarrierName?: boolean;
|
|
140
|
+
showLocationType?: boolean;
|
|
141
|
+
categoryLabel?: "name" | "type";
|
|
135
142
|
};
|
|
136
143
|
location?: {
|
|
137
144
|
gaplessList?: boolean;
|
|
@@ -140,6 +147,15 @@ export declare const createDeliveryMolecule: ({ mode, name, customization, }: Mo
|
|
|
140
147
|
mapFitboundsMaxZoom?: number;
|
|
141
148
|
mapPosition?: "start" | "end";
|
|
142
149
|
mapToggleEnabled?: boolean;
|
|
150
|
+
zeroPriceDisplay?: "free" | "0";
|
|
151
|
+
displayMode?: "popup" | "inline";
|
|
152
|
+
selectionControl?: "radio" | "disabled";
|
|
153
|
+
selectionAlignment?: "left" | "right";
|
|
154
|
+
showLocationAddress?: boolean;
|
|
155
|
+
showCarrierName?: boolean;
|
|
156
|
+
showLocationType?: boolean;
|
|
157
|
+
showOpeningHours?: boolean;
|
|
158
|
+
showPrice?: boolean;
|
|
143
159
|
};
|
|
144
160
|
productList?: {
|
|
145
161
|
defaultView?: "off" | "list" | "summary";
|
|
@@ -148,10 +164,14 @@ export declare const createDeliveryMolecule: ({ mode, name, customization, }: Mo
|
|
|
148
164
|
showPrice?: boolean;
|
|
149
165
|
showQuantity?: boolean;
|
|
150
166
|
summaryText?: "none" | "products" | "firstProductAndMore";
|
|
167
|
+
zeroPriceDisplay?: "free" | "0";
|
|
151
168
|
};
|
|
152
169
|
summary?: {
|
|
153
170
|
previewAddons?: boolean;
|
|
154
171
|
showFreeShippingIndicator?: boolean;
|
|
172
|
+
showDiscountedPrice?: boolean;
|
|
173
|
+
zeroPriceDisplay?: "free" | "0";
|
|
174
|
+
categoryLabel?: "name" | "type";
|
|
155
175
|
};
|
|
156
176
|
} | undefined;
|
|
157
177
|
params: {
|
|
@@ -190,6 +210,7 @@ export declare const createFreeShippingIndicatorMolecule: ({ name, customization
|
|
|
190
210
|
type: "freeShippingIndicator";
|
|
191
211
|
customization: {
|
|
192
212
|
showExhaustedLevelsMessage?: boolean;
|
|
213
|
+
zeroPriceDisplay?: "free" | "0";
|
|
193
214
|
} | undefined;
|
|
194
215
|
params: {
|
|
195
216
|
name: string;
|
|
@@ -210,11 +231,18 @@ declare type DeliveryMoleculeParams = {
|
|
|
210
231
|
showCustomInfoText?: boolean;
|
|
211
232
|
showCustomText?: boolean;
|
|
212
233
|
showDiscountedPrice?: boolean;
|
|
234
|
+
zeroPriceDisplay?: 'free' | '0';
|
|
213
235
|
showFreeShippingIndicator?: boolean;
|
|
214
236
|
showPrice?: boolean;
|
|
215
237
|
showRadioIndicator?: boolean;
|
|
216
238
|
showReturnPromise?: boolean;
|
|
217
239
|
showShippingLogo?: boolean;
|
|
240
|
+
showDeliveryTime?: boolean;
|
|
241
|
+
showLocationSection?: boolean;
|
|
242
|
+
showLocationAddress?: boolean;
|
|
243
|
+
showLocationCarrierName?: boolean;
|
|
244
|
+
showLocationType?: boolean;
|
|
245
|
+
categoryLabel?: 'name' | 'type';
|
|
218
246
|
};
|
|
219
247
|
location?: {
|
|
220
248
|
gaplessList?: boolean;
|
|
@@ -223,6 +251,15 @@ declare type DeliveryMoleculeParams = {
|
|
|
223
251
|
mapFitboundsMaxZoom?: number;
|
|
224
252
|
mapPosition?: 'start' | 'end';
|
|
225
253
|
mapToggleEnabled?: boolean;
|
|
254
|
+
zeroPriceDisplay?: 'free' | '0';
|
|
255
|
+
displayMode?: 'popup' | 'inline';
|
|
256
|
+
selectionControl?: 'radio' | 'disabled';
|
|
257
|
+
selectionAlignment?: 'left' | 'right';
|
|
258
|
+
showLocationAddress?: boolean;
|
|
259
|
+
showCarrierName?: boolean;
|
|
260
|
+
showLocationType?: boolean;
|
|
261
|
+
showOpeningHours?: boolean;
|
|
262
|
+
showPrice?: boolean;
|
|
226
263
|
};
|
|
227
264
|
productList?: {
|
|
228
265
|
defaultView?: 'off' | 'list' | 'summary';
|
|
@@ -231,10 +268,14 @@ declare type DeliveryMoleculeParams = {
|
|
|
231
268
|
showPrice?: boolean;
|
|
232
269
|
showQuantity?: boolean;
|
|
233
270
|
summaryText?: 'none' | 'products' | 'firstProductAndMore';
|
|
271
|
+
zeroPriceDisplay?: 'free' | '0';
|
|
234
272
|
};
|
|
235
273
|
summary?: {
|
|
236
274
|
previewAddons?: boolean;
|
|
237
275
|
showFreeShippingIndicator?: boolean;
|
|
276
|
+
showDiscountedPrice?: boolean;
|
|
277
|
+
zeroPriceDisplay?: 'free' | '0';
|
|
278
|
+
categoryLabel?: 'name' | 'type';
|
|
238
279
|
};
|
|
239
280
|
};
|
|
240
281
|
};
|
|
@@ -244,6 +285,7 @@ declare type FreeShippingIndicatorParams = {
|
|
|
244
285
|
deliveryId?: string;
|
|
245
286
|
customization?: {
|
|
246
287
|
showExhaustedLevelsMessage?: boolean;
|
|
288
|
+
zeroPriceDisplay?: 'free' | '0';
|
|
247
289
|
};
|
|
248
290
|
};
|
|
249
291
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ingridab/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"registry": "https://registry.npmjs.org"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tanstack/
|
|
36
|
-
"jotai": "2.13.1",
|
|
37
|
-
"axios": "1.16.1",
|
|
38
|
-
"i18next": "25.5.2",
|
|
39
|
-
"zod": "3.24.1"
|
|
35
|
+
"@tanstack/query-core": "^5.100.14",
|
|
36
|
+
"jotai": "^2.13.1",
|
|
37
|
+
"axios": "^1.16.1",
|
|
38
|
+
"i18next": "^25.5.2",
|
|
39
|
+
"zod": "^3.24.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@microsoft/api-extractor": "7.58.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"typedoc-plugin-markdown": "4.11.0",
|
|
49
49
|
"vite": "7.3.1",
|
|
50
50
|
"vite-plugin-dts": "4.5.4",
|
|
51
|
-
"vitest": "4.0
|
|
51
|
+
"vitest": "4.1.0",
|
|
52
|
+
"@ingridab/api-types": "0.3.0",
|
|
52
53
|
"@ingridab/bergman-system": "0.1.1",
|
|
53
|
-
"@ingridab/api-types": "0.2.0",
|
|
54
54
|
"@ingridab/config": "^0.0.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|