shopify-accelerate-app 1.4.4 → 1.4.6
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/@types/shopify.ts
CHANGED
|
@@ -290,21 +290,29 @@ export type ShopifyArticle = {
|
|
|
290
290
|
label: string;
|
|
291
291
|
type: "article";
|
|
292
292
|
info?: string;
|
|
293
|
-
visible_if?: `{{${string}}}`;
|
|
293
|
+
// visible_if?: `{{${string}}}`;
|
|
294
|
+
};
|
|
295
|
+
export type ShopifyArticle_list = {
|
|
296
|
+
id: string;
|
|
297
|
+
label: string;
|
|
298
|
+
type: "article_list";
|
|
299
|
+
info?: string;
|
|
300
|
+
limit?: number;
|
|
301
|
+
// visible_if?: `{{${string}}}`;
|
|
294
302
|
};
|
|
295
303
|
export type ShopifyBlog = {
|
|
296
304
|
id: string;
|
|
297
305
|
label: string;
|
|
298
306
|
type: "blog";
|
|
299
307
|
info?: string;
|
|
300
|
-
visible_if?: `{{${string}}}`;
|
|
308
|
+
// visible_if?: `{{${string}}}`;
|
|
301
309
|
};
|
|
302
310
|
export type ShopifyCollection = {
|
|
303
311
|
id: string;
|
|
304
312
|
label: string;
|
|
305
313
|
type: "collection";
|
|
306
314
|
info?: string;
|
|
307
|
-
visible_if?: `{{${string}}}`;
|
|
315
|
+
// visible_if?: `{{${string}}}`;
|
|
308
316
|
};
|
|
309
317
|
export type ShopifyCollection_list = {
|
|
310
318
|
id: string;
|
|
@@ -312,12 +320,32 @@ export type ShopifyCollection_list = {
|
|
|
312
320
|
type: "collection_list";
|
|
313
321
|
info?: string;
|
|
314
322
|
limit?: number;
|
|
315
|
-
visible_if?: `{{${string}}}`;
|
|
323
|
+
// visible_if?: `{{${string}}}`;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export type ShopifyMetaobject = {
|
|
327
|
+
id: string;
|
|
328
|
+
label: string;
|
|
329
|
+
type: "metaobject";
|
|
330
|
+
info?: string;
|
|
331
|
+
// visible_if?: `{{${string}}}`;
|
|
332
|
+
metaobject_type: string;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export type ShopifyMetaobject_list = {
|
|
336
|
+
id: string;
|
|
337
|
+
label: string;
|
|
338
|
+
type: "metaobject_list";
|
|
339
|
+
info?: string;
|
|
340
|
+
limit?: number;
|
|
341
|
+
// visible_if?: `{{${string}}}`;
|
|
342
|
+
metaobject_type: string;
|
|
316
343
|
};
|
|
317
344
|
export type ShopifyColor = {
|
|
318
345
|
id: string;
|
|
319
346
|
label: string;
|
|
320
347
|
type: "color";
|
|
348
|
+
alpha?: boolean;
|
|
321
349
|
default?: string;
|
|
322
350
|
info?: string;
|
|
323
351
|
visible_if?: `{{${string}}}`;
|
|
@@ -383,14 +411,14 @@ export type ShopifyPage = {
|
|
|
383
411
|
label: string;
|
|
384
412
|
type: "page";
|
|
385
413
|
info?: string;
|
|
386
|
-
visible_if?: `{{${string}}}`;
|
|
414
|
+
// visible_if?: `{{${string}}}`;
|
|
387
415
|
};
|
|
388
416
|
export type ShopifyProduct = {
|
|
389
417
|
id: string;
|
|
390
418
|
label: string;
|
|
391
419
|
type: "product";
|
|
392
420
|
info?: string;
|
|
393
|
-
visible_if?: `{{${string}}}`;
|
|
421
|
+
// visible_if?: `{{${string}}}`;
|
|
394
422
|
};
|
|
395
423
|
export type ShopifyProduct_list = {
|
|
396
424
|
id: string;
|
|
@@ -398,7 +426,7 @@ export type ShopifyProduct_list = {
|
|
|
398
426
|
type: "product_list";
|
|
399
427
|
info?: string;
|
|
400
428
|
limit?: number;
|
|
401
|
-
visible_if?: `{{${string}}}`;
|
|
429
|
+
// visible_if?: `{{${string}}}`;
|
|
402
430
|
};
|
|
403
431
|
export type ShopifyRichtext = {
|
|
404
432
|
id: string;
|
|
@@ -463,6 +491,7 @@ export type ShopifySettingsInput =
|
|
|
463
491
|
| ShopifyText
|
|
464
492
|
| ShopifyTextarea
|
|
465
493
|
| ShopifyArticle
|
|
494
|
+
| ShopifyArticle_list
|
|
466
495
|
| ShopifyBlog
|
|
467
496
|
| ShopifyCollection
|
|
468
497
|
| ShopifyCollection_list
|
|
@@ -485,6 +514,8 @@ export type ShopifySettingsInput =
|
|
|
485
514
|
| ShopifyColorTheme
|
|
486
515
|
| ShopifyColorThemeGroup
|
|
487
516
|
| ShopifyTextAlignment
|
|
517
|
+
| ShopifyMetaobject
|
|
518
|
+
| ShopifyMetaobject_list
|
|
488
519
|
| ShopifyStyleSettings;
|
|
489
520
|
|
|
490
521
|
export type HeadlessSettingsInput =
|
package/package.json
CHANGED
|
@@ -184,7 +184,7 @@ export const getSettingsType = (setting: ShopifySettingsInput) => {
|
|
|
184
184
|
return "?: _Collection_liquid[]";
|
|
185
185
|
}
|
|
186
186
|
case "color":
|
|
187
|
-
return "?:
|
|
187
|
+
return "?: string";
|
|
188
188
|
case "color_background":
|
|
189
189
|
return "?: string";
|
|
190
190
|
case "font_picker":
|
|
@@ -192,7 +192,7 @@ export const getSettingsType = (setting: ShopifySettingsInput) => {
|
|
|
192
192
|
case "html":
|
|
193
193
|
return "?: string";
|
|
194
194
|
case "image_picker":
|
|
195
|
-
return "?:
|
|
195
|
+
return "?: string";
|
|
196
196
|
case "link_list":
|
|
197
197
|
return "?: _Linklist_liquid";
|
|
198
198
|
case "liquid":
|
|
@@ -277,6 +277,14 @@ module.exports = {
|
|
|
277
277
|
lg: "1024px",
|
|
278
278
|
xl: "1280px",
|
|
279
279
|
"2xl": "1536px",
|
|
280
|
+
// Pin 3xl–7xl to their 16px-equivalent px. The container-queries plugin's defaults are rem
|
|
281
|
+
// (3xl: 48rem, ...), which drift when a Shopify theme overrides the root font-size. px keeps
|
|
282
|
+
// every container breakpoint reliable, matching the px alignment already applied to sm–2xl.
|
|
283
|
+
"3xl": "768px",
|
|
284
|
+
"4xl": "896px",
|
|
285
|
+
"5xl": "1024px",
|
|
286
|
+
"6xl": "1152px",
|
|
287
|
+
"7xl": "1280px",
|
|
280
288
|
"max-xxs": "-373px" /* tiny phone*/,
|
|
281
289
|
"max-xs": "-427px" /*smaller than iphone pro max*/,
|
|
282
290
|
"max-sm": "-640px",
|
|
@@ -284,6 +292,11 @@ module.exports = {
|
|
|
284
292
|
"max-lg": "-1024px",
|
|
285
293
|
"max-xl": "-1280px",
|
|
286
294
|
"max-2xl": "-1536px",
|
|
295
|
+
"max-3xl": "-768px",
|
|
296
|
+
"max-4xl": "-896px",
|
|
297
|
+
"max-5xl": "-1024px",
|
|
298
|
+
"max-6xl": "-1152px",
|
|
299
|
+
"max-7xl": "-1280px",
|
|
287
300
|
},
|
|
288
301
|
fontSize: {
|
|
289
302
|
8: ["9px", "1.55"],
|