le-kit 0.3.3 → 0.3.4

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 (102) hide show
  1. package/dist/cjs/{index-BDXkMiZB.js → index-BPF04Jvb.js} +23 -37
  2. package/dist/cjs/index-BPF04Jvb.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/le-bar_16.cjs.entry.js +2 -2
  5. package/dist/cjs/le-box.cjs.entry.js +2 -2
  6. package/dist/cjs/le-card.cjs.entry.js +2 -2
  7. package/dist/cjs/le-combobox.cjs.entry.js +1 -1
  8. package/dist/cjs/le-header-placeholder.cjs.entry.js +1 -1
  9. package/dist/cjs/le-kit.cjs.js +1 -1
  10. package/dist/cjs/le-multiselect.cjs.entry.js +1 -1
  11. package/dist/cjs/le-number-input.cjs.entry.js +2 -2
  12. package/dist/cjs/le-round-progress.cjs.entry.js +1 -1
  13. package/dist/cjs/le-segmented-control.cjs.entry.js +1 -1
  14. package/dist/cjs/le-stack.cjs.entry.js +2 -2
  15. package/dist/cjs/le-tab-bar.cjs.entry.js +1 -1
  16. package/dist/cjs/le-tab-panel.cjs.entry.js +1 -1
  17. package/dist/cjs/le-tab.cjs.entry.js +2 -2
  18. package/dist/cjs/le-tabs.cjs.entry.js +2 -2
  19. package/dist/cjs/le-tag.cjs.entry.js +1 -1
  20. package/dist/cjs/le-text.cjs.entry.js +2 -2
  21. package/dist/cjs/le-turntable.cjs.entry.js +1 -1
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/{utils-Co3xnkR-.js → utils-BYsLPHN1.js} +3 -3
  24. package/dist/cjs/{utils-Co3xnkR-.js.map → utils-BYsLPHN1.js.map} +1 -1
  25. package/dist/collection/dist/components/assets/custom-elements.json +734 -734
  26. package/dist/collection/global/app.js +21 -35
  27. package/dist/collection/global/app.js.map +1 -1
  28. package/dist/components/app.js +21 -35
  29. package/dist/components/app.js.map +1 -1
  30. package/dist/components/assets/custom-elements.json +734 -734
  31. package/dist/docs.json +1 -1
  32. package/dist/esm/{index-Bb6rgQY0.js → index-C-Chwj1b.js} +24 -38
  33. package/dist/esm/index-C-Chwj1b.js.map +1 -0
  34. package/dist/esm/index.js +2 -2
  35. package/dist/esm/le-bar_16.entry.js +2 -2
  36. package/dist/esm/le-box.entry.js +2 -2
  37. package/dist/esm/le-card.entry.js +2 -2
  38. package/dist/esm/le-combobox.entry.js +1 -1
  39. package/dist/esm/le-header-placeholder.entry.js +1 -1
  40. package/dist/esm/le-kit.js +2 -2
  41. package/dist/esm/le-multiselect.entry.js +1 -1
  42. package/dist/esm/le-number-input.entry.js +2 -2
  43. package/dist/esm/le-round-progress.entry.js +1 -1
  44. package/dist/esm/le-segmented-control.entry.js +1 -1
  45. package/dist/esm/le-stack.entry.js +2 -2
  46. package/dist/esm/le-tab-bar.entry.js +1 -1
  47. package/dist/esm/le-tab-panel.entry.js +1 -1
  48. package/dist/esm/le-tab.entry.js +2 -2
  49. package/dist/esm/le-tabs.entry.js +2 -2
  50. package/dist/esm/le-tag.entry.js +1 -1
  51. package/dist/esm/le-text.entry.js +2 -2
  52. package/dist/esm/le-turntable.entry.js +1 -1
  53. package/dist/esm/loader.js +2 -2
  54. package/dist/esm/{utils-CDrgAR8V.js → utils-B3alHV04.js} +3 -3
  55. package/dist/esm/{utils-CDrgAR8V.js.map → utils-B3alHV04.js.map} +1 -1
  56. package/dist/le-kit/dist/components/assets/custom-elements.json +734 -734
  57. package/dist/le-kit/index.esm.js +1 -1
  58. package/dist/le-kit/le-kit.esm.js +1 -1
  59. package/dist/le-kit/{p-bb7a199f.entry.js → p-05ccab91.entry.js} +2 -2
  60. package/dist/le-kit/{p-166d31fd.entry.js → p-06d2d79c.entry.js} +2 -2
  61. package/dist/le-kit/{p-cb392b4b.entry.js → p-2230ecd7.entry.js} +2 -2
  62. package/dist/le-kit/{p-52cc2518.entry.js → p-33c2168a.entry.js} +2 -2
  63. package/dist/le-kit/{p-a44540d7.entry.js → p-3d22aeb2.entry.js} +2 -2
  64. package/dist/le-kit/{p-c8a9e104.entry.js → p-3d873cdb.entry.js} +2 -2
  65. package/dist/le-kit/{p-5e7e2d06.entry.js → p-4a45ff67.entry.js} +2 -2
  66. package/dist/le-kit/{p-84a778b1.entry.js → p-5d72c894.entry.js} +2 -2
  67. package/dist/le-kit/{p-5ad31bd2.entry.js → p-68d836a3.entry.js} +2 -2
  68. package/dist/le-kit/{p-f45d86de.entry.js → p-923828fe.entry.js} +2 -2
  69. package/dist/le-kit/{p-5a0efabf.entry.js → p-9880466c.entry.js} +2 -2
  70. package/dist/le-kit/{p-5a0efabf.entry.js.map → p-9880466c.entry.js.map} +1 -1
  71. package/dist/le-kit/p-C-Chwj1b.js +3 -0
  72. package/dist/le-kit/p-C-Chwj1b.js.map +1 -0
  73. package/dist/le-kit/{p-DG6SMiyr.js → p-DFr88Szp.js} +2 -2
  74. package/dist/le-kit/{p-DG6SMiyr.js.map → p-DFr88Szp.js.map} +1 -1
  75. package/dist/le-kit/{p-ca766522.entry.js → p-be2a7276.entry.js} +2 -2
  76. package/dist/le-kit/{p-eb4b678f.entry.js → p-d161946c.entry.js} +2 -2
  77. package/dist/le-kit/{p-957f50aa.entry.js → p-e1846fc2.entry.js} +2 -2
  78. package/dist/le-kit/{p-68d94a06.entry.js → p-e6b2cf9a.entry.js} +2 -2
  79. package/dist/le-kit/{p-43a17d84.entry.js → p-ea71f22c.entry.js} +2 -2
  80. package/dist/le-kit/{p-1d4f84f6.entry.js → p-f8034500.entry.js} +2 -2
  81. package/dist/types/global/app.d.ts +7 -6
  82. package/package.json +1 -1
  83. package/dist/cjs/index-BDXkMiZB.js.map +0 -1
  84. package/dist/esm/index-Bb6rgQY0.js.map +0 -1
  85. package/dist/le-kit/p-Bb6rgQY0.js +0 -3
  86. package/dist/le-kit/p-Bb6rgQY0.js.map +0 -1
  87. /package/dist/le-kit/{p-bb7a199f.entry.js.map → p-05ccab91.entry.js.map} +0 -0
  88. /package/dist/le-kit/{p-166d31fd.entry.js.map → p-06d2d79c.entry.js.map} +0 -0
  89. /package/dist/le-kit/{p-cb392b4b.entry.js.map → p-2230ecd7.entry.js.map} +0 -0
  90. /package/dist/le-kit/{p-52cc2518.entry.js.map → p-33c2168a.entry.js.map} +0 -0
  91. /package/dist/le-kit/{p-a44540d7.entry.js.map → p-3d22aeb2.entry.js.map} +0 -0
  92. /package/dist/le-kit/{p-c8a9e104.entry.js.map → p-3d873cdb.entry.js.map} +0 -0
  93. /package/dist/le-kit/{p-5e7e2d06.entry.js.map → p-4a45ff67.entry.js.map} +0 -0
  94. /package/dist/le-kit/{p-84a778b1.entry.js.map → p-5d72c894.entry.js.map} +0 -0
  95. /package/dist/le-kit/{p-5ad31bd2.entry.js.map → p-68d836a3.entry.js.map} +0 -0
  96. /package/dist/le-kit/{p-f45d86de.entry.js.map → p-923828fe.entry.js.map} +0 -0
  97. /package/dist/le-kit/{p-ca766522.entry.js.map → p-be2a7276.entry.js.map} +0 -0
  98. /package/dist/le-kit/{p-eb4b678f.entry.js.map → p-d161946c.entry.js.map} +0 -0
  99. /package/dist/le-kit/{p-957f50aa.entry.js.map → p-e1846fc2.entry.js.map} +0 -0
  100. /package/dist/le-kit/{p-68d94a06.entry.js.map → p-e6b2cf9a.entry.js.map} +0 -0
  101. /package/dist/le-kit/{p-43a17d84.entry.js.map → p-ea71f22c.entry.js.map} +0 -0
  102. /package/dist/le-kit/{p-1d4f84f6.entry.js.map → p-f8034500.entry.js.map} +0 -0
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-01-10T23:00:37",
2
+ "timestamp": "2026-01-10T23:17:25",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.39.0",
@@ -104,39 +104,23 @@ function setGlobalMode(mode) {
104
104
  function setGlobalTheme(theme) {
105
105
  document.documentElement.setAttribute('theme', theme);
106
106
  }
107
+ // Use a Symbol to avoid conflicts with other libraries
108
+ const LE_KIT_CONFIG_KEY = '__leKitConfig__';
107
109
  /**
108
- * Global configuration for le-kit
110
+ * Get the global config object, creating it if needed.
111
+ * Uses globalThis (window in browser) to ensure config is shared
112
+ * across all module bundles.
109
113
  */
110
- let leKitConfig = {
111
- /**
112
- * URL to the custom-elements.json manifest.
113
- * Used by admin components (le-component, le-slot) to load component metadata.
114
- *
115
- * Default: '/custom-elements.json' (served from app root)
116
- *
117
- * For apps using le-kit, you may need to:
118
- * 1. Copy the manifest from node_modules/le-kit/custom-elements.json to your public folder
119
- * 2. Or set this to point to where the manifest is served
120
- */
121
- manifestFile: '/custom-elements.json',
122
- /**
123
- * Base path for loading assets (icons, etc.).
124
- *
125
- * Default: '' (empty - uses Stencil's getAssetPath)
126
- *
127
- * When set, assets will be loaded from: `${assetBasePath}/icons/${name}.json`
128
- *
129
- * For apps using le-kit, you should:
130
- * 1. Copy the assets from node_modules/le-kit/dist/assets to your public folder
131
- * 2. Set this to point to where the assets are served (e.g., '/le-kit-assets')
132
- *
133
- * @example
134
- * ```ts
135
- * configureLeKit({ assetBasePath: '/le-kit-assets' });
136
- * ```
137
- */
138
- assetBasePath: '',
139
- };
114
+ function getGlobalConfig() {
115
+ const g = globalThis;
116
+ if (!g[LE_KIT_CONFIG_KEY]) {
117
+ g[LE_KIT_CONFIG_KEY] = {
118
+ manifestFile: '/custom-elements.json',
119
+ assetBasePath: '',
120
+ };
121
+ }
122
+ return g[LE_KIT_CONFIG_KEY];
123
+ }
140
124
  /**
141
125
  * Configure le-kit global settings.
142
126
  *
@@ -145,25 +129,27 @@ let leKitConfig = {
145
129
  * import { configureLeKit } from 'le-kit';
146
130
  *
147
131
  * configureLeKit({
148
- * manifestFile: 'custom-elements.json'
132
+ * manifestFile: 'custom-elements.json',
133
+ * assetBasePath: '/le-kit-assets'
149
134
  * });
150
135
  * ```
151
136
  */
152
137
  function configureLeKit(config) {
153
- leKitConfig = { ...leKitConfig, ...config };
138
+ const globalConfig = getGlobalConfig();
139
+ Object.assign(globalConfig, config);
154
140
  }
155
141
  /**
156
142
  * Get the current le-kit configuration.
157
143
  */
158
144
  function getLeKitConfig() {
159
- return leKitConfig;
145
+ return getGlobalConfig();
160
146
  }
161
147
  /**
162
148
  * Get the configured asset base path.
163
149
  * Used internally by components that load assets.
164
150
  */
165
151
  function getAssetBasePath() {
166
- return leKitConfig.assetBasePath;
152
+ return getGlobalConfig().assetBasePath;
167
153
  }
168
154
 
169
155
  const globalScripts = initializeMode;
@@ -1849,7 +1835,7 @@ function transformTag(tag) {
1849
1835
  return tag;
1850
1836
  }
1851
1837
 
1852
- export { Fragment as F, Host as H, getMode as a, bootstrapLazy as b, getElement as c, createEvent as d, getAssetPath as e, getLeKitConfig as f, globalScripts as g, h, getAssetBasePath as i, setAssetPath as j, setGlobalMode as k, getTheme as l, setGlobalTheme as m, configureLeKit as n, promiseResolve as p, registerInstance as r, setNonce as s };
1853
- //# sourceMappingURL=index-Bb6rgQY0.js.map
1838
+ export { Fragment as F, Host as H, getMode as a, bootstrapLazy as b, getElement as c, createEvent as d, getLeKitConfig as e, getAssetPath as f, globalScripts as g, h, getAssetBasePath as i, setAssetPath as j, setGlobalMode as k, getTheme as l, setGlobalTheme as m, configureLeKit as n, promiseResolve as p, registerInstance as r, setNonce as s };
1839
+ //# sourceMappingURL=index-C-Chwj1b.js.map
1854
1840
 
1855
- //# sourceMappingURL=index-Bb6rgQY0.js.map
1841
+ //# sourceMappingURL=index-C-Chwj1b.js.map