@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/LICENSE +21 -0
- package/README.md +383 -0
- package/dist/AITextEditor.js +477 -0
- package/dist/AITextEditor.js.map +1 -0
- package/dist/SmartSelect.js +452 -0
- package/dist/SmartSelect.js.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
- package/src/AITextEditor.ts +708 -0
- package/src/SmartSelect.ts +775 -0
- package/src/index.ts +26 -0
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
|
+
};
|