handoff-app 1.2.2-7 → 2.0.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/Changelog.md +37 -15
- package/README.md +372 -118
- package/dist/app-builder/build.d.ts +41 -2
- package/dist/app-builder/build.js +455 -18
- package/dist/app-builder/client-config.d.ts +15 -2
- package/dist/app-builder/client-config.js +43 -4
- package/dist/app-builder/config-diff/snapshot.d.ts +1 -6
- package/dist/app-builder/config-diff/snapshot.js +2 -9
- package/dist/app-builder/index.d.ts +1 -1
- package/dist/app-builder/index.js +3 -1
- package/dist/app-builder/nav-shell.d.ts +23 -0
- package/dist/app-builder/nav-shell.js +80 -0
- package/dist/app-builder/static-export.d.ts +17 -0
- package/dist/app-builder/static-export.js +181 -0
- package/dist/app-builder/vercel-output.d.ts +39 -0
- package/dist/app-builder/vercel-output.js +259 -0
- package/dist/app-builder/watchers/utils.d.ts +2 -0
- package/dist/app-builder/watchers.d.ts +14 -4
- package/dist/app-builder/watchers.js +123 -28
- package/dist/app-builder/websocket.js +1 -1
- package/dist/artifacts/index.d.ts +2 -0
- package/dist/artifacts/index.js +13 -0
- package/dist/artifacts/types.d.ts +136 -0
- package/dist/artifacts/types.js +24 -0
- package/dist/artifacts/url.d.ts +49 -0
- package/dist/artifacts/url.js +86 -0
- package/dist/cache/build-cache.js +48 -4
- package/dist/cli.js +0 -0
- package/dist/commands/build/app.js +1 -2
- package/dist/commands/build/index.d.ts +17 -0
- package/dist/commands/build/index.js +66 -0
- package/dist/commands/checkout/index.d.ts +24 -0
- package/dist/commands/checkout/index.js +71 -0
- package/dist/commands/db/migrate.d.ts +11 -0
- package/dist/commands/db/migrate.js +33 -0
- package/dist/commands/index.js +8 -0
- package/dist/commands/publish/index.d.ts +21 -0
- package/dist/commands/publish/index.js +68 -0
- package/dist/config/defaults.js +15 -1
- package/dist/config/loader.js +6 -1
- package/dist/config/normalizers/declaration.js +4 -1
- package/dist/config/normalizers/page.d.ts +18 -0
- package/dist/config/normalizers/page.js +34 -0
- package/dist/config/normalizers/pattern.js +7 -1
- package/dist/config/runtime.d.ts +4 -0
- package/dist/config/runtime.js +53 -5
- package/dist/index.d.ts +65 -1
- package/dist/index.js +123 -3
- package/dist/nav/index.d.ts +83 -0
- package/dist/nav/index.js +9 -0
- package/dist/nav/registry.d.ts +15 -0
- package/dist/nav/registry.js +42 -0
- package/dist/nav/resolver.d.ts +8 -0
- package/dist/nav/resolver.js +192 -0
- package/dist/nav/workspace.d.ts +18 -0
- package/dist/nav/workspace.js +103 -0
- package/dist/pipeline/styles.js +7 -35
- package/dist/pipeline/token-transformers.d.ts +45 -0
- package/dist/pipeline/token-transformers.js +71 -0
- package/dist/registry/asset-storage/adapters/vercel-blob.d.ts +17 -0
- package/dist/registry/asset-storage/adapters/vercel-blob.js +87 -0
- package/dist/registry/asset-storage/define.d.ts +10 -0
- package/dist/registry/asset-storage/define.js +13 -0
- package/dist/registry/asset-storage/resolve.d.ts +45 -0
- package/dist/registry/asset-storage/resolve.js +36 -0
- package/dist/registry/asset-storage/types.d.ts +51 -0
- package/dist/registry/asset-storage/types.js +9 -0
- package/dist/registry/assets/layout.d.ts +22 -0
- package/dist/registry/assets/layout.js +30 -0
- package/dist/registry/assets/sets.d.ts +18 -0
- package/dist/registry/assets/sets.js +44 -0
- package/dist/registry/assets/transfer.d.ts +45 -0
- package/dist/registry/assets/transfer.js +11 -0
- package/dist/registry/checkout/assets.d.ts +16 -0
- package/dist/registry/checkout/assets.js +150 -0
- package/dist/registry/checkout/index.d.ts +33 -0
- package/dist/registry/checkout/index.js +610 -0
- package/dist/registry/checkout/tokens.d.ts +15 -0
- package/dist/registry/checkout/tokens.js +171 -0
- package/dist/registry/client.d.ts +61 -0
- package/dist/registry/client.js +211 -0
- package/dist/registry/connection.d.ts +30 -0
- package/dist/registry/connection.js +36 -0
- package/dist/registry/db/adapter.d.ts +43 -0
- package/dist/registry/db/adapter.js +59 -0
- package/dist/registry/db/client.d.ts +35 -0
- package/dist/registry/db/client.js +94 -0
- package/dist/registry/db/index.d.ts +5 -0
- package/dist/registry/db/index.js +24 -0
- package/dist/registry/db/migrate.d.ts +23 -0
- package/dist/registry/db/migrate.js +64 -0
- package/dist/registry/db/schema.d.ts +4869 -0
- package/dist/registry/db/schema.js +347 -0
- package/dist/registry/path.d.ts +4 -0
- package/dist/registry/path.js +31 -0
- package/dist/registry/publish/artifacts.d.ts +16 -0
- package/dist/registry/publish/artifacts.js +132 -0
- package/dist/registry/publish/assets.d.ts +16 -0
- package/dist/registry/publish/assets.js +129 -0
- package/dist/registry/publish/errors.d.ts +5 -0
- package/dist/registry/publish/errors.js +26 -0
- package/dist/registry/publish/index.d.ts +27 -0
- package/dist/registry/publish/index.js +126 -0
- package/dist/registry/publish/package.d.ts +27 -0
- package/dist/registry/publish/package.js +257 -0
- package/dist/registry/publish/publish-build.d.ts +12 -0
- package/dist/registry/publish/publish-build.js +43 -0
- package/dist/registry/publish/tokens.d.ts +18 -0
- package/dist/registry/publish/tokens.js +112 -0
- package/dist/registry/tokens/sets.d.ts +59 -0
- package/dist/registry/tokens/sets.js +109 -0
- package/dist/registry/tokens/transfer.d.ts +48 -0
- package/dist/registry/tokens/transfer.js +10 -0
- package/dist/registry/transfer.d.ts +75 -0
- package/dist/registry/transfer.js +11 -0
- package/dist/store/filesystem-assets.d.ts +17 -0
- package/dist/store/filesystem-assets.js +147 -0
- package/dist/store/filesystem.d.ts +76 -0
- package/dist/store/filesystem.js +208 -0
- package/dist/store/index.d.ts +20 -0
- package/dist/store/index.js +38 -0
- package/dist/store/registry.d.ts +77 -0
- package/dist/store/registry.js +350 -0
- package/dist/store/source-files.d.ts +24 -0
- package/dist/store/source-files.js +147 -0
- package/dist/store/types.d.ts +185 -0
- package/dist/store/types.js +12 -0
- package/dist/transformers/plugins/csf-render.js +17 -8
- package/dist/transformers/plugins/handlebars-previews.js +10 -3
- package/dist/transformers/plugins/ssr-render.js +116 -49
- package/dist/transformers/preview/component/api.js +3 -1
- package/dist/transformers/preview/component/artifacts.js +8 -1
- package/dist/transformers/preview/component/builder.js +13 -5
- package/dist/transformers/preview/component/css.js +9 -1
- package/dist/transformers/preview/component/javascript.d.ts +9 -3
- package/dist/transformers/preview/component/javascript.js +45 -17
- package/dist/transformers/preview/component/shared-artifacts.d.ts +83 -0
- package/dist/transformers/preview/component/shared-artifacts.js +92 -0
- package/dist/transformers/preview/component.js +5 -2
- package/dist/transformers/preview/pattern/builder.js +28 -9
- package/dist/transformers/preview/pattern/html.d.ts +13 -10
- package/dist/transformers/preview/pattern/html.js +62 -27
- package/dist/transformers/preview/types.d.ts +38 -0
- package/dist/transformers/utils/handlebars.d.ts +3 -0
- package/dist/transformers/utils/handlebars.js +19 -5
- package/dist/types/config.d.ts +118 -25
- package/dist/utils/menu-shell.d.ts +60 -0
- package/dist/utils/menu-shell.js +221 -0
- package/dist/utils/stable-stringify.d.ts +2 -0
- package/dist/utils/stable-stringify.js +8 -0
- package/docs/cli.md +4 -2
- package/drizzle/0000_init_registry_storage.sql +95 -0
- package/drizzle/0001_add_review_metadata.sql +2 -0
- package/drizzle/0002_add_pages.sql +28 -0
- package/drizzle/0003_add_tokens.sql +29 -0
- package/drizzle/0004_add_assets.sql +37 -0
- package/drizzle/meta/0000_snapshot.json +642 -0
- package/drizzle/meta/0001_snapshot.json +654 -0
- package/drizzle/meta/0002_snapshot.json +835 -0
- package/drizzle/meta/0003_snapshot.json +1023 -0
- package/drizzle/meta/0004_snapshot.json +1252 -0
- package/drizzle/meta/_journal.json +41 -0
- package/drizzle.config.ts +16 -0
- package/package.json +10 -1
- package/src/app/components/Component/Preview.tsx +3 -2
- package/src/app/components/Component/RegistryActions.tsx +150 -0
- package/src/app/components/Foundations/DisplayLogo.tsx +5 -3
- package/src/app/components/Layout/Header.tsx +21 -3
- package/src/app/components/Layout/Main.tsx +11 -3
- package/src/app/components/Navigation/MainNav.tsx +4 -2
- package/src/app/components/Navigation/MobileNav.tsx +4 -2
- package/src/app/components/Navigation/SideNav.tsx +46 -11
- package/src/app/components/NotFound.tsx +24 -0
- package/src/app/components/context/NavProvider.tsx +71 -0
- package/src/app/components/old/Header.tsx +3 -3
- package/src/app/components/util/index.ts +203 -380
- package/src/app/components/util/useCollectionAssets.ts +125 -0
- package/src/app/components/util/useFoundationTokens.ts +67 -0
- package/src/app/generated/default-pages.json +1 -0
- package/src/app/generated/nav-shell.json +1 -0
- package/src/app/lib/api/query.ts +6 -0
- package/src/app/lib/api/redact.ts +46 -0
- package/src/app/lib/asset-storage.ts +81 -0
- package/src/app/lib/docs-api/artifacts.ts +116 -0
- package/src/app/lib/docs-api/backend.ts +151 -0
- package/src/app/lib/docs-api/errors.ts +52 -0
- package/src/app/lib/docs-api/handler.ts +34 -0
- package/src/app/lib/docs-api/index.ts +7 -0
- package/src/app/lib/docs-api/records.ts +189 -0
- package/src/app/lib/docs-api/registry.ts +130 -0
- package/src/app/lib/docs-api/runtime-config.ts +173 -0
- package/src/app/lib/docs-api/serve.ts +37 -0
- package/src/app/lib/docs-api/token-detail.ts +19 -0
- package/src/app/lib/registry-api/allowlist.ts +163 -0
- package/src/app/lib/registry-api/asset-transfer.ts +363 -0
- package/src/app/lib/registry-api/auth.ts +68 -0
- package/src/app/lib/registry-api/entity-routes.ts +197 -0
- package/src/app/lib/registry-api/errors.ts +51 -0
- package/src/app/lib/registry-api/files.ts +135 -0
- package/src/app/lib/registry-api/handler.ts +96 -0
- package/src/app/lib/registry-api/index.ts +4 -0
- package/src/app/lib/registry-api/meta.ts +87 -0
- package/src/app/lib/registry-api/revalidate.ts +36 -0
- package/src/app/lib/registry-api/store.ts +348 -0
- package/src/app/lib/registry-api/token-transfer.ts +231 -0
- package/src/app/lib/registry-api/transfer.ts +513 -0
- package/src/app/lib/registry-api/validation.ts +74 -0
- package/src/app/lib/registry-connection.ts +58 -0
- package/src/app/lib/utils.ts +14 -0
- package/src/app/next.config.mjs +72 -13
- package/src/app/pages/[...slug]/index.tsx +74 -20
- package/src/app/pages/_app.tsx +5 -2
- package/src/app/pages/api/docs/artifacts/[...artifactPath].ts +16 -0
- package/src/app/pages/api/docs/assets/[collection]/[...path].ts +50 -0
- package/src/app/pages/api/docs/assets/[collection]/index.ts +22 -0
- package/src/app/pages/api/docs/components/[id]/assets/[asset].ts +33 -0
- package/src/app/pages/api/docs/components/[id]/inspect/[previewId].ts +20 -0
- package/src/app/pages/api/docs/components/[id]/previews/[previewId].ts +21 -0
- package/src/app/pages/api/docs/components/[id].ts +24 -0
- package/src/app/pages/api/docs/components.json.ts +12 -0
- package/src/app/pages/api/docs/nav.json.ts +48 -0
- package/src/app/pages/api/docs/patterns/[id]/preview.ts +19 -0
- package/src/app/pages/api/docs/patterns/[id].ts +24 -0
- package/src/app/pages/api/docs/patterns.json.ts +12 -0
- package/src/app/pages/api/docs/tokens/components/[id].ts +30 -0
- package/src/app/pages/api/docs/tokens/foundations/[type].ts +32 -0
- package/src/app/pages/api/registry/components/[id]/files/[...filePath].ts +19 -0
- package/src/app/pages/api/registry/components/[id]/files/index.ts +19 -0
- package/src/app/pages/api/registry/components/[id].ts +20 -0
- package/src/app/pages/api/registry/components/index.ts +19 -0
- package/src/app/pages/api/registry/health.ts +20 -0
- package/src/app/pages/api/registry/patterns/[id]/files/[...filePath].ts +19 -0
- package/src/app/pages/api/registry/patterns/[id]/files/index.ts +19 -0
- package/src/app/pages/api/registry/patterns/[id].ts +20 -0
- package/src/app/pages/api/registry/patterns/index.ts +19 -0
- package/src/app/pages/api/registry/transfer/[kind]/[id].ts +39 -0
- package/src/app/pages/api/registry/transfer/assets/[collection].ts +24 -0
- package/src/app/pages/api/registry/transfer/assets/blobs/[hash].ts +23 -0
- package/src/app/pages/api/registry/transfer/assets/blobs/have.ts +11 -0
- package/src/app/pages/api/registry/transfer/assets/index.ts +10 -0
- package/src/app/pages/api/registry/transfer/tokens/[...setId].ts +26 -0
- package/src/app/pages/api/registry/transfer/tokens/index.ts +11 -0
- package/src/app/pages/assets/fonts.tsx +41 -17
- package/src/app/pages/assets/index.tsx +2 -2
- package/src/app/pages/assets/logos.tsx +2 -2
- package/src/app/pages/foundations/colors.tsx +18 -8
- package/src/app/pages/foundations/effects.tsx +18 -8
- package/src/app/pages/foundations/icons/[name]/index.tsx +26 -14
- package/src/app/pages/foundations/icons/index.tsx +13 -9
- package/src/app/pages/foundations/index.tsx +1 -1
- package/src/app/pages/foundations/logo.tsx +7 -4
- package/src/app/pages/foundations/typography.tsx +19 -9
- package/src/app/pages/index.tsx +1 -1
- package/src/app/pages/system/component/[component]/index.tsx +87 -17
- package/src/app/pages/system/index.tsx +13 -4
- package/src/app/pages/system/pattern/[pattern]/index.tsx +70 -14
- package/src/app/pages/system/tokens/components/[component]/index.tsx +42 -14
- package/src/app/pages/system/tokens/foundations/colors.tsx +7 -5
- package/src/app/pages/system/tokens/foundations/effects.tsx +7 -5
- package/src/app/pages/system/tokens/foundations/typography.tsx +8 -4
- package/src/app/tsconfig.json +2 -3
- package/src/app-builder/build.ts +555 -11
- package/src/app-builder/client-config.ts +61 -4
- package/src/app-builder/config-diff/snapshot.ts +1 -11
- package/src/app-builder/index.ts +1 -1
- package/src/app-builder/nav-shell.ts +74 -0
- package/src/app-builder/static-export.ts +215 -0
- package/src/app-builder/vercel-output.ts +297 -0
- package/src/app-builder/watchers/utils.ts +2 -0
- package/src/app-builder/watchers.ts +149 -25
- package/src/app-builder/websocket.ts +2 -2
- package/src/artifacts/README.md +14 -0
- package/src/artifacts/index.ts +17 -0
- package/src/artifacts/types.ts +146 -0
- package/src/artifacts/url.ts +90 -0
- package/src/cache/build-cache.ts +47 -2
- package/src/commands/build/app.ts +1 -2
- package/src/commands/build/index.ts +61 -0
- package/src/commands/checkout/index.ts +66 -0
- package/src/commands/db/migrate.ts +25 -0
- package/src/commands/index.ts +8 -0
- package/src/commands/publish/index.ts +63 -0
- package/src/config/defaults.ts +15 -0
- package/src/config/loader.ts +10 -1
- package/src/config/normalizers/declaration.ts +3 -0
- package/src/config/normalizers/page.ts +45 -0
- package/src/config/normalizers/pattern.ts +4 -1
- package/src/config/runtime.ts +48 -2
- package/src/index.ts +126 -3
- package/src/nav/index.ts +94 -0
- package/src/nav/registry.ts +54 -0
- package/src/nav/resolver.ts +217 -0
- package/src/nav/workspace.ts +87 -0
- package/src/pipeline/styles.ts +4 -35
- package/src/pipeline/token-transformers.ts +97 -0
- package/src/registry/asset-storage/adapters/vercel-blob.ts +51 -0
- package/src/registry/asset-storage/define.ts +15 -0
- package/src/registry/asset-storage/resolve.ts +72 -0
- package/src/registry/asset-storage/types.ts +46 -0
- package/src/registry/assets/layout.ts +38 -0
- package/src/registry/assets/sets.ts +48 -0
- package/src/registry/assets/transfer.ts +50 -0
- package/src/registry/checkout/assets.ts +126 -0
- package/src/registry/checkout/index.ts +596 -0
- package/src/registry/checkout/tokens.ts +152 -0
- package/src/registry/client.ts +234 -0
- package/src/registry/connection.ts +50 -0
- package/src/registry/db/adapter.ts +74 -0
- package/src/registry/db/client.ts +88 -0
- package/src/registry/db/index.ts +35 -0
- package/src/registry/db/migrate.ts +56 -0
- package/src/registry/db/schema.ts +444 -0
- package/src/registry/path.ts +26 -0
- package/src/registry/publish/artifacts.ts +147 -0
- package/src/registry/publish/assets.ts +129 -0
- package/src/registry/publish/errors.ts +34 -0
- package/src/registry/publish/index.ts +128 -0
- package/src/registry/publish/package.ts +272 -0
- package/src/registry/publish/publish-build.ts +51 -0
- package/src/registry/publish/tokens.ts +119 -0
- package/src/registry/tokens/sets.ts +132 -0
- package/src/registry/tokens/transfer.ts +53 -0
- package/src/registry/transfer.ts +82 -0
- package/src/store/filesystem-assets.ts +152 -0
- package/src/store/filesystem.ts +237 -0
- package/src/store/index.ts +62 -0
- package/src/store/registry.ts +334 -0
- package/src/store/source-files.ts +155 -0
- package/src/store/types.ts +210 -0
- package/src/transformers/plugins/csf-render.ts +31 -7
- package/src/transformers/plugins/handlebars-previews.ts +22 -3
- package/src/transformers/plugins/ssr-render.ts +145 -57
- package/src/transformers/preview/component/api.ts +2 -1
- package/src/transformers/preview/component/artifacts.ts +10 -1
- package/src/transformers/preview/component/builder.ts +9 -2
- package/src/transformers/preview/component/css.ts +10 -1
- package/src/transformers/preview/component/javascript.ts +55 -20
- package/src/transformers/preview/component/shared-artifacts.ts +146 -0
- package/src/transformers/preview/component.ts +5 -2
- package/src/transformers/preview/pattern/builder.ts +33 -7
- package/src/transformers/preview/pattern/html.ts +71 -27
- package/src/transformers/preview/types.ts +42 -0
- package/src/transformers/utils/handlebars.ts +31 -5
- package/src/types/config.ts +123 -25
- package/src/utils/menu-shell.ts +241 -0
- package/src/utils/stable-stringify.ts +7 -0
- package/templates/default/package.json.tpl +1 -1
- package/handoff.config.js +0 -90
- package/src/app/components/ComponentSearch.tsx +0 -93
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "5555a381-b646-4ae3-9d19-f1aa5ddc133c",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.build_metadata": {
|
|
8
|
+
"name": "build_metadata",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"entity_kind": {
|
|
12
|
+
"name": "entity_kind",
|
|
13
|
+
"type": "text",
|
|
14
|
+
"primaryKey": false,
|
|
15
|
+
"notNull": true
|
|
16
|
+
},
|
|
17
|
+
"entity_id": {
|
|
18
|
+
"name": "entity_id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true
|
|
22
|
+
},
|
|
23
|
+
"status": {
|
|
24
|
+
"name": "status",
|
|
25
|
+
"type": "text",
|
|
26
|
+
"primaryKey": false,
|
|
27
|
+
"notNull": true
|
|
28
|
+
},
|
|
29
|
+
"built_at": {
|
|
30
|
+
"name": "built_at",
|
|
31
|
+
"type": "timestamp with time zone",
|
|
32
|
+
"primaryKey": false,
|
|
33
|
+
"notNull": false
|
|
34
|
+
},
|
|
35
|
+
"builder_version": {
|
|
36
|
+
"name": "builder_version",
|
|
37
|
+
"type": "text",
|
|
38
|
+
"primaryKey": false,
|
|
39
|
+
"notNull": false
|
|
40
|
+
},
|
|
41
|
+
"artifact_hash": {
|
|
42
|
+
"name": "artifact_hash",
|
|
43
|
+
"type": "text",
|
|
44
|
+
"primaryKey": false,
|
|
45
|
+
"notNull": false
|
|
46
|
+
},
|
|
47
|
+
"source_hash": {
|
|
48
|
+
"name": "source_hash",
|
|
49
|
+
"type": "text",
|
|
50
|
+
"primaryKey": false,
|
|
51
|
+
"notNull": false
|
|
52
|
+
},
|
|
53
|
+
"warnings": {
|
|
54
|
+
"name": "warnings",
|
|
55
|
+
"type": "jsonb",
|
|
56
|
+
"primaryKey": false,
|
|
57
|
+
"notNull": false
|
|
58
|
+
},
|
|
59
|
+
"error": {
|
|
60
|
+
"name": "error",
|
|
61
|
+
"type": "text",
|
|
62
|
+
"primaryKey": false,
|
|
63
|
+
"notNull": false
|
|
64
|
+
},
|
|
65
|
+
"created_at": {
|
|
66
|
+
"name": "created_at",
|
|
67
|
+
"type": "timestamp with time zone",
|
|
68
|
+
"primaryKey": false,
|
|
69
|
+
"notNull": true,
|
|
70
|
+
"default": "now()"
|
|
71
|
+
},
|
|
72
|
+
"updated_at": {
|
|
73
|
+
"name": "updated_at",
|
|
74
|
+
"type": "timestamp with time zone",
|
|
75
|
+
"primaryKey": false,
|
|
76
|
+
"notNull": true,
|
|
77
|
+
"default": "now()"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"indexes": {},
|
|
81
|
+
"foreignKeys": {},
|
|
82
|
+
"compositePrimaryKeys": {
|
|
83
|
+
"build_metadata_entity_kind_entity_id_pk": {
|
|
84
|
+
"name": "build_metadata_entity_kind_entity_id_pk",
|
|
85
|
+
"columns": [
|
|
86
|
+
"entity_kind",
|
|
87
|
+
"entity_id"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"uniqueConstraints": {},
|
|
92
|
+
"policies": {},
|
|
93
|
+
"checkConstraints": {},
|
|
94
|
+
"isRLSEnabled": false
|
|
95
|
+
},
|
|
96
|
+
"public.component_files": {
|
|
97
|
+
"name": "component_files",
|
|
98
|
+
"schema": "",
|
|
99
|
+
"columns": {
|
|
100
|
+
"component_id": {
|
|
101
|
+
"name": "component_id",
|
|
102
|
+
"type": "text",
|
|
103
|
+
"primaryKey": false,
|
|
104
|
+
"notNull": true
|
|
105
|
+
},
|
|
106
|
+
"path": {
|
|
107
|
+
"name": "path",
|
|
108
|
+
"type": "text",
|
|
109
|
+
"primaryKey": false,
|
|
110
|
+
"notNull": true
|
|
111
|
+
},
|
|
112
|
+
"kind": {
|
|
113
|
+
"name": "kind",
|
|
114
|
+
"type": "text",
|
|
115
|
+
"primaryKey": false,
|
|
116
|
+
"notNull": true
|
|
117
|
+
},
|
|
118
|
+
"content": {
|
|
119
|
+
"name": "content",
|
|
120
|
+
"type": "text",
|
|
121
|
+
"primaryKey": false,
|
|
122
|
+
"notNull": false
|
|
123
|
+
},
|
|
124
|
+
"storage_ref": {
|
|
125
|
+
"name": "storage_ref",
|
|
126
|
+
"type": "text",
|
|
127
|
+
"primaryKey": false,
|
|
128
|
+
"notNull": false
|
|
129
|
+
},
|
|
130
|
+
"content_type": {
|
|
131
|
+
"name": "content_type",
|
|
132
|
+
"type": "text",
|
|
133
|
+
"primaryKey": false,
|
|
134
|
+
"notNull": true
|
|
135
|
+
},
|
|
136
|
+
"created_at": {
|
|
137
|
+
"name": "created_at",
|
|
138
|
+
"type": "timestamp with time zone",
|
|
139
|
+
"primaryKey": false,
|
|
140
|
+
"notNull": true,
|
|
141
|
+
"default": "now()"
|
|
142
|
+
},
|
|
143
|
+
"updated_at": {
|
|
144
|
+
"name": "updated_at",
|
|
145
|
+
"type": "timestamp with time zone",
|
|
146
|
+
"primaryKey": false,
|
|
147
|
+
"notNull": true,
|
|
148
|
+
"default": "now()"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"indexes": {},
|
|
152
|
+
"foreignKeys": {
|
|
153
|
+
"component_files_component_id_components_id_fk": {
|
|
154
|
+
"name": "component_files_component_id_components_id_fk",
|
|
155
|
+
"tableFrom": "component_files",
|
|
156
|
+
"tableTo": "components",
|
|
157
|
+
"columnsFrom": [
|
|
158
|
+
"component_id"
|
|
159
|
+
],
|
|
160
|
+
"columnsTo": [
|
|
161
|
+
"id"
|
|
162
|
+
],
|
|
163
|
+
"onDelete": "cascade",
|
|
164
|
+
"onUpdate": "no action"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"compositePrimaryKeys": {
|
|
168
|
+
"component_files_component_id_path_pk": {
|
|
169
|
+
"name": "component_files_component_id_path_pk",
|
|
170
|
+
"columns": [
|
|
171
|
+
"component_id",
|
|
172
|
+
"path"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"uniqueConstraints": {},
|
|
177
|
+
"policies": {},
|
|
178
|
+
"checkConstraints": {
|
|
179
|
+
"component_files_kind_not_declaration": {
|
|
180
|
+
"name": "component_files_kind_not_declaration",
|
|
181
|
+
"value": "\"component_files\".\"kind\" <> 'declaration'"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"isRLSEnabled": false
|
|
185
|
+
},
|
|
186
|
+
"public.components": {
|
|
187
|
+
"name": "components",
|
|
188
|
+
"schema": "",
|
|
189
|
+
"columns": {
|
|
190
|
+
"id": {
|
|
191
|
+
"name": "id",
|
|
192
|
+
"type": "text",
|
|
193
|
+
"primaryKey": true,
|
|
194
|
+
"notNull": true
|
|
195
|
+
},
|
|
196
|
+
"path": {
|
|
197
|
+
"name": "path",
|
|
198
|
+
"type": "text",
|
|
199
|
+
"primaryKey": false,
|
|
200
|
+
"notNull": true
|
|
201
|
+
},
|
|
202
|
+
"title": {
|
|
203
|
+
"name": "title",
|
|
204
|
+
"type": "text",
|
|
205
|
+
"primaryKey": false,
|
|
206
|
+
"notNull": false
|
|
207
|
+
},
|
|
208
|
+
"description": {
|
|
209
|
+
"name": "description",
|
|
210
|
+
"type": "text",
|
|
211
|
+
"primaryKey": false,
|
|
212
|
+
"notNull": false
|
|
213
|
+
},
|
|
214
|
+
"group": {
|
|
215
|
+
"name": "group",
|
|
216
|
+
"type": "text",
|
|
217
|
+
"primaryKey": false,
|
|
218
|
+
"notNull": false
|
|
219
|
+
},
|
|
220
|
+
"type": {
|
|
221
|
+
"name": "type",
|
|
222
|
+
"type": "text",
|
|
223
|
+
"primaryKey": false,
|
|
224
|
+
"notNull": false
|
|
225
|
+
},
|
|
226
|
+
"renderer": {
|
|
227
|
+
"name": "renderer",
|
|
228
|
+
"type": "text",
|
|
229
|
+
"primaryKey": false,
|
|
230
|
+
"notNull": false
|
|
231
|
+
},
|
|
232
|
+
"tags": {
|
|
233
|
+
"name": "tags",
|
|
234
|
+
"type": "jsonb",
|
|
235
|
+
"primaryKey": false,
|
|
236
|
+
"notNull": false
|
|
237
|
+
},
|
|
238
|
+
"categories": {
|
|
239
|
+
"name": "categories",
|
|
240
|
+
"type": "jsonb",
|
|
241
|
+
"primaryKey": false,
|
|
242
|
+
"notNull": false
|
|
243
|
+
},
|
|
244
|
+
"record": {
|
|
245
|
+
"name": "record",
|
|
246
|
+
"type": "jsonb",
|
|
247
|
+
"primaryKey": false,
|
|
248
|
+
"notNull": true
|
|
249
|
+
},
|
|
250
|
+
"created_at": {
|
|
251
|
+
"name": "created_at",
|
|
252
|
+
"type": "timestamp with time zone",
|
|
253
|
+
"primaryKey": false,
|
|
254
|
+
"notNull": true,
|
|
255
|
+
"default": "now()"
|
|
256
|
+
},
|
|
257
|
+
"updated_at": {
|
|
258
|
+
"name": "updated_at",
|
|
259
|
+
"type": "timestamp with time zone",
|
|
260
|
+
"primaryKey": false,
|
|
261
|
+
"notNull": true,
|
|
262
|
+
"default": "now()"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"indexes": {
|
|
266
|
+
"components_group_idx": {
|
|
267
|
+
"name": "components_group_idx",
|
|
268
|
+
"columns": [
|
|
269
|
+
{
|
|
270
|
+
"expression": "group",
|
|
271
|
+
"isExpression": false,
|
|
272
|
+
"asc": true,
|
|
273
|
+
"nulls": "last"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"isUnique": false,
|
|
277
|
+
"concurrently": false,
|
|
278
|
+
"method": "btree",
|
|
279
|
+
"with": {}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"foreignKeys": {},
|
|
283
|
+
"compositePrimaryKeys": {},
|
|
284
|
+
"uniqueConstraints": {},
|
|
285
|
+
"policies": {},
|
|
286
|
+
"checkConstraints": {},
|
|
287
|
+
"isRLSEnabled": false
|
|
288
|
+
},
|
|
289
|
+
"public.docs_artifacts": {
|
|
290
|
+
"name": "docs_artifacts",
|
|
291
|
+
"schema": "",
|
|
292
|
+
"columns": {
|
|
293
|
+
"path": {
|
|
294
|
+
"name": "path",
|
|
295
|
+
"type": "text",
|
|
296
|
+
"primaryKey": true,
|
|
297
|
+
"notNull": true
|
|
298
|
+
},
|
|
299
|
+
"entity_kind": {
|
|
300
|
+
"name": "entity_kind",
|
|
301
|
+
"type": "text",
|
|
302
|
+
"primaryKey": false,
|
|
303
|
+
"notNull": true
|
|
304
|
+
},
|
|
305
|
+
"entity_id": {
|
|
306
|
+
"name": "entity_id",
|
|
307
|
+
"type": "text",
|
|
308
|
+
"primaryKey": false,
|
|
309
|
+
"notNull": false
|
|
310
|
+
},
|
|
311
|
+
"artifact_kind": {
|
|
312
|
+
"name": "artifact_kind",
|
|
313
|
+
"type": "text",
|
|
314
|
+
"primaryKey": false,
|
|
315
|
+
"notNull": true
|
|
316
|
+
},
|
|
317
|
+
"content": {
|
|
318
|
+
"name": "content",
|
|
319
|
+
"type": "text",
|
|
320
|
+
"primaryKey": false,
|
|
321
|
+
"notNull": false
|
|
322
|
+
},
|
|
323
|
+
"storage_ref": {
|
|
324
|
+
"name": "storage_ref",
|
|
325
|
+
"type": "text",
|
|
326
|
+
"primaryKey": false,
|
|
327
|
+
"notNull": false
|
|
328
|
+
},
|
|
329
|
+
"content_type": {
|
|
330
|
+
"name": "content_type",
|
|
331
|
+
"type": "text",
|
|
332
|
+
"primaryKey": false,
|
|
333
|
+
"notNull": true
|
|
334
|
+
},
|
|
335
|
+
"owner_kind": {
|
|
336
|
+
"name": "owner_kind",
|
|
337
|
+
"type": "text",
|
|
338
|
+
"primaryKey": false,
|
|
339
|
+
"notNull": false
|
|
340
|
+
},
|
|
341
|
+
"owner_id": {
|
|
342
|
+
"name": "owner_id",
|
|
343
|
+
"type": "text",
|
|
344
|
+
"primaryKey": false,
|
|
345
|
+
"notNull": false
|
|
346
|
+
},
|
|
347
|
+
"references": {
|
|
348
|
+
"name": "references",
|
|
349
|
+
"type": "jsonb",
|
|
350
|
+
"primaryKey": false,
|
|
351
|
+
"notNull": false
|
|
352
|
+
},
|
|
353
|
+
"format_version": {
|
|
354
|
+
"name": "format_version",
|
|
355
|
+
"type": "text",
|
|
356
|
+
"primaryKey": false,
|
|
357
|
+
"notNull": false
|
|
358
|
+
},
|
|
359
|
+
"build_id": {
|
|
360
|
+
"name": "build_id",
|
|
361
|
+
"type": "text",
|
|
362
|
+
"primaryKey": false,
|
|
363
|
+
"notNull": false
|
|
364
|
+
},
|
|
365
|
+
"hash": {
|
|
366
|
+
"name": "hash",
|
|
367
|
+
"type": "text",
|
|
368
|
+
"primaryKey": false,
|
|
369
|
+
"notNull": false
|
|
370
|
+
},
|
|
371
|
+
"size": {
|
|
372
|
+
"name": "size",
|
|
373
|
+
"type": "integer",
|
|
374
|
+
"primaryKey": false,
|
|
375
|
+
"notNull": false
|
|
376
|
+
},
|
|
377
|
+
"gzip_size": {
|
|
378
|
+
"name": "gzip_size",
|
|
379
|
+
"type": "integer",
|
|
380
|
+
"primaryKey": false,
|
|
381
|
+
"notNull": false
|
|
382
|
+
},
|
|
383
|
+
"created_at": {
|
|
384
|
+
"name": "created_at",
|
|
385
|
+
"type": "timestamp with time zone",
|
|
386
|
+
"primaryKey": false,
|
|
387
|
+
"notNull": true,
|
|
388
|
+
"default": "now()"
|
|
389
|
+
},
|
|
390
|
+
"updated_at": {
|
|
391
|
+
"name": "updated_at",
|
|
392
|
+
"type": "timestamp with time zone",
|
|
393
|
+
"primaryKey": false,
|
|
394
|
+
"notNull": true,
|
|
395
|
+
"default": "now()"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"indexes": {
|
|
399
|
+
"docs_artifacts_entity_idx": {
|
|
400
|
+
"name": "docs_artifacts_entity_idx",
|
|
401
|
+
"columns": [
|
|
402
|
+
{
|
|
403
|
+
"expression": "entity_kind",
|
|
404
|
+
"isExpression": false,
|
|
405
|
+
"asc": true,
|
|
406
|
+
"nulls": "last"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"expression": "entity_id",
|
|
410
|
+
"isExpression": false,
|
|
411
|
+
"asc": true,
|
|
412
|
+
"nulls": "last"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"isUnique": false,
|
|
416
|
+
"concurrently": false,
|
|
417
|
+
"method": "btree",
|
|
418
|
+
"with": {}
|
|
419
|
+
},
|
|
420
|
+
"docs_artifacts_owner_idx": {
|
|
421
|
+
"name": "docs_artifacts_owner_idx",
|
|
422
|
+
"columns": [
|
|
423
|
+
{
|
|
424
|
+
"expression": "owner_kind",
|
|
425
|
+
"isExpression": false,
|
|
426
|
+
"asc": true,
|
|
427
|
+
"nulls": "last"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"expression": "owner_id",
|
|
431
|
+
"isExpression": false,
|
|
432
|
+
"asc": true,
|
|
433
|
+
"nulls": "last"
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"isUnique": false,
|
|
437
|
+
"concurrently": false,
|
|
438
|
+
"method": "btree",
|
|
439
|
+
"with": {}
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"foreignKeys": {},
|
|
443
|
+
"compositePrimaryKeys": {},
|
|
444
|
+
"uniqueConstraints": {},
|
|
445
|
+
"policies": {},
|
|
446
|
+
"checkConstraints": {},
|
|
447
|
+
"isRLSEnabled": false
|
|
448
|
+
},
|
|
449
|
+
"public.pattern_files": {
|
|
450
|
+
"name": "pattern_files",
|
|
451
|
+
"schema": "",
|
|
452
|
+
"columns": {
|
|
453
|
+
"pattern_id": {
|
|
454
|
+
"name": "pattern_id",
|
|
455
|
+
"type": "text",
|
|
456
|
+
"primaryKey": false,
|
|
457
|
+
"notNull": true
|
|
458
|
+
},
|
|
459
|
+
"path": {
|
|
460
|
+
"name": "path",
|
|
461
|
+
"type": "text",
|
|
462
|
+
"primaryKey": false,
|
|
463
|
+
"notNull": true
|
|
464
|
+
},
|
|
465
|
+
"kind": {
|
|
466
|
+
"name": "kind",
|
|
467
|
+
"type": "text",
|
|
468
|
+
"primaryKey": false,
|
|
469
|
+
"notNull": true
|
|
470
|
+
},
|
|
471
|
+
"content": {
|
|
472
|
+
"name": "content",
|
|
473
|
+
"type": "text",
|
|
474
|
+
"primaryKey": false,
|
|
475
|
+
"notNull": false
|
|
476
|
+
},
|
|
477
|
+
"storage_ref": {
|
|
478
|
+
"name": "storage_ref",
|
|
479
|
+
"type": "text",
|
|
480
|
+
"primaryKey": false,
|
|
481
|
+
"notNull": false
|
|
482
|
+
},
|
|
483
|
+
"content_type": {
|
|
484
|
+
"name": "content_type",
|
|
485
|
+
"type": "text",
|
|
486
|
+
"primaryKey": false,
|
|
487
|
+
"notNull": true
|
|
488
|
+
},
|
|
489
|
+
"created_at": {
|
|
490
|
+
"name": "created_at",
|
|
491
|
+
"type": "timestamp with time zone",
|
|
492
|
+
"primaryKey": false,
|
|
493
|
+
"notNull": true,
|
|
494
|
+
"default": "now()"
|
|
495
|
+
},
|
|
496
|
+
"updated_at": {
|
|
497
|
+
"name": "updated_at",
|
|
498
|
+
"type": "timestamp with time zone",
|
|
499
|
+
"primaryKey": false,
|
|
500
|
+
"notNull": true,
|
|
501
|
+
"default": "now()"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"indexes": {},
|
|
505
|
+
"foreignKeys": {
|
|
506
|
+
"pattern_files_pattern_id_patterns_id_fk": {
|
|
507
|
+
"name": "pattern_files_pattern_id_patterns_id_fk",
|
|
508
|
+
"tableFrom": "pattern_files",
|
|
509
|
+
"tableTo": "patterns",
|
|
510
|
+
"columnsFrom": [
|
|
511
|
+
"pattern_id"
|
|
512
|
+
],
|
|
513
|
+
"columnsTo": [
|
|
514
|
+
"id"
|
|
515
|
+
],
|
|
516
|
+
"onDelete": "cascade",
|
|
517
|
+
"onUpdate": "no action"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"compositePrimaryKeys": {
|
|
521
|
+
"pattern_files_pattern_id_path_pk": {
|
|
522
|
+
"name": "pattern_files_pattern_id_path_pk",
|
|
523
|
+
"columns": [
|
|
524
|
+
"pattern_id",
|
|
525
|
+
"path"
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"uniqueConstraints": {},
|
|
530
|
+
"policies": {},
|
|
531
|
+
"checkConstraints": {
|
|
532
|
+
"pattern_files_kind_not_declaration": {
|
|
533
|
+
"name": "pattern_files_kind_not_declaration",
|
|
534
|
+
"value": "\"pattern_files\".\"kind\" <> 'declaration'"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"isRLSEnabled": false
|
|
538
|
+
},
|
|
539
|
+
"public.patterns": {
|
|
540
|
+
"name": "patterns",
|
|
541
|
+
"schema": "",
|
|
542
|
+
"columns": {
|
|
543
|
+
"id": {
|
|
544
|
+
"name": "id",
|
|
545
|
+
"type": "text",
|
|
546
|
+
"primaryKey": true,
|
|
547
|
+
"notNull": true
|
|
548
|
+
},
|
|
549
|
+
"path": {
|
|
550
|
+
"name": "path",
|
|
551
|
+
"type": "text",
|
|
552
|
+
"primaryKey": false,
|
|
553
|
+
"notNull": true
|
|
554
|
+
},
|
|
555
|
+
"title": {
|
|
556
|
+
"name": "title",
|
|
557
|
+
"type": "text",
|
|
558
|
+
"primaryKey": false,
|
|
559
|
+
"notNull": false
|
|
560
|
+
},
|
|
561
|
+
"description": {
|
|
562
|
+
"name": "description",
|
|
563
|
+
"type": "text",
|
|
564
|
+
"primaryKey": false,
|
|
565
|
+
"notNull": false
|
|
566
|
+
},
|
|
567
|
+
"group": {
|
|
568
|
+
"name": "group",
|
|
569
|
+
"type": "text",
|
|
570
|
+
"primaryKey": false,
|
|
571
|
+
"notNull": false
|
|
572
|
+
},
|
|
573
|
+
"tags": {
|
|
574
|
+
"name": "tags",
|
|
575
|
+
"type": "jsonb",
|
|
576
|
+
"primaryKey": false,
|
|
577
|
+
"notNull": false
|
|
578
|
+
},
|
|
579
|
+
"components": {
|
|
580
|
+
"name": "components",
|
|
581
|
+
"type": "jsonb",
|
|
582
|
+
"primaryKey": false,
|
|
583
|
+
"notNull": false
|
|
584
|
+
},
|
|
585
|
+
"record": {
|
|
586
|
+
"name": "record",
|
|
587
|
+
"type": "jsonb",
|
|
588
|
+
"primaryKey": false,
|
|
589
|
+
"notNull": true
|
|
590
|
+
},
|
|
591
|
+
"created_at": {
|
|
592
|
+
"name": "created_at",
|
|
593
|
+
"type": "timestamp with time zone",
|
|
594
|
+
"primaryKey": false,
|
|
595
|
+
"notNull": true,
|
|
596
|
+
"default": "now()"
|
|
597
|
+
},
|
|
598
|
+
"updated_at": {
|
|
599
|
+
"name": "updated_at",
|
|
600
|
+
"type": "timestamp with time zone",
|
|
601
|
+
"primaryKey": false,
|
|
602
|
+
"notNull": true,
|
|
603
|
+
"default": "now()"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"indexes": {
|
|
607
|
+
"patterns_group_idx": {
|
|
608
|
+
"name": "patterns_group_idx",
|
|
609
|
+
"columns": [
|
|
610
|
+
{
|
|
611
|
+
"expression": "group",
|
|
612
|
+
"isExpression": false,
|
|
613
|
+
"asc": true,
|
|
614
|
+
"nulls": "last"
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
"isUnique": false,
|
|
618
|
+
"concurrently": false,
|
|
619
|
+
"method": "btree",
|
|
620
|
+
"with": {}
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
"foreignKeys": {},
|
|
624
|
+
"compositePrimaryKeys": {},
|
|
625
|
+
"uniqueConstraints": {},
|
|
626
|
+
"policies": {},
|
|
627
|
+
"checkConstraints": {},
|
|
628
|
+
"isRLSEnabled": false
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"enums": {},
|
|
632
|
+
"schemas": {},
|
|
633
|
+
"sequences": {},
|
|
634
|
+
"roles": {},
|
|
635
|
+
"policies": {},
|
|
636
|
+
"views": {},
|
|
637
|
+
"_meta": {
|
|
638
|
+
"columns": {},
|
|
639
|
+
"schemas": {},
|
|
640
|
+
"tables": {}
|
|
641
|
+
}
|
|
642
|
+
}
|