@llmnative/react 0.1.1 → 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/README.md +387 -364
- package/bin/cli.js +117 -98
- package/dist/index.css +1 -1
- package/dist/index.js +21 -823
- package/dist/index.mjs +14246 -9296
- package/dist/style.css +1 -0
- package/dist/types/src/App.d.ts +72 -14
- package/dist/types/src/Config.d.ts +28 -5
- package/dist/types/src/Global.d.ts +2 -2
- package/dist/types/src/I18n.d.ts +185 -0
- package/dist/types/src/Theme.d.ts +153 -81
- package/dist/types/src/auth.d.ts +13 -1
- package/dist/types/src/components/Component.d.ts +13 -27
- package/dist/types/src/components/ErrorBoundary.d.ts +30 -0
- package/dist/types/src/components/blocks/Brand.d.ts +4 -4
- package/dist/types/src/components/blocks/Breadcrumbs.d.ts +50 -4
- package/dist/types/src/components/blocks/Carousel.d.ts +5 -5
- package/dist/types/src/components/blocks/Dropdown.d.ts +26 -20
- package/dist/types/src/components/blocks/ListCard.d.ts +31 -0
- package/dist/types/src/components/blocks/Menu.d.ts +13 -16
- package/dist/types/src/components/blocks/Notifications.d.ts +8 -3
- package/dist/types/src/components/blocks/ProviderSwitcher.d.ts +63 -0
- package/dist/types/src/components/blocks/Search.d.ts +2 -2
- package/dist/types/src/components/blocks/SideNav.d.ts +45 -0
- package/dist/types/src/components/blocks/ThemeSwitcher.d.ts +24 -0
- package/dist/types/src/components/blocks/Toolbar.d.ts +19 -0
- package/dist/types/src/components/index.d.ts +27 -6
- package/dist/types/src/components/types.d.ts +10 -3
- package/dist/types/src/components/ui/Alert.d.ts +16 -4
- package/dist/types/src/components/ui/Badge.d.ts +6 -5
- package/dist/types/src/components/ui/Buttons.d.ts +13 -12
- package/dist/types/src/components/ui/Card.d.ts +8 -7
- package/dist/types/src/components/ui/Code.d.ts +1 -1
- package/dist/types/src/components/ui/Gallery.d.ts +13 -14
- package/dist/types/src/components/ui/GridSystem.d.ts +1 -1
- package/dist/types/src/components/ui/Icon.d.ts +3 -1
- package/dist/types/src/components/ui/Image.d.ts +1 -1
- package/dist/types/src/components/ui/ImageAvatar.d.ts +1 -1
- package/dist/types/src/components/ui/Loader.d.ts +1 -1
- package/dist/types/src/components/ui/LocaleSwitcher.d.ts +14 -0
- package/dist/types/src/components/ui/Modal.d.ts +42 -15
- package/dist/types/src/components/ui/Pagination.d.ts +14 -3
- package/dist/types/src/components/ui/Percentage.d.ts +5 -5
- package/dist/types/src/components/ui/Repeat.d.ts +15 -6
- package/dist/types/src/components/ui/Tab.d.ts +29 -2
- package/dist/types/src/components/ui/TabDynamic.d.ts +4 -3
- package/dist/types/src/components/ui/Table.d.ts +15 -14
- package/dist/types/src/components/ui/fields/CodeEditor.d.ts +43 -0
- package/dist/types/src/components/ui/fields/ContextMenu.d.ts +38 -0
- package/dist/types/src/components/ui/fields/Crop.d.ts +4 -2
- package/dist/types/src/components/ui/fields/ImageField.d.ts +31 -0
- package/dist/types/src/components/ui/fields/Input.d.ts +43 -14
- package/dist/types/src/components/ui/fields/Prompt.d.ts +2 -31
- package/dist/types/src/components/ui/fields/RichText.d.ts +86 -0
- package/dist/types/src/components/ui/fields/Select.d.ts +13 -10
- package/dist/types/src/components/ui/fields/Upload.d.ts +37 -2
- package/dist/types/src/components/ui/fields/UploadCSV.d.ts +2 -0
- package/dist/types/src/components/ui/useRecordSelection.d.ts +1 -2
- package/dist/types/src/components/widgets/Form.d.ts +80 -43
- package/dist/types/src/components/widgets/ImageEditor.d.ts +4 -5
- package/dist/types/src/components/widgets/MarkdownReader.d.ts +4 -4
- package/dist/types/src/components/widgets/Prompt.d.ts +71 -23
- package/dist/types/src/components/widgets/TabDynamic.d.ts +4 -3
- package/dist/types/src/components/widgets/form-controller.d.ts +42 -0
- package/dist/types/src/components/widgets/grid-core/GridCore.d.ts +1 -1
- package/dist/types/src/components/widgets/grid-core/GridDB.d.ts +1 -1
- package/dist/types/src/components/widgets/grid-core/GridGalleryView.d.ts +1 -1
- package/dist/types/src/components/widgets/grid-core/GridTableView.d.ts +1 -1
- package/dist/types/src/components/widgets/grid-core/types.d.ts +77 -27
- package/dist/types/src/components/widgets/grid-core/useGridActions.d.ts +4 -8
- package/dist/types/src/components/widgets/grid-core/useGridColumns.d.ts +2 -2
- package/dist/types/src/components/widgets/grid-core/useGridDBRecords.d.ts +1 -2
- package/dist/types/src/components/widgets/grid-core/useGridPreparedRecords.d.ts +2 -2
- package/dist/types/src/components/widgets/grid-core/useGridSelection.d.ts +4 -5
- package/dist/types/src/components/widgets/grid-core/utils.d.ts +11 -3
- package/dist/types/src/conf/Prompt.d.ts +1 -1
- package/dist/types/src/conf/i18n/ar.d.ts +2 -0
- package/dist/types/src/conf/i18n/de.d.ts +2 -0
- package/dist/types/src/conf/i18n/en.d.ts +2 -0
- package/dist/types/src/conf/i18n/index.d.ts +6 -0
- package/dist/types/src/conf/i18n/it.d.ts +2 -0
- package/dist/types/src/conf/i18n/ru.d.ts +2 -0
- package/dist/types/src/conf/i18n/zh.d.ts +2 -0
- package/dist/types/src/constant.d.ts +1 -1
- package/dist/types/src/index.d.ts +38 -13
- package/dist/types/src/libs/converter.d.ts +4 -4
- package/dist/types/src/libs/editorHeight.d.ts +12 -0
- package/dist/types/src/libs/fetch.d.ts +4 -4
- package/dist/types/src/libs/imageBuilder.d.ts +63 -14
- package/dist/types/src/libs/imageVariants.d.ts +35 -0
- package/dist/types/src/libs/index.d.ts +1 -4
- package/dist/types/src/libs/promptUtils.d.ts +24 -0
- package/dist/types/src/libs/sanitizer.d.ts +2 -2
- package/dist/types/src/libs/utils.d.ts +9 -10
- package/dist/types/src/pages/index.d.ts +0 -2
- package/dist/types/src/providers/ProviderConfiguration.d.ts +6 -0
- package/dist/types/src/providers/ProviderRegistryContext.d.ts +51 -0
- package/dist/types/src/providers/ProviderSession.d.ts +68 -0
- package/dist/types/src/providers/ai/AIProvider.d.ts +57 -0
- package/dist/types/src/providers/ai/AIProviderContext.d.ts +13 -0
- package/dist/types/src/providers/ai/anthropic.d.ts +2 -0
- package/dist/types/src/providers/ai/deepseek.d.ts +1 -0
- package/dist/types/src/providers/ai/gemini.d.ts +2 -0
- package/dist/types/src/providers/ai/glm.d.ts +1 -0
- package/dist/types/src/providers/ai/index.d.ts +9 -134
- package/dist/types/src/providers/ai/mistral.d.ts +1 -0
- package/dist/types/src/providers/ai/openai.d.ts +1 -0
- package/dist/types/src/providers/ai/openaiCompatible.d.ts +17 -0
- package/dist/types/src/providers/ai/opencode.d.ts +2 -0
- package/dist/types/src/providers/ai/openrouter.d.ts +1 -0
- package/dist/types/src/providers/ai/shared.d.ts +46 -0
- package/dist/types/src/providers/api/ApiProvider.d.ts +43 -0
- package/dist/types/src/providers/api/direct.d.ts +14 -0
- package/dist/types/src/providers/api/firebase.d.ts +14 -0
- package/dist/types/src/providers/api/mock.d.ts +7 -0
- package/dist/types/src/providers/api/supabase.d.ts +14 -0
- package/dist/types/src/providers/auth/AuthProvider.d.ts +2 -2
- package/dist/types/src/providers/auth/firebase/FirebaseAuthProvider.d.ts +26 -0
- package/dist/types/src/providers/auth/google/GoogleAuth.d.ts +2 -2
- package/dist/types/src/providers/auth/supabase/SupabaseAuthProvider.d.ts +48 -0
- package/dist/types/src/providers/credentials/CredentialsProvider.d.ts +3 -0
- package/dist/types/src/providers/credentials/CredentialsProviderContext.d.ts +12 -0
- package/dist/types/src/providers/credentials/google/GoogleServiceAccountProvider.d.ts +8 -0
- package/dist/types/src/providers/data/DataProvider.d.ts +27 -1
- package/dist/types/src/providers/data/firebase.d.ts +5 -4
- package/dist/types/src/providers/data/firestore.d.ts +38 -0
- package/dist/types/src/providers/data/mock.d.ts +8 -1
- package/dist/types/src/providers/data/supabase.d.ts +36 -10
- package/dist/types/src/providers/firebase-init.d.ts +15 -4
- package/dist/types/src/providers/icon/PhosphorIconProvider.d.ts +1 -1
- package/dist/types/src/providers/manifest.d.ts +20 -14
- package/dist/types/src/providers/proxy/index.d.ts +7 -0
- package/dist/types/src/providers/proxy/vite.d.ts +3 -0
- package/dist/types/src/providers/scrape/index.d.ts +2 -1
- package/dist/types/src/providers/seo/google/keyword.d.ts +6 -1
- package/dist/types/src/providers/storage/StorageProvider.d.ts +155 -4
- package/dist/types/src/providers/storage/dropbox.d.ts +3 -3
- package/dist/types/src/providers/storage/firebase.d.ts +38 -7
- package/dist/types/src/providers/storage/supabase.d.ts +47 -7
- package/dist/types/src/providers/supabase-init.d.ts +35 -0
- package/dist/types/src/types/FormFields.d.ts +4 -2
- package/dist/types/src/types/FormSchema.d.ts +29 -0
- package/dist/types/themes/tokyo-night-light.d.ts +3 -0
- package/dist/types/themes/tokyo-night.d.ts +3 -0
- package/dist/types/themes/vscode-dark-plus.d.ts +3 -0
- package/dist/types/themes/vscode-light-plus.d.ts +3 -0
- package/dist/vite.js +1 -0
- package/dist/vite.mjs +54 -0
- package/package.json +40 -9
- package/scripts/cli/proxy-templates/cloudflare.ts +34 -0
- package/scripts/cli/proxy-templates/express.ts +77 -0
- package/scripts/cli/proxy-templates/nextjs-app.ts +42 -0
- package/scripts/cli/proxy-templates/nextjs-pages.ts +41 -0
- package/scripts/cli/proxy-templates/scaffold.json +33 -0
- package/scripts/cli/setup-devtools.js +155 -85
- package/scripts/cli/setup-project.js +618 -484
- package/themes/cyber.ts +469 -405
- package/themes/default.ts +469 -405
- package/themes/flat.ts +469 -405
- package/themes/tokyo-night-light.ts +38 -0
- package/themes/tokyo-night.ts +38 -0
- package/themes/vscode-dark-plus.ts +29 -0
- package/themes/vscode-light-plus.ts +29 -0
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/types/src/components/FormEnhancer.d.ts +0 -26
- package/dist/types/src/components/Template.d.ts +0 -18
- package/dist/types/src/components/ui/fields/AssistantAI.d.ts +0 -23
- package/dist/types/src/components/ui/fields/Command.d.ts +0 -15
- package/dist/types/src/components/ui/fields/ImageUrl.d.ts +0 -7
- package/dist/types/src/libs/cache.d.ts +0 -9
- package/dist/types/src/libs/database.d.ts +0 -3
- package/dist/types/src/libs/log.d.ts +0 -2
- package/dist/types/src/libs/seo.d.ts +0 -8
- package/dist/types/src/libs/storage.d.ts +0 -2
- package/dist/types/src/pages/Blog.d.ts +0 -3
- package/dist/types/src/pages/BlogPost.d.ts +0 -16
- package/dist/types/src/pages/Helper.d.ts +0 -8
- package/dist/types/src/providers/auth/google/apis/auth.d.ts +0 -4
- package/dist/types/src/types/Block.d.ts +0 -4
- package/dist/types/src/types/Section.d.ts +0 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import baseTheme from './default';
|
|
2
|
+
import type { ThemeDefinition } from '../src/Theme';
|
|
3
|
+
|
|
4
|
+
const definition: ThemeDefinition = {
|
|
5
|
+
...baseTheme,
|
|
6
|
+
preset: {
|
|
7
|
+
...baseTheme.preset,
|
|
8
|
+
mode: 'light',
|
|
9
|
+
colors: {
|
|
10
|
+
...baseTheme.preset.colors,
|
|
11
|
+
...{
|
|
12
|
+
background: '231.4 16.3% 91.6%',
|
|
13
|
+
foreground: '228.6 26.2% 27.6%',
|
|
14
|
+
card: '226.7 12.3% 85.7%',
|
|
15
|
+
cardForeground: '224.3 17.6% 25.7%',
|
|
16
|
+
popover: '231.4 16.3% 91.6%',
|
|
17
|
+
popoverForeground: '224.3 17.6% 25.7%',
|
|
18
|
+
primary: '217.7 61.1% 41.4%',
|
|
19
|
+
primaryForeground: '0 0% 100%',
|
|
20
|
+
secondary: '226.7 12.3% 85.7%',
|
|
21
|
+
secondaryForeground: '224.3 17.6% 25.7%',
|
|
22
|
+
muted: '231.4 16.3% 91.6%',
|
|
23
|
+
mutedForeground: '232.5 6.7% 47.1%',
|
|
24
|
+
accent: '231.4 16.3% 91.6%',
|
|
25
|
+
accentForeground: '224.3 17.6% 25.7%',
|
|
26
|
+
border: '230 5.1% 76.9%',
|
|
27
|
+
input: '231.4 16.3% 91.6%',
|
|
28
|
+
ring: '224.3 17.6% 25.7%'
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
dark: {
|
|
32
|
+
...baseTheme.preset.dark,
|
|
33
|
+
...{},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default definition;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import baseTheme from './default';
|
|
2
|
+
import type { ThemeDefinition } from '../src/Theme';
|
|
3
|
+
|
|
4
|
+
const definition: ThemeDefinition = {
|
|
5
|
+
...baseTheme,
|
|
6
|
+
preset: {
|
|
7
|
+
...baseTheme.preset,
|
|
8
|
+
mode: 'dark',
|
|
9
|
+
colors: {
|
|
10
|
+
...baseTheme.preset.colors,
|
|
11
|
+
...{},
|
|
12
|
+
},
|
|
13
|
+
dark: {
|
|
14
|
+
...baseTheme.preset.dark,
|
|
15
|
+
...{
|
|
16
|
+
background: '235 18.8% 12.5%',
|
|
17
|
+
foreground: '229.3 35.4% 75.1%',
|
|
18
|
+
card: '240 15.4% 10.2%',
|
|
19
|
+
cardForeground: '232.7 13.9% 53.5%',
|
|
20
|
+
popover: '240 14.9% 9.2%',
|
|
21
|
+
popoverForeground: '232.7 13.9% 53.5%',
|
|
22
|
+
primary: '217.3 39.8% 55.7%',
|
|
23
|
+
primaryForeground: '0 0% 100%',
|
|
24
|
+
secondary: '240 15.4% 10.2%',
|
|
25
|
+
secondaryForeground: '232.7 13.9% 53.5%',
|
|
26
|
+
muted: '235.4 18.8% 13.5%',
|
|
27
|
+
mutedForeground: '230.3 16.1% 37.8%',
|
|
28
|
+
accent: '228.8 20% 15.7%',
|
|
29
|
+
accentForeground: '229.3 35.4% 75.1%',
|
|
30
|
+
border: '240 11.1% 7.1%',
|
|
31
|
+
input: '240 14.9% 9.2%',
|
|
32
|
+
ring: '228.7 72.6% 85.7%'
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default definition;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import baseTheme from './default';
|
|
2
|
+
import type { ThemeDefinition } from '../src/Theme';
|
|
3
|
+
|
|
4
|
+
const definition: ThemeDefinition = {
|
|
5
|
+
...baseTheme,
|
|
6
|
+
preset: {
|
|
7
|
+
...baseTheme.preset,
|
|
8
|
+
mode: 'dark',
|
|
9
|
+
colors: {
|
|
10
|
+
...baseTheme.preset.colors,
|
|
11
|
+
...{},
|
|
12
|
+
},
|
|
13
|
+
dark: {
|
|
14
|
+
...baseTheme.preset.dark,
|
|
15
|
+
...{
|
|
16
|
+
background: '0 0% 11.8%',
|
|
17
|
+
foreground: '0 0% 83.1%',
|
|
18
|
+
cardForeground: '0 0% 83.1%',
|
|
19
|
+
popover: '240 1.3% 14.7%',
|
|
20
|
+
popoverForeground: '0 0% 80%',
|
|
21
|
+
primaryForeground: '0 0% 11.8%',
|
|
22
|
+
secondaryForeground: '0 0% 83.1%',
|
|
23
|
+
accentForeground: '0 0% 83.1%'
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default definition;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import baseTheme from './default';
|
|
2
|
+
import type { ThemeDefinition } from '../src/Theme';
|
|
3
|
+
|
|
4
|
+
const definition: ThemeDefinition = {
|
|
5
|
+
...baseTheme,
|
|
6
|
+
preset: {
|
|
7
|
+
...baseTheme.preset,
|
|
8
|
+
mode: 'light',
|
|
9
|
+
colors: {
|
|
10
|
+
...baseTheme.preset.colors,
|
|
11
|
+
...{
|
|
12
|
+
background: '0 0% 100%',
|
|
13
|
+
foreground: '0 0% 0%',
|
|
14
|
+
cardForeground: '0 0% 0%',
|
|
15
|
+
popoverForeground: '0 0% 0%',
|
|
16
|
+
primaryForeground: '0 0% 100%',
|
|
17
|
+
secondaryForeground: '0 0% 0%',
|
|
18
|
+
accent: '0 0% 91%',
|
|
19
|
+
accentForeground: '0 0% 0%'
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
dark: {
|
|
23
|
+
...baseTheme.preset.dark,
|
|
24
|
+
...{},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default definition;
|