@dropins/tools 0.23.0-alpha33 → 0.23.0-alpha43

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.
Files changed (81) hide show
  1. package/chunks/debounce__BF4Cdv7Ils.js +2 -0
  2. package/chunks/debounce__BF4Cdv7Ils.js.map +1 -0
  3. package/chunks/image-params-keymap__LH6wjfp1fd.js +12 -0
  4. package/chunks/image-params-keymap__LH6wjfp1fd.js.map +1 -0
  5. package/chunks/vcomponent__BjnR-FRhjl.js +2 -0
  6. package/chunks/vcomponent__BjnR-FRhjl.js.map +1 -0
  7. package/components/Accordion.js +2 -0
  8. package/components/Accordion.js.map +1 -0
  9. package/components/ActionButton.js +2 -0
  10. package/components/ActionButton.js.map +1 -0
  11. package/components/ActionButtonGroup.js +2 -0
  12. package/components/ActionButtonGroup.js.map +1 -0
  13. package/components/AlertBanner.js +2 -0
  14. package/components/AlertBanner.js.map +1 -0
  15. package/components/Breadcrumbs.js +2 -0
  16. package/components/Breadcrumbs.js.map +1 -0
  17. package/components/Button.js +2 -0
  18. package/components/Button.js.map +1 -0
  19. package/components/Card.js +2 -0
  20. package/components/Card.js.map +1 -0
  21. package/components/CartItem.js +2 -0
  22. package/components/CartItem.js.map +1 -0
  23. package/components/CartList.js +2 -0
  24. package/components/CartList.js.map +1 -0
  25. package/components/Checkbox.js +2 -0
  26. package/components/Checkbox.js.map +1 -0
  27. package/components/ColorSwatch.js +2 -0
  28. package/components/ColorSwatch.js.map +1 -0
  29. package/components/Divider.js +2 -0
  30. package/components/Divider.js.map +1 -0
  31. package/components/Field.js +2 -0
  32. package/components/Field.js.map +1 -0
  33. package/components/Icon.js +1 -1
  34. package/components/Icon.js.map +1 -1
  35. package/components/IllustratedMessage.js +2 -0
  36. package/components/IllustratedMessage.js.map +1 -0
  37. package/components/Image.js +3 -0
  38. package/components/Image.js.map +1 -0
  39. package/components/ImageSwatch.js +2 -0
  40. package/components/ImageSwatch.js.map +1 -0
  41. package/components/InLineAlert.js +2 -0
  42. package/components/InLineAlert.js.map +1 -0
  43. package/components/Incrementer.js +2 -0
  44. package/components/Incrementer.js.map +1 -0
  45. package/components/Input.js +2 -0
  46. package/components/Input.js.map +1 -0
  47. package/components/Modal.js +2 -0
  48. package/components/Modal.js.map +1 -0
  49. package/components/Picker.js +2 -0
  50. package/components/Picker.js.map +1 -0
  51. package/components/Price.js +2 -0
  52. package/components/Price.js.map +1 -0
  53. package/components/PriceRange.js +2 -0
  54. package/components/PriceRange.js.map +1 -0
  55. package/components/PriceSummary.js +2 -0
  56. package/components/PriceSummary.js.map +1 -0
  57. package/components/ProgressSpinner.js +2 -0
  58. package/components/ProgressSpinner.js.map +1 -0
  59. package/components/RadioButton.js +2 -0
  60. package/components/RadioButton.js.map +1 -0
  61. package/components/Skeleton.js +2 -0
  62. package/components/Skeleton.js.map +1 -0
  63. package/components/TextSwatch.js +2 -0
  64. package/components/TextSwatch.js.map +1 -0
  65. package/components/UIProvider.js +1 -1
  66. package/components/UIProvider.js.map +1 -1
  67. package/components/index.js +2 -0
  68. package/components/index.js.map +1 -0
  69. package/i18n.js +4 -0
  70. package/i18n.js.map +1 -0
  71. package/initializer.js +31 -3
  72. package/initializer.js.map +1 -1
  73. package/lib/slot.js +2 -0
  74. package/lib/slot.js.map +1 -0
  75. package/package.json +1 -1
  76. package/chunks/image-params-keymap__DLgj2E8cak.js +0 -15
  77. package/chunks/image-params-keymap__DLgj2E8cak.js.map +0 -1
  78. package/chunks/preload-helper__uemlvruIqb.js +0 -2
  79. package/chunks/preload-helper__uemlvruIqb.js.map +0 -1
  80. package/lib/initializer.d.ts +0 -84
  81. package/lib/initializer.d.ts.map +0 -3
