@llmnative/react 2.2.1 → 2.2.2
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/dist/index.css +1 -1
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1615 -1592
- package/dist/index.mjs.map +1 -1
- package/dist/types/src/App.d.ts +2 -0
- package/llms-full.txt +3 -0
- package/package.json +1 -1
- package/themes/default.ts +1 -1
- package/themes/flat.ts +1 -1
package/dist/types/src/App.d.ts
CHANGED
|
@@ -120,6 +120,8 @@ export type AppProps = AppProviderProps & {
|
|
|
120
120
|
export declare const setStaticMenu: (config: MenuConfig) => void;
|
|
121
121
|
export declare const getStaticMenu: (type: string) => MenuItem[];
|
|
122
122
|
export declare const getContextMenu: () => string[];
|
|
123
|
+
/** The title of the route at `path` in any menu of the app (hidden routes too), for a breadcrumb. */
|
|
124
|
+
export declare const menuTitleOf: (path: string) => string | undefined;
|
|
123
125
|
/**
|
|
124
126
|
* The full framework provider stack as a standalone component.
|
|
125
127
|
*
|
package/llms-full.txt
CHANGED
|
@@ -1052,6 +1052,9 @@ Parti comuni per grafici propri: `useChartTooltip()` (`show`, `showAt`, `hide`,
|
|
|
1052
1052
|
## Blocks
|
|
1053
1053
|
|
|
1054
1054
|
```tsx
|
|
1055
|
+
// Senza trail: dall'indirizzo, ogni pezzo col titolo della sua rotta nel menu ('/impostazioni' → 'Impostazioni'),
|
|
1056
|
+
// altrimenti leggibile ('lead-fermi' → 'Lead fermi'); un id resta com'è.
|
|
1057
|
+
<Breadcrumbs />
|
|
1055
1058
|
<Breadcrumbs trail={[{ label: 'Home', href: '/' }, { label: 'Utenti' }]} separator="/" jsonLd />
|
|
1056
1059
|
<Brand url="/" label="MyApp" logo="/logo.svg" width={120} />
|
|
1057
1060
|
<Search onQueryChange={(e) => setQ(e.target.value)} />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnative/react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "LLM-native React framework for deterministic UI generation. Data-driven by default, schema-driven optional. Ultra-low token consumption — built for AI agents, not just humans.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
package/themes/default.ts
CHANGED
|
@@ -48,7 +48,7 @@ export const preset: ThemePresetConfig = {
|
|
|
48
48
|
mutedForeground: '215 20.2% 65.1%',
|
|
49
49
|
accent: '217.2 32.6% 17.5%',
|
|
50
50
|
accentForeground: '210 40% 98%',
|
|
51
|
-
destructive: '0
|
|
51
|
+
destructive: '0 72% 51%',
|
|
52
52
|
destructiveForeground:'210 40% 98%',
|
|
53
53
|
success: '142.1 70.6% 45.3%',
|
|
54
54
|
successForeground: '0 0% 100%',
|
package/themes/flat.ts
CHANGED
|
@@ -46,7 +46,7 @@ export const preset: ThemePresetConfig = {
|
|
|
46
46
|
mutedForeground: '215 10% 55%',
|
|
47
47
|
accent: '215 20% 22%',
|
|
48
48
|
accentForeground: '215 10% 85%',
|
|
49
|
-
destructive: '0
|
|
49
|
+
destructive: '0 72% 51%',
|
|
50
50
|
destructiveForeground:'0 0% 100%',
|
|
51
51
|
success: '142.1 70.6% 45.3%',
|
|
52
52
|
successForeground: '0 0% 100%',
|