platform-types 1.10.792 → 1.10.793
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.
|
@@ -61,6 +61,10 @@ exports.STOREFRONT_DESIGN_SETTINGS = {
|
|
|
61
61
|
layoutDensity: choice('layoutDensity', ['comfortable', 'dense'], 'comfortable', 'Densidad', 'Elegí cuánto espacio dejás entre los elementos de toda la tienda.'),
|
|
62
62
|
showBrand: toggle('showBrand', false, 'Mostrar marca', 'Mostrar la marca en las tarjetas de productos.'),
|
|
63
63
|
showSku: toggle('showSku', false, 'Mostrar SKU', 'Mostrar el código SKU en las tarjetas de productos.'),
|
|
64
|
+
showTierHint: toggle('showTierHint', true, 'Mostrar precios por cantidad', 'Muestra en las tarjetas el aviso de precio por cantidad, cuando el producto lo tiene.'),
|
|
65
|
+
showCompareAt: toggle('showCompareAt', true, 'Mostrar precio anterior', 'Muestra en las tarjetas el precio anterior tachado, cuando el producto lo tiene.'),
|
|
66
|
+
showStockBadge: toggle('showStockBadge', true, 'Mostrar avisos de stock', 'Oculta los avisos de stock en las tarjetas. Si la tienda oculta las cantidades, este ajuste no las muestra.'),
|
|
67
|
+
showQuickAdd: toggle('showQuickAdd', true, 'Mostrar botón Agregar', 'Muestra el botón Agregar en las tarjetas. Las filas de productos siempre lo muestran.'),
|
|
64
68
|
};
|
|
65
69
|
const isStorefrontDesignSettingKey = (key) => Object.hasOwn(exports.STOREFRONT_DESIGN_SETTINGS, key);
|
|
66
70
|
exports.isStorefrontDesignSettingKey = isStorefrontDesignSettingKey;
|
|
@@ -414,6 +414,98 @@ export declare const STOREFRONT_DESIGN_SETTINGS: {
|
|
|
414
414
|
};
|
|
415
415
|
readonly ownership: "storefront-design";
|
|
416
416
|
};
|
|
417
|
+
readonly showTierHint: {
|
|
418
|
+
readonly key: "showTierHint";
|
|
419
|
+
readonly defaultValue: boolean;
|
|
420
|
+
readonly valueType: "boolean";
|
|
421
|
+
readonly valueSchema: {
|
|
422
|
+
readonly type: "boolean";
|
|
423
|
+
};
|
|
424
|
+
readonly description: string;
|
|
425
|
+
readonly literal: {
|
|
426
|
+
readonly kind: "text";
|
|
427
|
+
readonly label: string;
|
|
428
|
+
readonly help: string;
|
|
429
|
+
};
|
|
430
|
+
readonly scope: "storefront";
|
|
431
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
432
|
+
readonly audience: "public";
|
|
433
|
+
readonly lifecycle: "release-owned";
|
|
434
|
+
readonly storage: {
|
|
435
|
+
readonly policy: "GLOBALS";
|
|
436
|
+
readonly override: "design.settings";
|
|
437
|
+
};
|
|
438
|
+
readonly ownership: "storefront-design";
|
|
439
|
+
};
|
|
440
|
+
readonly showCompareAt: {
|
|
441
|
+
readonly key: "showCompareAt";
|
|
442
|
+
readonly defaultValue: boolean;
|
|
443
|
+
readonly valueType: "boolean";
|
|
444
|
+
readonly valueSchema: {
|
|
445
|
+
readonly type: "boolean";
|
|
446
|
+
};
|
|
447
|
+
readonly description: string;
|
|
448
|
+
readonly literal: {
|
|
449
|
+
readonly kind: "text";
|
|
450
|
+
readonly label: string;
|
|
451
|
+
readonly help: string;
|
|
452
|
+
};
|
|
453
|
+
readonly scope: "storefront";
|
|
454
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
455
|
+
readonly audience: "public";
|
|
456
|
+
readonly lifecycle: "release-owned";
|
|
457
|
+
readonly storage: {
|
|
458
|
+
readonly policy: "GLOBALS";
|
|
459
|
+
readonly override: "design.settings";
|
|
460
|
+
};
|
|
461
|
+
readonly ownership: "storefront-design";
|
|
462
|
+
};
|
|
463
|
+
readonly showStockBadge: {
|
|
464
|
+
readonly key: "showStockBadge";
|
|
465
|
+
readonly defaultValue: boolean;
|
|
466
|
+
readonly valueType: "boolean";
|
|
467
|
+
readonly valueSchema: {
|
|
468
|
+
readonly type: "boolean";
|
|
469
|
+
};
|
|
470
|
+
readonly description: string;
|
|
471
|
+
readonly literal: {
|
|
472
|
+
readonly kind: "text";
|
|
473
|
+
readonly label: string;
|
|
474
|
+
readonly help: string;
|
|
475
|
+
};
|
|
476
|
+
readonly scope: "storefront";
|
|
477
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
478
|
+
readonly audience: "public";
|
|
479
|
+
readonly lifecycle: "release-owned";
|
|
480
|
+
readonly storage: {
|
|
481
|
+
readonly policy: "GLOBALS";
|
|
482
|
+
readonly override: "design.settings";
|
|
483
|
+
};
|
|
484
|
+
readonly ownership: "storefront-design";
|
|
485
|
+
};
|
|
486
|
+
readonly showQuickAdd: {
|
|
487
|
+
readonly key: "showQuickAdd";
|
|
488
|
+
readonly defaultValue: boolean;
|
|
489
|
+
readonly valueType: "boolean";
|
|
490
|
+
readonly valueSchema: {
|
|
491
|
+
readonly type: "boolean";
|
|
492
|
+
};
|
|
493
|
+
readonly description: string;
|
|
494
|
+
readonly literal: {
|
|
495
|
+
readonly kind: "text";
|
|
496
|
+
readonly label: string;
|
|
497
|
+
readonly help: string;
|
|
498
|
+
};
|
|
499
|
+
readonly scope: "storefront";
|
|
500
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
501
|
+
readonly audience: "public";
|
|
502
|
+
readonly lifecycle: "release-owned";
|
|
503
|
+
readonly storage: {
|
|
504
|
+
readonly policy: "GLOBALS";
|
|
505
|
+
readonly override: "design.settings";
|
|
506
|
+
};
|
|
507
|
+
readonly ownership: "storefront-design";
|
|
508
|
+
};
|
|
417
509
|
};
|
|
418
510
|
type SettingValue<T> = T extends {
|
|
419
511
|
valueSchema: {
|
|
@@ -822,6 +914,98 @@ export declare const STOREFRONT_DESIGN_REGISTRY: {
|
|
|
822
914
|
};
|
|
823
915
|
readonly ownership: "storefront-design";
|
|
824
916
|
};
|
|
917
|
+
readonly showTierHint: {
|
|
918
|
+
readonly key: "showTierHint";
|
|
919
|
+
readonly defaultValue: boolean;
|
|
920
|
+
readonly valueType: "boolean";
|
|
921
|
+
readonly valueSchema: {
|
|
922
|
+
readonly type: "boolean";
|
|
923
|
+
};
|
|
924
|
+
readonly description: string;
|
|
925
|
+
readonly literal: {
|
|
926
|
+
readonly kind: "text";
|
|
927
|
+
readonly label: string;
|
|
928
|
+
readonly help: string;
|
|
929
|
+
};
|
|
930
|
+
readonly scope: "storefront";
|
|
931
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
932
|
+
readonly audience: "public";
|
|
933
|
+
readonly lifecycle: "release-owned";
|
|
934
|
+
readonly storage: {
|
|
935
|
+
readonly policy: "GLOBALS";
|
|
936
|
+
readonly override: "design.settings";
|
|
937
|
+
};
|
|
938
|
+
readonly ownership: "storefront-design";
|
|
939
|
+
};
|
|
940
|
+
readonly showCompareAt: {
|
|
941
|
+
readonly key: "showCompareAt";
|
|
942
|
+
readonly defaultValue: boolean;
|
|
943
|
+
readonly valueType: "boolean";
|
|
944
|
+
readonly valueSchema: {
|
|
945
|
+
readonly type: "boolean";
|
|
946
|
+
};
|
|
947
|
+
readonly description: string;
|
|
948
|
+
readonly literal: {
|
|
949
|
+
readonly kind: "text";
|
|
950
|
+
readonly label: string;
|
|
951
|
+
readonly help: string;
|
|
952
|
+
};
|
|
953
|
+
readonly scope: "storefront";
|
|
954
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
955
|
+
readonly audience: "public";
|
|
956
|
+
readonly lifecycle: "release-owned";
|
|
957
|
+
readonly storage: {
|
|
958
|
+
readonly policy: "GLOBALS";
|
|
959
|
+
readonly override: "design.settings";
|
|
960
|
+
};
|
|
961
|
+
readonly ownership: "storefront-design";
|
|
962
|
+
};
|
|
963
|
+
readonly showStockBadge: {
|
|
964
|
+
readonly key: "showStockBadge";
|
|
965
|
+
readonly defaultValue: boolean;
|
|
966
|
+
readonly valueType: "boolean";
|
|
967
|
+
readonly valueSchema: {
|
|
968
|
+
readonly type: "boolean";
|
|
969
|
+
};
|
|
970
|
+
readonly description: string;
|
|
971
|
+
readonly literal: {
|
|
972
|
+
readonly kind: "text";
|
|
973
|
+
readonly label: string;
|
|
974
|
+
readonly help: string;
|
|
975
|
+
};
|
|
976
|
+
readonly scope: "storefront";
|
|
977
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
978
|
+
readonly audience: "public";
|
|
979
|
+
readonly lifecycle: "release-owned";
|
|
980
|
+
readonly storage: {
|
|
981
|
+
readonly policy: "GLOBALS";
|
|
982
|
+
readonly override: "design.settings";
|
|
983
|
+
};
|
|
984
|
+
readonly ownership: "storefront-design";
|
|
985
|
+
};
|
|
986
|
+
readonly showQuickAdd: {
|
|
987
|
+
readonly key: "showQuickAdd";
|
|
988
|
+
readonly defaultValue: boolean;
|
|
989
|
+
readonly valueType: "boolean";
|
|
990
|
+
readonly valueSchema: {
|
|
991
|
+
readonly type: "boolean";
|
|
992
|
+
};
|
|
993
|
+
readonly description: string;
|
|
994
|
+
readonly literal: {
|
|
995
|
+
readonly kind: "text";
|
|
996
|
+
readonly label: string;
|
|
997
|
+
readonly help: string;
|
|
998
|
+
};
|
|
999
|
+
readonly scope: "storefront";
|
|
1000
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
1001
|
+
readonly audience: "public";
|
|
1002
|
+
readonly lifecycle: "release-owned";
|
|
1003
|
+
readonly storage: {
|
|
1004
|
+
readonly policy: "GLOBALS";
|
|
1005
|
+
readonly override: "design.settings";
|
|
1006
|
+
};
|
|
1007
|
+
readonly ownership: "storefront-design";
|
|
1008
|
+
};
|
|
825
1009
|
};
|
|
826
1010
|
readonly content: {
|
|
827
1011
|
readonly schema: "StorefrontDesignV1";
|
|
@@ -58,6 +58,10 @@ export const STOREFRONT_DESIGN_SETTINGS = {
|
|
|
58
58
|
layoutDensity: choice('layoutDensity', ['comfortable', 'dense'], 'comfortable', 'Densidad', 'Elegí cuánto espacio dejás entre los elementos de toda la tienda.'),
|
|
59
59
|
showBrand: toggle('showBrand', false, 'Mostrar marca', 'Mostrar la marca en las tarjetas de productos.'),
|
|
60
60
|
showSku: toggle('showSku', false, 'Mostrar SKU', 'Mostrar el código SKU en las tarjetas de productos.'),
|
|
61
|
+
showTierHint: toggle('showTierHint', true, 'Mostrar precios por cantidad', 'Muestra en las tarjetas el aviso de precio por cantidad, cuando el producto lo tiene.'),
|
|
62
|
+
showCompareAt: toggle('showCompareAt', true, 'Mostrar precio anterior', 'Muestra en las tarjetas el precio anterior tachado, cuando el producto lo tiene.'),
|
|
63
|
+
showStockBadge: toggle('showStockBadge', true, 'Mostrar avisos de stock', 'Oculta los avisos de stock en las tarjetas. Si la tienda oculta las cantidades, este ajuste no las muestra.'),
|
|
64
|
+
showQuickAdd: toggle('showQuickAdd', true, 'Mostrar botón Agregar', 'Muestra el botón Agregar en las tarjetas. Las filas de productos siempre lo muestran.'),
|
|
61
65
|
};
|
|
62
66
|
export const isStorefrontDesignSettingKey = (key) => Object.hasOwn(STOREFRONT_DESIGN_SETTINGS, key);
|
|
63
67
|
export const validateStorefrontSettingValue = (schema, value) => {
|