@@ -1,84 +0,0 @@
1
- declare module '@dropins/tools/initializer.js'{
2
- import { Config } from '.';
3
-
4
- type Listener = {
5
- off(): void;
6
- };
7
- type Listeners<T> = (config?: T) => Array<Listener | undefined>;
8
- type Init<T> = (config?: T) => Promise<void>;
9
- type Options<T> = {
10
- init: Init<T>;
11
- listeners: Listeners<T>;
12
- };
13
- /**
14
- * `Initializer` is a class that represents an initializer.
15
- * An initializer is responsible for setting up event listeners and initializing a module.
16
- *
17
- * @class
18
- *
19
- * @property {Function} listeners - A method that accepts a config object and returns an array of listeners.
20
- * @property {Function} init - A method that initializes the module. It accepts an options object.
21
- * @property {Config} config - A Config object that stores the configuration for the module.
22
- *
23
- * @method constructor - Constructs a new Initializer. Accepts an options object with `init` and `listeners` properties.
24
- */
25
- export declare class Initializer<T> {
26
- private _listeners;
27
- listeners: Listeners<T>;
28
- init: Init<T>;
29
- config: Config<T>;
30
- /**
31
- * Constructs a new Initializer.
32
- *
33
- * @param {Object} options - The options for the Initializer.
34
- * @param {Function} options.listeners - A function that accepts a config object and returns an array of listeners.
35
- * @param {Function} options.init - A function that initializes the module. It accepts an options object.
36
- */
37
- constructor({ init, listeners }: Options<T>);
38
- }
39
- type Initializers = [Initializer<any>, {
40
- [key: string]: any;
41
- } | undefined][];
42
- /**
43
- * Class representing initializerss.
44
- *
45
- * @class
46
- *
47
- * @method register - Registers a new initializer. If the initializers have already been mounted, it also immediately binds the event listeners and initializes the API for the new initializer.
48
- * @method mount - Mounts all registered initializers. This involves binding the event listeners and initializing the APIs for each initializer, in that order.
49
- * @method setImageParamKeys - Sets the image parameter keys. These keys are used when initializing the APIs for the initializers.
50
- */
51
- export declare class initializers {
52
- static _initializers: Initializers;
53
- static _mounted: boolean;
54
- static _imageParamsKeyMap: {
55
- [key: string]: string;
56
- } | undefined;
57
- /**
58
- * Registers a new initializer.
59
- *
60
- * @param {Initializer<any>} initializer - The initializer to register. This should be an object with `listeners` and `init` methods.
61
- * @param {Object.<string, any>} [options] - An optional object with additional options. These options are passed to the `listeners` and `init` methods of the initializer.
62
- */
63
- static register(initializer: Initializer<any>, options?: {
64
- [key: string]: any;
65
- }): void;
66
- /**
67
- * Mounts all registered initializers.
68
- *
69
- * @returns {void}
70
- */
71
- static mount(): void;
72
- /**
73
- * Sets the image parameter keys.
74
- *
75
- * @param {Object.<string, any>} params - An object mapping keys to values.
76
- * @returns {void}
77
- */
78
- static setImageParamKeys(params: {
79
- [key: string]: any;
80
- }): void;
81
- }
82
- export {};
83
- //# sourceMappingURL=initializer.d.ts.map
84
- }
@@ -1,3 +0,0 @@
1
- declare module '@dropins/tools/initializer.js'{
2
- {"version":3,"file":"initializer.d.ts","sourceRoot":"","sources":["../../src/lib/initializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAwB,MAAM,kBAAkB,CAAC;AAEhE,KAAK,QAAQ,GAAG;IAAE,GAAG,IAAI,IAAI,CAAA;CAAE,CAAC;AAEhC,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;AAEhE,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE7C,KAAK,OAAO,CAAC,CAAC,IAAI;IAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,qBAAa,WAAW,CAAC,CAAC;IACxB,OAAO,CAAC,UAAU,CAAkB;IACpC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,MAAM,YAA4B;IAElC;;;;;;OAMG;gBACS,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;CAe5C;AAED,KAAK,YAAY,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC,EAAE,CAAC;AAE7E;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACvB,MAAM,CAAC,aAAa,EAAE,YAAY,CAAM;IACxC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAS;IACjC,MAAM,CAAC,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAa;IAE7E;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CACb,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,EAC7B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IASlC;;;;OAIG;IACH,MAAM,CAAC,KAAK;IAgBZ;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAGxD"}
3
- }