@upstart.gg/sdk 0.0.106 → 0.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared/ajv.d.ts.map +1 -1
- package/dist/shared/ajv.js +1 -1
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +1 -1
- package/dist/shared/brick-manifest.js +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +6 -6
- package/dist/shared/bricks/manifests/accordion.manifest.js +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
- package/dist/shared/bricks/manifests/container.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/container.manifest.js +1 -1
- package/dist/shared/bricks/manifests/divider.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/divider.manifest.js +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
- package/dist/shared/bricks/manifests/image.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/image.manifest.js +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +1 -1
- package/dist/shared/bricks/manifests/map.manifest.d.ts +16 -3
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +6 -6
- package/dist/shared/bricks/manifests/navbar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +6 -6
- package/dist/shared/bricks/manifests/sidebar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/testimonials.manifest.js +1 -1
- package/dist/shared/bricks/manifests/text.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/text.manifest.js +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts +6 -6
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +1 -1
- package/dist/shared/bricks/manifests/video.manifest.d.ts +3 -3
- package/dist/shared/bricks/manifests/video.manifest.js +1 -1
- package/dist/shared/bricks/props/align.js +1 -1
- package/dist/shared/bricks/props/background.js +1 -1
- package/dist/shared/bricks/props/boolean.js +1 -1
- package/dist/shared/bricks/props/border.d.ts +6 -6
- package/dist/shared/bricks/props/border.js +1 -1
- package/dist/shared/bricks/props/color.js +1 -1
- package/dist/shared/bricks/props/container.js +1 -1
- package/dist/shared/bricks/props/css-length.js +1 -1
- package/dist/shared/bricks/props/datasource.js +1 -1
- package/dist/shared/bricks/props/date.js +1 -1
- package/dist/shared/bricks/props/effects.js +1 -1
- package/dist/shared/bricks/props/enum.js +1 -1
- package/dist/shared/bricks/props/file.js +1 -1
- package/dist/shared/bricks/props/geolocation.d.ts +7 -11
- package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
- package/dist/shared/bricks/props/geolocation.js +1 -1
- package/dist/shared/bricks/props/helpers.d.ts +3 -1
- package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
- package/dist/shared/bricks/props/helpers.js +1 -1
- package/dist/shared/bricks/props/image.js +1 -1
- package/dist/shared/bricks/props/number.d.ts +1 -1
- package/dist/shared/bricks/props/number.d.ts.map +1 -1
- package/dist/shared/bricks/props/number.js +1 -1
- package/dist/shared/bricks/props/padding.js +1 -1
- package/dist/shared/bricks/props/position.js +1 -1
- package/dist/shared/bricks/props/string.d.ts +1 -1
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +1 -1
- package/dist/shared/bricks/props/text.js +1 -1
- package/dist/shared/bricks.d.ts +33 -33
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/chunk-3G4PLX4N.js +4 -0
- package/dist/shared/{chunk-LOFXGDAK.js → chunk-4RMUHWWU.js} +1 -1
- package/dist/shared/{chunk-I3HSLGFA.js → chunk-5NDKGZ7L.js} +1 -1
- package/dist/shared/chunk-62VKGHN6.js +3 -0
- package/dist/shared/{chunk-ATDJCXC2.js → chunk-64RLYCR2.js} +1 -1
- package/dist/shared/{chunk-HIBTEX2T.js → chunk-6IOXG7MM.js} +1 -1
- package/dist/shared/{chunk-VTFWVTPI.js → chunk-6P7HLUMQ.js} +1 -1
- package/dist/shared/{chunk-CTRS76PX.js → chunk-6PWZKDRF.js} +1 -1
- package/dist/shared/chunk-6WZXFY7L.js +3 -0
- package/dist/shared/chunk-7LKXIVLH.js +3 -0
- package/dist/shared/chunk-7QJQRAH7.js +3 -0
- package/dist/shared/{chunk-BJSO43AS.js → chunk-DHF2VJH7.js} +1 -1
- package/dist/shared/{chunk-ZWYLKIBI.js → chunk-E3EPUQU4.js} +1 -1
- package/dist/shared/chunk-E3NQZZ2P.js +3 -0
- package/dist/shared/chunk-ENWFMNZY.js +3 -0
- package/dist/shared/{chunk-7E67XSKP.js → chunk-FDS5YHGZ.js} +1 -1
- package/dist/shared/{chunk-YZ5Y4WE6.js → chunk-FGRCD7GG.js} +1 -1
- package/dist/shared/chunk-GN5DXY6H.js +3 -0
- package/dist/shared/chunk-GYNIOIBM.js +3 -0
- package/dist/shared/{chunk-IXJX7EQ3.js → chunk-HAI73HEN.js} +1 -1
- package/dist/shared/chunk-IEXUC6I2.js +7 -0
- package/dist/shared/{chunk-L3TKLJKK.js → chunk-JOMVOZI5.js} +1 -1
- package/dist/shared/chunk-K5ORABHX.js +3 -0
- package/dist/shared/{chunk-XDCGA4WT.js → chunk-M7SU4L3J.js} +1 -1
- package/dist/shared/{chunk-33FU4KGU.js → chunk-MELCM74Q.js} +1 -1
- package/dist/shared/{chunk-6OKXZL6R.js → chunk-MRBC7NBM.js} +1 -1
- package/dist/shared/{chunk-U5XOIYSS.js → chunk-NL2OJKXK.js} +1 -1
- package/dist/shared/{chunk-H7OYUKBW.js → chunk-OGNNI674.js} +1 -1
- package/dist/shared/{chunk-2DI5SIVV.js → chunk-PNNMX7Z7.js} +1 -1
- package/dist/shared/chunk-PZOGR3ER.js +3 -0
- package/dist/shared/{chunk-PX7QSNLO.js → chunk-QQZ5HDFA.js} +1 -1
- package/dist/shared/chunk-QUFRMM2S.js +3 -0
- package/dist/shared/{chunk-OUI2VDNM.js → chunk-RAS2UZS6.js} +1 -1
- package/dist/shared/chunk-RKGXHPJX.js +3 -0
- package/dist/shared/{chunk-O3FJP65T.js → chunk-RRCFAX4L.js} +1 -1
- package/dist/shared/chunk-SONDO36R.js +3 -0
- package/dist/shared/{chunk-HYVQXAK5.js → chunk-TWSHGLIC.js} +1 -1
- package/dist/shared/{chunk-UYZP24VV.js → chunk-UA72HEYF.js} +1 -1
- package/dist/shared/{chunk-VBWC36L2.js → chunk-VM34BXEG.js} +1 -1
- package/dist/shared/{chunk-E4UAVLKC.js → chunk-WSJYO3DM.js} +1 -1
- package/dist/shared/{chunk-CAVNF3BU.js → chunk-WUYA4JIP.js} +1 -1
- package/dist/shared/{chunk-HBM4DPIW.js → chunk-WWYFOOW3.js} +1 -1
- package/dist/shared/chunk-XBRRT4ZE.js +3 -0
- package/dist/shared/{chunk-P5DZK4TS.js → chunk-XNAM26NU.js} +1 -1
- package/dist/shared/{chunk-JH3NRO6M.js → chunk-YR6RZXVH.js} +1 -1
- package/dist/shared/{chunk-G7LX3UKQ.js → chunk-YRO666MC.js} +1 -1
- package/dist/shared/{chunk-ALFOZHAH.js → chunk-ZW2ZLFRI.js} +1 -1
- package/dist/shared/datasources/external/http-json/options.d.ts +1 -1
- package/dist/shared/datasources/types.d.ts +3 -3
- package/dist/shared/images.js +1 -1
- package/dist/shared/page.d.ts +6 -6
- package/dist/shared/page.js +1 -1
- package/dist/shared/responsive.d.ts +1 -1
- package/dist/shared/responsive.js +1 -1
- package/dist/shared/site.d.ts +38 -38
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +1 -1
- package/dist/shared/sitemap.d.ts +4 -4
- package/dist/shared/sitemap.js +1 -1
- package/dist/shared/theme.js +1 -1
- package/dist/shared/utils/schema.d.ts +4 -1
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +1 -1
- package/package.json +2 -2
- package/dist/node/cli/api.d.ts +0 -34
- package/dist/node/cli/api.d.ts.map +0 -1
- package/dist/node/cli/api.js +0 -5
- package/dist/node/cli/api.js.map +0 -1
- package/dist/node/cli/commands/cmd-build.d.ts +0 -3
- package/dist/node/cli/commands/cmd-build.d.ts.map +0 -1
- package/dist/node/cli/commands/cmd-build.js +0 -7
- package/dist/node/cli/commands/cmd-build.js.map +0 -1
- package/dist/node/cli/commands/login/cmd-login.d.ts +0 -14
- package/dist/node/cli/commands/login/cmd-login.d.ts.map +0 -1
- package/dist/node/cli/commands/login/cmd-login.js +0 -12
- package/dist/node/cli/commands/login/cmd-login.js.map +0 -1
- package/dist/node/cli/commands/logout/cmd-logout.d.ts +0 -3
- package/dist/node/cli/commands/logout/cmd-logout.d.ts.map +0 -1
- package/dist/node/cli/commands/logout/cmd-logout.js +0 -5
- package/dist/node/cli/commands/logout/cmd-logout.js.map +0 -1
- package/dist/node/cli/commands/publish/cmd-publish.d.ts +0 -3
- package/dist/node/cli/commands/publish/cmd-publish.d.ts.map +0 -1
- package/dist/node/cli/commands/publish/cmd-publish.js +0 -35
- package/dist/node/cli/commands/publish/cmd-publish.js.map +0 -1
- package/dist/node/cli/commands/publish/parse-gitignore.d.ts +0 -56
- package/dist/node/cli/commands/publish/parse-gitignore.d.ts.map +0 -1
- package/dist/node/cli/commands/publish/parse-gitignore.js +0 -16
- package/dist/node/cli/commands/publish/parse-gitignore.js.map +0 -1
- package/dist/node/cli/commands/publish/uploader.d.ts +0 -20
- package/dist/node/cli/commands/publish/uploader.d.ts.map +0 -1
- package/dist/node/cli/commands/publish/uploader.js +0 -19
- package/dist/node/cli/commands/publish/uploader.js.map +0 -1
- package/dist/node/cli/constants.d.ts +0 -11
- package/dist/node/cli/constants.d.ts.map +0 -1
- package/dist/node/cli/constants.js +0 -4
- package/dist/node/cli/constants.js.map +0 -1
- package/dist/node/cli/is-logged-in.d.ts +0 -2
- package/dist/node/cli/is-logged-in.d.ts.map +0 -1
- package/dist/node/cli/is-logged-in.js +0 -5
- package/dist/node/cli/is-logged-in.js.map +0 -1
- package/dist/node/cli/program.d.ts +0 -3
- package/dist/node/cli/program.d.ts.map +0 -1
- package/dist/node/cli/program.js +0 -49
- package/dist/node/cli/program.js.map +0 -1
- package/dist/node/cli/store.d.ts +0 -9
- package/dist/node/cli/store.d.ts.map +0 -1
- package/dist/node/cli/store.js +0 -4
- package/dist/node/cli/store.js.map +0 -1
- package/dist/node/cli/tests/api.test.d.ts +0 -2
- package/dist/node/cli/tests/api.test.d.ts.map +0 -1
- package/dist/node/cli/types.d.ts +0 -30
- package/dist/node/cli/types.d.ts.map +0 -1
- package/dist/node/cli/types.js +0 -3
- package/dist/node/cli/types.js.map +0 -1
- package/dist/node/cli/utils.d.ts +0 -6
- package/dist/node/cli/utils.d.ts.map +0 -1
- package/dist/node/cli/utils.js +0 -4
- package/dist/node/cli/utils.js.map +0 -1
- package/dist/node/shared/config.d.ts +0 -6
- package/dist/node/shared/config.d.ts.map +0 -1
- package/dist/node/shared/config.js +0 -11
- package/dist/node/shared/config.js.map +0 -1
- package/dist/node/shared/logger.d.ts +0 -30
- package/dist/node/shared/logger.d.ts.map +0 -1
- package/dist/node/shared/logger.js +0 -5
- package/dist/node/shared/logger.js.map +0 -1
- package/dist/shared/chunk-3ZGRY444.js +0 -3
- package/dist/shared/chunk-AMGHA7QH.js +0 -3
- package/dist/shared/chunk-DC5DWF7B.js +0 -3
- package/dist/shared/chunk-DY2YCYZ6.js +0 -3
- package/dist/shared/chunk-EHH677K5.js +0 -4
- package/dist/shared/chunk-FD3KX2U7.js +0 -3
- package/dist/shared/chunk-G3JO5DM5.js +0 -3
- package/dist/shared/chunk-JAAPJQNK.js +0 -3
- package/dist/shared/chunk-JDBVMPSI.js +0 -3
- package/dist/shared/chunk-U76JDFWJ.js +0 -7
- package/dist/shared/chunk-UL7L3HYV.js +0 -3
- package/dist/shared/chunk-X42WBJTN.js +0 -3
- package/dist/shared/chunk-XB3X4P3I.js +0 -3
- package/dist/shared/chunk-YGHBFXR6.js +0 -3
- package/dist/shared/chunk-YJTGZQEV.js +0 -3
package/dist/node/cli/store.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CredentialsStore } from "./types";
|
|
2
|
-
import Conf from "conf";
|
|
3
|
-
declare const accessStore: Conf<CredentialsStore>;
|
|
4
|
-
/**
|
|
5
|
-
* Get access token or throw error if not found
|
|
6
|
-
*/
|
|
7
|
-
export declare function getTokenOrThrow(): string;
|
|
8
|
-
export { accessStore };
|
|
9
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/node/cli/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,IAAI,MAAM,MAAM,CAAC;AAUxB,QAAA,MAAM,WAAW,wBAIf,CAAC;AAEH;;GAEG;AACH,wBAAgB,eAAe,WAS9B;AAiCD,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/node/cli/store.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
var c="upstart-cli";var I=process.env.PUBLIC_UPSTART_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",T=process.env.PUBLIC_UPSTART_API_BASE_URL??"https://api.upstart.gg",P=process.env.PUBLIC_UPSTART_EDITOR_BASE_URL??"https://upstart.gg";import p from"conf";import r from"node:path";import a from"node:crypto";import o from"node:fs";import{fileURLToPath as _}from"node:url";function i(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}import u from"chalk";var m=_(new URL(".",import.meta.url)),d=E(),f=new p({projectName:c,encryptionKey:d,clearInvalidConfig:!0});function h(){let e=f.get("access_token");if(!e){let t=i();throw new Error(`Access token not found. Please run ${u.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function g(){let e=m;for(;e!==r.parse(e).root;){let t=r.join(e,"node_modules");if(o.existsSync(t))return t;e=r.dirname(e)}return null}function E(){let e=g();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=r.join(e,".enpage-tmp");o.existsSync(t)||o.mkdirSync(t,{recursive:!0,mode:448});let n=r.join(t,".enpage-key");if(!o.existsSync(n)){let s=a.randomBytes(32).toString("hex");return o.writeFileSync(n,s,{mode:384}),s}return o.readFileSync(n,"utf8")}export{f as accessStore,h as getTokenOrThrow};
|
|
4
|
-
//# sourceMappingURL=store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node/cli/constants.ts","../../../src/node/cli/store.ts","../../../src/node/cli/utils.ts"],"sourcesContent":["export const CLI_PROJECT_NAME = \"upstart-cli\";\nexport const CLI_LOGIN_POLL_INTERVAL = 5000; // seconds\nexport const CLI_LOGIN_CLIENT_ID =\n process.env.PUBLIC_UPSTART_OAUTH_CLIENT_ID ?? \"50000000-0000-0000-0000-000000000001\";\n\nexport const API_BASE_URL = process.env.PUBLIC_UPSTART_API_BASE_URL ?? \"https://api.upstart.gg\";\nexport const EDITOR_BASE_URL = process.env.PUBLIC_UPSTART_EDITOR_BASE_URL ?? \"https://upstart.gg\";\nexport const DEFAULT_UPLOAD_MAX_CONCURRENCY = 10;\n\nexport const OAUTH_ENDPOINT_DEVICE_CODE = \"oauth/devicecode\";\nexport const OAUTH_ENDPOINT_TOKEN = \"oauth/token\";\nexport const OAUTH_ENDPOINT_USER_INFO = \"oauth/userinfo\";\n\nexport const API_ENDPOINT_REGISTER_TEMPLATE = \"v1/templates\";\n","import type { CredentialsStore } from \"./types\";\nimport { CLI_PROJECT_NAME, OAUTH_ENDPOINT_USER_INFO } from \"./constants\";\nimport Conf from \"conf\";\nimport path from \"node:path\";\nimport crypto from \"node:crypto\";\nimport fs from \"node:fs\";\nimport { fileURLToPath } from \"node:url\";\nimport { getPackageManager } from \"./utils\";\nimport chalk from \"chalk\";\n\nconst __dirname = fileURLToPath(new URL(\".\", import.meta.url));\nconst key = getKey();\nconst accessStore = new Conf<CredentialsStore>({\n projectName: CLI_PROJECT_NAME,\n encryptionKey: key,\n clearInvalidConfig: true,\n});\n\n/**\n * Get access token or throw error if not found\n */\nexport function getTokenOrThrow() {\n const token = accessStore.get(\"access_token\");\n if (!token) {\n const pkgCmd = getPackageManager();\n throw new Error(\n `Access token not found. Please run ${chalk.cyan(`${pkgCmd} run enpage:login`)} to authenticate.`,\n );\n }\n return token;\n}\n\nfunction findNearestNodeModules(): string | null {\n let currentDir = __dirname;\n while (currentDir !== path.parse(currentDir).root) {\n const nodeModulesPath = path.join(currentDir, \"node_modules\");\n if (fs.existsSync(nodeModulesPath)) {\n return nodeModulesPath;\n }\n currentDir = path.dirname(currentDir);\n }\n return null;\n}\n\nfunction getKey() {\n const nodeModulesPath = findNearestNodeModules();\n if (!nodeModulesPath) {\n throw new Error(\"Could not find nearest node_modules directory.\");\n }\n const tmpSecureStoreDir = path.join(nodeModulesPath, \".enpage-tmp\");\n if (!fs.existsSync(tmpSecureStoreDir)) {\n fs.mkdirSync(tmpSecureStoreDir, { recursive: true, mode: 0o700 });\n }\n const keyPath = path.join(tmpSecureStoreDir, \".enpage-key\");\n if (!fs.existsSync(keyPath)) {\n const key = crypto.randomBytes(32).toString(\"hex\");\n fs.writeFileSync(keyPath, key, { mode: 0o600 });\n return key;\n }\n const key = fs.readFileSync(keyPath, \"utf8\");\n return key;\n}\n\nexport { accessStore };\n","export function getPackageManager() {\n // Detect package manager\n let packageManager: string | undefined;\n if (process.env.npm_config_user_agent) {\n const pmPart = process.env.npm_config_user_agent.split(\" \")[0];\n packageManager = pmPart.slice(0, pmPart.lastIndexOf(\"/\"));\n }\n\n // Display message\n if (!packageManager) {\n console.log(\"Warning: could not detect package manager\");\n packageManager = \"npm\";\n }\n\n return packageManager;\n}\n\nexport function formatAPIError(error: { error: string; error_description?: string }) {\n return `[${error.error}]${error.error_description ? `: ${error.error_description}` : \"\"}`;\n}\n"],"mappings":";;AAAO,IAAMA,EAAmB,cAEzB,IAAMC,EACX,QAAQ,IAAI,gCAAkC,uCAEnCC,EAAe,QAAQ,IAAI,6BAA+B,yBAC1DC,EAAkB,QAAQ,IAAI,gCAAkC,qBCJ7E,OAAOC,MAAU,OACjB,OAAOC,MAAU,YACjB,OAAOC,MAAY,cACnB,OAAOC,MAAQ,UACf,OAAS,iBAAAC,MAAqB,WCNvB,SAASC,GAAoB,CAElC,IAAIC,EACJ,GAAI,QAAQ,IAAI,sBAAuB,CACrC,IAAMC,EAAS,QAAQ,IAAI,sBAAsB,MAAM,GAAG,EAAE,CAAC,EAC7DD,EAAiBC,EAAO,MAAM,EAAGA,EAAO,YAAY,GAAG,CAAC,CAC1D,CAGA,OAAKD,IACH,QAAQ,IAAI,2CAA2C,EACvDA,EAAiB,OAGZA,CACT,CDPA,OAAOE,MAAW,QAElB,IAAMC,EAAYC,EAAc,IAAI,IAAI,IAAK,YAAY,GAAG,CAAC,EACvDC,EAAMC,EAAO,EACbC,EAAc,IAAIC,EAAuB,CAC7C,YAAaC,EACb,cAAeJ,EACf,mBAAoB,EACtB,CAAC,EAKM,SAASK,GAAkB,CAChC,IAAMC,EAAQJ,EAAY,IAAI,cAAc,EAC5C,GAAI,CAACI,EAAO,CACV,IAAMC,EAASC,EAAkB,EACjC,MAAM,IAAI,MACR,sCAAsCX,EAAM,KAAK,GAAGU,CAAM,mBAAmB,CAAC,mBAChF,CACF,CACA,OAAOD,CACT,CAEA,SAASG,GAAwC,CAC/C,IAAIC,EAAaZ,EACjB,KAAOY,IAAeC,EAAK,MAAMD,CAAU,EAAE,MAAM,CACjD,IAAME,EAAkBD,EAAK,KAAKD,EAAY,cAAc,EAC5D,GAAIG,EAAG,WAAWD,CAAe,EAC/B,OAAOA,EAETF,EAAaC,EAAK,QAAQD,CAAU,CACtC,CACA,OAAO,IACT,CAEA,SAAST,GAAS,CAChB,IAAMW,EAAkBH,EAAuB,EAC/C,GAAI,CAACG,EACH,MAAM,IAAI,MAAM,gDAAgD,EAElE,IAAME,EAAoBH,EAAK,KAAKC,EAAiB,aAAa,EAC7DC,EAAG,WAAWC,CAAiB,GAClCD,EAAG,UAAUC,EAAmB,CAAE,UAAW,GAAM,KAAM,GAAM,CAAC,EAElE,IAAMC,EAAUJ,EAAK,KAAKG,EAAmB,aAAa,EAC1D,GAAI,CAACD,EAAG,WAAWE,CAAO,EAAG,CAC3B,IAAMf,EAAMgB,EAAO,YAAY,EAAE,EAAE,SAAS,KAAK,EACjD,OAAAH,EAAG,cAAcE,EAASf,EAAK,CAAE,KAAM,GAAM,CAAC,EACvCA,CACT,CAEA,OADYa,EAAG,aAAaE,EAAS,MAAM,CAE7C","names":["CLI_PROJECT_NAME","CLI_LOGIN_CLIENT_ID","API_BASE_URL","EDITOR_BASE_URL","Conf","path","crypto","fs","fileURLToPath","getPackageManager","packageManager","pmPart","chalk","__dirname","fileURLToPath","key","getKey","accessStore","Conf","CLI_PROJECT_NAME","getTokenOrThrow","token","pkgCmd","getPackageManager","findNearestNodeModules","currentDir","path","nodeModulesPath","fs","tmpSecureStoreDir","keyPath","crypto"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../../../../src/node/cli/tests/api.test.ts"],"names":[],"mappings":""}
|
package/dist/node/cli/types.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { OptionValues } from "commander";
|
|
2
|
-
import type { Logger } from "../shared/logger";
|
|
3
|
-
export type CredentialsStore = {
|
|
4
|
-
access_token: string;
|
|
5
|
-
token_type: string;
|
|
6
|
-
expires_in?: number;
|
|
7
|
-
refresh_token?: string;
|
|
8
|
-
refresh_token_expires_in?: number;
|
|
9
|
-
scope?: string;
|
|
10
|
-
expires_at: number;
|
|
11
|
-
};
|
|
12
|
-
export type CommandArgOpts<Opts extends OptionValues = OptionValues> = {
|
|
13
|
-
args: string[];
|
|
14
|
-
options: CommonOptions & Opts;
|
|
15
|
-
logger: Logger;
|
|
16
|
-
};
|
|
17
|
-
export type CommonOptions = {
|
|
18
|
-
logLevel?: "info" | "warn" | "error" | "silent";
|
|
19
|
-
clearScreen?: boolean;
|
|
20
|
-
dryRun?: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type BuildOptions = {
|
|
23
|
-
ssr: boolean | "local";
|
|
24
|
-
clean?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export type GenericApiError = {
|
|
27
|
-
error: string;
|
|
28
|
-
error_description: string;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/node/cli/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,IAAI,SAAS,YAAY,GAAG,YAAY,IAAI;IACrE,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC"}
|
package/dist/node/cli/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/node/cli/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/node/cli/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,WAehC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,UAElF"}
|
package/dist/node/cli/utils.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
function n(){let r;if(process.env.npm_config_user_agent){let e=process.env.npm_config_user_agent.split(" ")[0];r=e.slice(0,e.lastIndexOf("/"))}return r||(console.log("Warning: could not detect package manager"),r="npm"),r}function t(r){return`[${r.error}]${r.error_description?`: ${r.error_description}`:""}`}export{t as formatAPIError,n as getPackageManager};
|
|
4
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node/cli/utils.ts"],"sourcesContent":["export function getPackageManager() {\n // Detect package manager\n let packageManager: string | undefined;\n if (process.env.npm_config_user_agent) {\n const pmPart = process.env.npm_config_user_agent.split(\" \")[0];\n packageManager = pmPart.slice(0, pmPart.lastIndexOf(\"/\"));\n }\n\n // Display message\n if (!packageManager) {\n console.log(\"Warning: could not detect package manager\");\n packageManager = \"npm\";\n }\n\n return packageManager;\n}\n\nexport function formatAPIError(error: { error: string; error_description?: string }) {\n return `[${error.error}]${error.error_description ? `: ${error.error_description}` : \"\"}`;\n}\n"],"mappings":";;AAAO,SAASA,GAAoB,CAElC,IAAIC,EACJ,GAAI,QAAQ,IAAI,sBAAuB,CACrC,IAAMC,EAAS,QAAQ,IAAI,sBAAsB,MAAM,GAAG,EAAE,CAAC,EAC7DD,EAAiBC,EAAO,MAAM,EAAGA,EAAO,YAAY,GAAG,CAAC,CAC1D,CAGA,OAAKD,IACH,QAAQ,IAAI,2CAA2C,EACvDA,EAAiB,OAGZA,CACT,CAEO,SAASE,EAAeC,EAAsD,CACnF,MAAO,IAAIA,EAAM,KAAK,IAAIA,EAAM,kBAAoB,KAAKA,EAAM,iBAAiB,GAAK,EAAE,EACzF","names":["getPackageManager","packageManager","pmPart","formatAPIError","error"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type Logger } from "./logger";
|
|
2
|
-
import type { SiteAndPagesConfig } from "~/shared/site";
|
|
3
|
-
export declare function loadConfigFromJsFile(configPath: string, logger?: Logger): Promise<SiteAndPagesConfig>;
|
|
4
|
-
export declare function loadConfigFromManifestFile(manifestPath: string, logger: Logger): SiteAndPagesConfig;
|
|
5
|
-
export declare function validateTemplateConfig(config: SiteAndPagesConfig, logger: Logger): SiteAndPagesConfig;
|
|
6
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/node/shared/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAA2B,MAAM,UAAU,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,MAAM,GAAoB,MAAM,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CA4B7B;AAED,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAMnG;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,sBAoBhF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import g from"node:fs";import{readFile as y}from"node:fs/promises";import w from"fast-glob";import{createLogger as u}from"vite";import a from"chalk";var l=.1;function L(e,n,t=!1){let s=u(e==="debug"?"info":e,{prefix:"[upstart]",allowClearScreen:n});return t&&s.info(a.hex("#7270c6").bold(`\u{1F680} Upstart v${l}
|
|
4
|
-
`)),{...s,success:(o,r)=>s.info(a.green(o),r),error:(o,r)=>s.error(a.red(o),r),warn:(o,r)=>s.warn(a.yellow(o),r),warnOnce:(o,r)=>s.warnOnce(a.yellow(o),r),debug:(o,r)=>{e==="debug"&&s.info(a.gray(o),r)}}}var f=L();import{basename as c,dirname as b,extname as x}from"node:path";async function j(e,n=f){g.existsSync(e)||(n.error(`\u{1F534} No enpage.config.js found!
|
|
5
|
-
Your project must have an enpage.config.js file in the root directory.
|
|
6
|
-
|
|
7
|
-
`),process.exit(1));let t=await import(e),s=b(e),o={},r=await w(["README.enpage.md","README.enpage.*.md"],{cwd:s,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let i of r){let m=c(i,".md"),p=x(m),d=(p===".enpage"?"en":p.substring(1)).toLowerCase();n.debug(`Found template readme file (${d}): ${c(i)}`),o[d]=await y(i,"utf-8")}return t}function $(e,n){return g.existsSync(e)||(n.error(`\u{1F534} No enpage.manifest.json found!
|
|
8
|
-
You may want to 'build' your template.
|
|
9
|
-
|
|
10
|
-
`),process.exit(1)),JSON.parse(g.readFileSync(e,"utf-8"))}function D(e,n){for(let t in e.site.datasources)if(e.site.datasources[t].provider==="http-json"&&!e.site.datasources[t].sampleData)throw n.error(`\u{1F534} Error: Datasource "${t}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${t} datasource.`),new Error(`Missing sample data for datasource "${t}"`);return e}export{j as loadConfigFromJsFile,$ as loadConfigFromManifestFile,D as validateTemplateConfig};
|
|
11
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node/shared/config.ts","../../../src/node/shared/logger.ts"],"sourcesContent":["import 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 { SiteAndPagesConfig } from \"~/shared/site\";\n\nexport async function loadConfigFromJsFile(\n configPath: string,\n logger = defaultLogger as Logger,\n): Promise<SiteAndPagesConfig> {\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 SiteAndPagesConfig;\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 return config;\n}\n\nexport function loadConfigFromManifestFile(manifestPath: string, logger: Logger): SiteAndPagesConfig {\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: SiteAndPagesConfig, logger: Logger) {\n for (const key in config.site.datasources) {\n if (config.site.datasources[key].provider === \"http-json\" && !config.site.datasources[key].sampleData) {\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\";\n// import { version } from \"../../../package.json\";\nimport chalk from \"chalk\";\n\nconst VERSION = 0.1;\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"],"mappings":";;AAAA,OAAOA,MAAQ,UACf,OAAS,YAAAC,MAAgB,mBACzB,OAAOC,MAAQ,YCFf,OACE,gBAAgBC,MAIX,OAEP,OAAOC,MAAW,QAElB,IAAMC,EAAU,GAIT,SAASC,EAAaC,EAA4BC,EAA4BC,EAAc,GAAO,CAExG,IAAMC,EAASP,EAAiBI,IAAU,QAAU,OAASA,EAAO,CAClE,OAAQ,YACR,iBAAAC,CACF,CAAC,EAED,OAAIC,GACFC,EAAO,KAAKN,EAAM,IAAI,SAAS,EAAE,KAAK,sBAAeC,CAAO;AAAA,CAAI,CAAC,EAG5D,CACL,GAAGK,EACH,QAAS,CAACC,EAAiBC,IAAyBF,EAAO,KAAKN,EAAM,MAAMO,CAAO,EAAGC,CAAO,EAC7F,MAAO,CAACD,EAAiBC,IAAyBF,EAAO,MAAMN,EAAM,IAAIO,CAAO,EAAGC,CAAO,EAC1F,KAAM,CAACD,EAAiBC,IAAyBF,EAAO,KAAKN,EAAM,OAAOO,CAAO,EAAGC,CAAO,EAC3F,SAAU,CAACD,EAAiBC,IAAyBF,EAAO,SAASN,EAAM,OAAOO,CAAO,EAAGC,CAAO,EACnG,MAAO,CAACD,EAAiBC,IAAyB,CAC5CL,IAAU,SACZG,EAAO,KAAKN,EAAM,KAAKO,CAAO,EAAGC,CAAO,CAE5C,CACF,CACF,CAEO,IAAMF,EAASJ,EAAa,EDlCnC,OAAS,YAAAO,EAAU,WAAAC,EAAS,WAAAC,MAAe,YAG3C,eAAsBC,EACpBC,EACAC,EAASA,EACoB,CACxBC,EAAG,WAAWF,CAAU,IAC3BC,EAAO,MACL;AAAA;AAAA;AAAA,CACF,EACA,QAAQ,KAAK,CAAC,GAEhB,IAAME,EAAU,MAAM,OAAOH,GAGvBI,EAAaP,EAAQG,CAAU,EAC/BK,EAAiC,CAAC,EAClCC,EAAc,MAAMC,EAAG,CAAC,mBAAoB,oBAAoB,EAAG,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,OAAOL,CACT,CAEO,SAASU,EAA2BC,EAAsBb,EAAoC,CACnG,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,EAA4BF,EAAgB,CACjF,QAAWe,KAAOb,EAAO,KAAK,YAC5B,GAAIA,EAAO,KAAK,YAAYa,CAAG,EAAE,WAAa,aAAe,CAACb,EAAO,KAAK,YAAYa,CAAG,EAAE,WACzF,MAAAf,EAAO,MACL,gCAAyBe,CAAG,sJAAsJA,CAAG,cACvL,EACM,IAAI,MAAM,uCAAuCA,CAAG,GAAG,EAajE,OAAOb,CACT","names":["fs","readFile","fg","createLoggerBase","chalk","VERSION","createLogger","level","allowClearScreen","showVersion","logger","message","options","basename","dirname","extname","loadConfigFromJsFile","configPath","logger","fs","config","readmePath","readme","readmeFiles","fg","file","base","ext","language","readFile","loadConfigFromManifestFile","manifestPath","validateTemplateConfig","key"]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type LogLevel, type LogOptions, type Logger as BaseLogger } from "vite";
|
|
2
|
-
type UpstartLoggerLevel = LogLevel | "debug";
|
|
3
|
-
export declare function createLogger(level?: UpstartLoggerLevel, allowClearScreen?: boolean, showVersion?: boolean): {
|
|
4
|
-
success: (message: string, options?: LogOptions) => void;
|
|
5
|
-
error: (message: string, options?: LogOptions) => void;
|
|
6
|
-
warn: (message: string, options?: LogOptions) => void;
|
|
7
|
-
warnOnce: (message: string, options?: LogOptions) => void;
|
|
8
|
-
debug: (message: string, options?: LogOptions) => void;
|
|
9
|
-
info(msg: string, options?: LogOptions): void;
|
|
10
|
-
clearScreen(type: import("vite").LogType): void;
|
|
11
|
-
hasErrorLogged(error: Error | import("rollup").RollupError): boolean;
|
|
12
|
-
hasWarned: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const logger: {
|
|
15
|
-
success: (message: string, options?: LogOptions) => void;
|
|
16
|
-
error: (message: string, options?: LogOptions) => void;
|
|
17
|
-
warn: (message: string, options?: LogOptions) => void;
|
|
18
|
-
warnOnce: (message: string, options?: LogOptions) => void;
|
|
19
|
-
debug: (message: string, options?: LogOptions) => void;
|
|
20
|
-
info(msg: string, options?: LogOptions): void;
|
|
21
|
-
clearScreen(type: import("vite").LogType): void;
|
|
22
|
-
hasErrorLogged(error: Error | import("rollup").RollupError): boolean;
|
|
23
|
-
hasWarned: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type Logger = BaseLogger & {
|
|
26
|
-
success: (message: string, options?: LogOptions) => void;
|
|
27
|
-
debug: (message: string, options?: LogOptions) => void;
|
|
28
|
-
};
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/node/shared/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,MAAM,IAAI,UAAU,EAC1B,MAAM,MAAM,CAAC;AAMd,KAAK,kBAAkB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,EAAE,OAAO,EAAE,WAAW,UAAQ;uBAajF,MAAM,YAAY,UAAU;qBAC9B,MAAM,YAAY,UAAU;oBAC7B,MAAM,YAAY,UAAU;wBACxB,MAAM,YAAY,UAAU;qBAC/B,MAAM,YAAY,UAAU;;;;;EAMhD;AAED,eAAO,MAAM,MAAM;uBAZI,MAAM,YAAY,UAAU;qBAC9B,MAAM,YAAY,UAAU;oBAC7B,MAAM,YAAY,UAAU;wBACxB,MAAM,YAAY,UAAU;qBAC/B,MAAM,YAAY,UAAU;;;;;CAQb,CAAC;AAErC,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG;IAChC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACzD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACxD,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{createLogger as i}from"vite";import r from"chalk";var p=.1;function L(t,s,n=!1){let g=i(t==="debug"?"info":t,{prefix:"[upstart]",allowClearScreen:s});return n&&g.info(r.hex("#7270c6").bold(`\u{1F680} Upstart v${p}
|
|
4
|
-
`)),{...g,success:(e,o)=>g.info(r.green(e),o),error:(e,o)=>g.error(r.red(e),o),warn:(e,o)=>g.warn(r.yellow(e),o),warnOnce:(e,o)=>g.warnOnce(r.yellow(e),o),debug:(e,o)=>{t==="debug"&&g.info(r.gray(e),o)}}}var f=L();export{L as createLogger,f as logger};
|
|
5
|
-
//# sourceMappingURL=logger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node/shared/logger.ts"],"sourcesContent":["import {\n createLogger as createLoggerBase,\n type LogLevel,\n type LogOptions,\n type Logger as BaseLogger,\n} from \"vite\";\n// import { version } from \"../../../package.json\";\nimport chalk from \"chalk\";\n\nconst VERSION = 0.1;\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"],"mappings":";;AAAA,OACE,gBAAgBA,MAIX,OAEP,OAAOC,MAAW,QAElB,IAAMC,EAAU,GAIT,SAASC,EAAaC,EAA4BC,EAA4BC,EAAc,GAAO,CAExG,IAAMC,EAASP,EAAiBI,IAAU,QAAU,OAASA,EAAO,CAClE,OAAQ,YACR,iBAAAC,CACF,CAAC,EAED,OAAIC,GACFC,EAAO,KAAKN,EAAM,IAAI,SAAS,EAAE,KAAK,sBAAeC,CAAO;AAAA,CAAI,CAAC,EAG5D,CACL,GAAGK,EACH,QAAS,CAACC,EAAiBC,IAAyBF,EAAO,KAAKN,EAAM,MAAMO,CAAO,EAAGC,CAAO,EAC7F,MAAO,CAACD,EAAiBC,IAAyBF,EAAO,MAAMN,EAAM,IAAIO,CAAO,EAAGC,CAAO,EAC1F,KAAM,CAACD,EAAiBC,IAAyBF,EAAO,KAAKN,EAAM,OAAOO,CAAO,EAAGC,CAAO,EAC3F,SAAU,CAACD,EAAiBC,IAAyBF,EAAO,SAASN,EAAM,OAAOO,CAAO,EAAGC,CAAO,EACnG,MAAO,CAACD,EAAiBC,IAAyB,CAC5CL,IAAU,SACZG,EAAO,KAAKN,EAAM,KAAKO,CAAO,EAAGC,CAAO,CAE5C,CACF,CACF,CAEO,IAAMF,EAASJ,EAAa","names":["createLoggerBase","chalk","VERSION","createLogger","level","allowClearScreen","showVersion","logger","message","options"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as p}from"./chunk-VTFWVTPI.js";import{b as d}from"./chunk-O3FJP65T.js";import{b as i}from"./chunk-ZWYLKIBI.js";import{b as a}from"./chunk-P5DZK4TS.js";import{d as t}from"./chunk-HYVQXAK5.js";import{a as o}from"./chunk-YJTGZQEV.js";import{a as s}from"./chunk-6OKXZL6R.js";import{d as r,e}from"./chunk-BJSO43AS.js";import{RxImage as n}from"react-icons/rx";import{Type as m}from"@sinclair/typebox";var y=s({type:"image",kind:"brick",name:"Image",description:"An image brick",repeatable:!0,defaultHeight:{desktop:8,mobile:8},defaultWidth:{desktop:3,mobile:3},icon:n,props:r({image:p(),backgroundColor:e(t()),border:e(i),padding:e(a),shadow:e(d()),blurHash:e(o("Blur Hash",void 0,{"ui:fied":"hidden",description:"A placeholder for the image while it is loading. Use a blur hash string."})),author:e(m.Object({name:o("Image Author",void 0,{"ui:field":"hidden",description:"Image author. Use this to give credit to the author"}),url:o("Image Author URL",void 0,{"ui:field":"hidden",description:"Image author URL. Use this to give credit to the author"})})),provider:e(o("Image Provider",void 0,{"ui:field":"hidden",description:"Image provider. Use this to give credit to the author","ai:instructions":"The provider of the image, e.g. 'unsplash', 'pexels', etc."}))})}),k=[{description:"Hero landscape image with shadow",type:"image",props:{image:{src:"https://via.placeholder.com/800x400.png?text=Hero+Landscape",alt:"Beautiful landscape view for hero section"},shadow:"shadow-lg"}},{description:"Team member profile photo",type:"image",props:{image:{src:"https://via.placeholder.com/300x300.png?text=Profile+Photo",alt:"Team member profile photo"},shadow:"shadow-md",border:{rounding:"rounded-full"}}},{description:"Product showcase image",type:"image",props:{image:{src:"https://via.placeholder.com/400x400.png?text=Product+Image",alt:"Premium product showcase"},shadow:"shadow-sm"}},{description:"Blog article featured image",type:"image",props:{image:{src:"https://via.placeholder.com/600x300.png?text=Article+Featured",alt:"Featured image for blog article"},author:{name:"John Photographer",url:"https://example.com/john"},provider:"unsplash"}},{description:"Gallery thumbnail with hover effect",type:"image",props:{image:{src:"https://via.placeholder.com/250x250.png?text=Gallery+Thumb",alt:"Gallery thumbnail image"},shadow:"shadow-md"}},{description:"Logo image with padding",type:"image",props:{image:{src:"https://via.placeholder.com/200x80.png?text=Company+Logo",alt:"Company logo"},padding:"p-8"}},{description:"Testimonial customer photo",type:"image",props:{image:{src:"https://via.placeholder.com/120x120.png?text=Customer",alt:"Happy customer testimonial photo"},border:{rounding:"rounded-xl"},shadow:"shadow-lg",padding:"p-2",backgroundColor:"#ffffff"}},{description:"Event banner image",type:"image",props:{image:{src:"https://via.placeholder.com/800x200.png?text=Event+Banner",alt:"Annual conference event banner"},border:{rounding:"rounded-lg"},shadow:"shadow-xl",author:{name:"Event Photographer",url:"https://example.com/photographer"},provider:"pexels"}},{description:"Illustration with background",type:"image",props:{image:{src:"https://via.placeholder.com/150x150.png?text=Blabla+Feature",alt:"Feature illustration"},backgroundColor:"#f0f9ff",padding:"p-8",border:{rounding:"rounded-lg"},shadow:"shadow-sm"}},{description:"Image with blurHash",type:"image",props:{image:{src:"https://via.placeholder.com/300x200.png?text=Card+Image",alt:"My image"},border:{rounding:"rounded-lg"},shadow:"shadow-md",blurHash:"L6PZfSi_.AyE_3t7t7R**0o#DgR4"}}];export{y as a,k as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as l}from"./chunk-VTFWVTPI.js";import{b as c}from"./chunk-O3FJP65T.js";import{b as n}from"./chunk-ZWYLKIBI.js";import{b as s}from"./chunk-P5DZK4TS.js";import{b as r}from"./chunk-HYVQXAK5.js";import{a}from"./chunk-YJTGZQEV.js";import{a as m}from"./chunk-6OKXZL6R.js";import{c as p}from"./chunk-VBWC36L2.js";import{b as o,d as i,e}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";import{HiOutlineChatBubbleBottomCenter as h}from"react-icons/hi2";var A=m({type:"testimonials",name:"Testimonials",kind:"widget",description:"Display testimonials from users",repeatable:!1,icon:h,props:i({orientation:e(o({title:"Orientation",schema:t.Union([t.Literal("horizontal",{title:"Horizontal"}),t.Literal("vertical",{title:"Vertical"})],{default:"horizontal"})})),background:e(r()),border:e(n),padding:e(s),shadow:e(c()),testimonials:t.Array(t.Object({author:a("Author","John Doe"),company:e(a("Company")),text:p({title:"Text",default:"Amazing product!"}),avatar:e(l({title:"Avatar"})),socialIcon:e(a("Social Icon",void 0,{description:"Iconify reference for the social icon","ui:field":"iconify"}))}))},{default:{orientation:"horizontal"}})}),M=[{description:"SaaS platform testimonials with avatars (horizontal)",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Sarah Johnson",company:"TechCorp Solutions",text:"This platform has completely transformed how we manage our projects. The intuitive interface and powerful automation features have saved us countless hours.",avatar:{src:"https://via.placeholder.com/80x80.png?text=SJ",alt:"Sarah Johnson profile photo"},socialIcon:"mdi:linkedin"},{author:"Mike Chen",company:"StartupFlow",text:"Outstanding customer support and regular feature updates. We've been using this for over a year and it keeps getting better. Highly recommend!",avatar:{src:"https://via.placeholder.com/80x80.png?text=MC",alt:"Mike Chen profile photo"},socialIcon:"mdi:twitter"},{author:"Emily Rodriguez",company:"Digital Agency Pro",text:"The automation capabilities are game-changing. What used to take us days now happens automatically. It's like having an extra team member.",avatar:{src:"https://via.placeholder.com/80x80.png?text=ER",alt:"Emily Rodriguez profile photo"},socialIcon:"mdi:linkedin"}]}},{description:"E-commerce customer reviews (vertical)",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Jessica Williams",company:"Happy Customer",text:"Amazing product quality and fast shipping! The item exceeded my expectations and the customer service was excellent when I had questions.",avatar:{src:"https://via.placeholder.com/60x60.png?text=JW",alt:"Jessica Williams customer photo"},socialIcon:"mdi:star"},{author:"David Park",text:"Five stars! Been using this product for 6 months and it's still going strong. Definitely worth the investment and I've already recommended it to friends.",avatar:{src:"https://via.placeholder.com/60x60.png?text=DP",alt:"David Park customer photo"},socialIcon:"mdi:thumbs-up"}]}},{description:"Agency client testimonials with company info",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Rachel Thompson",company:"Global Enterprises",text:"The team delivered exceptional results on time and within budget. Their creative approach and attention to detail made all the difference for our brand.",avatar:{src:"https://via.placeholder.com/70x70.png?text=RT",alt:"Rachel Thompson headshot"},socialIcon:"mdi:briefcase"},{author:"Alex Kumar",company:"Innovation Labs",text:"Working with this agency was a game-changer for our digital presence. They understood our vision and brought it to life beautifully.",avatar:{src:"https://via.placeholder.com/70x70.png?text=AK",alt:"Alex Kumar profile"},socialIcon:"mdi:lightbulb"},{author:"Maria Santos",company:"Retail Plus",text:"Professional, creative, and results-driven. Our website traffic increased by 200% after their redesign. Couldn't be happier!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MS",alt:"Maria Santos photo"},socialIcon:"mdi:chart-line"}]}},{description:"App user feedback (vertical layout)",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Tom Wilson",text:"This app has made my daily routine so much easier. Love the clean interface and how everything just works seamlessly across all my devices.",avatar:{src:"https://via.placeholder.com/65x65.png?text=TW",alt:"Tom Wilson user photo"},socialIcon:"mdi:cellphone"},{author:"Lisa Chang",text:"Been using this app for months and it's become essential to my workflow. The latest update with AI features is incredibly impressive.",avatar:{src:"https://via.placeholder.com/65x65.png?text=LC",alt:"Lisa Chang profile picture"},socialIcon:"mdi:robot"},{author:"James Miller",text:"Simple, powerful, and reliable. Exactly what I was looking for. The customer support team is also very responsive and helpful.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JM",alt:"James Miller avatar"},socialIcon:"mdi:heart"}]}},{description:"Course/education testimonials with social icons",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Amanda Foster",company:"UX Designer",text:"This course completely changed my career trajectory. The practical projects and expert feedback helped me land my dream job in just 3 months.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AF",alt:"Amanda Foster student photo"},socialIcon:"mdi:school"},{author:"Carlos Rodriguez",company:"Software Engineer",text:"The instructors are industry experts and the content is always up-to-date. I've taken three courses here and each one exceeded my expectations.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CR",alt:"Carlos Rodriguez profile"},socialIcon:"mdi:code-tags"}]}},{description:"Simple testimonials without avatars",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Anonymous User",text:"Great service and excellent value for money. Would definitely recommend to others looking for a reliable solution.",socialIcon:"mdi:account-circle"},{author:"Verified Customer",text:"Quick delivery and exactly as described. Very satisfied with my purchase and the overall experience.",socialIcon:"mdi:check-circle"},{author:"Beta Tester",text:"Been using the beta version and it's already impressive. Looking forward to the full release with even more features.",socialIcon:"mdi:beta"}]}},{description:"Consultant testimonials with professional focus",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Dr. Patricia Lee",company:"Medical Practice Solutions",text:"The consulting services provided were invaluable to our practice. Revenue increased by 40% and patient satisfaction scores improved significantly.",avatar:{src:"https://via.placeholder.com/80x80.png?text=PL",alt:"Dr. Patricia Lee headshot"},socialIcon:"mdi:medical-bag"},{author:"Robert Kim",company:"Manufacturing Inc.",text:"Their strategic insights helped us streamline operations and reduce costs by 25%. The ROI was evident within the first quarter.",avatar:{src:"https://via.placeholder.com/80x80.png?text=RK",alt:"Robert Kim executive photo"},socialIcon:"mdi:factory"}]}},{description:"Event testimonials with social media icons",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Jennifer Adams",company:"Marketing Director",text:"Best conference I've attended in years! The networking opportunities were incredible and the speakers were top-notch industry leaders.",avatar:{src:"https://via.placeholder.com/70x70.png?text=JA",alt:"Jennifer Adams conference attendee"},socialIcon:"mdi:twitter"},{author:"Michael Brown",company:"Tech Startup Founder",text:"The workshops were incredibly practical and I left with actionable strategies I could implement immediately. Already planning to attend next year!",avatar:{src:"https://via.placeholder.com/70x70.png?text=MB",alt:"Michael Brown participant photo"},socialIcon:"mdi:linkedin"},{author:"Sophie Chen",company:"Product Manager",text:"Amazing organization and valuable content. Met so many like-minded professionals and learned cutting-edge techniques I'm excited to try.",avatar:{src:"https://via.placeholder.com/70x70.png?text=SC",alt:"Sophie Chen attendee photo"},socialIcon:"mdi:instagram"}]}},{description:"Fitness/wellness testimonials with achievement focus",type:"testimonials",props:{orientation:"vertical",testimonials:[{author:"Mark Thompson",text:"Lost 30 pounds in 4 months following this program! The personalized approach and constant support made all the difference in achieving my goals.",avatar:{src:"https://via.placeholder.com/75x75.png?text=MT",alt:"Mark Thompson transformation photo"},socialIcon:"mdi:dumbbell"},{author:"Anna Johnson",text:"Finally found a workout routine I actually enjoy! The trainers are motivating and the community support keeps me accountable every day.",avatar:{src:"https://via.placeholder.com/75x75.png?text=AJ",alt:"Anna Johnson fitness photo"},socialIcon:"mdi:heart-pulse"},{author:"Chris Davis",text:"This program completely changed my relationship with fitness. I'm stronger, more confident, and have energy I haven't felt in years.",avatar:{src:"https://via.placeholder.com/75x75.png?text=CD",alt:"Chris Davis success photo"},socialIcon:"mdi:trophy"}]}},{description:"Restaurant customer reviews with food focus",type:"testimonials",props:{orientation:"horizontal",testimonials:[{author:"Food Critic Helen",company:"Local Food Blog",text:"Exceptional cuisine and impeccable service! Every dish was a masterpiece and the attention to detail was remarkable. A true culinary experience.",avatar:{src:"https://via.placeholder.com/65x65.png?text=HC",alt:"Helen food critic photo"},socialIcon:"mdi:silverware-fork-knife"},{author:"Regular Customer Joe",text:"Been coming here for years and it never disappoints. The staff knows my order by heart and the quality is consistently outstanding.",avatar:{src:"https://via.placeholder.com/65x65.png?text=JC",alt:"Joe regular customer"},socialIcon:"mdi:food"}]}}];export{A as a,M as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as r}from"./chunk-O3FJP65T.js";import{b as s}from"./chunk-ZWYLKIBI.js";import{b as a}from"./chunk-CAVNF3BU.js";import{d as l}from"./chunk-HYVQXAK5.js";import{a as o}from"./chunk-YJTGZQEV.js";import{a as c}from"./chunk-6OKXZL6R.js";import{b as t,d as n,e as i}from"./chunk-BJSO43AS.js";import{TiSocialFlickr as p}from"react-icons/ti";import{Type as e}from"@sinclair/typebox";var v=c({type:"social-links",kind:"widget",name:"Social links",description:"A list of social media links",icon:p,props:n({links:e.Array(e.Object({href:o("Link"),label:i(o("Label")),icon:i(t({title:"Icon",description:"Icon to display (iconify reference)",schema:o("Icon",void 0,{description:"Icon to display (iconify reference)","ui:widget":"iconify"})}))})),backgroundColor:i(l()),color:i(a()),border:i(s),shadow:i(r()),variants:e.Array(e.Union([e.Literal("icon-only",{title:"Only icons",description:"Display only icons"}),e.Literal("display-inline",{title:"Display inline",description:"Display links inline"}),e.Literal("display-block",{title:"Display block",description:"Display links as block elements"})],{title:"Variant",description:"Social links variants"}))})}),w=[{description:"Standard social media icons inline",type:"social-links",props:{variants:["icon-only","display-inline"],links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Professional social links with labels (block layout)",type:"social-links",props:{variants:["display-block"],links:[{href:"https://linkedin.com/in/johndoe",label:"Connect on LinkedIn",icon:"mdi:linkedin"},{href:"https://github.com/johndoe",label:"View GitHub Profile",icon:"mdi:github"},{href:"https://twitter.com/johndoe",label:"Follow on Twitter",icon:"mdi:twitter"},{href:"mailto:john@example.com",label:"Send Email",icon:"mdi:email"}]}},{description:"Creative portfolio social links (icon-only inline)",type:"social-links",props:{variants:["icon-only","display-inline"],links:[{href:"https://dribbble.com/designer",label:"Dribbble",icon:"mdi:dribbble"},{href:"https://behance.net/designer",label:"Behance",icon:"mdi:behance"},{href:"https://instagram.com/designer",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/designer",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/designer",label:"YouTube",icon:"mdi:youtube"}]}},{description:"Developer/tech social links with labels",type:"social-links",props:{variants:["display-inline"],links:[{href:"https://github.com/developer",label:"GitHub",icon:"mdi:github"},{href:"https://stackoverflow.com/users/developer",label:"Stack Overflow",icon:"mdi:stack-overflow"},{href:"https://dev.to/developer",label:"Dev.to",icon:"mdi:dev-to"},{href:"https://codepen.io/developer",label:"CodePen",icon:"mdi:codepen"}]}},{description:"Music artist social platforms (block layout)",type:"social-links",props:{variants:["display-block"],links:[{href:"https://spotify.com/artist/musician",label:"Listen on Spotify",icon:"mdi:spotify"},{href:"https://music.apple.com/artist/musician",label:"Apple Music",icon:"mdi:apple"},{href:"https://soundcloud.com/musician",label:"SoundCloud",icon:"mdi:soundcloud"},{href:"https://youtube.com/musician",label:"YouTube Channel",icon:"mdi:youtube"},{href:"https://bandcamp.com/musician",label:"Bandcamp",icon:"mdi:bandcamp"}]}},{description:"Business contact icons only",type:"social-links",props:{variants:["icon-only","display-inline"],links:[{href:"tel:+1234567890",label:"Phone",icon:"mdi:phone"},{href:"mailto:contact@business.com",label:"Email",icon:"mdi:email"},{href:"https://maps.google.com/business",label:"Location",icon:"mdi:map-marker"},{href:"https://business.com",label:"Website",icon:"mdi:web"}]}},{description:"Gaming content creator links (inline with labels)",type:"social-links",props:{variants:["display-inline"],links:[{href:"https://twitch.tv/gamer",label:"Twitch",icon:"mdi:twitch"},{href:"https://youtube.com/gamer",label:"YouTube",icon:"mdi:youtube"},{href:"https://discord.gg/gamer",label:"Discord",icon:"mdi:discord"},{href:"https://tiktok.com/@gamer",label:"TikTok",icon:"mdi:tiktok"}]}},{description:"Restaurant social presence (block layout)",type:"social-links",props:{variants:["display-block"],links:[{href:"https://facebook.com/restaurant",label:"Follow us on Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/restaurant",label:"See photos on Instagram",icon:"mdi:instagram"},{href:"https://yelp.com/restaurant",label:"Review us on Yelp",icon:"mdi:yelp"},{href:"https://tripadvisor.com/restaurant",label:"TripAdvisor Reviews",icon:"mdi:tripadvisor"},{href:"tel:+1234567890",label:"Call for Reservations",icon:"mdi:phone"}]}},{description:"Minimal footer social icons",type:"social-links",props:{variants:["icon-only","display-inline"],links:[{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"},{href:"mailto:hello@company.com",label:"Email",icon:"mdi:email"}]}},{description:"E-commerce store social channels (inline with labels)",type:"social-links",props:{variants:["display-inline"],links:[{href:"https://facebook.com/store",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/store",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/store",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/store",label:"YouTube",icon:"mdi:youtube"},{href:"https://tiktok.com/@store",label:"TikTok",icon:"mdi:tiktok"}]}}];export{v as a,w as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{d as e}from"./chunk-HYVQXAK5.js";import{a as n}from"./chunk-YJTGZQEV.js";import{a as p}from"./chunk-6OKXZL6R.js";import{a as t}from"./chunk-XDCGA4WT.js";import{b as o,d as r,e as i}from"./chunk-BJSO43AS.js";import{RxDividerHorizontal as d}from"react-icons/rx";var z=p({type:"divider",name:"Divider",kind:"brick",description:"A horizontal or vertical divider",repeatable:!0,icon:d,props:r({orientation:i(t(["horizontal","vertical"],{title:"Orientation"})),color:i(e({default:"bg-base-300",title:"Divider color"})),size:i(o({title:"Size",schema:n("Size","100%",{description:"Size of the divider","ai:instructions":"The size of the divider must be in % unit, like 50%"})}))},{default:{size:"100%",color:"bg-base-300"}})}),b=[{description:"Basic horizontal divider",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"100%"}},{description:"Accent colored divider for emphasis",type:"divider",props:{orientation:"horizontal",color:"bg-blue-500",size:"100%"}},{description:"Short horizontal divider for content breaks",type:"divider",props:{orientation:"horizontal",color:"bg-base-300",size:"50%"}},{description:"Thin vertical divider for compact layouts",type:"divider",props:{orientation:"vertical",color:"bg-gray-300",size:"75%"}},{description:"Bold primary colored section divider",type:"divider",props:{orientation:"horizontal",color:"bg-primary",size:"100%"}},{description:"Error colored divider for attention",type:"divider",props:{orientation:"horizontal",color:"bg-red-500",size:"100%"}},{description:"Full height vertical divider for panels",type:"divider",props:{orientation:"vertical",color:"bg-base-300",size:"100%"}},{description:"Secondary colored divider",type:"divider",props:{orientation:"horizontal",color:"bg-secondary",size:"100%"}}];export{z as a,b};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as s}from"./chunk-CAVNF3BU.js";import{b as a}from"./chunk-P5DZK4TS.js";import{d as i}from"./chunk-HYVQXAK5.js";import{a as o}from"./chunk-YJTGZQEV.js";import{a as p}from"./chunk-6OKXZL6R.js";import{a as n}from"./chunk-XDCGA4WT.js";import{b as r,d as t,e}from"./chunk-BJSO43AS.js";import{FaWpforms as d}from"react-icons/fa6";var b=p({type:"form",kind:"widget",name:"Form",description:"A form element",aiInstructions:`The form brick automatically renders form fields based on the datarecord id provided in the props.
|
|
4
|
-
There is no need to define the form fields manually and the form does not accept any children`,isContainer:!1,icon:d,props:t({title:e(o("Title","My form",{description:"The title of the form"})),intro:e(o("Intro",void 0,{description:"The intro text of the form"})),datarecordId:o("Datarecord ID",void 0,{description:"The ID of the datarecord to use to generate the form fields"}),padding:e(a),backgroundColor:e(i()),color:e(s()),align:e(r({title:"Alignment",description:"The alignment of the form fields. Default is vertical",schema:n(["vertical","horizontal"],{default:"vertical",title:"Form alignment",description:"Choose between vertical or horizontal alignment for the form fields"})}))})}),v=[{description:"Basic contact form",type:"form",props:{title:"Contact Us",intro:"We'd love to hear from you. Send us a message and we'll respond as soon as possible.",align:"vertical",datarecordId:"contacts"}},{description:"User registration form",type:"form",props:{title:"Create Account",intro:"Join our platform and start your journey today.",align:"vertical",datarecordId:"user-registration"}},{description:"Newsletter subscription form (horizontal)",type:"form",props:{title:"Stay Updated",intro:"Subscribe to our newsletter for the latest updates and exclusive content.",align:"horizontal",datarecordId:"newsletter-subscription"}},{description:"Event registration form",type:"form",props:{title:"Conference Registration",intro:"Register for the Annual Tech Conference 2025. Early bird pricing ends soon!",align:"vertical",datarecordId:"event-registration"}},{description:"Job application form",type:"form",props:{title:"Apply for Position",intro:"We're excited to learn more about you! Please fill out this application form completely.",align:"vertical",datarecordId:"job-application"}},{description:"Customer feedback form",type:"form",props:{title:"Share Your Feedback",intro:"Your opinion matters to us. Help us improve our products and services.",align:"vertical",datarecordId:"customer-feedback"}}];export{b as a,v as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a as t}from"./chunk-UL7L3HYV.js";import{b as n}from"./chunk-O3FJP65T.js";import{b as e}from"./chunk-ZWYLKIBI.js";import{b as a}from"./chunk-P5DZK4TS.js";import{d as p}from"./chunk-HYVQXAK5.js";import{a as s}from"./chunk-YJTGZQEV.js";import{a as d}from"./chunk-6OKXZL6R.js";import{b as r,d as i,e as o}from"./chunk-BJSO43AS.js";import{LiaMapMarkedAltSolid as c}from"react-icons/lia";import{Type as m}from"@sinclair/typebox";var T=d({type:"map",kind:"widget",name:"Map",description:"A map element showing a location",aiInstructions:"This brick can be used to show a location on a map. Use the 'location' prop to set the coordinates and an optional tooltip.",icon:c,props:i({location:r({title:"Location",description:"The location to display on the map",schema:m.Object({lat:t("Latitude"),lng:t("Longitude"),tooltip:o(s("Tooltip"))})}),backgroundColor:o(p()),border:o(e),padding:o(a),shadow:o(n())})}),A=[{description:"Map showing a specific location",type:"map",props:{location:{lat:37.7749,lng:-122.4194,tooltip:"San Francisco, CA"}}},{description:"Map with custom styles",type:"map",props:{location:{lat:40.7128,lng:-74.006,tooltip:"New York, NY"},backgroundColor:"bg-gray-100",border:{color:"border-gray-300",width:"border"},padding:"p-16",shadow:"shadow-lg"}}];export{T as a,A as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a as k,b as J}from"./chunk-U76JDFWJ.js";import{a as p,b as D}from"./chunk-JAAPJQNK.js";import{a as s,b as B}from"./chunk-3ZGRY444.js";import{b as n,c as j}from"./chunk-H7OYUKBW.js";import{a as o,b as W}from"./chunk-FD3KX2U7.js";import{b as l,c as w}from"./chunk-HIBTEX2T.js";import{a as d,b as G}from"./chunk-E4UAVLKC.js";import{a as E,b as F}from"./chunk-DC5DWF7B.js";import{a as u,b as I}from"./chunk-AMGHA7QH.js";import{a as m,b as R}from"./chunk-2DI5SIVV.js";import{a as r,b as L}from"./chunk-I3HSLGFA.js";import{a as y,b as q}from"./chunk-UYZP24VV.js";import{b as i,c as h}from"./chunk-LOFXGDAK.js";import{a as g,b as H}from"./chunk-DY2YCYZ6.js";import{a as x,b as z}from"./chunk-X42WBJTN.js";import{a as f,b as P}from"./chunk-EHH677K5.js";import{a,b as v}from"./chunk-33FU4KGU.js";import{a as M,b as C}from"./chunk-XB3X4P3I.js";import{a as t,b}from"./chunk-JH3NRO6M.js";import{a as c,b as A}from"./chunk-PX7QSNLO.js";import{b as e}from"./chunk-6OKXZL6R.js";var oe={[m.type]:m,[a.type]:a,[s.type]:s,[p.type]:p,[r.type]:r,[o.type]:o,[f.type]:f,[d.type]:d,[n.type]:n,[y.type]:y,[l.type]:l,[x.type]:x,[c.type]:c,[M.type]:M,[E.type]:E,[i.type]:i,[g.type]:g,[u.type]:u,[k.type]:k,[t.type]:t},fe={[m.type]:e(m),[a.type]:e(a),[s.type]:e(s),[p.type]:e(p),[r.type]:e(r),[d.type]:e(d),[o.type]:e(o),[f.type]:e(f),[n.type]:e(n),[y.type]:e(y),[l.type]:e(l),[x.type]:e(x),[c.type]:e(c),[M.type]:e(M),[E.type]:e(E),[i.type]:e(i),[g.type]:e(g),[u.type]:e(u),[k.type]:e(k),[t.type]:e(t)},ne={[m.type]:R,[a.type]:v,[s.type]:B,[p.type]:D,[r.type]:L,[o.type]:W,[f.type]:P,[d.type]:G,[n.type]:j,[y.type]:q,[l.type]:w,[x.type]:z,[c.type]:A,[M.type]:C,[E.type]:F,[i.type]:h,[g.type]:H,[u.type]:I,[k.type]:J,[t.type]:b};export{oe as a,fe as b,ne as c};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as p}from"./chunk-O3FJP65T.js";import{b as i}from"./chunk-ZWYLKIBI.js";import{b as t}from"./chunk-P5DZK4TS.js";import{b as r}from"./chunk-HYVQXAK5.js";import{a as d}from"./chunk-YJTGZQEV.js";import{a as m}from"./chunk-6OKXZL6R.js";import{d as e,e as o}from"./chunk-BJSO43AS.js";import{RxVideo as n}from"react-icons/rx";var v=m({type:"video",kind:"brick",name:"Video",description:"Youtube video",repeatable:!0,icon:n,props:e({url:d("Video URL",void 0,{description:"URL of the video to embed. It can be a YouTube link or an embed link."}),background:o(r()),border:o(i),padding:o(t),shadow:o(p())})}),k=[{description:"A YouTube video",type:"video",props:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}},{description:"An embedded YouTube video",type:"video",props:{url:"https://www.youtube.com/embed/dQw4w9WgXcQ"}},{description:"A Vimeo video",type:"video",props:{url:"https://vimeo.com/123456789"}}];export{v as a,k as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as n}from"./chunk-CTRS76PX.js";import{a as l}from"./chunk-G7LX3UKQ.js";import{a as u}from"./chunk-ATDJCXC2.js";import{b as s}from"./chunk-HYVQXAK5.js";import{a as i}from"./chunk-YJTGZQEV.js";import{e}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";import{jsonDefault as p}from"json-schema-default";function v(a){for(let r in a)if(r.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${r}") are reserved for internal use. Please rename it.`);return t.Object(a)}function S(a){return t.Composite([a,o])}var g={$pageLanguage:l("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"}),$bodyBackground:e(s({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:group":"layout","ui:group:title":"Page Layout","ui:group:order":3})),$pageBackground:e(s({title:"Page Background",defaultValue:{color:"base-100"}})),$pageOgImage:e(i("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","ui:field":"image"})),$robotsIndexing:e(u("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:e(i("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:i("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location","ui:field":"path"}),$pageTitle:i("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:i("Description","",{"ui:widget":"textarea","ui:group":"meta","ui:group:title":"Meta tags",description:"A short description of the page. Used by search engines","ui:multiline":!0}),$pageKeywords:i("Keywords","",{"ui:group":"meta","ui:group:title":"Meta tags",description:"Keywords related to the page. Used by search engines","ui:multiline":!0}),$pageLastUpdated:e(n("Last updated",{"ui:hidden":!0,"ai:guidelines":"Don't generate this property."})),$siteHeadTags:e(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:textarea-class":"h-40 !font-mono","ui:placeholder":"<script src='https://example.com/script.js'></script>","ui:premium":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"})),$siteBodyTags:e(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:premium":!0,"ui:textarea-class":"h-40 !font-mono","ui:placeholder":"<script src='https://example.com/script.js'></script>","ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"}))},o=t.Object(g,{additionalProperties:!0}),x=t.Pick(o,["$bodyBackground","$pageBackground"]),k=t.Pick(o,["$pageTitle","$pageDescription","$pageKeywords","$pageLanguage","$pagePath","$bodyBackground","$pageBackground"]);function w(a=t.Object({}),r={}){return{...p(o),...r}}export{v as a,S as b,o as c,x as d,k as e,w as f};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as m}from"./chunk-O3FJP65T.js";import{b as d}from"./chunk-ZWYLKIBI.js";import{b as n}from"./chunk-CAVNF3BU.js";import{b as p}from"./chunk-P5DZK4TS.js";import{d as l}from"./chunk-HYVQXAK5.js";import{a}from"./chunk-YJTGZQEV.js";import{a as h}from"./chunk-6OKXZL6R.js";import{c as r}from"./chunk-VBWC36L2.js";import{a as c}from"./chunk-XDCGA4WT.js";import{a as o,b as i,d as s,e as t}from"./chunk-BJSO43AS.js";import{Type as e}from"@sinclair/typebox";import{RiMapPinTimeLine as u}from"react-icons/ri";var R=h({type:"timeline",kind:"widget",name:"Timeline",description:"A timeline element for showing chronological events",aiInstructions:`
|
|
4
|
-
This timeline element displays a series of chronological events, milestones, or processes.
|
|
5
|
-
It can be used for company history, project roadmaps, or any sequential information.
|
|
6
|
-
Each item has a date/time, title, description, and optional icon.
|
|
7
|
-
`.trim(),icon:u,defaultHeight:{desktop:12,mobile:18},defaultWidth:{desktop:36,mobile:24},props:s({container:t(o({title:"Container",children:{backgroundColor:t(l()),padding:t(p),border:t(d),shadow:t(m())}})),items:i({title:"Timeline items",schema:e.Array(e.Object({date:a("Date","2024",{description:"Date or time period for this event"}),title:r({title:"Title",default:"Event title",disableSizing:!0}),description:r({title:"Description",default:"Event description"}),icon:t(i({title:"Icon",description:"Icon to display (iconify reference)",schema:a("Icon",void 0,{description:"Icon for this timeline item","ui:widget":"iconify"})}))}))}),variants:e.Array(e.Union([e.Literal("vertical",{title:"Vertical",description:"Display timeline vertically"}),e.Literal("horizontal",{title:"Horizontal",description:"Display timeline horizontally"}),e.Literal("alternating",{title:"Alternating",description:"Alternate items left and right (vertical only)"}),e.Literal("with-connectors",{title:"With connectors",description:"Show connecting lines between items"}),e.Literal("minimal",{title:"Minimal",description:"Simple design with less visual elements"}),e.Literal("card-style",{title:"Card style",description:"Display each item as a card"})],{title:"Variant",description:"Timeline display variants"}),{default:["vertical","with-connectors"]}),appearance:t(o({title:"Appearance",children:{lineColor:t(i({title:"Line color",description:"Color for the timeline dot/line",schema:c(["primary","secondary","accent"],{default:"primary",enumNames:["Primary","Secondary","Accent"]})})),lineWidth:t(i({title:"Line width",schema:e.Union([e.Literal("border-2",{title:"Thin"}),e.Literal("border-4",{title:"Medium"}),e.Literal("border-8",{title:"Thick"})],{default:"border-2"})})),dotSize:t(i({title:"Dot size",schema:e.Union([e.Literal("w-3",{title:"S"}),e.Literal("w-4",{title:"M"}),e.Literal("w-6",{title:"L"}),e.Literal("w-8",{title:"XL"})],{default:"w-4"})})),datePosition:t(i({title:"Date position",schema:e.Union([e.Literal("above",{title:"Above title"}),e.Literal("below",{title:"Below title"}),e.Literal("inline",{title:"Inline with title"})],{default:"above"})}))}})),textStyles:t(o({title:"Text styles",children:{dateColor:t(n({default:"text-base-content/70",title:"Date color"})),titleColor:t(n({default:"text-base-content",title:"Title color"})),descriptionColor:t(n({default:"text-base-content/80",title:"Description color"}))}}))},{default:{container:{padding:"p-6",backgroundColor:"bg-transparent"},variants:["vertical","with-connectors"],appearance:{lineColor:"primary",lineWidth:"border-2",dotSize:"w-4 h-4",datePosition:"above"},textStyles:{dateColor:"text-base-content/70",titleColor:"text-base-content",descriptionColor:"text-base-content/80"}}})}),I=[{description:"Company milestone timeline with alternating layout",type:"timeline",props:{container:{backgroundColor:"bg-base-100",padding:"p-8"},variants:["vertical","alternating","with-connectors"],appearance:{lineColor:"primary",lineWidth:"border-4",dotSize:"w-6",datePosition:"above"},items:[{date:"2019",title:"Company Founded",description:"Started our journey with a vision to revolutionize the industry",icon:"mdi:rocket-launch"},{date:"2020",title:"First Product Launch",description:"Released our flagship product to the market with overwhelming response",icon:"mdi:product-hunt"},{date:"2021",title:"Series A Funding",description:"Raised $10M in Series A funding to accelerate growth and expansion",icon:"mdi:currency-usd"},{date:"2023",title:"Global Expansion",description:"Opened offices in Europe and Asia, serving customers worldwide",icon:"mdi:earth"},{date:"2024",title:"IPO Planning",description:"Preparing for initial public offering and continued growth",icon:"mdi:trending-up"}]}},{description:"Project roadmap with horizontal layout",type:"timeline",props:{container:{padding:"p-8"},variants:["horizontal","with-connectors","card-style"],appearance:{lineColor:"accent",lineWidth:"border-2",dotSize:"w-4",datePosition:"below"},textStyles:{dateColor:"text-primary",titleColor:"text-base-content",descriptionColor:"text-base-content/80"},items:[{date:"Q1 2024",title:"Planning Phase",description:"Requirements gathering and technical specifications",icon:"mdi:clipboard-text"},{date:"Q2 2024",title:"Development",description:"Core feature development and testing",icon:"mdi:code-braces"},{date:"Q3 2024",title:"Beta Testing",description:"User acceptance testing and feedback collection",icon:"mdi:test-tube"},{date:"Q4 2024",title:"Launch",description:"Production deployment and go-to-market strategy",icon:"mdi:rocket"}]}},{description:"Personal career timeline with minimal design",type:"timeline",props:{container:{padding:"p-4"},variants:["vertical","minimal"],appearance:{lineColor:"secondary",lineWidth:"border-2",datePosition:"inline"},textStyles:{dateColor:"text-base-content/60",titleColor:"text-base-content",descriptionColor:"text-base-content/70"},items:[{date:"2020-2024",title:"Senior Software Engineer",description:"Led development of microservices architecture at Tech Startup Inc."},{date:"2018-2020",title:"Full Stack Developer",description:"Built scalable web applications using React and Node.js at Digital Agency"},{date:"2016-2018",title:"Junior Developer",description:"Started career developing mobile apps and learning modern frameworks"},{date:"2012-2016",title:"Computer Science Degree",description:"Bachelor's degree in Computer Science from State University"}]}},{description:"Product development phases with card styling",type:"timeline",props:{container:{backgroundColor:"bg-base-50",padding:"p-8"},variants:["vertical","card-style","with-connectors"],appearance:{lineColor:"accent",lineWidth:"border-4",dotSize:"w-6",datePosition:"above"},textStyles:{dateColor:"text-accent",titleColor:"text-base-content",descriptionColor:"text-base-content/80"},items:[{date:"Phase 1",title:"Research & Discovery",description:"Market research, user interviews, and competitive analysis to understand user needs",icon:"mdi:magnify"},{date:"Phase 2",title:"Design & Prototyping",description:"Create wireframes, mockups, and interactive prototypes for user testing",icon:"mdi:palette"},{date:"Phase 3",title:"Development",description:"Build the product using agile methodology with continuous integration",icon:"mdi:hammer-wrench"},{date:"Phase 4",title:"Testing & QA",description:"Comprehensive testing including unit tests, integration tests, and user acceptance testing",icon:"mdi:bug"},{date:"Phase 5",title:"Launch & Monitor",description:"Product launch with monitoring, analytics, and continuous improvement based on user feedback",icon:"mdi:rocket-launch"}]}},{description:"Event schedule timeline with large dots",type:"timeline",props:{container:{backgroundColor:"bg-primary/5",padding:"p-8"},variants:["vertical","with-connectors"],appearance:{lineColor:"primary",lineWidth:"border-8",dotSize:"w-6",datePosition:"above"},textStyles:{dateColor:"text-primary",titleColor:"text-primary",descriptionColor:"text-base-content"},items:[{date:"9:00 AM",title:"Registration & Welcome",description:"Check-in, networking breakfast, and welcome address by the CEO",icon:"mdi:account-check"},{date:"10:00 AM",title:"Keynote Presentation",description:"Future of Technology: Trends and Innovations Shaping Tomorrow",icon:"mdi:presentation"},{date:"11:30 AM",title:"Panel Discussion",description:"Industry leaders discuss challenges and opportunities in digital transformation",icon:"mdi:account-group"},{date:"1:00 PM",title:"Networking Lunch",description:"Catered lunch with opportunities to connect with speakers and attendees",icon:"mdi:food"},{date:"2:30 PM",title:"Workshop Sessions",description:"Hands-on workshops covering AI, cloud computing, and cybersecurity",icon:"mdi:school"},{date:"4:00 PM",title:"Closing Remarks",description:"Summary of key insights and announcement of next year's conference",icon:"mdi:microphone"}]}}];export{R as a,I as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as e}from"./chunk-BJSO43AS.js";import{Type as p}from"@sinclair/typebox";function u(t,r,m={}){return e({title:t,schema:p.Number({default:r,...m})})}export{u as a};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a as i}from"./chunk-UL7L3HYV.js";import{b as s}from"./chunk-VTFWVTPI.js";import{d as n}from"./chunk-HYVQXAK5.js";import{a as l,d as u}from"./chunk-YJTGZQEV.js";import{a as c}from"./chunk-6OKXZL6R.js";import{d as r,e,f as o}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";import{VscLayoutPanelOff as a}from"react-icons/vsc";var b=c({type:"footer",kind:"widget",name:"Footer",description:"A footer with links and an optional logo",icon:a,props:r({variants:t.Array(t.Union([t.Literal("logo-left",{title:"Logo on the left",description:"Logo on the left"}),t.Literal("logo-right",{title:"Logo on the right",description:"Logo on the right"}),t.Literal("logo-center",{title:"Logo on the center",description:"Logo at center"}),t.Literal("multiple-rows",{title:"Span on multiple rows.",description:"Span on multiple rows. Use when there a a lot of links sections"})],{title:"Variant",description:"Footer variants."})),backgroundColor:e(n()),logo:e(s({title:"Logo"})),rows:e(i("Rows",1)),linksSections:o(t.Object({sectionTitle:l("Links Section title"),links:o(t.Object({title:l("Title"),url:u(),column:e(i("Column",1))}))}))})}),T=[{description:"Simple footer with logo on the left",type:"footer",props:{variants:["logo-left"],backgroundColor:"#f8f9fa",logo:{src:"https://via.placeholder.com/120x40.png?text=Logo",alt:"Company logo"},linksSections:[{sectionTitle:"Quick Links",links:[{title:"Home",url:"/"},{title:"About",url:"/about"},{title:"Contact",url:"/contact"}]},{sectionTitle:"Legal",links:[{title:"Privacy Policy",url:"/privacy"},{title:"Terms of Service",url:"/terms"}]}]}},{description:"Corporate footer with centered logo",type:"footer",props:{variants:["logo-center"],backgroundColor:"#2c3e50",logo:{src:"https://via.placeholder.com/150x50.png?text=Corporate",alt:"Corporate logo"},linksSections:[{sectionTitle:"Products",links:[{title:"Software Solutions",url:"/products/software"},{title:"Consulting",url:"/products/consulting"},{title:"Support",url:"/products/support"},{title:"Training",url:"/products/training"}]},{sectionTitle:"Company",links:[{title:"About Us",url:"/about"},{title:"Careers",url:"/careers"},{title:"News",url:"/news"},{title:"Investors",url:"/investors"}]},{sectionTitle:"Resources",links:[{title:"Documentation",url:"/docs"},{title:"API Reference",url:"/api"},{title:"Community",url:"/community"},{title:"Blog",url:"/blog"}]}]}},{description:"E-commerce footer with logo on the right",type:"footer",props:{variants:["logo-right"],backgroundColor:"#ffffff",logo:{src:"https://via.placeholder.com/140x45.png?text=Shop",alt:"Shop logo"},linksSections:[{sectionTitle:"Shop",links:[{title:"All Products",url:"/products"},{title:"New Arrivals",url:"/new"},{title:"Sale",url:"/sale"},{title:"Gift Cards",url:"/gift-cards"}]},{sectionTitle:"Customer Service",links:[{title:"Help Center",url:"/help"},{title:"Returns",url:"/returns"},{title:"Shipping Info",url:"/shipping"},{title:"Size Guide",url:"/size-guide"}]},{sectionTitle:"Account",links:[{title:"My Account",url:"/account"},{title:"Order History",url:"/orders"},{title:"Wishlist",url:"/wishlist"}]}]}},{description:"Large organization footer with multiple rows",type:"footer",props:{variants:["logo-center","multiple-rows"],backgroundColor:"#1a1a1a",logo:{src:"https://via.placeholder.com/180x60.png?text=Enterprise",alt:"Enterprise logo"},linksSections:[{sectionTitle:"Products & Services",links:[{title:"Cloud Solutions",url:"/cloud",column:1},{title:"Data Analytics",url:"/analytics",column:1},{title:"AI & Machine Learning",url:"/ai",column:1},{title:"Cybersecurity",url:"/security",column:2},{title:"DevOps Tools",url:"/devops",column:2},{title:"IoT Platform",url:"/iot",column:2}]},{sectionTitle:"Industries",links:[{title:"Healthcare",url:"/industries/healthcare",column:3},{title:"Finance",url:"/industries/finance",column:3},{title:"Retail",url:"/industries/retail",column:3},{title:"Manufacturing",url:"/industries/manufacturing",column:4},{title:"Education",url:"/industries/education",column:4},{title:"Government",url:"/industries/government",column:4}]},{sectionTitle:"Resources",links:[{title:"Documentation",url:"/docs",column:1},{title:"API Reference",url:"/api",column:1},{title:"Tutorials",url:"/tutorials",column:1},{title:"Webinars",url:"/webinars",column:2},{title:"White Papers",url:"/whitepapers",column:2},{title:"Case Studies",url:"/case-studies",column:2}]},{sectionTitle:"Support & Community",links:[{title:"Help Center",url:"/help",column:3},{title:"Community Forum",url:"/forum",column:3},{title:"Contact Support",url:"/support",column:3},{title:"Service Status",url:"/status",column:4},{title:"Partner Portal",url:"/partners",column:4},{title:"Developer Hub",url:"/developers",column:4}]}]}},{description:"Startup footer with minimal links and left logo",type:"footer",props:{variants:["logo-left"],backgroundColor:"#f5f5f5",logo:{src:"https://via.placeholder.com/100x35.png?text=Startup",alt:"Startup logo"},linksSections:[{sectionTitle:"Company",links:[{title:"About",url:"/about"},{title:"Team",url:"/team"},{title:"Jobs",url:"/jobs"}]},{sectionTitle:"Product",links:[{title:"Features",url:"/features"},{title:"Pricing",url:"/pricing"},{title:"Demo",url:"/demo"}]},{sectionTitle:"Support",links:[{title:"Help",url:"/help"},{title:"Contact",url:"/contact"}]}]}},{description:"Agency footer with centered logo and creative sections",type:"footer",props:{variants:["logo-center"],backgroundColor:"#6366f1",logo:{src:"https://via.placeholder.com/130x45.png?text=Agency",alt:"Creative agency logo"},linksSections:[{sectionTitle:"Services",links:[{title:"Web Design",url:"/services/web-design"},{title:"Branding",url:"/services/branding"},{title:"Digital Marketing",url:"/services/marketing"},{title:"Photography",url:"/services/photography"}]},{sectionTitle:"Portfolio",links:[{title:"Recent Work",url:"/portfolio"},{title:"Case Studies",url:"/case-studies"},{title:"Client Reviews",url:"/reviews"}]},{sectionTitle:"Connect",links:[{title:"Contact Us",url:"/contact"},{title:"Get Quote",url:"/quote"},{title:"Newsletter",url:"/newsletter"}]}]}},{description:"SaaS platform footer with comprehensive links",type:"footer",props:{variants:["logo-left","multiple-rows"],backgroundColor:"#0f172a",logo:{src:"https://via.placeholder.com/160x50.png?text=SaaS+Platform",alt:"SaaS platform logo"},linksSections:[{sectionTitle:"Platform",links:[{title:"Dashboard",url:"/dashboard",column:1},{title:"Analytics",url:"/analytics",column:1},{title:"Integrations",url:"/integrations",column:1},{title:"API",url:"/api",column:1}]},{sectionTitle:"Solutions",links:[{title:"For Startups",url:"/solutions/startups",column:2},{title:"For Enterprise",url:"/solutions/enterprise",column:2},{title:"For Agencies",url:"/solutions/agencies",column:2},{title:"For Developers",url:"/solutions/developers",column:2}]},{sectionTitle:"Resources",links:[{title:"Blog",url:"/blog",column:1},{title:"Documentation",url:"/docs",column:1},{title:"Help Center",url:"/help",column:1},{title:"Community",url:"/community",column:1}]},{sectionTitle:"Company",links:[{title:"About Us",url:"/about",column:2},{title:"Careers",url:"/careers",column:2},{title:"Press",url:"/press",column:2},{title:"Legal",url:"/legal",column:2}]}]}},{description:"Non-profit footer with mission-focused links",type:"footer",props:{variants:["logo-center"],backgroundColor:"#059669",logo:{src:"https://via.placeholder.com/140x50.png?text=Non+Profit",alt:"Non-profit organization logo"},linksSections:[{sectionTitle:"Our Work",links:[{title:"Programs",url:"/programs"},{title:"Impact",url:"/impact"},{title:"Success Stories",url:"/stories"},{title:"Research",url:"/research"}]},{sectionTitle:"Get Involved",links:[{title:"Donate",url:"/donate"},{title:"Volunteer",url:"/volunteer"},{title:"Events",url:"/events"},{title:"Partner with Us",url:"/partnerships"}]},{sectionTitle:"About",links:[{title:"Our Mission",url:"/mission"},{title:"Leadership",url:"/leadership"},{title:"Annual Reports",url:"/reports"},{title:"Contact",url:"/contact"}]}]}},{description:"Tech blog footer with right-aligned logo",type:"footer",props:{variants:["logo-right"],backgroundColor:"#111827",logo:{src:"https://via.placeholder.com/120x40.png?text=Tech+Blog",alt:"Tech blog logo"},linksSections:[{sectionTitle:"Categories",links:[{title:"Web Development",url:"/category/web-dev"},{title:"AI & ML",url:"/category/ai-ml"},{title:"DevOps",url:"/category/devops"},{title:"Mobile",url:"/category/mobile"}]},{sectionTitle:"Popular",links:[{title:"Latest Posts",url:"/latest"},{title:"Trending",url:"/trending"},{title:"Best of 2024",url:"/best-2024"},{title:"Tutorials",url:"/tutorials"}]},{sectionTitle:"Community",links:[{title:"Newsletter",url:"/newsletter"},{title:"Discord",url:"/discord"},{title:"Contributors",url:"/contributors"},{title:"Write for Us",url:"/write"}]}]}},{description:"Restaurant footer with location and menu links",type:"footer",props:{variants:["logo-center"],backgroundColor:"#7c2d12",logo:{src:"https://via.placeholder.com/150x60.png?text=Restaurant",alt:"Restaurant logo"},linksSections:[{sectionTitle:"Menu",links:[{title:"Appetizers",url:"/menu/appetizers"},{title:"Main Courses",url:"/menu/mains"},{title:"Desserts",url:"/menu/desserts"},{title:"Beverages",url:"/menu/drinks"}]},{sectionTitle:"Services",links:[{title:"Reservations",url:"/reservations"},{title:"Catering",url:"/catering"},{title:"Private Events",url:"/events"},{title:"Gift Cards",url:"/gift-cards"}]},{sectionTitle:"Info",links:[{title:"About Us",url:"/about"},{title:"Location",url:"/location"},{title:"Hours",url:"/hours"},{title:"Contact",url:"/contact"}]}]}}];export{b as a,T as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a as o,d as t}from"./chunk-YJTGZQEV.js";import{a as p}from"./chunk-6OKXZL6R.js";import{b as i,d as e,e as n}from"./chunk-BJSO43AS.js";import{PiConfetti as r}from"react-icons/pi";var l=p({type:"icon",name:"Icon",kind:"brick",description:"An icon with optional text",repeatable:!0,icon:r,props:e({icon:i({title:"Icon",description:"Icon to display (iconify reference)",schema:o("Icon",void 0,{description:"Icon to display (iconify reference)","ui:field":"iconify"})}),size:i({title:"Size",description:"Size of the icon",schema:o("Size","1em",{description:"Size of the icon","ai:instructions":"The size of the icon can be set using 'em' or '%' unit."})}),link:n(t({title:"Link"}))})}),f=[{description:"Large heart icon",type:"icon",props:{icon:"mdi:heart",size:"2em"}},{description:"Shopping cart icon",type:"icon",props:{icon:"mdi:cart",size:"1.2em"}},{description:"Email/message icon",type:"icon",props:{icon:"mdi:email",size:"1.1em",link:"mailto:john.doe@example.com"}},{description:"Phone contact icon",type:"icon",props:{icon:"mdi:phone",size:"1em",link:"tel:+1234567890"}},{description:"Large download icon",type:"icon",props:{icon:"mdi:download",size:"2.5em",link:"https://example.com/file.zip"}},{description:"Menu hamburger icon",type:"icon",props:{icon:"mdi:menu",size:"1.4em"}},{description:"Close/X icon",type:"icon",props:{icon:"mdi:close",size:"1.2em"}},{description:"Social media Facebook icon",type:"icon",props:{icon:"mdi:facebook",size:"1.4em",link:"https://www.facebook.com/yourprofile"}},{description:"Social media Twitter icon",type:"icon",props:{icon:"mdi:twitter",size:"1.4em",link:"https://twitter.com/yourprofile"}},{description:"Social media Instagram icon",type:"icon",props:{icon:"mdi:instagram",size:"1.4em",link:"https://www.instagram.com/yourprofile"}}];export{l as a,f as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as o}from"./chunk-ALFOZHAH.js";import{a as c}from"./chunk-G7LX3UKQ.js";import{b as r}from"./chunk-G3JO5DM5.js";import{b as a}from"./chunk-7E67XSKP.js";import{b as l}from"./chunk-ZWYLKIBI.js";import{b as s}from"./chunk-HYVQXAK5.js";import{a as p}from"./chunk-XDCGA4WT.js";import{b as n}from"./chunk-ZMDHKAWL.js";import{Type as t}from"@sinclair/typebox";import{customAlphabet as h}from"nanoid";import{merge as u}from"lodash-es";var R=h("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),z=t.Object({left:t.Optional(t.String({title:"top",description:"The left position in css unit."})),top:t.Optional(t.String({title:"top",description:"The top position in css unit."})),right:t.Optional(t.String({title:"right",description:"The right position in css unit."})),bottom:t.Optional(t.String({title:"bottom",description:"The bottom position in css unit."})),inset:t.Optional(t.String({title:"inset",description:"The inset position in css unit."})),translateX:t.Optional(t.String({title:"translateX",description:"The translateX position in css unit."})),translateY:t.Optional(t.String({title:"translateY",description:"The translateY position in css unit."})),rotate:t.Optional(t.String({title:"rotate",description:"The rotate position in css unit."}))}),f=p(Object.keys(r),{title:"Brick type"}),g=t.Object({id:t.String({title:"ID",description:"A unique identifier for the brick."}),type:f,props:t.Any({title:"Props",description:"The props of the brick. The available props depends on the brick type."}),mobileProps:t.Optional(t.Object({},{additionalProperties:!0,description:"The props for mobile, merged with the default props"}))},{$id:"brick",additionalProperties:!0}),d=t.Object({layout:t.Optional(a({options:{disableGrid:!0},defaults:{gap:"gap-4",wrap:!0,fillSpace:!1,alignItems:"items-stretch",justifyContent:"justify-stretch"}})),background:t.Optional(s()),preset:t.Optional(n),border:t.Optional(l),minHeight:t.Optional(o({title:"Minimum height",default:"0px",description:"The min height of the section"})),maxWidth:t.Optional(c("Maximum 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 section. Desktop only",displayAs:"select"})),horizontalPadding:t.Optional(o({title:"Horizontal padding",default:"20px",description:"Horizontal padding. Desktop only"})),verticalPadding:t.Optional(o({title:"Vertical padding",default:"20px",description:"Vertical padding."})),lastTouched:t.Optional(t.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden"}))},{additionalProperties:!0,"ai:instructions":"Do not use the border prop"}),L=t.Object({id:t.String({description:"The unique ID of the section. Use a human readable url-safe slug"}),label:t.Optional(t.String({description:"The label (name) of the section. Used for editor purposes only."})),order:t.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:d,mobileProps:t.Optional(t.Partial(d,{additionalProperties:!1})),bricks:t.Array(g)},{$id:"section",description:"Sections are direct children of the page that are stacked vertically, but they always align their children horizontally (flex-row)."});function $(e){return e.map(i=>({...i,bricks:i.bricks.map(m)}))}function m(e){let i=r[e.type];return{...e,props:u({},i.props,{...e.props,...e.props.$children?{$children:e.props.$children.map(m)}:{}})}}export{R as a,f as b,g as c,d,L as e,$ as f,m as g};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as i}from"./chunk-BJSO43AS.js";import{a as n}from"./chunk-OYIL5SCU.js";import{Type as r}from"@sinclair/typebox";function u(t,e,a={}){return i({title:t,schema:r.String({default:e,...a})})}function d(t="URL",e){return i({title:t,schema:r.String({format:"uri","ui:field":"url",default:e})})}var o=r.String({"ui:field":"page-id"});function f(t="URL or Page ID",e){return i({title:t,schema:r.Union([r.String({format:"uri"}),o],{$id:"content:urlOrPageId",default:e,title:"URL or Page ID","ui:field":"url-page-id","ai:instructions":"This field can be a URL or a page ID. Use the page ID when linking to a internal page, and a URL for external links."})})}function s(t={}){return n("content:urlOrPageId",{...t})}export{u as a,d as b,f as c,s as d};
|