@uibot/registry 0.18.1 → 0.20.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 +59 -0
- package/dist/component-replacement.d.ts +10 -0
- package/dist/distribution-snapshot.d.ts +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -11
- package/dist/resource-query.d.ts +4 -0
- package/dist/resources.d.ts +4 -0
- package/dist/resources.js +3 -3
- package/dist/shadcn/r/admin-apps.json +61 -0
- package/dist/shadcn/r/admin-chats.json +54 -0
- package/dist/shadcn/r/admin-error-401.json +54 -0
- package/dist/shadcn/r/admin-error-403.json +54 -0
- package/dist/shadcn/r/admin-error-404.json +54 -0
- package/dist/shadcn/r/admin-error-500.json +54 -0
- package/dist/shadcn/r/admin-error-503.json +54 -0
- package/dist/shadcn/r/admin-forgot-password.json +59 -0
- package/dist/shadcn/r/admin-help.json +53 -0
- package/dist/shadcn/r/admin-otp.json +59 -0
- package/dist/shadcn/r/admin-overview.json +62 -0
- package/dist/shadcn/r/admin-settings-account.json +61 -0
- package/dist/shadcn/r/admin-settings-appearance.json +61 -0
- package/dist/shadcn/r/admin-settings-display.json +61 -0
- package/dist/shadcn/r/admin-settings-notifications.json +61 -0
- package/dist/shadcn/r/admin-settings-profile.json +61 -0
- package/dist/shadcn/r/admin-settings.json +65 -0
- package/dist/shadcn/r/admin-shell.json +25 -6
- package/dist/shadcn/r/admin-sign-in-2.json +67 -0
- package/dist/shadcn/r/admin-sign-in.json +59 -0
- package/dist/shadcn/r/admin-sign-up.json +59 -0
- package/dist/shadcn/r/admin-tasks.json +66 -0
- package/dist/shadcn/r/admin-users.json +66 -0
- package/dist/shadcn/r/auth-01.json +24 -0
- package/dist/shadcn/r/auth-02.json +24 -0
- package/dist/shadcn/r/auth-03.json +24 -0
- package/dist/shadcn/r/auth-04.json +24 -0
- package/dist/shadcn/r/auth-05.json +24 -0
- package/dist/shadcn/r/auth-centered.json +61 -0
- package/dist/shadcn/r/auth-enterprise.json +61 -0
- package/dist/shadcn/r/auth-primitives.json +58 -0
- package/dist/shadcn/r/auth-recovery.json +64 -0
- package/dist/shadcn/r/auth-registration.json +63 -0
- package/dist/shadcn/r/auth-split.json +67 -0
- package/dist/shadcn/r/auth.json +13 -13
- package/dist/shadcn/r/charts.json +45 -18
- package/dist/shadcn/r/chat-artifact.json +49 -0
- package/dist/shadcn/r/chat-focused.json +49 -0
- package/dist/shadcn/r/chat-history.json +49 -0
- package/dist/shadcn/r/chat-knowledge.json +49 -0
- package/dist/shadcn/r/chat-support.json +49 -0
- package/dist/shadcn/r/chat-workspace.json +136 -0
- package/dist/shadcn/r/collection-cell-editor.json +6 -6
- package/dist/shadcn/r/collection-panel-drawer.json +2 -2
- package/dist/shadcn/r/collection-record-menu.json +2 -2
- package/dist/shadcn/r/collection-shared.json +2 -2
- package/dist/shadcn/r/commerce-workspace.json +69 -0
- package/dist/shadcn/r/console-billing.json +68 -0
- package/dist/shadcn/r/console-page.json +289 -0
- package/dist/shadcn/r/console-shell.json +29 -0
- package/dist/shadcn/r/content.json +1 -1
- package/dist/shadcn/r/creation-html-generation.json +3 -3
- package/dist/shadcn/r/creation-reference-generation.json +3 -3
- package/dist/shadcn/r/creation-revision-export.json +3 -3
- package/dist/shadcn/r/creation-shared.json +3 -3
- package/dist/shadcn/r/creation-variant-compare.json +4 -4
- package/dist/shadcn/r/creation-workspace.json +4 -4
- package/dist/shadcn/r/crm-workspace.json +73 -0
- package/dist/shadcn/r/dashboard-01.json +78 -0
- package/dist/shadcn/r/dashboard.json +114 -4
- package/dist/shadcn/r/data-studio.json +1 -1
- package/dist/shadcn/r/data-table.json +138 -10
- package/dist/shadcn/r/data.json +88 -11
- package/dist/shadcn/r/document-assistant.json +54 -0
- package/dist/shadcn/r/document-library.json +49 -0
- package/dist/shadcn/r/document-reading.json +49 -0
- package/dist/shadcn/r/document-workspace.json +164 -0
- package/dist/shadcn/r/document-writing.json +49 -0
- package/dist/shadcn/r/drilldown-menu.json +233 -0
- package/dist/shadcn/r/education-workspace.json +82 -0
- package/dist/shadcn/r/feedback.json +19 -6
- package/dist/shadcn/r/field.json +1 -1
- package/dist/shadcn/r/form.json +12 -12
- package/dist/shadcn/r/grid.json +1 -1
- package/dist/shadcn/r/interactive.json +1 -1
- package/dist/shadcn/r/item-grid.json +219 -0
- package/dist/shadcn/r/kanban.json +1 -1
- package/dist/shadcn/r/layout.json +217 -18
- package/dist/shadcn/r/marketing.json +1 -1
- package/dist/shadcn/r/nav.json +39 -11
- package/dist/shadcn/r/presentation.json +1 -1
- package/dist/shadcn/r/preview-device-frame.json +2 -2
- package/dist/shadcn/r/primitives.json +2 -2
- package/dist/shadcn/r/sections.json +1 -1
- package/dist/shadcn/r/shadcn-admin-shell.json +1 -1
- package/dist/shadcn/r/shadcn-admin.json +23 -22
- package/dist/shadcn/r/sidebar-01.json +42 -0
- package/dist/shadcn/r/sidebar-02.json +42 -0
- package/dist/shadcn/r/sidebar-03.json +30 -0
- package/dist/shadcn/r/sidebar-04.json +30 -0
- package/dist/shadcn/r/sidebar-05.json +36 -0
- package/dist/shadcn/r/sidebar-06.json +42 -0
- package/dist/shadcn/r/sidebar-07.json +54 -0
- package/dist/shadcn/r/sidebar-08.json +54 -0
- package/dist/shadcn/r/sidebar-09.json +36 -0
- package/dist/shadcn/r/sidebar-10.json +66 -0
- package/dist/shadcn/r/sidebar-11.json +30 -0
- package/dist/shadcn/r/sidebar-12.json +48 -0
- package/dist/shadcn/r/sidebar-13.json +30 -0
- package/dist/shadcn/r/sidebar-14.json +30 -0
- package/dist/shadcn/r/sidebar-15.json +84 -0
- package/dist/shadcn/r/sidebar-16.json +66 -0
- package/dist/shadcn/r/sidebar-drilldown.json +29 -0
- package/dist/shadcn/r/sidebar-primitives.json +155 -0
- package/dist/shadcn/r/uibot-base.json +3 -3
- package/dist/shadcn/r/workspace.json +11 -4
- package/dist/shadcn/registry.json +1016 -176
- package/dist/shadcn.d.ts +0 -39
- package/dist/solution-composition.d.ts +45 -0
- package/dist/solution-regions.d.ts +3 -0
- package/dist/solution-spec.d.ts +7 -0
- package/dist/template-source.d.ts +2 -0
- package/package.json +2 -2
package/dist/shadcn.d.ts
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* shadcn-style registry emitter (Phase 4 / Part2a).
|
|
3
|
-
*
|
|
4
|
-
* Produces a [shadcn registry](https://ui.shadcn.com/docs/registry/getting-started)
|
|
5
|
-
* from the neutral {@link BlockSource}[] that {@link collectBlockSources}
|
|
6
|
-
* yields — the **same** source set the uibot-native emitter (`./emit`)
|
|
7
|
-
* consumes, so the block set is never re-scanned.
|
|
8
|
-
*
|
|
9
|
-
* Two artefacts are produced:
|
|
10
|
-
* - a top-level `registry.json` ({@link ShadcnRegistry}) with an `items[]`
|
|
11
|
-
* summary (no file content); and
|
|
12
|
-
* - one registry-item JSON per block ({@link ShadcnRegistryItem}) carrying the
|
|
13
|
-
* transformed, self-contained source under `files[].content`.
|
|
14
|
-
*
|
|
15
|
-
* ## The dependency problem
|
|
16
|
-
*
|
|
17
|
-
* UIBot blocks are not standard prop components — they are
|
|
18
|
-
* `(props, ctx) => JSX` renderer adapters that `import type { RendererComponent }
|
|
19
|
-
* from "@uibot/renderer-react"` (type-only, zero runtime cost). We do **not**
|
|
20
|
-
* want consumers to install `@uibot/renderer-react` (it drags in the compiler
|
|
21
|
-
* and contracts). Instead every block item declares `registryDependencies:
|
|
22
|
-
* ["uibot-base"]`, and a single shared `uibot-base` item ships a self-contained
|
|
23
|
-
* `lib/uibot-renderer.ts` shim (+ `lib/utils.ts` `cn`). {@link transformBlockSource}
|
|
24
|
-
* rewrites the `@uibot/renderer-react` import to point at that shim, so each
|
|
25
|
-
* emitted source file compiles standalone. `shadcn add card.json` then pulls
|
|
26
|
-
* `uibot-base` automatically.
|
|
27
|
-
*
|
|
28
|
-
* ## Spec awareness (ADR 0012)
|
|
29
|
-
*
|
|
30
|
-
* Every component item also carries a {@link UIBotRegistryItemDescriptor}
|
|
31
|
-
* (`meta.uibot` plus an installed `<item>.uibot.json`) that binds each Spec
|
|
32
|
-
* component type to its export and full catalog entry, so a host can rebuild
|
|
33
|
-
* its Spec catalog from what it installed. Template items ship a Spec YAML whose
|
|
34
|
-
* `registryDependencies` are the component items its `composedFrom` resolves
|
|
35
|
-
* to — the same graph gap recovery uses at runtime.
|
|
36
|
-
*
|
|
37
|
-
* Same-registry dependencies are written as namespaced (`@uibot/uibot-base`) or
|
|
38
|
-
* absolute URLs: a bare name would resolve against the official shadcn registry.
|
|
39
|
-
*/
|
|
40
1
|
import { type CatalogEntry, type UIBotRegistryChannel } from "@uibot/contracts";
|
|
41
2
|
import type { BlockSource } from "./block-source.js";
|
|
42
3
|
import type { TemplateSource } from "./template-source.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { BlockTreePage, Connection, SolutionIdentity, SolutionPageAdoption, SolutionControl, UIBotSpec } from "@uibot/contracts";
|
|
2
|
+
/** Stable JSON comparison; no runtime state or authorization is inferred. */
|
|
3
|
+
export declare function solutionContentKey(value: unknown): string;
|
|
4
|
+
export interface SolutionCompositionOptions {
|
|
5
|
+
selectedPageIds?: string[];
|
|
6
|
+
paths?: Record<string, string>;
|
|
7
|
+
pageIds?: Record<string, string>;
|
|
8
|
+
connections?: Record<string, string>;
|
|
9
|
+
layout: "source" | "target";
|
|
10
|
+
addNavigation?: boolean;
|
|
11
|
+
configuration?: Record<string, string | number | boolean>;
|
|
12
|
+
frame?: SolutionPageAdoption["bindings"]["frame"];
|
|
13
|
+
}
|
|
14
|
+
export interface SolutionUpgradeSource {
|
|
15
|
+
identity: SolutionIdentity;
|
|
16
|
+
spec: UIBotSpec;
|
|
17
|
+
controls?: readonly SolutionControl[];
|
|
18
|
+
}
|
|
19
|
+
export { assertSolutionComposition } from "@uibot/contracts";
|
|
20
|
+
export declare function composeSolutionSpec(target: UIBotSpec, source: SolutionUpgradeSource, options: SolutionCompositionOptions): {
|
|
21
|
+
spec: UIBotSpec;
|
|
22
|
+
pages: {
|
|
23
|
+
id: string;
|
|
24
|
+
path: string;
|
|
25
|
+
}[];
|
|
26
|
+
connections: Connection[];
|
|
27
|
+
layout: "source" | "target";
|
|
28
|
+
};
|
|
29
|
+
export type SolutionUpgradeDecision = "update" | "replace" | "keep" | "detach";
|
|
30
|
+
export interface SolutionPageUpgrade {
|
|
31
|
+
pageId: string;
|
|
32
|
+
path: string;
|
|
33
|
+
status: "unchanged" | "update" | "customized" | "conflict" | "removed" | "deleted-locally" | "blocked";
|
|
34
|
+
from: SolutionIdentity;
|
|
35
|
+
to: SolutionIdentity;
|
|
36
|
+
error?: string;
|
|
37
|
+
nextPath?: string;
|
|
38
|
+
incoming?: BlockTreePage;
|
|
39
|
+
}
|
|
40
|
+
export declare function planSolutionUpgrade(target: UIBotSpec, source: SolutionUpgradeSource, connections?: Record<string, string>): {
|
|
41
|
+
pages: SolutionPageUpgrade[];
|
|
42
|
+
tracked: boolean;
|
|
43
|
+
};
|
|
44
|
+
/** Explicit decisions only. The caller applies this to a draft and saves with CAS. */
|
|
45
|
+
export declare function applySolutionUpgrade(target: UIBotSpec, source: SolutionUpgradeSource, decisions: Record<string, SolutionUpgradeDecision>, connections?: Record<string, string>): UIBotSpec;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type PageFrameSolution, type UIBotSpec } from "@uibot/contracts";
|
|
2
|
+
/** Pure, whole-group replacement. Business content stays in its explicit slot. */
|
|
3
|
+
export declare function replaceSolutionPageFrames(target: UIBotSpec, source: PageFrameSolution, mapping: Record<string, string>): UIBotSpec;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SolutionControl, UIBotSpec } from "@uibot/contracts";
|
|
2
|
+
/** Apply only an author's declared scalar controls; no hidden configuration store. */
|
|
3
|
+
export declare function configureSolutionSpec(spec: UIBotSpec, controls: readonly SolutionControl[], changes: Record<string, unknown>): UIBotSpec;
|
|
4
|
+
/** Append an explicitly selected suite. No implicit overwrite, routing or state merge. */
|
|
5
|
+
export declare function appendSolutionPages(target: UIBotSpec, incoming: UIBotSpec, options?: {
|
|
6
|
+
addNavigation?: boolean;
|
|
7
|
+
}): UIBotSpec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uibot/registry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.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.20.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",
|