handoff-app 2.0.0-1 → 2.0.0-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.
Files changed (86) hide show
  1. package/README.md +39 -17
  2. package/config/docs/foundations/colors/guidelines.md +9 -0
  3. package/config/docs/foundations/effects/guidelines.md +9 -0
  4. package/config/docs/foundations/effects/resources.md +9 -0
  5. package/config/docs/foundations/grid.md +10 -0
  6. package/config/docs/foundations/icons/guidelines.md +9 -0
  7. package/config/docs/foundations/images/guidelines.md +9 -0
  8. package/config/docs/foundations/images/resources.md +9 -0
  9. package/config/docs/foundations/images.md +10 -0
  10. package/config/docs/foundations/logo/resources.md +9 -0
  11. package/config/docs/foundations/typography/guidelines.md +9 -0
  12. package/config/docs/foundations/typography/resources.md +9 -0
  13. package/config/docs/foundations.md +5 -3
  14. package/dist/app-builder/build.js +89 -46
  15. package/dist/app-builder/client-config.js +5 -5
  16. package/dist/app-builder/paths.js +7 -9
  17. package/dist/app-builder/static-export.js +6 -6
  18. package/dist/app-builder/vercel-output.js +2 -2
  19. package/dist/artifacts/url.d.ts +7 -7
  20. package/dist/artifacts/url.js +7 -7
  21. package/dist/cli/create.js +48 -3
  22. package/dist/commands/checkout/index.d.ts +6 -6
  23. package/dist/commands/checkout/index.js +8 -12
  24. package/dist/commands/publish/index.d.ts +6 -5
  25. package/dist/commands/publish/index.js +8 -11
  26. package/dist/commands/utils.d.ts +6 -0
  27. package/dist/commands/utils.js +9 -1
  28. package/dist/index.d.ts +12 -8
  29. package/dist/index.js +26 -10
  30. package/dist/registry/asset-storage/resolve.d.ts +1 -1
  31. package/dist/registry/asset-storage/resolve.js +1 -1
  32. package/dist/registry/checkout/index.d.ts +10 -5
  33. package/dist/registry/checkout/index.js +62 -11
  34. package/dist/registry/client.d.ts +2 -1
  35. package/dist/registry/client.js +8 -0
  36. package/dist/registry/db/client.d.ts +9 -9
  37. package/dist/registry/db/client.js +7 -7
  38. package/dist/registry/db/{adapter.d.ts → driver.d.ts} +16 -14
  39. package/dist/registry/db/{adapter.js → driver.js} +17 -15
  40. package/dist/registry/db/index.d.ts +1 -1
  41. package/dist/registry/db/index.js +9 -9
  42. package/dist/registry/db/migrate.d.ts +1 -1
  43. package/dist/registry/db/migrate.js +5 -5
  44. package/dist/registry/publish/index.d.ts +8 -1
  45. package/dist/registry/publish/index.js +88 -2
  46. package/dist/registry/transfer.d.ts +13 -0
  47. package/dist/types/config.d.ts +7 -3
  48. package/drizzle.config.ts +1 -1
  49. package/package.json +1 -1
  50. package/src/app/components/Foundations/DisplayLogo.tsx +3 -3
  51. package/src/app/lib/docs-api/runtime-config.ts +10 -10
  52. package/src/app/lib/registry-api/transfer.ts +29 -0
  53. package/src/app/lib/registry-connection.ts +2 -2
  54. package/src/app/next.config.mjs +1 -1
  55. package/src/app/pages/api/registry/transfer/[kind]/index.ts +21 -0
  56. package/src/app/pages/foundations/icons/index.tsx +2 -2
  57. package/src/app/pages/foundations/icons/{[name] → library/[name]}/index.tsx +6 -6
  58. package/src/app-builder/build.ts +75 -55
  59. package/src/app-builder/client-config.ts +3 -3
  60. package/src/app-builder/paths.ts +7 -9
  61. package/src/app-builder/static-export.ts +6 -6
  62. package/src/app-builder/vercel-output.ts +2 -2
  63. package/src/artifacts/url.ts +7 -7
  64. package/src/cli/create.ts +58 -3
  65. package/src/commands/checkout/index.ts +10 -15
  66. package/src/commands/publish/index.ts +10 -14
  67. package/src/commands/utils.ts +12 -0
  68. package/src/index.ts +26 -12
  69. package/src/registry/asset-storage/resolve.ts +1 -1
  70. package/src/registry/checkout/index.ts +73 -11
  71. package/src/registry/client.ts +7 -1
  72. package/src/registry/db/client.ts +12 -12
  73. package/src/registry/db/{adapter.ts → driver.ts} +19 -17
  74. package/src/registry/db/index.ts +4 -4
  75. package/src/registry/db/migrate.ts +5 -5
  76. package/src/registry/publish/index.ts +100 -2
  77. package/src/registry/transfer.ts +14 -0
  78. package/src/types/config.ts +7 -3
  79. package/templates/default/README.md.tpl +40 -1
  80. package/templates/default/gitignore.tpl +18 -3
  81. package/templates/default/handoff.config.js.tpl +14 -0
  82. package/templates/default/handoff.config.ts.tpl +14 -0
  83. package/templates/default/handoff.config.with-examples.js.tpl +14 -0
  84. package/templates/default/handoff.config.with-examples.ts.tpl +14 -0
  85. package/templates/default/package.json.tpl +2 -1
  86. package/templates/default/vercel.json.tpl +4 -0
