@liwe3/webcomponents 1.0.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/src/index.ts ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @liwe3/webcomponents
3
+ * A collection of reusable web components
4
+ */
5
+
6
+ // Export SmartSelect
7
+ export {
8
+ SmartSelectElement,
9
+ defineSmartSelect,
10
+ type SelectOption
11
+ } from './SmartSelect';
12
+
13
+ // Export AITextEditor
14
+ export {
15
+ AITextEditorElement,
16
+ defineAITextEditor,
17
+ type AITextEditorConfig
18
+ } from './AITextEditor';
19
+
20
+ // Convenience function to register all components at once
21
+ export const defineAllComponents = (): void => {
22
+ if (typeof window !== 'undefined') {
23
+ import('./SmartSelect').then(({ defineSmartSelect }) => defineSmartSelect());
24
+ import('./AITextEditor').then(({ defineAITextEditor }) => defineAITextEditor());
25
+ }
26
+ };