@upstart.gg/sdk 0.0.94 → 0.0.96

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 (58) hide show
  1. package/dist/node/cli/api.js +2 -2
  2. package/dist/node/cli/api.js.map +1 -1
  3. package/dist/node/cli/commands/{build/cmd-build.d.ts → cmd-build.d.ts} +1 -1
  4. package/dist/node/cli/commands/cmd-build.d.ts.map +1 -0
  5. package/dist/node/cli/commands/cmd-build.js.map +1 -0
  6. package/dist/node/cli/commands/login/cmd-login.js +5 -5
  7. package/dist/node/cli/commands/login/cmd-login.js.map +1 -1
  8. package/dist/node/cli/commands/logout/cmd-logout.js +2 -2
  9. package/dist/node/cli/commands/publish/cmd-publish.js +9 -9
  10. package/dist/node/cli/commands/publish/cmd-publish.js.map +1 -1
  11. package/dist/node/cli/commands/publish/uploader.js +5 -5
  12. package/dist/node/cli/commands/publish/uploader.js.map +1 -1
  13. package/dist/node/cli/is-logged-in.js +2 -2
  14. package/dist/node/cli/is-logged-in.js.map +1 -1
  15. package/dist/node/cli/program.js +1 -1
  16. package/dist/node/cli/program.js.map +1 -1
  17. package/dist/node/shared/config.js +1 -1
  18. package/dist/node/shared/config.js.map +1 -1
  19. package/dist/node/shared/logger.js +1 -1
  20. package/dist/node/shared/logger.js.map +1 -1
  21. package/dist/shared/attributes.d.ts +43 -8
  22. package/dist/shared/attributes.d.ts.map +1 -1
  23. package/dist/shared/attributes.js +1 -1
  24. package/dist/shared/bricks/manifests/all-manifests.js +1 -1
  25. package/dist/shared/bricks/manifests/container.manifest.d.ts +4 -4
  26. package/dist/shared/bricks/manifests/container.manifest.js +1 -1
  27. package/dist/shared/bricks/manifests/header.manifest.d.ts +4 -4
  28. package/dist/shared/bricks/manifests/header.manifest.js +1 -1
  29. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +2 -2
  30. package/dist/shared/bricks/manifests/images-gallery.manifest.js +1 -1
  31. package/dist/shared/bricks/props/datasource.d.ts +1 -1
  32. package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
  33. package/dist/shared/bricks/props/datasource.js +1 -1
  34. package/dist/shared/bricks.js +1 -1
  35. package/dist/shared/chunk-4K5NN4CN.js +3 -0
  36. package/dist/shared/chunk-4NCCSLBW.js +3 -0
  37. package/dist/shared/{chunk-NUJO6EYU.js → chunk-BH4HTAAC.js} +1 -1
  38. package/dist/shared/{chunk-HW5TY2QW.js → chunk-ECZ6FGZM.js} +1 -1
  39. package/dist/shared/chunk-KOTGMAXH.js +3 -0
  40. package/dist/shared/{chunk-GDLXGNMG.js → chunk-PSNFBHPU.js} +1 -1
  41. package/dist/shared/{chunk-YLAVY3GS.js → chunk-PU2FOOTY.js} +1 -1
  42. package/dist/shared/chunk-S2RQWOG2.js +3 -0
  43. package/dist/shared/{chunk-QRBMK5UX.js → chunk-THRRILTW.js} +1 -1
  44. package/dist/shared/page.d.ts +75 -75
  45. package/dist/shared/page.d.ts.map +1 -1
  46. package/dist/shared/page.js +1 -1
  47. package/dist/shared/template.d.ts +24 -24
  48. package/dist/shared/template.js +1 -1
  49. package/dist/shared/utils/schema.d.ts +2 -1
  50. package/dist/shared/utils/schema.d.ts.map +1 -1
  51. package/dist/shared/utils/schema.js +1 -1
  52. package/package.json +4 -4
  53. package/dist/node/cli/commands/build/cmd-build.d.ts.map +0 -1
  54. package/dist/node/cli/commands/build/cmd-build.js.map +0 -1
  55. package/dist/shared/chunk-64II435T.js +0 -3
  56. package/dist/shared/chunk-LUJOZWSF.js +0 -3
  57. package/dist/shared/chunk-SQVL4WSX.js +0 -3
  58. /package/dist/node/cli/commands/{build/cmd-build.js → cmd-build.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import p from"node:fs";import{readFile as v}from"node:fs/promises";import b from"fast-glob";import{createLogger as y}from"vite";var c="0.0.94";import i from"chalk";function h(e,a,t=!1){let o=y(e==="debug"?"info":e,{prefix:"[upstart]",allowClearScreen:a});return t&&o.info(i.hex("#7270c6").bold(`\u{1F680} Upstart v${c}
3
+ import p from"node:fs";import{readFile as v}from"node:fs/promises";import b from"fast-glob";import{createLogger as y}from"vite";var c="0.0.96";import i from"chalk";function h(e,a,t=!1){let o=y(e==="debug"?"info":e,{prefix:"[upstart]",allowClearScreen:a});return t&&o.info(i.hex("#7270c6").bold(`\u{1F680} Upstart v${c}
4
4
  `)),{...o,success:(s,r)=>o.info(i.green(s),r),error:(s,r)=>o.error(i.red(s),r),warn:(s,r)=>o.warn(i.yellow(s),r),warnOnce:(s,r)=>o.warnOnce(i.yellow(s),r),debug:(s,r)=>{e==="debug"&&o.info(i.gray(s),r)}}}var m=h();import{basename as l,dirname as L,extname as x}from"node:path";async function T(e,a=m){p.existsSync(e)||(a.error(`\u{1F534} No enpage.config.js found!
5
5
  Your project must have an enpage.config.js file in the root directory.
6
6
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/node/shared/config.ts","../../../src/node/shared/logger.ts","../../../package.json"],"sourcesContent":["import { manifestSchema } from \"~/shared/manifest\";\nimport fs from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport fg from \"fast-glob\";\nimport { type Logger, logger as defaultLogger } from \"./logger\";\nimport { basename, dirname, extname } from \"node:path\";\nimport type { TemplateConfig } from \"~/shared/template\";\n\nexport async function loadConfigFromJsFile(\n configPath: string,\n logger = defaultLogger,\n): Promise<TemplateConfig> {\n if (!fs.existsSync(configPath)) {\n logger.error(\n \"🔴 No enpage.config.js found!\\nYour project must have an enpage.config.js file in the root directory.\\n\\n\",\n );\n process.exit(1);\n }\n const config = (await import(configPath)) as TemplateConfig;\n\n // Parse the readme files fro the same directory as the config file\n const readmePath = dirname(configPath);\n const readme: Record<string, string> = {};\n const readmeFiles = await fg([\"README.enpage.md\", \"README.enpage.*.md\"], {\n cwd: readmePath,\n onlyFiles: true,\n absolute: true,\n caseSensitiveMatch: false,\n });\n\n for (const file of readmeFiles) {\n const base = basename(file, \".md\");\n const ext = extname(base);\n const language = (ext === \".enpage\" ? \"en\" : ext.substring(1)).toLowerCase();\n logger.debug(`Found template readme file (${language}): ${basename(file)}`);\n readme[language] = await readFile(file, \"utf-8\");\n }\n\n if (config.manifest) {\n config.manifest.readme = readme;\n }\n\n return config;\n}\n\nexport function loadConfigFromManifestFile(manifestPath: string, logger: Logger): TemplateConfig {\n if (!fs.existsSync(manifestPath)) {\n logger.error(\"🔴 No enpage.manifest.json found!\\nYou may want to 'build' your template.\\n\\n\");\n process.exit(1);\n }\n return JSON.parse(fs.readFileSync(manifestPath, \"utf-8\"));\n}\n\nexport function validateTemplateConfig(config: TemplateConfig, logger: Logger) {\n for (const key in config.datasources) {\n if (\n (config.datasources[key].provider === \"json-object\" ||\n config.datasources[key].provider === \"json-array\") &&\n !config.datasources[key].sampleData\n ) {\n logger.error(\n `🔴 Error: Datasource \"${key}\" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a \"sampleData\" key to your ${key} datasource.`,\n );\n throw new Error(`Missing sample data for datasource \"${key}\"`);\n }\n }\n\n // Todo: replace validation from zod to ajv\n // const validated = manifestSchema.safeParse(config.manifest);\n // if (!validated.success) {\n // logger.error(`🔴 Error: template manifest is invalid. Check your call to defineManifest().\\n`);\n // const err = fromError(validated.error);\n // logger.error(`Hint: ${err.toString()}\\n\\n`);\n // process.exit(1);\n // }\n\n return config;\n}\n","import {\n createLogger as createLoggerBase,\n type LogLevel,\n type LogOptions,\n type Logger as BaseLogger,\n} from \"vite\";\nimport { version } from \"../../../package.json\";\nimport chalk from \"chalk\";\n\ntype UpstartLoggerLevel = LogLevel | \"debug\";\n\nexport function createLogger(level?: UpstartLoggerLevel, allowClearScreen?: boolean, showVersion = false) {\n // vite logger does not support \"debug\" level\n const logger = createLoggerBase(level === \"debug\" ? \"info\" : level, {\n prefix: \"[upstart]\",\n allowClearScreen,\n });\n\n if (showVersion) {\n logger.info(chalk.hex(\"#7270c6\").bold(`🚀 Upstart v${version}\\n`));\n }\n\n return {\n ...logger,\n success: (message: string, options?: LogOptions) => logger.info(chalk.green(message), options),\n error: (message: string, options?: LogOptions) => logger.error(chalk.red(message), options),\n warn: (message: string, options?: LogOptions) => logger.warn(chalk.yellow(message), options),\n warnOnce: (message: string, options?: LogOptions) => logger.warnOnce(chalk.yellow(message), options),\n debug: (message: string, options?: LogOptions) => {\n if (level === \"debug\") {\n logger.info(chalk.gray(message), options);\n }\n },\n };\n}\n\nexport const logger = createLogger();\n\nexport type Logger = BaseLogger & {\n success: (message: string, options?: LogOptions) => void;\n debug: (message: string, options?: LogOptions) => void;\n};\n","{\n \"name\": \"@upstart.gg/sdk\",\n \"version\": \"0.0.94\",\n \"type\": \"module\",\n \"files\": [\n \"dist\",\n \"env.d.ts\"\n ],\n \"sideEffects\": false,\n \"exports\": {\n \".\": {\n \"import\": \"./dist/shared/index.js\",\n \"types\": \"./dist/shared/index.d.ts\"\n },\n \"./shared/*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n },\n \"./builder/*\": {\n \"import\": \"./dist/node/builder/*.js\"\n },\n \"./cli/*\": {\n \"import\": \"./dist/node/cli/*.js\"\n },\n \"./env.d.ts\": {\n \"types\": \"./env.d.ts\",\n \"require\": \"./env.d.ts\",\n \"import\": \"./env.d.ts\"\n },\n \"./*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n }\n },\n \"dependencies\": {\n \"@date-fns/utc\": \"1.2.0\",\n \"@headlessui/react\": \"2.2.1\",\n \"@inquirer/prompts\": \"5.3.8\",\n \"@radix-ui/react-context-menu\": \"2.2.2\",\n \"@radix-ui/react-toggle-group\": \"1.1.0\",\n \"@radix-ui/themes\": \"3.1.4\",\n \"@sinclair/typebox\": \"0.33.7\",\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"ajv\": \"8.17.1\",\n \"ajv-formats\": \"3.0.1\",\n \"chalk\": \"5.3.0\",\n \"chroma-js\": \"3.1.2\",\n \"commander\": \"12.1.0\",\n \"conf\": \"13.0.1\",\n \"date-fns\": \"3.6.0\",\n \"debug\": \"4.3.6\",\n \"fast-glob\": \"3.3.2\",\n \"form-data\": \"4.0.0\",\n \"get-port\": \"7.1.0\",\n \"htmlparser2\": \"9.1.0\",\n \"http-errors-enhanced\": \"2.0.8\",\n \"immer\": \"10.1.1\",\n \"import-meta-resolve\": \"4.1.0\",\n \"lodash-es\": \"4.17.21\",\n \"nanoid\": \"5.0.7\",\n \"open\": \"10.1.0\",\n \"ora\": \"8.1.0\",\n \"p-queue\": \"8.0.1\",\n \"react-hotkeys-hook\": \"4.5.1\",\n \"react-icons\": \"5.3.0\",\n \"react-selecto\": \"1.26.3\",\n \"rollup-plugin-strip-banner\": \"3.1.0\",\n \"usehooks-ts\": \"3.1.0\",\n \"zundo\": \"2.3.0\",\n \"zustand\": \"4.5.5\"\n },\n \"peerDependencies\": {\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"react\": \"18.3.0-canary-3d9b20132-20240124\",\n \"react-dom\": \"18.3.0-canary-3d9b20132-20240124\"\n },\n \"devDependencies\": {\n \"@cloudflare/workers-types\": \"4.20240806.0\",\n \"@types/chroma-js\": \"2.4.4\",\n \"@types/cli-progress\": \"3.11.6\",\n \"@types/debug\": \"4.1.12\",\n \"@types/express\": \"^4.17.21\",\n \"@types/lodash-es\": \"4.17.12\",\n \"@types/node\": \"^20.14.10\",\n \"@types/react\": \"18.3.3\",\n \"@types/react-dom\": \"^18.3.0\",\n \"@types/sortablejs\": \"1.15.8\",\n \"@vitejs/plugin-react\": \"^4.3.4\",\n \"concurrently\": \"8.2.2\",\n \"express\": \"^4.21.2\",\n \"rimraf\": \"6.0.1\",\n \"tsup\": \"8.2.4\",\n \"vite\": \"5.4.6\",\n \"vite-plugin-dts\": \"4.2.1\",\n \"vite-plugin-image-optimizer\": \"1.1.8\",\n \"vite-plugin-inspect\": \"0.8.7\",\n \"vite-plugin-virtual\": \"0.3.0\",\n \"vite-tsconfig-paths\": \"5.0.1\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"build:types\": \"tsc --emitDeclarationOnly --declaration --declarationMap\",\n \"dev\": \"NODE_OPTIONS='--max-old-space-size=12384' tsup --watch\",\n \"sizetest\": \"pnpm build && du -sh dist\",\n \"lint\": \"biome check --write . && tsc --noEmit\",\n \"ci:lint\": \"tsc --noEmit\",\n \"test\": \"vitest\",\n \"gen-ia-docs\": \"tsx scripts/generate-ia-docs.ts\"\n },\n \"author\": \"Matthias Etienne\",\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n"],"mappings":";;AACA,OAAOA,MAAQ,UACf,OAAS,YAAAC,MAAgB,mBACzB,OAAOC,MAAQ,YCHf,OACE,gBAAgBC,MAIX,OCHL,IAAAC,EAAW,SDKb,OAAOC,MAAW,QAIX,SAASC,EAAaC,EAA4BC,EAA4BC,EAAc,GAAO,CAExG,IAAMC,EAASC,EAAiBJ,IAAU,QAAU,OAASA,EAAO,CAClE,OAAQ,YACR,iBAAAC,CACF,CAAC,EAED,OAAIC,GACFC,EAAO,KAAKL,EAAM,IAAI,SAAS,EAAE,KAAK,sBAAeO,CAAO;AAAA,CAAI,CAAC,EAG5D,CACL,GAAGF,EACH,QAAS,CAACG,EAAiBC,IAAyBJ,EAAO,KAAKL,EAAM,MAAMQ,CAAO,EAAGC,CAAO,EAC7F,MAAO,CAACD,EAAiBC,IAAyBJ,EAAO,MAAML,EAAM,IAAIQ,CAAO,EAAGC,CAAO,EAC1F,KAAM,CAACD,EAAiBC,IAAyBJ,EAAO,KAAKL,EAAM,OAAOQ,CAAO,EAAGC,CAAO,EAC3F,SAAU,CAACD,EAAiBC,IAAyBJ,EAAO,SAASL,EAAM,OAAOQ,CAAO,EAAGC,CAAO,EACnG,MAAO,CAACD,EAAiBC,IAAyB,CAC5CP,IAAU,SACZG,EAAO,KAAKL,EAAM,KAAKQ,CAAO,EAAGC,CAAO,CAE5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AM,uCAAuCA,CAAG,GAAG,EAajE,OAAOb,CACT","names":["fs","readFile","fg","createLoggerBase","version","chalk","createLogger","level","allowClearScreen","showVersion","logger","createLoggerBase","version","message","options","basename","dirname","extname","loadConfigFromJsFile","configPath","logger","fs","config","readmePath","readme","readmeFiles","fg","file","base","ext","language","readFile","loadConfigFromManifestFile","manifestPath","validateTemplateConfig","key"]}
1
+ {"version":3,"sources":["../../../src/node/shared/config.ts","../../../src/node/shared/logger.ts","../../../package.json"],"sourcesContent":["import { manifestSchema } from \"~/shared/manifest\";\nimport fs from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport fg from \"fast-glob\";\nimport { type Logger, logger as defaultLogger } from \"./logger\";\nimport { basename, dirname, extname } from \"node:path\";\nimport type { TemplateConfig } from \"~/shared/template\";\n\nexport async function loadConfigFromJsFile(\n configPath: string,\n logger = defaultLogger,\n): Promise<TemplateConfig> {\n if (!fs.existsSync(configPath)) {\n logger.error(\n \"🔴 No enpage.config.js found!\\nYour project must have an enpage.config.js file in the root directory.\\n\\n\",\n );\n process.exit(1);\n }\n const config = (await import(configPath)) as TemplateConfig;\n\n // Parse the readme files fro the same directory as the config file\n const readmePath = dirname(configPath);\n const readme: Record<string, string> = {};\n const readmeFiles = await fg([\"README.enpage.md\", \"README.enpage.*.md\"], {\n cwd: readmePath,\n onlyFiles: true,\n absolute: true,\n caseSensitiveMatch: false,\n });\n\n for (const file of readmeFiles) {\n const base = basename(file, \".md\");\n const ext = extname(base);\n const language = (ext === \".enpage\" ? \"en\" : ext.substring(1)).toLowerCase();\n logger.debug(`Found template readme file (${language}): ${basename(file)}`);\n readme[language] = await readFile(file, \"utf-8\");\n }\n\n if (config.manifest) {\n config.manifest.readme = readme;\n }\n\n return config;\n}\n\nexport function loadConfigFromManifestFile(manifestPath: string, logger: Logger): TemplateConfig {\n if (!fs.existsSync(manifestPath)) {\n logger.error(\"🔴 No enpage.manifest.json found!\\nYou may want to 'build' your template.\\n\\n\");\n process.exit(1);\n }\n return JSON.parse(fs.readFileSync(manifestPath, \"utf-8\"));\n}\n\nexport function validateTemplateConfig(config: TemplateConfig, logger: Logger) {\n for (const key in config.datasources) {\n if (\n (config.datasources[key].provider === \"json-object\" ||\n config.datasources[key].provider === \"json-array\") &&\n !config.datasources[key].sampleData\n ) {\n logger.error(\n `🔴 Error: Datasource \"${key}\" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a \"sampleData\" key to your ${key} datasource.`,\n );\n throw new Error(`Missing sample data for datasource \"${key}\"`);\n }\n }\n\n // Todo: replace validation from zod to ajv\n // const validated = manifestSchema.safeParse(config.manifest);\n // if (!validated.success) {\n // logger.error(`🔴 Error: template manifest is invalid. Check your call to defineManifest().\\n`);\n // const err = fromError(validated.error);\n // logger.error(`Hint: ${err.toString()}\\n\\n`);\n // process.exit(1);\n // }\n\n return config;\n}\n","import {\n createLogger as createLoggerBase,\n type LogLevel,\n type LogOptions,\n type Logger as BaseLogger,\n} from \"vite\";\nimport { version } from \"../../../package.json\";\nimport chalk from \"chalk\";\n\ntype UpstartLoggerLevel = LogLevel | \"debug\";\n\nexport function createLogger(level?: UpstartLoggerLevel, allowClearScreen?: boolean, showVersion = false) {\n // vite logger does not support \"debug\" level\n const logger = createLoggerBase(level === \"debug\" ? \"info\" : level, {\n prefix: \"[upstart]\",\n allowClearScreen,\n });\n\n if (showVersion) {\n logger.info(chalk.hex(\"#7270c6\").bold(`🚀 Upstart v${version}\\n`));\n }\n\n return {\n ...logger,\n success: (message: string, options?: LogOptions) => logger.info(chalk.green(message), options),\n error: (message: string, options?: LogOptions) => logger.error(chalk.red(message), options),\n warn: (message: string, options?: LogOptions) => logger.warn(chalk.yellow(message), options),\n warnOnce: (message: string, options?: LogOptions) => logger.warnOnce(chalk.yellow(message), options),\n debug: (message: string, options?: LogOptions) => {\n if (level === \"debug\") {\n logger.info(chalk.gray(message), options);\n }\n },\n };\n}\n\nexport const logger = createLogger();\n\nexport type Logger = BaseLogger & {\n success: (message: string, options?: LogOptions) => void;\n debug: (message: string, options?: LogOptions) => void;\n};\n","{\n \"name\": \"@upstart.gg/sdk\",\n \"version\": \"0.0.96\",\n \"type\": \"module\",\n \"files\": [\n \"dist\",\n \"env.d.ts\"\n ],\n \"sideEffects\": true,\n \"exports\": {\n \".\": {\n \"import\": \"./dist/shared/index.js\",\n \"types\": \"./dist/shared/index.d.ts\"\n },\n \"./shared/*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n },\n \"./builder/*\": {\n \"import\": \"./dist/node/builder/*.js\"\n },\n \"./cli/*\": {\n \"import\": \"./dist/node/cli/*.js\"\n },\n \"./env.d.ts\": {\n \"types\": \"./env.d.ts\",\n \"require\": \"./env.d.ts\",\n \"import\": \"./env.d.ts\"\n },\n \"./*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n }\n },\n \"dependencies\": {\n \"@date-fns/utc\": \"1.2.0\",\n \"@headlessui/react\": \"2.2.1\",\n \"@inquirer/prompts\": \"5.3.8\",\n \"@radix-ui/react-context-menu\": \"2.2.2\",\n \"@radix-ui/react-toggle-group\": \"1.1.0\",\n \"@radix-ui/themes\": \"3.1.4\",\n \"@sinclair/typebox\": \"0.33.7\",\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"ajv\": \"8.17.1\",\n \"ajv-formats\": \"3.0.1\",\n \"chalk\": \"5.3.0\",\n \"chroma-js\": \"3.1.2\",\n \"commander\": \"12.1.0\",\n \"conf\": \"13.0.1\",\n \"date-fns\": \"3.6.0\",\n \"debug\": \"4.3.6\",\n \"fast-glob\": \"3.3.2\",\n \"form-data\": \"4.0.0\",\n \"get-port\": \"7.1.0\",\n \"htmlparser2\": \"9.1.0\",\n \"http-errors-enhanced\": \"2.0.8\",\n \"immer\": \"10.1.1\",\n \"import-meta-resolve\": \"4.1.0\",\n \"lodash-es\": \"4.17.21\",\n \"nanoid\": \"5.0.7\",\n \"open\": \"10.1.0\",\n \"ora\": \"8.1.0\",\n \"p-queue\": \"8.0.1\",\n \"react-hotkeys-hook\": \"4.5.1\",\n \"react-icons\": \"5.3.0\",\n \"react-selecto\": \"1.26.3\",\n \"rollup-plugin-strip-banner\": \"3.1.0\",\n \"usehooks-ts\": \"3.1.0\",\n \"zundo\": \"2.3.0\",\n \"zustand\": \"4.5.5\"\n },\n \"peerDependencies\": {\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"react\": \"18.3.0-canary-3d9b20132-20240124\",\n \"react-dom\": \"18.3.0-canary-3d9b20132-20240124\"\n },\n \"devDependencies\": {\n \"@cloudflare/workers-types\": \"4.20240806.0\",\n \"@types/chroma-js\": \"2.4.4\",\n \"@types/cli-progress\": \"3.11.6\",\n \"@types/debug\": \"4.1.12\",\n \"@types/express\": \"^4.17.21\",\n \"@types/lodash-es\": \"4.17.12\",\n \"@types/node\": \"^20.14.10\",\n \"@types/react\": \"18.3.3\",\n \"@types/react-dom\": \"^18.3.0\",\n \"@types/sortablejs\": \"1.15.8\",\n \"@vitejs/plugin-react\": \"^4.3.4\",\n \"concurrently\": \"8.2.2\",\n \"express\": \"^4.21.2\",\n \"rimraf\": \"6.0.1\",\n \"tsup\": \"8.2.4\",\n \"vite\": \"5.4.6\",\n \"vite-plugin-dts\": \"4.2.1\",\n \"vite-plugin-image-optimizer\": \"1.1.8\",\n \"vite-plugin-inspect\": \"0.8.7\",\n \"vite-plugin-virtual\": \"0.3.0\",\n \"vite-tsconfig-paths\": \"5.0.1\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"build:types\": \"tsc --emitDeclarationOnly --declaration --declarationMap\",\n \"dev\": \"NODE_OPTIONS='--max-old-space-size=12384' tsup --watch\",\n \"sizetest\": \"pnpm build && du -sh dist\",\n \"lint\": \"biome check --write . && tsc --noEmit\",\n \"ci:lint\": \"tsc --noEmit\",\n \"test\": \"vitest\",\n \"gen-ia-docs\": \"tsx scripts/generate-ia-docs.ts\"\n },\n \"author\": \"Matthias Etienne\",\n \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CACvE,IAAKH,EACL,UAAW,GACX,SAAU,GACV,mBAAoB,EACtB,CAAC,EAED,QAAWI,KAAQF,EAAa,CAC9B,IAAMG,EAAOb,EAASY,EAAM,KAAK,EAC3BE,EAAMZ,EAAQW,CAAI,EAClBE,GAAYD,IAAQ,UAAY,KAAOA,EAAI,UAAU,CAAC,GAAG,YAAY,EAC3ET,EAAO,MAAM,+BAA+BU,CAAQ,MAAMf,EAASY,CAAI,CAAC,EAAE,EAC1EH,EAAOM,CAAQ,EAAI,MAAMC,EAASJ,EAAM,OAAO,CACjD,CAEA,OAAIL,EAAO,WACTA,EAAO,SAAS,OAASE,GAGpBF,CACT,CAEO,SAASU,EAA2BC,EAAsBb,EAAgC,CAC/F,OAAKC,EAAG,WAAWY,CAAY,IAC7Bb,EAAO,MAAM;AAAA;AAAA;AAAA,CAA+E,EAC5F,QAAQ,KAAK,CAAC,GAET,KAAK,MAAMC,EAAG,aAAaY,EAAc,OAAO,CAAC,CAC1D,CAEO,SAASC,EAAuBZ,EAAwBF,EAAgB,CAC7E,QAAWe,KAAOb,EAAO,YACvB,IACGA,EAAO,YAAYa,CAAG,EAAE,WAAa,eACpCb,EAAO,YAAYa,CAAG,EAAE,WAAa,eACvC,CAACb,EAAO,YAAYa,CAAG,EAAE,WAEzB,MAAAf,EAAO,MACL,gCAAyBe,CAAG,sJAAsJA,CAAG,cACvL,EACM,IAAI,MAAM,uCAAuCA,CAAG,GAAG,EAajE,OAAOb,CACT","names":["fs","readFile","fg","createLoggerBase","version","chalk","createLogger","level","allowClearScreen","showVersion","logger","createLoggerBase","version","message","options","basename","dirname","extname","loadConfigFromJsFile","configPath","logger","fs","config","readmePath","readme","readmeFiles","fg","file","base","ext","language","readFile","loadConfigFromManifestFile","manifestPath","validateTemplateConfig","key"]}
@@ -1,5 +1,5 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{createLogger as d}from"vite";var o="0.0.94";import r from"chalk";function g(i,a,n=!1){let s=d(i==="debug"?"info":i,{prefix:"[upstart]",allowClearScreen:a});return n&&s.info(r.hex("#7270c6").bold(`\u{1F680} Upstart v${o}
3
+ import{createLogger as d}from"vite";var o="0.0.96";import r from"chalk";function g(i,a,n=!1){let s=d(i==="debug"?"info":i,{prefix:"[upstart]",allowClearScreen:a});return n&&s.info(r.hex("#7270c6").bold(`\u{1F680} Upstart v${o}
4
4
  `)),{...s,success:(e,t)=>s.info(r.green(e),t),error:(e,t)=>s.error(r.red(e),t),warn:(e,t)=>s.warn(r.yellow(e),t),warnOnce:(e,t)=>s.warnOnce(r.yellow(e),t),debug:(e,t)=>{i==="debug"&&s.info(r.gray(e),t)}}}var y=g();export{g as createLogger,y as logger};
5
5
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/node/shared/logger.ts","../../../package.json"],"sourcesContent":["import {\n createLogger as createLoggerBase,\n type LogLevel,\n type LogOptions,\n type Logger as BaseLogger,\n} from \"vite\";\nimport { version } from \"../../../package.json\";\nimport chalk from \"chalk\";\n\ntype UpstartLoggerLevel = LogLevel | \"debug\";\n\nexport function createLogger(level?: UpstartLoggerLevel, allowClearScreen?: boolean, showVersion = false) {\n // vite logger does not support \"debug\" level\n const logger = createLoggerBase(level === \"debug\" ? \"info\" : level, {\n prefix: \"[upstart]\",\n allowClearScreen,\n });\n\n if (showVersion) {\n logger.info(chalk.hex(\"#7270c6\").bold(`🚀 Upstart v${version}\\n`));\n }\n\n return {\n ...logger,\n success: (message: string, options?: LogOptions) => logger.info(chalk.green(message), options),\n error: (message: string, options?: LogOptions) => logger.error(chalk.red(message), options),\n warn: (message: string, options?: LogOptions) => logger.warn(chalk.yellow(message), options),\n warnOnce: (message: string, options?: LogOptions) => logger.warnOnce(chalk.yellow(message), options),\n debug: (message: string, options?: LogOptions) => {\n if (level === \"debug\") {\n logger.info(chalk.gray(message), options);\n }\n },\n };\n}\n\nexport const logger = createLogger();\n\nexport type Logger = BaseLogger & {\n success: (message: string, options?: LogOptions) => void;\n debug: (message: string, options?: LogOptions) => void;\n};\n","{\n \"name\": \"@upstart.gg/sdk\",\n \"version\": \"0.0.94\",\n \"type\": \"module\",\n \"files\": [\n \"dist\",\n \"env.d.ts\"\n ],\n \"sideEffects\": false,\n \"exports\": {\n \".\": {\n \"import\": \"./dist/shared/index.js\",\n \"types\": \"./dist/shared/index.d.ts\"\n },\n \"./shared/*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n },\n \"./builder/*\": {\n \"import\": \"./dist/node/builder/*.js\"\n },\n \"./cli/*\": {\n \"import\": \"./dist/node/cli/*.js\"\n },\n \"./env.d.ts\": {\n \"types\": \"./env.d.ts\",\n \"require\": \"./env.d.ts\",\n \"import\": \"./env.d.ts\"\n },\n \"./*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n }\n },\n \"dependencies\": {\n \"@date-fns/utc\": \"1.2.0\",\n \"@headlessui/react\": \"2.2.1\",\n \"@inquirer/prompts\": \"5.3.8\",\n \"@radix-ui/react-context-menu\": \"2.2.2\",\n \"@radix-ui/react-toggle-group\": \"1.1.0\",\n \"@radix-ui/themes\": \"3.1.4\",\n \"@sinclair/typebox\": \"0.33.7\",\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"ajv\": \"8.17.1\",\n \"ajv-formats\": \"3.0.1\",\n \"chalk\": \"5.3.0\",\n \"chroma-js\": \"3.1.2\",\n \"commander\": \"12.1.0\",\n \"conf\": \"13.0.1\",\n \"date-fns\": \"3.6.0\",\n \"debug\": \"4.3.6\",\n \"fast-glob\": \"3.3.2\",\n \"form-data\": \"4.0.0\",\n \"get-port\": \"7.1.0\",\n \"htmlparser2\": \"9.1.0\",\n \"http-errors-enhanced\": \"2.0.8\",\n \"immer\": \"10.1.1\",\n \"import-meta-resolve\": \"4.1.0\",\n \"lodash-es\": \"4.17.21\",\n \"nanoid\": \"5.0.7\",\n \"open\": \"10.1.0\",\n \"ora\": \"8.1.0\",\n \"p-queue\": \"8.0.1\",\n \"react-hotkeys-hook\": \"4.5.1\",\n \"react-icons\": \"5.3.0\",\n \"react-selecto\": \"1.26.3\",\n \"rollup-plugin-strip-banner\": \"3.1.0\",\n \"usehooks-ts\": \"3.1.0\",\n \"zundo\": \"2.3.0\",\n \"zustand\": \"4.5.5\"\n },\n \"peerDependencies\": {\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"react\": \"18.3.0-canary-3d9b20132-20240124\",\n \"react-dom\": \"18.3.0-canary-3d9b20132-20240124\"\n },\n \"devDependencies\": {\n \"@cloudflare/workers-types\": \"4.20240806.0\",\n \"@types/chroma-js\": \"2.4.4\",\n \"@types/cli-progress\": \"3.11.6\",\n \"@types/debug\": \"4.1.12\",\n \"@types/express\": \"^4.17.21\",\n \"@types/lodash-es\": \"4.17.12\",\n \"@types/node\": \"^20.14.10\",\n \"@types/react\": \"18.3.3\",\n \"@types/react-dom\": \"^18.3.0\",\n \"@types/sortablejs\": \"1.15.8\",\n \"@vitejs/plugin-react\": \"^4.3.4\",\n \"concurrently\": \"8.2.2\",\n \"express\": \"^4.21.2\",\n \"rimraf\": \"6.0.1\",\n \"tsup\": \"8.2.4\",\n \"vite\": \"5.4.6\",\n \"vite-plugin-dts\": \"4.2.1\",\n \"vite-plugin-image-optimizer\": \"1.1.8\",\n \"vite-plugin-inspect\": \"0.8.7\",\n \"vite-plugin-virtual\": \"0.3.0\",\n \"vite-tsconfig-paths\": \"5.0.1\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"build:types\": \"tsc --emitDeclarationOnly --declaration --declarationMap\",\n \"dev\": \"NODE_OPTIONS='--max-old-space-size=12384' tsup --watch\",\n \"sizetest\": \"pnpm build && du -sh dist\",\n \"lint\": \"biome check --write . && tsc --noEmit\",\n \"ci:lint\": \"tsc --noEmit\",\n \"test\": \"vitest\",\n \"gen-ia-docs\": \"tsx scripts/generate-ia-docs.ts\"\n },\n \"author\": \"Matthias Etienne\",\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n"],"mappings":";;AAAA,OACE,gBAAgBA,MAIX,OCHL,IAAAC,EAAW,SDKb,OAAOC,MAAW,QAIX,SAASC,EAAaC,EAA4BC,EAA4BC,EAAc,GAAO,CAExG,IAAMC,EAASC,EAAiBJ,IAAU,QAAU,OAASA,EAAO,CAClE,OAAQ,YACR,iBAAAC,CACF,CAAC,EAED,OAAIC,GACFC,EAAO,KAAKL,EAAM,IAAI,SAAS,EAAE,KAAK,sBAAeO,CAAO;AAAA,CAAI,CAAC,EAG5D,CACL,GAAGF,EACH,QAAS,CAACG,EAAiBC,IAAyBJ,EAAO,KAAKL,EAAM,MAAMQ,CAAO,EAAGC,CAAO,EAC7F,MAAO,CAACD,EAAiBC,IAAyBJ,EAAO,MAAML,EAAM,IAAIQ,CAAO,EAAGC,CAAO,EAC1F,KAAM,CAACD,EAAiBC,IAAyBJ,EAAO,KAAKL,EAAM,OAAOQ,CAAO,EAAGC,CAAO,EAC3F,SAAU,CAACD,EAAiBC,IAAyBJ,EAAO,SAASL,EAAM,OAAOQ,CAAO,EAAGC,CAAO,EACnG,MAAO,CAACD,EAAiBC,IAAyB,CAC5CP,IAAU,SACZG,EAAO,KAAKL,EAAM,KAAKQ,CAAO,EAAGC,CAAO,CAE5C,CACF,CACF,CAEO,IAAMJ,EAASJ,EAAa","names":["createLoggerBase","version","chalk","createLogger","level","allowClearScreen","showVersion","logger","createLoggerBase","version","message","options"]}
1
+ {"version":3,"sources":["../../../src/node/shared/logger.ts","../../../package.json"],"sourcesContent":["import {\n createLogger as createLoggerBase,\n type LogLevel,\n type LogOptions,\n type Logger as BaseLogger,\n} from \"vite\";\nimport { version } from \"../../../package.json\";\nimport chalk from \"chalk\";\n\ntype UpstartLoggerLevel = LogLevel | \"debug\";\n\nexport function createLogger(level?: UpstartLoggerLevel, allowClearScreen?: boolean, showVersion = false) {\n // vite logger does not support \"debug\" level\n const logger = createLoggerBase(level === \"debug\" ? \"info\" : level, {\n prefix: \"[upstart]\",\n allowClearScreen,\n });\n\n if (showVersion) {\n logger.info(chalk.hex(\"#7270c6\").bold(`🚀 Upstart v${version}\\n`));\n }\n\n return {\n ...logger,\n success: (message: string, options?: LogOptions) => logger.info(chalk.green(message), options),\n error: (message: string, options?: LogOptions) => logger.error(chalk.red(message), options),\n warn: (message: string, options?: LogOptions) => logger.warn(chalk.yellow(message), options),\n warnOnce: (message: string, options?: LogOptions) => logger.warnOnce(chalk.yellow(message), options),\n debug: (message: string, options?: LogOptions) => {\n if (level === \"debug\") {\n logger.info(chalk.gray(message), options);\n }\n },\n };\n}\n\nexport const logger = createLogger();\n\nexport type Logger = BaseLogger & {\n success: (message: string, options?: LogOptions) => void;\n debug: (message: string, options?: LogOptions) => void;\n};\n","{\n \"name\": \"@upstart.gg/sdk\",\n \"version\": \"0.0.96\",\n \"type\": \"module\",\n \"files\": [\n \"dist\",\n \"env.d.ts\"\n ],\n \"sideEffects\": true,\n \"exports\": {\n \".\": {\n \"import\": \"./dist/shared/index.js\",\n \"types\": \"./dist/shared/index.d.ts\"\n },\n \"./shared/*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n },\n \"./builder/*\": {\n \"import\": \"./dist/node/builder/*.js\"\n },\n \"./cli/*\": {\n \"import\": \"./dist/node/cli/*.js\"\n },\n \"./env.d.ts\": {\n \"types\": \"./env.d.ts\",\n \"require\": \"./env.d.ts\",\n \"import\": \"./env.d.ts\"\n },\n \"./*\": {\n \"types\": \"./dist/shared/*.d.ts\",\n \"import\": \"./dist/shared/*.js\"\n }\n },\n \"dependencies\": {\n \"@date-fns/utc\": \"1.2.0\",\n \"@headlessui/react\": \"2.2.1\",\n \"@inquirer/prompts\": \"5.3.8\",\n \"@radix-ui/react-context-menu\": \"2.2.2\",\n \"@radix-ui/react-toggle-group\": \"1.1.0\",\n \"@radix-ui/themes\": \"3.1.4\",\n \"@sinclair/typebox\": \"0.33.7\",\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"ajv\": \"8.17.1\",\n \"ajv-formats\": \"3.0.1\",\n \"chalk\": \"5.3.0\",\n \"chroma-js\": \"3.1.2\",\n \"commander\": \"12.1.0\",\n \"conf\": \"13.0.1\",\n \"date-fns\": \"3.6.0\",\n \"debug\": \"4.3.6\",\n \"fast-glob\": \"3.3.2\",\n \"form-data\": \"4.0.0\",\n \"get-port\": \"7.1.0\",\n \"htmlparser2\": \"9.1.0\",\n \"http-errors-enhanced\": \"2.0.8\",\n \"immer\": \"10.1.1\",\n \"import-meta-resolve\": \"4.1.0\",\n \"lodash-es\": \"4.17.21\",\n \"nanoid\": \"5.0.7\",\n \"open\": \"10.1.0\",\n \"ora\": \"8.1.0\",\n \"p-queue\": \"8.0.1\",\n \"react-hotkeys-hook\": \"4.5.1\",\n \"react-icons\": \"5.3.0\",\n \"react-selecto\": \"1.26.3\",\n \"rollup-plugin-strip-banner\": \"3.1.0\",\n \"usehooks-ts\": \"3.1.0\",\n \"zundo\": \"2.3.0\",\n \"zustand\": \"4.5.5\"\n },\n \"peerDependencies\": {\n \"@upstart.gg/style-system\": \"workspace:*\",\n \"react\": \"18.3.0-canary-3d9b20132-20240124\",\n \"react-dom\": \"18.3.0-canary-3d9b20132-20240124\"\n },\n \"devDependencies\": {\n \"@cloudflare/workers-types\": \"4.20240806.0\",\n \"@types/chroma-js\": \"2.4.4\",\n \"@types/cli-progress\": \"3.11.6\",\n \"@types/debug\": \"4.1.12\",\n \"@types/express\": \"^4.17.21\",\n \"@types/lodash-es\": \"4.17.12\",\n \"@types/node\": \"^20.14.10\",\n \"@types/react\": \"18.3.3\",\n \"@types/react-dom\": \"^18.3.0\",\n \"@types/sortablejs\": \"1.15.8\",\n \"@vitejs/plugin-react\": \"^4.3.4\",\n \"concurrently\": \"8.2.2\",\n \"express\": \"^4.21.2\",\n \"rimraf\": \"6.0.1\",\n \"tsup\": \"8.2.4\",\n \"vite\": \"5.4.6\",\n \"vite-plugin-dts\": \"4.2.1\",\n \"vite-plugin-image-optimizer\": \"1.1.8\",\n \"vite-plugin-inspect\": \"0.8.7\",\n \"vite-plugin-virtual\": \"0.3.0\",\n \"vite-tsconfig-paths\": \"5.0.1\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"build:types\": \"tsc --emitDeclarationOnly --declaration --declarationMap\",\n \"dev\": \"NODE_OPTIONS='--max-old-space-size=12384' tsup --watch\",\n \"sizetest\": \"pnpm build && du -sh dist\",\n \"lint\": \"biome check --write . && tsc --noEmit\",\n \"ci:lint\": \"tsc --noEmit\",\n \"test\": \"vitest\",\n \"gen-ia-docs\": \"tsx scripts/generate-ia-docs.ts\"\n },\n \"author\": \"Matthias Etienne\",\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n"],"mappings":";;AAAA,OACE,gBAAgBA,MAIX,OCHL,IAAAC,EAAW,SDKb,OAAOC,MAAW,QAIX,SAASC,EAAaC,EAA4BC,EAA4BC,EAAc,GAAO,CAExG,IAAMC,EAASC,EAAiBJ,IAAU,QAAU,OAASA,EAAO,CAClE,OAAQ,YACR,iBAAAC,CACF,CAAC,EAED,OAAIC,GACFC,EAAO,KAAKL,EAAM,IAAI,SAAS,EAAE,KAAK,sBAAeO,CAAO;AAAA,CAAI,CAAC,EAG5D,CACL,GAAGF,EACH,QAAS,CAACG,EAAiBC,IAAyBJ,EAAO,KAAKL,EAAM,MAAMQ,CAAO,EAAGC,CAAO,EAC7F,MAAO,CAACD,EAAiBC,IAAyBJ,EAAO,MAAML,EAAM,IAAIQ,CAAO,EAAGC,CAAO,EAC1F,KAAM,CAACD,EAAiBC,IAAyBJ,EAAO,KAAKL,EAAM,OAAOQ,CAAO,EAAGC,CAAO,EAC3F,SAAU,CAACD,EAAiBC,IAAyBJ,EAAO,SAASL,EAAM,OAAOQ,CAAO,EAAGC,CAAO,EACnG,MAAO,CAACD,EAAiBC,IAAyB,CAC5CP,IAAU,SACZG,EAAO,KAAKL,EAAM,KAAKQ,CAAO,EAAGC,CAAO,CAE5C,CACF,CACF,CAEO,IAAMJ,EAASJ,EAAa","names":["createLoggerBase","version","chalk","createLogger","level","allowClearScreen","showVersion","logger","createLoggerBase","version","message","options"]}
@@ -78,30 +78,65 @@ export declare const attr: {
78
78
  };
79
79
  export declare const defaultAttributesSchema: TObject<{
80
80
  $pageLanguage: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>;
81
- $pageOgImage: import("@sinclair/typebox").TString;
82
- $robotsIndexing: import("@sinclair/typebox").TBoolean;
83
- $siteOgImage: import("@sinclair/typebox").TString;
81
+ $pageOgImage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
82
+ $robotsIndexing: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
83
+ $siteOgImage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
84
84
  $pagePath: import("@sinclair/typebox").TString;
85
85
  $pageTitle: import("@sinclair/typebox").TString;
86
86
  $pageDescription: import("@sinclair/typebox").TString;
87
87
  $pageKeywords: import("@sinclair/typebox").TString;
88
- $pageLastUpdated: import("@sinclair/typebox").TString;
89
- $bodyBackground: TObject<{
88
+ $pageLastUpdated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
89
+ $bodyBackground: import("@sinclair/typebox").TOptional<TObject<{
90
90
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
91
91
  image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
92
92
  repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
93
93
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
94
- }>;
95
- $pageBackground: TObject<{
94
+ }>>;
95
+ $pageBackground: import("@sinclair/typebox").TOptional<TObject<{
96
96
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
97
97
  image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
98
98
  repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
99
99
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
100
- }>;
100
+ }>>;
101
101
  $textColor: import("@sinclair/typebox").TString;
102
102
  $siteHeadTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
103
103
  $siteBodyTags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
104
104
  }>;
105
+ export declare const siteAttributesSchemaForLLM: TObject<{
106
+ $bodyBackground: import("@sinclair/typebox").TOptional<TObject<{
107
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
108
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
109
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
110
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
111
+ }>>;
112
+ $pageBackground: import("@sinclair/typebox").TOptional<TObject<{
113
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
114
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
115
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
116
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
117
+ }>>;
118
+ $textColor: import("@sinclair/typebox").TString;
119
+ }>;
120
+ export declare const pageAttributesSchemaForLLM: TObject<{
121
+ $pageLanguage: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>;
122
+ $pagePath: import("@sinclair/typebox").TString;
123
+ $pageTitle: import("@sinclair/typebox").TString;
124
+ $pageDescription: import("@sinclair/typebox").TString;
125
+ $pageKeywords: import("@sinclair/typebox").TString;
126
+ $bodyBackground: import("@sinclair/typebox").TOptional<TObject<{
127
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
128
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
129
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
130
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
131
+ }>>;
132
+ $pageBackground: import("@sinclair/typebox").TOptional<TObject<{
133
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
134
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
135
+ repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
136
+ size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
137
+ }>>;
138
+ $textColor: import("@sinclair/typebox").TString;
139
+ }>;
105
140
  export type AttributesSchema = typeof defaultAttributesSchema & Record<string, unknown>;
106
141
  export type Attributes<T extends Record<string, unknown> = Record<string, unknown>> = Static<typeof defaultAttributesSchema> & T;
107
142
  export declare function resolveAttributes(customAttrsSchema: TObject, initialData?: Record<string, unknown>): Attributes<Static<typeof customAttrsSchema>>;
@@ -1 +1 @@
1
- {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/shared/attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,OAAO,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,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AC;IAIlE;;OAEG;mBAEK,MAAM,8BAEN,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAIlE;;OAEG;sBAEK,MAAM,gBACE,QAAQ,SAChB,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;;;;;CAWnE,CAAC;AAwKF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;EAAiE,CAAC;AACtG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;EAIrC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;EASrC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,OAAO,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExF,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAC1F,OAAO,uBAAuB,CAC/B,GACC,CAAC,CAAC;AAEJ,wBAAgB,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,EAAE,WAAW,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAStF,UAAU,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAC5D"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d,e}from"./chunk-64II435T.js";import"./chunk-ZWQHIQEQ.js";import"./chunk-P5FVZ5PL.js";import"./chunk-BMDB2V7J.js";import"./chunk-PSSJMWGU.js";export{c as attr,d as defaultAttributesSchema,a as defineAttributes,b as processAttributesSchema,e as resolveAttributes};
3
+ import{a,b,c,d,e,f,g}from"./chunk-4NCCSLBW.js";import"./chunk-ZWQHIQEQ.js";import"./chunk-P5FVZ5PL.js";import"./chunk-BMDB2V7J.js";import"./chunk-PSSJMWGU.js";export{c as attr,d as defaultAttributesSchema,a as defineAttributes,f as pageAttributesSchemaForLLM,b as processAttributesSchema,g as resolveAttributes,e as siteAttributesSchemaForLLM};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"../../chunk-YLAVY3GS.js";import"../../chunk-TQ23UATQ.js";import"../../chunk-GDLXGNMG.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-DAPQ4JPP.js";import"../../chunk-WOEBR25A.js";import"../../chunk-BK6LBWDI.js";import"../../chunk-6I4PY5WS.js";import"../../chunk-3CY6AZG7.js";import"../../chunk-HW5TY2QW.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-PJ6HA55L.js";import"../../chunk-U4R5EGBK.js";import"../../chunk-HIZPJNEM.js";import"../../chunk-KB4HY432.js";import"../../chunk-Q4MXTCE4.js";import"../../chunk-QRBMK5UX.js";import"../../chunk-JVDUEZYO.js";import"../../chunk-FGU4BGP4.js";import"../../chunk-XGCBIXOO.js";import"../../chunk-SQVL4WSX.js";import"../../chunk-XBX6II3M.js";import"../../chunk-XEQ2XZLQ.js";import"../../chunk-RBYYMUOZ.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-F2ZVIFHO.js";import"../../chunk-NFU5BF6G.js";import"../../chunk-EFJQECVB.js";import"../../chunk-U44NTSIO.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-PD7P5KSV.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{b as defaultProps,a as manifests};
3
+ import{a,b}from"../../chunk-PU2FOOTY.js";import"../../chunk-TQ23UATQ.js";import"../../chunk-PSNFBHPU.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-DAPQ4JPP.js";import"../../chunk-WOEBR25A.js";import"../../chunk-BK6LBWDI.js";import"../../chunk-6I4PY5WS.js";import"../../chunk-3CY6AZG7.js";import"../../chunk-ECZ6FGZM.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-PJ6HA55L.js";import"../../chunk-U4R5EGBK.js";import"../../chunk-HIZPJNEM.js";import"../../chunk-KB4HY432.js";import"../../chunk-Q4MXTCE4.js";import"../../chunk-THRRILTW.js";import"../../chunk-JVDUEZYO.js";import"../../chunk-FGU4BGP4.js";import"../../chunk-XGCBIXOO.js";import"../../chunk-4K5NN4CN.js";import"../../chunk-XBX6II3M.js";import"../../chunk-XEQ2XZLQ.js";import"../../chunk-RBYYMUOZ.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-F2ZVIFHO.js";import"../../chunk-NFU5BF6G.js";import"../../chunk-EFJQECVB.js";import"../../chunk-U44NTSIO.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-PD7P5KSV.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{b as defaultProps,a as manifests};
@@ -59,7 +59,7 @@ export declare const manifest: {
59
59
  datasource: import("@sinclair/typebox").TObject<{
60
60
  ds: import("@sinclair/typebox").TObject<{
61
61
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
62
- useExistingDatasource: import("@sinclair/typebox").TBoolean;
62
+ useExistingDatasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
63
63
  datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
64
64
  id: import("@sinclair/typebox").TString;
65
65
  mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
@@ -75,7 +75,7 @@ export declare const manifest: {
75
75
  }> | import("@sinclair/typebox").TObject<{
76
76
  ds: import("@sinclair/typebox").TObject<{
77
77
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
78
- useExistingDatasource: import("@sinclair/typebox").TBoolean;
78
+ useExistingDatasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
79
79
  datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
80
80
  id: import("@sinclair/typebox").TString;
81
81
  mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
@@ -166,7 +166,7 @@ export declare const manifest: {
166
166
  };
167
167
  } | undefined;
168
168
  isDynamic?: boolean | undefined;
169
- useExistingDatasource: boolean;
169
+ useExistingDatasource?: boolean | undefined;
170
170
  };
171
171
  } | {
172
172
  ds: {
@@ -188,7 +188,7 @@ export declare const manifest: {
188
188
  };
189
189
  } | undefined;
190
190
  isDynamic?: boolean | undefined;
191
- useExistingDatasource: boolean;
191
+ useExistingDatasource?: boolean | undefined;
192
192
  };
193
193
  };
194
194
  $children: any[];
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"../../chunk-HW5TY2QW.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-SQVL4WSX.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-U44NTSIO.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasource,b as manifest};
3
+ import{a,b}from"../../chunk-ECZ6FGZM.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-4K5NN4CN.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-U44NTSIO.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasource,b as manifest};
@@ -73,7 +73,7 @@ export declare const manifest: {
73
73
  color: import("@sinclair/typebox").TString;
74
74
  items: import("@sinclair/typebox").TObject<{
75
75
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
76
- useExistingDatasource: import("@sinclair/typebox").TBoolean;
76
+ useExistingDatasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
77
77
  datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
78
78
  id: import("@sinclair/typebox").TString;
79
79
  mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
@@ -93,7 +93,7 @@ export declare const manifest: {
93
93
  color: import("@sinclair/typebox").TString;
94
94
  items: import("@sinclair/typebox").TObject<{
95
95
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
96
- useExistingDatasource: import("@sinclair/typebox").TBoolean;
96
+ useExistingDatasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
97
97
  datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
98
98
  id: import("@sinclair/typebox").TString;
99
99
  mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
@@ -195,7 +195,7 @@ export declare const manifest: {
195
195
  };
196
196
  } | undefined;
197
197
  isDynamic?: boolean | undefined;
198
- useExistingDatasource: boolean;
198
+ useExistingDatasource?: boolean | undefined;
199
199
  };
200
200
  color: string;
201
201
  position: "left" | "right" | "center";
@@ -222,7 +222,7 @@ export declare const manifest: {
222
222
  };
223
223
  } | undefined;
224
224
  isDynamic?: boolean | undefined;
225
- useExistingDatasource: boolean;
225
+ useExistingDatasource?: boolean | undefined;
226
226
  };
227
227
  color: string;
228
228
  position: "left" | "right" | "center";
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"../../chunk-QRBMK5UX.js";import"../../chunk-JVDUEZYO.js";import"../../chunk-FGU4BGP4.js";import"../../chunk-XGCBIXOO.js";import"../../chunk-SQVL4WSX.js";import"../../chunk-XBX6II3M.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasource,b as manifest};
3
+ import{a,b}from"../../chunk-THRRILTW.js";import"../../chunk-JVDUEZYO.js";import"../../chunk-FGU4BGP4.js";import"../../chunk-XGCBIXOO.js";import"../../chunk-4K5NN4CN.js";import"../../chunk-XBX6II3M.js";import"../../chunk-SO5M7CYA.js";import"../../chunk-IWSVY2VC.js";import"../../chunk-P5FVZ5PL.js";import"../../chunk-LDOM2LJF.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasource,b as manifest};
@@ -15,7 +15,7 @@ export declare const manifest: {
15
15
  } & {
16
16
  content: import("@sinclair/typebox").TObject<{
17
17
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
18
- useExistingDatasource: import("@sinclair/typebox").TBoolean;
18
+ useExistingDatasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
19
19
  datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
20
20
  id: import("@sinclair/typebox").TString;
21
21
  mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
@@ -96,7 +96,7 @@ export declare const manifest: {
96
96
  };
97
97
  } | undefined;
98
98
  isDynamic?: boolean | undefined;
99
- useExistingDatasource: boolean;
99
+ useExistingDatasource?: boolean | undefined;
100
100
  };
101
101
  styles: {
102
102
  layout: {
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"../../chunk-GDLXGNMG.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-SQVL4WSX.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasource,b as manifest};
3
+ import{a,b}from"../../chunk-PSNFBHPU.js";import"../../chunk-OELIU5BZ.js";import"../../chunk-AZ63RF3K.js";import"../../chunk-4K5NN4CN.js";import"../../chunk-WPTVLIYS.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasource,b as manifest};
@@ -1,7 +1,7 @@
1
1
  import { type Static } from "@sinclair/typebox";
2
2
  export declare function datasourceRef(): import("@sinclair/typebox").TObject<{
3
3
  isDynamic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
4
- useExistingDatasource: import("@sinclair/typebox").TBoolean;
4
+ useExistingDatasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
5
5
  datasource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
6
6
  id: import("@sinclair/typebox").TString;
7
7
  mapping: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,aAAa;;;;;;;;;;;;;;GA4E5B;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,aAAa;;;;;;;;;;;;;;GA8E5B;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a}from"../../chunk-SQVL4WSX.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasourceRef};
3
+ import{a}from"../../chunk-4K5NN4CN.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasourceRef};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d,e,f,g,h,i}from"./chunk-NUJO6EYU.js";import"./chunk-WJ5CDDXW.js";import"./chunk-64II435T.js";import"./chunk-ZWQHIQEQ.js";import"./chunk-YLAVY3GS.js";import"./chunk-TQ23UATQ.js";import"./chunk-GDLXGNMG.js";import"./chunk-OELIU5BZ.js";import"./chunk-DAPQ4JPP.js";import"./chunk-WOEBR25A.js";import"./chunk-BK6LBWDI.js";import"./chunk-6I4PY5WS.js";import"./chunk-3CY6AZG7.js";import"./chunk-HW5TY2QW.js";import"./chunk-AZ63RF3K.js";import"./chunk-PJ6HA55L.js";import"./chunk-U4R5EGBK.js";import"./chunk-HIZPJNEM.js";import"./chunk-KB4HY432.js";import"./chunk-Q4MXTCE4.js";import"./chunk-QRBMK5UX.js";import"./chunk-JVDUEZYO.js";import"./chunk-FGU4BGP4.js";import"./chunk-XGCBIXOO.js";import"./chunk-SQVL4WSX.js";import"./chunk-XBX6II3M.js";import"./chunk-XEQ2XZLQ.js";import"./chunk-RBYYMUOZ.js";import"./chunk-SO5M7CYA.js";import"./chunk-IWSVY2VC.js";import"./chunk-F2ZVIFHO.js";import"./chunk-NFU5BF6G.js";import"./chunk-EFJQECVB.js";import"./chunk-U44NTSIO.js";import"./chunk-P5FVZ5PL.js";import"./chunk-LDOM2LJF.js";import"./chunk-PD7P5KSV.js";import"./chunk-WPTVLIYS.js";import"./chunk-BMDB2V7J.js";import"./chunk-PSSJMWGU.js";export{b as brickSchema,i as defineBrick,g as defineBricks,f as defineSections,c as definedBrickSchema,e as definedSectionSchema,a as generateId,h as getPositionDefaults,d as sectionSchema};
3
+ import{a,b,c,d,e,f,g,h,i}from"./chunk-BH4HTAAC.js";import"./chunk-WJ5CDDXW.js";import"./chunk-4NCCSLBW.js";import"./chunk-ZWQHIQEQ.js";import"./chunk-PU2FOOTY.js";import"./chunk-TQ23UATQ.js";import"./chunk-PSNFBHPU.js";import"./chunk-OELIU5BZ.js";import"./chunk-DAPQ4JPP.js";import"./chunk-WOEBR25A.js";import"./chunk-BK6LBWDI.js";import"./chunk-6I4PY5WS.js";import"./chunk-3CY6AZG7.js";import"./chunk-ECZ6FGZM.js";import"./chunk-AZ63RF3K.js";import"./chunk-PJ6HA55L.js";import"./chunk-U4R5EGBK.js";import"./chunk-HIZPJNEM.js";import"./chunk-KB4HY432.js";import"./chunk-Q4MXTCE4.js";import"./chunk-THRRILTW.js";import"./chunk-JVDUEZYO.js";import"./chunk-FGU4BGP4.js";import"./chunk-XGCBIXOO.js";import"./chunk-4K5NN4CN.js";import"./chunk-XBX6II3M.js";import"./chunk-XEQ2XZLQ.js";import"./chunk-RBYYMUOZ.js";import"./chunk-SO5M7CYA.js";import"./chunk-IWSVY2VC.js";import"./chunk-F2ZVIFHO.js";import"./chunk-NFU5BF6G.js";import"./chunk-EFJQECVB.js";import"./chunk-U44NTSIO.js";import"./chunk-P5FVZ5PL.js";import"./chunk-LDOM2LJF.js";import"./chunk-PD7P5KSV.js";import"./chunk-WPTVLIYS.js";import"./chunk-BMDB2V7J.js";import"./chunk-PSSJMWGU.js";export{b as brickSchema,i as defineBrick,g as defineBricks,f as defineSections,c as definedBrickSchema,e as definedSectionSchema,a as generateId,h as getPositionDefaults,d as sectionSchema};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{b as e}from"./chunk-BMDB2V7J.js";import{Type as t}from"@sinclair/typebox";function r(){return e({title:"Database",description:"Reference to a data source",$id:"#datasource",schema:t.Object({isDynamic:t.Optional(t.Boolean({title:"Use dynamic content",description:"Content can be managed in two ways: Static or Dynamic. Static content is set in the editor. Dynamic content is fetched from a database and can be managed through our CMS.",default:!1,"ui:field":"dynamic-content-switch","ui:inspector-tab":"content","ui:order":0,"ui:group:order":0,"ui:group":"content","ui:group:title":"Dynamic / Static Mode"})),useExistingDatasource:t.Optional(t.Boolean({title:"Use Existing data source",default:!1})),datasource:t.Optional(t.Object({id:t.String({title:"Data Source ID"}),mapping:t.Record(t.String(),t.String(),{description:"Mapping of data source fields to brick props"}),filters:t.Optional(t.Record(t.String(),t.Object({op:t.Union([t.Literal("eq"),t.Literal("ne"),t.Literal("lt"),t.Literal("lte"),t.Literal("gt"),t.Literal("gte"),t.Literal("in"),t.Literal("nin"),t.Literal("contains"),t.Literal("startsWith"),t.Literal("endsWith")]),value:t.String()}),{description:"Filter data source records"})),sort:t.Optional(t.Record(t.String(),t.Union([t.Literal("asc",{title:"Ascending"}),t.Literal("desc",{title:"Descending"})]),{description:"Sort data source records"})),limit:t.Optional(t.Number({description:"Limit the number of records to fetch"})),offset:t.Optional(t.Number({description:"Offset the records to fetch"}))},{"ui:field":"datasource-ref","ui:inspector-tab":"content"}))})})}export{r as a};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a as p}from"./chunk-ZWQHIQEQ.js";import{a as u}from"./chunk-P5FVZ5PL.js";import{Type as t}from"@sinclair/typebox";import{Value as c}from"@sinclair/typebox/value";function y(e){for(let i in e)if(i.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${i}") are reserved for internal use. Please rename it.`);return t.Object(e)}function S(e){return t.Composite([e,s])}var o={string(e,i="",r){return t.String({title:e,default:i,...r})},number(e,i=0,r){return t.Number({title:e,default:i,...r})},boolean(e,i=!1,r){let n={"ui:field":"switch"};return t.Boolean({title:e,default:i,...n,...r})},enum(e,i,r){let n={"ui:field":"enum","ui:display":r.displayAs||"select"},{options:l,displayAs:g,...d}=r;return t.Union(l.map(a=>t.Literal(typeof a=="string"?a:a.value,{title:typeof a=="string"?a:a.title,"ui:icon":typeof a=="string"?void 0:a.icon})),{title:e,default:i,...n,...d})},file(e,i="",r={}){return t.String({title:e,default:i,...r,format:"data-url"})},url(e,i="",r={}){return t.String({title:e,default:i,...r,format:"uri"})},color(e,i="",r){let n={"ui:field":"color"};return t.String({title:e,default:i,...n,...r})},date(e,i=new Date,r={}){return t.String({title:e,default:i.toISOString(),...r,format:"date"})},datetime(e,i=new Date,r={}){return t.String({title:e,default:i.toISOString(),...r,format:"date-time"})},geolocation(e,i,r={}){return t.Object({lat:t.Number({minimum:-90,maximum:90}),lng:t.Number({minimum:-180,maximum:180}),name:t.Optional(t.String({title:"Name"}))},{title:e,default:i,...r})}},m={$pageLanguage:o.enum("Language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ai:guidelines":"Choose a value based on the site description. If the site is in multiple languages, use 'en'.","ui:group":"meta","ui:group:title":"Meta tags"}),$pageOgImage:t.Optional(o.string("Social share image","",{description:"Image shown when page is shared on social media","ai:guidelines":"Don't generate this property/image, it is automatically generated.","ui:group":"meta"})),$robotsIndexing:t.Optional(o.boolean("Allow search engines to index this site",!0,{description:"Disabling this will prevent search engines from indexing this site","ai:guidelines":"Don't generate this property/image, it is automatically generated.","ui:group":"seo","ui:group:title":"SEO","ui:scope":"site"})),$siteOgImage:t.Optional(o.string("Social share image","",{description:"Image shown when this site is shared on social media","ai:guidelines":"Don't generate this image, it is automatically generated.","ui:field":"image","ui:group":"meta","ui:group:title":"Meta tags","ui:scope":"site"})),$pagePath:o.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location"}),$pageTitle:o.string("Title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags",description:"The title of the page. Appears in the browser tab and search results"}),$pageDescription:o.string("Description","",{"ui:widget":"textarea","ui:group":"meta","ui:group:title":"Meta tags",description:"A short description of the page. Used by search engines"}),$pageKeywords:o.string("Keywords","",{"ui:group":"meta","ui:group:title":"Meta tags",description:"Keywords related to the page. Used by search engines"}),$pageLastUpdated:t.Optional(o.datetime("Last updated",void 0,{"ui:hidden":!0,"ai:guidelines":"Don't generate this property."})),$bodyBackground:t.Optional(t.Composite([u()],{default:{color:"#ffffff"},title:"Body Background",description:"Applies to the body element of the page (while $pageBackground applies to the page container)","ui:field":"background","ui:show-img-search":!0,"ui:group":"layout","ui:group:title":"Page Layout","ui:group:order":3})),$pageBackground:t.Optional(t.Composite([u(),t.Object({},{title:"Page Background"})],{default:{color:"#ffffff"},title:"Page Background","ui:field":"background","ui:show-img-search":!0,"ui:group":"background","ui:group:title":"Page Background","ui:group:order":4})),$textColor:o.color("Text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout","ui:color-type":"text"}),$siteHeadTags:t.Optional(t.String({title:"Head tags",description:"Add custom tags to the <head> of your site. Useful for analytics tags, custom scripts, etc.","ai:guidelines":"Don't include meta tags here, they are automatically generated.","ui:multiline":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"})),$siteBodyTags:t.Optional(t.String({title:"Body tags",description:"Add custom tags to the <body> of your site. Useful for analytics tags, custom scripts, etc.","ui:multiline":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"}))},s=t.Object(m,{additionalProperties:!0}),A=t.Pick(s,["$textColor","$bodyBackground","$pageBackground"]),v=t.Pick(s,["$pageTitle","$pageDescription","$pageKeywords","$pageLanguage","$pagePath","$textColor","$bodyBackground","$pageBackground"]);function $(e,i={}){let r=p.compile(e);if(!r(i))throw console.log("invalid custom attributes values",i,r.errors),new Error(`Invalid custom attributes values: ${r.errors}`);return{...c.Create(s),...i}}export{y as a,S as b,o as c,s as d,A as e,v as f,$ as g};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a as s}from"./chunk-WJ5CDDXW.js";import{c as o}from"./chunk-64II435T.js";import{b as n}from"./chunk-YLAVY3GS.js";import{a as p}from"./chunk-P5FVZ5PL.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as f}from"nanoid";import{merge as a}from"lodash-es";var d=f("1234567890azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),l=e.Object({x:e.Number({title:"X",description:"The column start (0-based) in grid units, not pixels."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Number({title:"Width",description:"The width in columns in grid units, not pixels."}),h:e.Number({title:"Height",description:"The height in rows in grid units, not pixels."}),manualHeight:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor."})),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))},{$id:"brick-position"}),c=e.Object({x:e.Union([e.Number(),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"X",description:"The column start (0-based) in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Union([e.Number(),e.Literal("full"),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"Width",description:"The width in columns in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),h:e.Union([e.Number({title:"Height",description:"The height in rows in grid units, not pixels."})]),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))}),u=e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),type:e.String({title:"Type"}),props:e.Record(e.String(),e.Unknown()),mobileProps:e.Record(e.String(),e.Unknown()),parentId:e.Optional(e.String()),sectionId:e.String(),$children:e.Optional(e.Array(e.Ref("brick"))),position:e.Object({mobile:l,desktop:l},{title:"Position",description:"The position of the brick in the layout."})},{$id:"brick"}),T=e.Composite([e.Pick(u,["type","props","sectionId","parentId","$children"]),e.Object({id:e.Optional(e.String()),mobileProps:e.Optional(u.properties.props),position:e.Object({mobile:c,desktop:c})})]),h=e.Object({background:e.Optional(p()),width:e.Optional(o.enum("Width","max-w-full",{options:[{value:"max-w-screen-lg",title:"Medium",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"Large",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"Extra large",description:"Common width"},{value:"max-w-full",title:"Full width",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only",displayAs:"select","ui:group":"layout","ui:group:order":3,"ui:group:title":"Layout"})),$paddingHorizontal:e.Optional(o.number("Horizontal spacing",0,{min:0,description:"Horizontal spacing. Desktop only",displayAs:"button-group"})),lastTouched:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden"}))},{additionalProperties:!0}),b=e.Object({id:e.String(),kind:e.Literal("section"),label:e.Optional(e.String()),position:e.Object({mobile:e.Object({h:e.Optional(e.Union([e.Number(),e.Literal("full")]))}),desktop:e.Object({h:e.Union([e.Number(),e.Literal("full")])})}),order:e.Number({description:"Determines section order in the page (lower numbers appear first)"}),props:h,mobileProps:e.Optional(e.Partial(h))},{$id:"section"}),D=e.Omit(b,["kind"]);function m(t,i,r=s){return{x:t.x==="quarter"?r[i]/4:t.x==="threeQuarter"?r[i]*.75:t.x==="half"?r[i]/2:t.x==="third"?r[i]/3:t.x==="twoThird"?r[i]*2/3:t.x,y:t.y,w:t.w==="full"?r[i]:t.w==="half"?r[i]/2:t.w==="third"?r[i]/3:t.w==="quarter"?r[i]/4:t.w==="twoThird"?r[i]*2/3:t.w==="threeQuarter"?r[i]*3/4:t.w,h:t.h,hidden:t.hidden}}function I(t){return t.map(i=>({...i,props:i.props??{},kind:"section"}))}function N(t){return t.map(x)}function y(){return{desktop:{w:0,h:0,x:0,y:0},mobile:{w:0,h:0,x:0,y:0}}}function x(t){let i=t.id??`brick-${d()}`;return{id:i,...t,props:{...a({},n[t.type].props,t.props),..."$children"in t.props?{$children:t.props.$children.map(r=>({...r,id:r.id??`brick-${d()}`,parentId:i,sectionId:t.sectionId,position:{mobile:{},desktop:{}},props:a({},n[r.type].props,r.props)}))}:{}},mobileProps:t.mobileProps??{},position:t.position?{mobile:m(t.position.mobile,"mobile"),desktop:m(t.position.desktop,"desktop")}:y()}}export{d as a,u as b,T as c,b as d,D as e,I as f,N as g,y as h,x as i};
3
+ import{a as s}from"./chunk-WJ5CDDXW.js";import{c as o}from"./chunk-4NCCSLBW.js";import{b as n}from"./chunk-PU2FOOTY.js";import{a as p}from"./chunk-P5FVZ5PL.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as f}from"nanoid";import{merge as a}from"lodash-es";var d=f("1234567890azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),l=e.Object({x:e.Number({title:"X",description:"The column start (0-based) in grid units, not pixels."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Number({title:"Width",description:"The width in columns in grid units, not pixels."}),h:e.Number({title:"Height",description:"The height in rows in grid units, not pixels."}),manualHeight:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor."})),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))},{$id:"brick-position"}),c=e.Object({x:e.Union([e.Number(),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"X",description:"The column start (0-based) in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Union([e.Number(),e.Literal("full"),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"Width",description:"The width in columns in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),h:e.Union([e.Number({title:"Height",description:"The height in rows in grid units, not pixels."})]),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))}),u=e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),type:e.String({title:"Type"}),props:e.Record(e.String(),e.Unknown()),mobileProps:e.Record(e.String(),e.Unknown()),parentId:e.Optional(e.String()),sectionId:e.String(),$children:e.Optional(e.Array(e.Ref("brick"))),position:e.Object({mobile:l,desktop:l},{title:"Position",description:"The position of the brick in the layout."})},{$id:"brick"}),T=e.Composite([e.Pick(u,["type","props","sectionId","parentId","$children"]),e.Object({id:e.Optional(e.String()),mobileProps:e.Optional(u.properties.props),position:e.Object({mobile:c,desktop:c})})]),h=e.Object({background:e.Optional(p()),width:e.Optional(o.enum("Width","max-w-full",{options:[{value:"max-w-screen-lg",title:"Medium",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"Large",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"Extra large",description:"Common width"},{value:"max-w-full",title:"Full width",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only",displayAs:"select","ui:group":"layout","ui:group:order":3,"ui:group:title":"Layout"})),$paddingHorizontal:e.Optional(o.number("Horizontal spacing",0,{min:0,description:"Horizontal spacing. Desktop only",displayAs:"button-group"})),lastTouched:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden"}))},{additionalProperties:!0}),b=e.Object({id:e.String(),kind:e.Literal("section"),label:e.Optional(e.String()),position:e.Object({mobile:e.Object({h:e.Optional(e.Union([e.Number(),e.Literal("full")]))}),desktop:e.Object({h:e.Union([e.Number(),e.Literal("full")])})}),order:e.Number({description:"Determines section order in the page (lower numbers appear first)"}),props:h,mobileProps:e.Optional(e.Partial(h))},{$id:"section"}),D=e.Omit(b,["kind"]);function m(t,i,r=s){return{x:t.x==="quarter"?r[i]/4:t.x==="threeQuarter"?r[i]*.75:t.x==="half"?r[i]/2:t.x==="third"?r[i]/3:t.x==="twoThird"?r[i]*2/3:t.x,y:t.y,w:t.w==="full"?r[i]:t.w==="half"?r[i]/2:t.w==="third"?r[i]/3:t.w==="quarter"?r[i]/4:t.w==="twoThird"?r[i]*2/3:t.w==="threeQuarter"?r[i]*3/4:t.w,h:t.h,hidden:t.hidden}}function I(t){return t.map(i=>({...i,props:i.props??{},kind:"section"}))}function N(t){return t.map(x)}function y(){return{desktop:{w:0,h:0,x:0,y:0},mobile:{w:0,h:0,x:0,y:0}}}function x(t){let i=t.id??`brick-${d()}`;return{id:i,...t,props:{...a({},n[t.type].props,t.props),..."$children"in t.props?{$children:t.props.$children.map(r=>({...r,id:r.id??`brick-${d()}`,parentId:i,sectionId:t.sectionId,position:{mobile:{},desktop:{}},props:a({},n[r.type].props,r.props)}))}:{}},mobileProps:t.mobileProps??{},position:t.position?{mobile:m(t.position.mobile,"mobile"),desktop:m(t.position.desktop,"desktop")}:y()}}export{d as a,u as b,T as c,b as d,D as e,I as f,N as g,y as h,x as i};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{c as m,d as f}from"./chunk-AZ63RF3K.js";import{a as d}from"./chunk-SQVL4WSX.js";import{d as p}from"./chunk-SO5M7CYA.js";import{a}from"./chunk-IWSVY2VC.js";import{a as n}from"./chunk-U44NTSIO.js";import{a as e}from"./chunk-P5FVZ5PL.js";import{a as i}from"./chunk-WPTVLIYS.js";import{a as r,d as t,e as o}from"./chunk-BMDB2V7J.js";import{Type as c}from"@sinclair/typebox";import{RxGrid as s}from"react-icons/rx";var l=c.Array(c.Object({},{additionalProperties:!0})),M=i({type:"container",kind:"brick",name:"Container",description:"A container that can hold other bricks and align them horizontally or vertically",isContainer:!0,defaultHeight:{desktop:6,mobile:6},defaultWidth:{desktop:12,mobile:12},datasource:l,icon:s,props:t({layout:m(),background:o(e()),border:o(a()),padding:o(n()),effects:o(p()),datasource:r({title:"Data",children:{ds:d()}}),...f()})});export{l as a,M as b};
3
+ import{c as m,d as f}from"./chunk-AZ63RF3K.js";import{a as d}from"./chunk-4K5NN4CN.js";import{d as p}from"./chunk-SO5M7CYA.js";import{a}from"./chunk-IWSVY2VC.js";import{a as n}from"./chunk-U44NTSIO.js";import{a as e}from"./chunk-P5FVZ5PL.js";import{a as i}from"./chunk-WPTVLIYS.js";import{a as r,d as t,e as o}from"./chunk-BMDB2V7J.js";import{Type as c}from"@sinclair/typebox";import{RxGrid as s}from"react-icons/rx";var l=c.Array(c.Object({},{additionalProperties:!0})),M=i({type:"container",kind:"brick",name:"Container",description:"A container that can hold other bricks and align them horizontally or vertically",isContainer:!0,defaultHeight:{desktop:6,mobile:6},defaultWidth:{desktop:12,mobile:12},datasource:l,icon:s,props:t({layout:m(),background:o(e()),border:o(a()),padding:o(n()),effects:o(p()),datasource:r({title:"Data",children:{ds:d()}}),...f()})});export{l as a,M as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{b as f}from"./chunk-S2RQWOG2.js";import{a as b}from"./chunk-WXKRIUTA.js";import{b as c}from"./chunk-H6L4KRCJ.js";import{b as m,d as h}from"./chunk-BH4HTAAC.js";import{b as u}from"./chunk-6LDLGZUM.js";import{b as S}from"./chunk-2ZPY4LCA.js";import{d as s,g as n}from"./chunk-4NCCSLBW.js";import{Type as t}from"@sinclair/typebox";var l=t.Object({id:t.String({title:"Page UUID"}),label:t.String(),path:t.String()}),y=t.Array(t.Composite([l,t.Object({tags:t.Array(t.String(),{default:[],description:"Tags for the page. Use the tag 'main-nav' for pages that should appear in the main navbar"}),status:t.Optional(f(["draft","published"],{title:"Page status",description:"The status of the page. Can be draft or published. [AI instructions: Dont generate this.]"}))})]));function P(a,r="/",o=!1){let e=a.pages.find(p=>p.path===r);return b(e,`createPageConfigFromTemplateConfig: No page config found for path ${r}`),{id:typeof o=="boolean"?crypto.randomUUID():o,label:e.label,tags:e.tags??[],path:r,sections:e.sections,bricks:e.bricks,...e.attributes?{attributes:e.attributes,attr:{...n(e.attributes),...e.attr??{}}}:{}}}var A=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:s,attr:s,datasources:t.Optional(u),datarecords:t.Optional(S),themes:t.Array(c),theme:c,pagesMap:y});function G(a,r,o={label:"New site"},e=!1){let p=e?"50000000-0000-0000-0000-000000000001":crypto.randomUUID(),g=a.pages.map((i,d)=>P(a,i.path,e?`60000000-0000-0000-0000-00000000000${d}`:!1));return{site:{id:p,label:o.label,hostname:r,attributes:a.attributes,attr:{...n(a.attributes),...a.attr??{}},datasources:a.datasources,themes:a.themes,theme:a.themes[0],pagesMap:g.map(i=>({id:i.id,label:i.label,path:i.path,tags:i.tags,status:"draft"}))},pages:g}}var O=t.Object({label:t.String({description:"The label (name) of the page"}),path:t.String({description:"The path of the page in the URL. Should be unique"}),sections:t.Array(h,{description:"The sections of the page. See the Section schema","doc:type":"Array of `Section` objects"}),bricks:t.Array(m,{description:"The bricks of the page. See the various bricks available below","doc:type":"Array of `Brick` objects"}),tags:t.Array(t.String(),{description:"The tags of the page, used for organizating and filtering pages",default:[]}),attributes:t.Optional(s),attr:t.Optional(s)}),w=t.Object({site:t.Omit(A,["attributes"]),pages:t.Array(t.Composite([t.Omit(O,["attributes"]),l]))});export{y as a,P as b,A as c,G as d,O as e};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a as t}from"./chunk-OELIU5BZ.js";import{c as m}from"./chunk-AZ63RF3K.js";import{a}from"./chunk-SQVL4WSX.js";import{a as o}from"./chunk-WPTVLIYS.js";import{a as r,d as i}from"./chunk-BMDB2V7J.js";import{Type as e}from"@sinclair/typebox";import{IoGridOutline as n}from"react-icons/io5";var s=e.Array(e.Object({src:e.String({format:"uri",title:"Image URL"}),alt:e.String({default:"",title:"Alt text"})}),{default:[{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"}]}),u=o({type:"images-gallery",kind:"widget",name:"Gallery",description:"An image collection",defaultInspectorTab:"content",isContainer:!0,minWidth:{mobile:10,desktop:10},minHeight:{mobile:10,desktop:10},icon:n,props:i({content:a(),styles:r({title:"Styles",children:{layout:m()}})}),datasource:s});export{s as a,u as b};
3
+ import{a as t}from"./chunk-OELIU5BZ.js";import{c as m}from"./chunk-AZ63RF3K.js";import{a}from"./chunk-4K5NN4CN.js";import{a as o}from"./chunk-WPTVLIYS.js";import{a as r,d as i}from"./chunk-BMDB2V7J.js";import{Type as e}from"@sinclair/typebox";import{IoGridOutline as n}from"react-icons/io5";var s=e.Array(e.Object({src:e.String({format:"uri",title:"Image URL"}),alt:e.String({default:"",title:"Alt text"})}),{default:[{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"},{src:t,alt:"my image"}]}),u=o({type:"images-gallery",kind:"widget",name:"Gallery",description:"An image collection",defaultInspectorTab:"content",isContainer:!0,minWidth:{mobile:10,desktop:10},minHeight:{mobile:10,desktop:10},icon:n,props:i({content:a(),styles:r({title:"Styles",children:{layout:m()}})}),datasource:s});export{s as a,u as b};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a as i}from"./chunk-TQ23UATQ.js";import{b as r}from"./chunk-GDLXGNMG.js";import{a as p}from"./chunk-DAPQ4JPP.js";import{a as k}from"./chunk-WOEBR25A.js";import{a as l}from"./chunk-BK6LBWDI.js";import{a as s}from"./chunk-6I4PY5WS.js";import{a}from"./chunk-3CY6AZG7.js";import{b as f}from"./chunk-HW5TY2QW.js";import{a as u}from"./chunk-PJ6HA55L.js";import{a as M}from"./chunk-U4R5EGBK.js";import{a as o}from"./chunk-KB4HY432.js";import{a as g}from"./chunk-Q4MXTCE4.js";import{b as y}from"./chunk-QRBMK5UX.js";import{a as e}from"./chunk-XEQ2XZLQ.js";import{a as d}from"./chunk-F2ZVIFHO.js";import{a as c}from"./chunk-NFU5BF6G.js";import{a as m}from"./chunk-EFJQECVB.js";import{a as n}from"./chunk-PD7P5KSV.js";import{b as t}from"./chunk-WPTVLIYS.js";var H={[s.type]:s,[e.type]:e,[i.type]:i,[a.type]:a,[m.type]:m,[p.type]:p,[o.type]:o,[k.type]:k,[r.type]:r,[n.type]:n,[y.type]:y,[M.type]:M,[c.type]:c,[d.type]:d,[l.type]:l,[u.type]:u,[g.type]:g,[f.type]:f},I={[s.type]:t(s),[e.type]:t(e),[i.type]:t(i),[a.type]:t(a),[m.type]:t(m),[k.type]:t(k),[p.type]:t(p),[o.type]:t(o),[r.type]:t(r),[n.type]:t(n),[y.type]:t(y),[M.type]:t(M),[c.type]:t(c),[d.type]:t(d),[l.type]:t(l),[u.type]:t(u),[g.type]:t(g),[f.type]:t(f)};export{H as a,I as b};
3
+ import{a as i}from"./chunk-TQ23UATQ.js";import{b as r}from"./chunk-PSNFBHPU.js";import{a as p}from"./chunk-DAPQ4JPP.js";import{a as k}from"./chunk-WOEBR25A.js";import{a as l}from"./chunk-BK6LBWDI.js";import{a as s}from"./chunk-6I4PY5WS.js";import{a}from"./chunk-3CY6AZG7.js";import{b as f}from"./chunk-ECZ6FGZM.js";import{a as u}from"./chunk-PJ6HA55L.js";import{a as M}from"./chunk-U4R5EGBK.js";import{a as o}from"./chunk-KB4HY432.js";import{a as g}from"./chunk-Q4MXTCE4.js";import{b as y}from"./chunk-THRRILTW.js";import{a as e}from"./chunk-XEQ2XZLQ.js";import{a as d}from"./chunk-F2ZVIFHO.js";import{a as c}from"./chunk-NFU5BF6G.js";import{a as m}from"./chunk-EFJQECVB.js";import{a as n}from"./chunk-PD7P5KSV.js";import{b as t}from"./chunk-WPTVLIYS.js";var H={[s.type]:s,[e.type]:e,[i.type]:i,[a.type]:a,[m.type]:m,[p.type]:p,[o.type]:o,[k.type]:k,[r.type]:r,[n.type]:n,[y.type]:y,[M.type]:M,[c.type]:c,[d.type]:d,[l.type]:l,[u.type]:u,[g.type]:g,[f.type]:f},I={[s.type]:t(s),[e.type]:t(e),[i.type]:t(i),[a.type]:t(a),[m.type]:t(m),[k.type]:t(k),[p.type]:t(p),[o.type]:t(o),[r.type]:t(r),[n.type]:t(n),[y.type]:t(y),[M.type]:t(M),[c.type]:t(c),[d.type]:t(d),[l.type]:t(l),[u.type]:t(u),[g.type]:t(g),[f.type]:t(f)};export{H as a,I as b};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{Type as n}from"@sinclair/typebox";function p(e){return JSON.parse(JSON.stringify(e))}var o=(e,t={})=>n.Unsafe({type:"string",enum:e,...t});export{p as a,o as b};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{b as h}from"./chunk-JVDUEZYO.js";import{a as w}from"./chunk-FGU4BGP4.js";import{a as g}from"./chunk-XGCBIXOO.js";import{a as u}from"./chunk-SQVL4WSX.js";import{c as s}from"./chunk-XBX6II3M.js";import{a as f}from"./chunk-SO5M7CYA.js";import{a as b}from"./chunk-IWSVY2VC.js";import{b as p}from"./chunk-P5FVZ5PL.js";import{b as d,c as m}from"./chunk-LDOM2LJF.js";import{a as c}from"./chunk-WPTVLIYS.js";import{a as i,b as n,d as l,e as t}from"./chunk-BMDB2V7J.js";import{Type as r}from"@sinclair/typebox";import{VscLayoutPanelOff as v}from"react-icons/vsc";var k=r.Array(r.Object({href:s(),label:r.String()}),{default:[{href:"#",label:"Link 1"},{href:"#",label:"Link 2"},{href:"#",label:"Link 3"}]}),y=[1,2,3,4].reduce((o,e)=>{let a=`soft-bordered-${e}`;return o[a]={label:`Soft Bordered ${e}`,previewClasses:`color-auto border-b-4 bg-transparent preset-border-<variant>-${e}`,props:{container:{border:{side:["border-b"],color:`preset-border-<variant>-${e}`,radius:"rounded-none",style:"border-solid",width:"border-4"},backgroundColor:"bg-transparent",shadow:"shadow-none"},brand:{color:"color-auto"}}},o},{}),$=[1,2,3,4].reduce((o,e)=>{let a=`gradient-${e}`;return o[a]={label:`Gradient ${e}`,previewClasses:`preset-bg-gradient-<variant>-${e} color-auto`,props:{container:{backgroundColor:`preset-bg-gradient-<variant>-${e}`,shadow:"shadow-none",border:{width:"border-0"}},brand:{color:"color-auto"}}},o},{}),C=[1,2,3,4].reduce((o,e)=>{let a=`solid-${e}`;return o[a]={label:`Solid ${e}`,previewClasses:`preset-bg-solid-<variant>-${e} color-auto`,props:{container:{backgroundColor:`preset-bg-solid-<variant>-${e}`,shadow:"shadow-none",border:{width:"border-0"}},brand:{color:"color-auto"}}},o},{}),z=c({type:"header",kind:"widget",name:"Header",description:"A header with logo and navigation",datasource:k,duplicatable:!1,defaultHeight:{desktop:3,mobile:3},maxHeight:{desktop:3,mobile:3},minHeight:{desktop:3,mobile:3},icon:v,iconClassName:"rotate-180",presets:{...y,...C,...$},props:l({container:i({title:"Main element",children:{backgroundColor:p(),border:t(b()),shadow:t(f()),fixedPositioned:t(h())},metadata:{"ui:responsive":!0}}),brand:i({title:"Brand",children:{name:t(m("Brand name","Acme Inc.",{disableSizing:!0})),logo:t(g("Logo",{noObjectOptions:!0})),hideText:t(w("Hide text")),color:d()}}),navigation:i({title:"Links",children:{position:n({title:"Position",schema:r.Union([r.Literal("left",{title:"Left"}),r.Literal("center",{title:"Center"}),r.Literal("right",{title:"Right"})],{default:"right"})}),color:d(),items:u(),navItems:n({title:"Nav items",schema:r.Array(r.Object({urlOrPageId:s()}),{title:"Navigation items",default:[]})})}})})});export{k as a,z as b};
3
+ import{b as h}from"./chunk-JVDUEZYO.js";import{a as w}from"./chunk-FGU4BGP4.js";import{a as g}from"./chunk-XGCBIXOO.js";import{a as u}from"./chunk-4K5NN4CN.js";import{c as s}from"./chunk-XBX6II3M.js";import{a as f}from"./chunk-SO5M7CYA.js";import{a as b}from"./chunk-IWSVY2VC.js";import{b as p}from"./chunk-P5FVZ5PL.js";import{b as d,c as m}from"./chunk-LDOM2LJF.js";import{a as c}from"./chunk-WPTVLIYS.js";import{a as i,b as n,d as l,e as t}from"./chunk-BMDB2V7J.js";import{Type as r}from"@sinclair/typebox";import{VscLayoutPanelOff as v}from"react-icons/vsc";var k=r.Array(r.Object({href:s(),label:r.String()}),{default:[{href:"#",label:"Link 1"},{href:"#",label:"Link 2"},{href:"#",label:"Link 3"}]}),y=[1,2,3,4].reduce((o,e)=>{let a=`soft-bordered-${e}`;return o[a]={label:`Soft Bordered ${e}`,previewClasses:`color-auto border-b-4 bg-transparent preset-border-<variant>-${e}`,props:{container:{border:{side:["border-b"],color:`preset-border-<variant>-${e}`,radius:"rounded-none",style:"border-solid",width:"border-4"},backgroundColor:"bg-transparent",shadow:"shadow-none"},brand:{color:"color-auto"}}},o},{}),$=[1,2,3,4].reduce((o,e)=>{let a=`gradient-${e}`;return o[a]={label:`Gradient ${e}`,previewClasses:`preset-bg-gradient-<variant>-${e} color-auto`,props:{container:{backgroundColor:`preset-bg-gradient-<variant>-${e}`,shadow:"shadow-none",border:{width:"border-0"}},brand:{color:"color-auto"}}},o},{}),C=[1,2,3,4].reduce((o,e)=>{let a=`solid-${e}`;return o[a]={label:`Solid ${e}`,previewClasses:`preset-bg-solid-<variant>-${e} color-auto`,props:{container:{backgroundColor:`preset-bg-solid-<variant>-${e}`,shadow:"shadow-none",border:{width:"border-0"}},brand:{color:"color-auto"}}},o},{}),z=c({type:"header",kind:"widget",name:"Header",description:"A header with logo and navigation",datasource:k,duplicatable:!1,defaultHeight:{desktop:3,mobile:3},maxHeight:{desktop:3,mobile:3},minHeight:{desktop:3,mobile:3},icon:v,iconClassName:"rotate-180",presets:{...y,...C,...$},props:l({container:i({title:"Main element",children:{backgroundColor:p(),border:t(b()),shadow:t(f()),fixedPositioned:t(h())},metadata:{"ui:responsive":!0}}),brand:i({title:"Brand",children:{name:t(m("Brand name","Acme Inc.",{disableSizing:!0})),logo:t(g("Logo",{noObjectOptions:!0})),hideText:t(w("Hide text")),color:d()}}),navigation:i({title:"Links",children:{position:n({title:"Position",schema:r.Union([r.Literal("left",{title:"Left"}),r.Literal("center",{title:"Center"}),r.Literal("right",{title:"Right"})],{default:"right"})}),color:d(),items:u(),navItems:n({title:"Nav items",schema:r.Array(r.Object({urlOrPageId:s()}),{title:"Navigation items",default:[]})})}})})});export{k as a,z as b};