@uibot/registry 0.19.0 → 0.22.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/dist/component-replacement.d.ts +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2117 -12
- package/dist/materialize-templates.d.ts +28 -0
- package/dist/materialize.d.ts +63 -0
- package/dist/resources.d.ts +5 -0
- package/dist/resources.js +2108 -3
- package/dist/shadcn/r/admin-apps.json +1 -1
- package/dist/shadcn/r/admin-chats.json +1 -1
- package/dist/shadcn/r/admin-settings-account.json +1 -1
- package/dist/shadcn/r/admin-settings-appearance.json +1 -1
- package/dist/shadcn/r/admin-settings-display.json +1 -1
- package/dist/shadcn/r/admin-settings-notifications.json +1 -1
- package/dist/shadcn/r/admin-settings-profile.json +1 -1
- package/dist/shadcn/r/admin-settings.json +1 -1
- package/dist/shadcn/r/admin-shell.json +16 -3
- package/dist/shadcn/r/admin-tasks.json +1 -1
- package/dist/shadcn/r/admin-users.json +1 -1
- package/dist/shadcn/r/agent-run-console.json +64 -0
- package/dist/shadcn/r/auth-minimal.json +59 -0
- package/dist/shadcn/r/billing-overview.json +66 -0
- package/dist/shadcn/r/billing-usage-ledger.json +66 -0
- package/dist/shadcn/r/charts.json +44 -17
- package/dist/shadcn/r/chat-workspace.json +1 -1
- package/dist/shadcn/r/collection-cell-editor.json +1 -1
- package/dist/shadcn/r/collection-kanban.json +134 -0
- package/dist/shadcn/r/collection-panel-drawer.json +1 -1
- package/dist/shadcn/r/collection-record-menu.json +1 -1
- package/dist/shadcn/r/collection-shared.json +1 -1
- package/dist/shadcn/r/commerce-workspace.json +1 -1
- package/dist/shadcn/r/console-billing.json +1 -1
- package/dist/shadcn/r/console-page.json +14 -14
- package/dist/shadcn/r/console-shell.json +2 -2
- package/dist/shadcn/r/creation-html-generation.json +2 -2
- package/dist/shadcn/r/creation-reference-generation.json +2 -2
- package/dist/shadcn/r/creation-revision-export.json +2 -2
- package/dist/shadcn/r/creation-shared.json +2 -2
- package/dist/shadcn/r/creation-variant-compare.json +3 -3
- package/dist/shadcn/r/creation-workspace.json +3 -3
- package/dist/shadcn/r/crm-workspace.json +1 -1
- package/dist/shadcn/r/dashboard-01.json +78 -0
- package/dist/shadcn/r/dashboard.json +113 -3
- package/dist/shadcn/r/data-crud-gallery.json +66 -0
- package/dist/shadcn/r/data-crud-kanban.json +66 -0
- package/dist/shadcn/r/data-crud-master-detail.json +66 -0
- package/dist/shadcn/r/data-crud-table.json +66 -0
- package/dist/shadcn/r/data-table.json +120 -10
- package/dist/shadcn/r/data.json +9 -2
- package/dist/shadcn/r/document-assistant.json +1 -1
- package/dist/shadcn/r/document-workspace.json +1 -1
- package/dist/shadcn/r/drilldown-menu.json +1 -1
- package/dist/shadcn/r/education-workspace.json +1 -1
- package/dist/shadcn/r/feedback.json +15 -2
- package/dist/shadcn/r/form.json +1 -1
- package/dist/shadcn/r/launch-site.json +72 -0
- package/dist/shadcn/r/layout.json +57 -22
- package/dist/shadcn/r/nav.json +38 -10
- package/dist/shadcn/r/onboarding-checklist.json +63 -0
- package/dist/shadcn/r/onboarding-wizard.json +66 -0
- package/dist/shadcn/r/prompt-eval-workbench.json +65 -0
- package/dist/shadcn/r/record-master-detail.json +132 -0
- package/dist/shadcn/r/shadcn-admin.json +1 -1
- package/dist/shadcn/r/sidebar-primitives.json +1 -1
- package/dist/shadcn/r/workspace.json +9 -2
- package/dist/shadcn/registry.json +229 -27
- package/dist/solution-regions.d.ts +12 -2
- package/dist/spec-blueprint.d.ts +11 -0
- package/dist/spec-patch.d.ts +10 -0
- package/dist/variant-swap.d.ts +22 -0
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type CatalogEntry, type SwapVariantInput, type SwapVariantResult, type UIBotVariantContract, type VariantLevel, type VariantTargetKind } from "@uibot/contracts";
|
|
2
|
+
export interface VariantListFilter {
|
|
3
|
+
familyId?: string;
|
|
4
|
+
resourceId?: string;
|
|
5
|
+
level?: VariantLevel;
|
|
6
|
+
targetKind?: VariantTargetKind;
|
|
7
|
+
query?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface VariantRegistry {
|
|
10
|
+
register(contract: UIBotVariantContract): void;
|
|
11
|
+
get(familyId: string): UIBotVariantContract | undefined;
|
|
12
|
+
list(filter?: VariantListFilter): UIBotVariantContract[];
|
|
13
|
+
}
|
|
14
|
+
/** Browser-safe synchronous SHA-256 digest used for portable provenance hashes. */
|
|
15
|
+
export declare function sha256Hex(input: string): string;
|
|
16
|
+
export declare function summarizeVariantValue(value: unknown, maxLength?: number): string;
|
|
17
|
+
export declare function createVariantRegistry(families?: readonly UIBotVariantContract[]): VariantRegistry;
|
|
18
|
+
export declare function listVariantFamilies(source: readonly UIBotVariantContract[] | VariantRegistry, filter?: VariantListFilter): UIBotVariantContract[];
|
|
19
|
+
/** Derives L1 block-level UIBotVariantContracts from Catalog entries declaring `replacement`. */
|
|
20
|
+
export declare function deriveComponentVariantFamilies(components: Record<string, CatalogEntry>): UIBotVariantContract[];
|
|
21
|
+
/** Projects semantic bindings and customizations across same-family L1-L4 variants. */
|
|
22
|
+
export declare function swapVariant(familiesOrRegistry: readonly UIBotVariantContract[] | VariantRegistry, input: SwapVariantInput): SwapVariantResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uibot/registry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@uibot/contracts": "^0.
|
|
34
|
+
"@uibot/contracts": "^0.22.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "rm -rf dist tsconfig.tsbuildinfo && bun build --minify ./src/index.ts ./src/resources.ts --outdir ./dist --format esm --target bun && bun x tsc -b",
|