@@ -61,6 +61,20 @@ const config = {
61
61
  // patterns: ["patterns"],
62
62
  // },
63
63
 
64
+ // Registry deployment settings, used by `build --target registry` and `db:migrate`.
65
+ // These are only needed when publishing to a hosted registry. The default workspace mode
66
+ // doesn't use a database, so these should stay commented out unless deploying one.
67
+ // Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
68
+ // the database engine. Secrets are referenced by env var name and never written here.
69
+ // runtime: {
70
+ // mode: "registry",
71
+ // registry: {
72
+ // databaseUrlEnv: "DATABASE_URL",
73
+ // apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
74
+ // database: { driver: "pg" }, // 'pg' | 'neon'
75
+ // },
76
+ // },
77
+
64
78
  // Optional handoff-docgen settings used by component docs generation
65
79
  // reactDocgen: {
66
80
  // maxDepth: 7,
@@ -59,6 +59,20 @@ export default defineConfig({
59
59
  // patterns: ["patterns"],
60
60
  // },
61
61
 
62
+ // Registry deployment settings, used by `build --target registry` and `db:migrate`.
63
+ // These are only needed when publishing to a hosted registry. The default workspace mode
64
+ // doesn't use a database, so these should stay commented out unless deploying one.
65
+ // Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
66
+ // the database engine. Secrets are referenced by env var name and never written here.
67
+ // runtime: {
68
+ // mode: "registry",
69
+ // registry: {
70
+ // databaseUrlEnv: "DATABASE_URL",
71
+ // apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
72
+ // database: { driver: "pg" }, // 'pg' | 'neon'
73
+ // },
74
+ // },
75
+
62
76
  // Optional handoff-docgen settings used by component docs generation
63
77
  // reactDocgen: {
64
78
  // maxDepth: 7,
@@ -60,6 +60,20 @@ const config = {
60
60
  // patterns: [],
61
61
  },
62
62
 
63
+ // Registry deployment settings, used by `build --target registry` and `db:migrate`.
64
+ // These are only needed when publishing to a hosted registry. The default workspace mode
65
+ // doesn't use a database, so these should stay commented out unless deploying one.
66
+ // Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
67
+ // the database engine. Secrets are referenced by env var name and never written here.
68
+ // runtime: {
69
+ // mode: "registry",
70
+ // registry: {
71
+ // databaseUrlEnv: "DATABASE_URL",
72
+ // apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
73
+ // database: { driver: "pg" }, // 'pg' | 'neon'
74
+ // },
75
+ // },
76
+
63
77
  // Optional handoff-docgen settings used by component docs generation
64
78
  // reactDocgen: {
65
79
  // maxDepth: 7,
@@ -58,6 +58,20 @@ export default defineConfig({
58
58
  // patterns: [],
59
59
  },
60
60
 
61
+ // Registry deployment settings, used by `build --target registry` and `db:migrate`.
62
+ // These are only needed when publishing to a hosted registry. The default workspace mode
63
+ // doesn't use a database, so these should stay commented out unless deploying one.
64
+ // Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
65
+ // the database engine. Secrets are referenced by env var name and never written here.
66
+ // runtime: {
67
+ // mode: "registry",
68
+ // registry: {
69
+ // databaseUrlEnv: "DATABASE_URL",
70
+ // apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
71
+ // database: { driver: "pg" }, // 'pg' | 'neon'
72
+ // },
73
+ // },
74
+
61
75
  // Optional handoff-docgen settings used by component docs generation
62
76
  // reactDocgen: {
63
77
  // maxDepth: 7,
@@ -6,8 +6,9 @@
6
6
  "scripts": {
7
7
  "start": "handoff-app start",
8
8
  "dev": "handoff-app dev",
9
+ "fetch": "handoff-app fetch",
9
10
  "build": "handoff-app build",
10
- "fetch": "handoff-app fetch"
11
+ "db:migrate": "handoff-app db:migrate"
11
12
  },
12
13
  "dependencies": {},
13
14
  "devDependencies": {},
@@ -0,0 +1,4 @@
1
+ {
2
+ "framework": null,
3
+ "buildCommand": "{{vercelBuildCommand}}"
4
+ }