@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.
Files changed (121) hide show
  1. package/README.md +59 -0
  2. package/dist/component-replacement.d.ts +10 -0
  3. package/dist/distribution-snapshot.d.ts +22 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +11 -11
  6. package/dist/resource-query.d.ts +4 -0
  7. package/dist/resources.d.ts +4 -0
  8. package/dist/resources.js +3 -3
  9. package/dist/shadcn/r/admin-apps.json +61 -0
  10. package/dist/shadcn/r/admin-chats.json +54 -0
  11. package/dist/shadcn/r/admin-error-401.json +54 -0
  12. package/dist/shadcn/r/admin-error-403.json +54 -0
  13. package/dist/shadcn/r/admin-error-404.json +54 -0
  14. package/dist/shadcn/r/admin-error-500.json +54 -0
  15. package/dist/shadcn/r/admin-error-503.json +54 -0
  16. package/dist/shadcn/r/admin-forgot-password.json +59 -0
  17. package/dist/shadcn/r/admin-help.json +53 -0
  18. package/dist/shadcn/r/admin-otp.json +59 -0
  19. package/dist/shadcn/r/admin-overview.json +62 -0
  20. package/dist/shadcn/r/admin-settings-account.json +61 -0
  21. package/dist/shadcn/r/admin-settings-appearance.json +61 -0
  22. package/dist/shadcn/r/admin-settings-display.json +61 -0
  23. package/dist/shadcn/r/admin-settings-notifications.json +61 -0
  24. package/dist/shadcn/r/admin-settings-profile.json +61 -0
  25. package/dist/shadcn/r/admin-settings.json +65 -0
  26. package/dist/shadcn/r/admin-shell.json +25 -6
  27. package/dist/shadcn/r/admin-sign-in-2.json +67 -0
  28. package/dist/shadcn/r/admin-sign-in.json +59 -0
  29. package/dist/shadcn/r/admin-sign-up.json +59 -0
  30. package/dist/shadcn/r/admin-tasks.json +66 -0
  31. package/dist/shadcn/r/admin-users.json +66 -0
  32. package/dist/shadcn/r/auth-01.json +24 -0
  33. package/dist/shadcn/r/auth-02.json +24 -0
  34. package/dist/shadcn/r/auth-03.json +24 -0
  35. package/dist/shadcn/r/auth-04.json +24 -0
  36. package/dist/shadcn/r/auth-05.json +24 -0
  37. package/dist/shadcn/r/auth-centered.json +61 -0
  38. package/dist/shadcn/r/auth-enterprise.json +61 -0
  39. package/dist/shadcn/r/auth-primitives.json +58 -0
  40. package/dist/shadcn/r/auth-recovery.json +64 -0
  41. package/dist/shadcn/r/auth-registration.json +63 -0
  42. package/dist/shadcn/r/auth-split.json +67 -0
  43. package/dist/shadcn/r/auth.json +13 -13
  44. package/dist/shadcn/r/charts.json +45 -18
  45. package/dist/shadcn/r/chat-artifact.json +49 -0
  46. package/dist/shadcn/r/chat-focused.json +49 -0
  47. package/dist/shadcn/r/chat-history.json +49 -0
  48. package/dist/shadcn/r/chat-knowledge.json +49 -0
  49. package/dist/shadcn/r/chat-support.json +49 -0
  50. package/dist/shadcn/r/chat-workspace.json +136 -0
  51. package/dist/shadcn/r/collection-cell-editor.json +6 -6
  52. package/dist/shadcn/r/collection-panel-drawer.json +2 -2
  53. package/dist/shadcn/r/collection-record-menu.json +2 -2
  54. package/dist/shadcn/r/collection-shared.json +2 -2
  55. package/dist/shadcn/r/commerce-workspace.json +69 -0
  56. package/dist/shadcn/r/console-billing.json +68 -0
  57. package/dist/shadcn/r/console-page.json +289 -0
  58. package/dist/shadcn/r/console-shell.json +29 -0
  59. package/dist/shadcn/r/content.json +1 -1
  60. package/dist/shadcn/r/creation-html-generation.json +3 -3
  61. package/dist/shadcn/r/creation-reference-generation.json +3 -3
  62. package/dist/shadcn/r/creation-revision-export.json +3 -3
  63. package/dist/shadcn/r/creation-shared.json +3 -3
  64. package/dist/shadcn/r/creation-variant-compare.json +4 -4
  65. package/dist/shadcn/r/creation-workspace.json +4 -4
  66. package/dist/shadcn/r/crm-workspace.json +73 -0
  67. package/dist/shadcn/r/dashboard-01.json +78 -0
  68. package/dist/shadcn/r/dashboard.json +114 -4
  69. package/dist/shadcn/r/data-studio.json +1 -1
  70. package/dist/shadcn/r/data-table.json +138 -10
  71. package/dist/shadcn/r/data.json +88 -11
  72. package/dist/shadcn/r/document-assistant.json +54 -0
  73. package/dist/shadcn/r/document-library.json +49 -0
  74. package/dist/shadcn/r/document-reading.json +49 -0
  75. package/dist/shadcn/r/document-workspace.json +164 -0
  76. package/dist/shadcn/r/document-writing.json +49 -0
  77. package/dist/shadcn/r/drilldown-menu.json +233 -0
  78. package/dist/shadcn/r/education-workspace.json +82 -0
  79. package/dist/shadcn/r/feedback.json +19 -6
  80. package/dist/shadcn/r/field.json +1 -1
  81. package/dist/shadcn/r/form.json +12 -12
  82. package/dist/shadcn/r/grid.json +1 -1
  83. package/dist/shadcn/r/interactive.json +1 -1
  84. package/dist/shadcn/r/item-grid.json +219 -0
  85. package/dist/shadcn/r/kanban.json +1 -1
  86. package/dist/shadcn/r/layout.json +217 -18
  87. package/dist/shadcn/r/marketing.json +1 -1
  88. package/dist/shadcn/r/nav.json +39 -11
  89. package/dist/shadcn/r/presentation.json +1 -1
  90. package/dist/shadcn/r/preview-device-frame.json +2 -2
  91. package/dist/shadcn/r/primitives.json +2 -2
  92. package/dist/shadcn/r/sections.json +1 -1
  93. package/dist/shadcn/r/shadcn-admin-shell.json +1 -1
  94. package/dist/shadcn/r/shadcn-admin.json +23 -22
  95. package/dist/shadcn/r/sidebar-01.json +42 -0
  96. package/dist/shadcn/r/sidebar-02.json +42 -0
  97. package/dist/shadcn/r/sidebar-03.json +30 -0
  98. package/dist/shadcn/r/sidebar-04.json +30 -0
  99. package/dist/shadcn/r/sidebar-05.json +36 -0
  100. package/dist/shadcn/r/sidebar-06.json +42 -0
  101. package/dist/shadcn/r/sidebar-07.json +54 -0
  102. package/dist/shadcn/r/sidebar-08.json +54 -0
  103. package/dist/shadcn/r/sidebar-09.json +36 -0
  104. package/dist/shadcn/r/sidebar-10.json +66 -0
  105. package/dist/shadcn/r/sidebar-11.json +30 -0
  106. package/dist/shadcn/r/sidebar-12.json +48 -0
  107. package/dist/shadcn/r/sidebar-13.json +30 -0
  108. package/dist/shadcn/r/sidebar-14.json +30 -0
  109. package/dist/shadcn/r/sidebar-15.json +84 -0
  110. package/dist/shadcn/r/sidebar-16.json +66 -0
  111. package/dist/shadcn/r/sidebar-drilldown.json +29 -0
  112. package/dist/shadcn/r/sidebar-primitives.json +155 -0
  113. package/dist/shadcn/r/uibot-base.json +3 -3
  114. package/dist/shadcn/r/workspace.json +11 -4
  115. package/dist/shadcn/registry.json +1016 -176
  116. package/dist/shadcn.d.ts +0 -39
  117. package/dist/solution-composition.d.ts +45 -0
  118. package/dist/solution-regions.d.ts +3 -0
  119. package/dist/solution-spec.d.ts +7 -0
  120. package/dist/template-source.d.ts +2 -0
  121. 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;
@@ -5,6 +5,8 @@
5
5
  import type { UIBotRegistryChannel, TemplateArtifact, TemplateContract } from "@uibot/contracts";
6
6
  export interface TemplateSource {
7
7
  name: string;
8
+ sourceHash?: string;
9
+ packageName?: string;
8
10
  version: string;
9
11
  title: string;
10
12
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uibot/registry",
3
- "version": "0.18.1",
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.18.1"
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",