@upstart.gg/sdk 0.0.99 → 0.0.100
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/node/cli/commands/publish/parse-gitignore.d.ts.map +1 -1
- package/dist/shared/ajv.d.ts +0 -2
- 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.js +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +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.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 +3 -3
- 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.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/border.d.ts +6 -6
- package/dist/shared/bricks/props/border.js +1 -1
- package/dist/shared/bricks/props/container.js +1 -1
- package/dist/shared/bricks/props/effects.js +1 -1
- package/dist/shared/bricks/props/helpers.d.ts +1 -1
- package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.d.ts +1 -4
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +1 -1
- package/dist/shared/bricks.d.ts +33 -33
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/chunk-245ZLDVB.js +3 -0
- package/dist/shared/{chunk-C3U3EMYW.js → chunk-2D6ZEIDX.js} +1 -1
- package/dist/shared/{chunk-5SSQU3VZ.js → chunk-4BLCQRF5.js} +1 -1
- package/dist/shared/{chunk-URNBJWDN.js → chunk-5MGYT6FI.js} +1 -1
- package/dist/shared/{chunk-2AJYHJFG.js → chunk-ATVHWZSA.js} +1 -1
- package/dist/shared/{chunk-H6OG7OSG.js → chunk-CS5N4UQU.js} +1 -1
- package/dist/shared/{chunk-NUYYQ3JH.js → chunk-CUCUHPQ7.js} +1 -1
- package/dist/shared/{chunk-WAAKB6OB.js → chunk-F63ANNAK.js} +1 -1
- package/dist/shared/{chunk-O24ODVIU.js → chunk-FRWB3BF3.js} +1 -1
- package/dist/shared/{chunk-NRZCKO72.js → chunk-HYXCHFS5.js} +1 -1
- package/dist/shared/{chunk-UMM353HT.js → chunk-IKSRCRZZ.js} +1 -1
- package/dist/shared/{chunk-MT3RY7IH.js → chunk-ISF6EBPX.js} +1 -1
- package/dist/shared/chunk-JDBVMPSI.js +3 -0
- package/dist/shared/{chunk-OXN26QKE.js → chunk-M3Z3XDUC.js} +1 -1
- package/dist/shared/{chunk-T5NMTWQA.js → chunk-MWP5IU33.js} +1 -1
- package/dist/shared/{chunk-Z5MZDCKB.js → chunk-NCSLTHKN.js} +1 -1
- package/dist/shared/chunk-OD2PRCLH.js +3 -0
- package/dist/shared/{chunk-BQ5JAQ2K.js → chunk-OWON727Q.js} +1 -1
- package/dist/shared/{chunk-MNSCJBRC.js → chunk-P5RC56CL.js} +1 -1
- package/dist/shared/{chunk-DFSQR6QC.js → chunk-PK6UAFPW.js} +1 -1
- package/dist/shared/{chunk-XO7VLVOB.js → chunk-QI3BZDXL.js} +1 -1
- package/dist/shared/{chunk-T2OZONYR.js → chunk-RDSK2G6V.js} +1 -1
- package/dist/shared/{chunk-ZPKOMXCX.js → chunk-RXRPFXDF.js} +1 -1
- package/dist/shared/{chunk-QXIZOPDX.js → chunk-VFGMOA4M.js} +1 -1
- package/dist/shared/{chunk-KLNXIBFA.js → chunk-VPD626ML.js} +1 -1
- package/dist/shared/{chunk-T5PGA3H3.js → chunk-VROOAFFW.js} +1 -1
- package/dist/shared/{chunk-FRGTJHVS.js → chunk-WB4PGCZQ.js} +1 -1
- package/dist/shared/{chunk-LKVQQQTI.js → chunk-WEQRYCPD.js} +1 -1
- package/dist/shared/{chunk-FEI3PT7G.js → chunk-X2RJL33B.js} +1 -1
- package/dist/shared/{chunk-4VVETQA6.js → chunk-X4ZBUWUL.js} +1 -1
- package/dist/shared/chunk-YJTGZQEV.js +3 -0
- package/dist/shared/{chunk-3XCKZ4JQ.js → chunk-ZNVRYEO7.js} +1 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.d.ts +1 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/utils.d.ts.map +1 -1
- package/dist/shared/images.js +1 -1
- package/dist/shared/oauth.d.ts.map +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 +6 -6
- package/dist/shared/site.js +1 -1
- package/dist/shared/sitemap.js +1 -1
- package/dist/shared/theme.js +1 -1
- package/dist/shared/utils/schema.d.ts +2 -1
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +1 -1
- package/package.json +3 -3
- package/src/shared/ajv.ts +0 -6
- package/src/shared/attributes.ts +3 -2
- package/src/shared/brick-manifest.ts +1 -1
- package/src/shared/bricks/props/string.ts +1 -5
- package/src/shared/datasources/external/facebook/posts/fetcher.ts +0 -1
- package/src/shared/datasources/external/instagram/feed/fetcher.ts +1 -10
- package/src/shared/datasources/external/instagram/feed/tests/fetcher.test.ts +0 -18
- package/src/shared/datasources/external/mastodon/account/fetcher.ts +1 -9
- package/src/shared/datasources/external/mastodon/account/tests/fetcher.test.ts +0 -18
- package/src/shared/datasources/external/mastodon/status/fetcher.ts +0 -1
- package/src/shared/datasources/external/rss/fetcher.ts +5 -5
- package/src/shared/datasources/external/threads/media/fetcher.ts +0 -9
- package/src/shared/datasources/external/tiktok/video/fetcher.ts +0 -1
- package/src/shared/datasources/external/youtube/list/fetcher.ts +1 -2
- package/src/shared/utils/schema.ts +6 -1
- package/dist/shared/chunk-74EL657O.js +0 -3
- package/dist/shared/chunk-AJDYOLKP.js +0 -3
- package/dist/shared/chunk-F2NL2BBM.js +0 -3
- package/dist/shared/chunk-M52N2CTG.js +0 -3
- package/dist/shared/chunk-SIUWBV6O.js +0 -3
|
@@ -61,22 +61,4 @@ describe("fetchInstagramFeedDatasource", () => {
|
|
|
61
61
|
} as any),
|
|
62
62
|
).rejects.toThrow(UnauthorizedError);
|
|
63
63
|
});
|
|
64
|
-
|
|
65
|
-
it("should throw error on invalid response data", async () => {
|
|
66
|
-
const invalidResponse = { invalid: "data" };
|
|
67
|
-
|
|
68
|
-
(global.fetch as any).mockResolvedValueOnce({
|
|
69
|
-
ok: true,
|
|
70
|
-
json: () => Promise.resolve(invalidResponse),
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
await expect(
|
|
74
|
-
fetchInstagramFeedDatasource({
|
|
75
|
-
options: { limit: "10" },
|
|
76
|
-
oauth: { config: { accessToken: "test-token" } },
|
|
77
|
-
env: {},
|
|
78
|
-
pageConfig: {},
|
|
79
|
-
} as any),
|
|
80
|
-
).rejects.toThrow();
|
|
81
|
-
});
|
|
82
64
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MastodonAccountSchema } from "./schema";
|
|
2
2
|
import type { MastodonCommonOptions } from "../options";
|
|
3
|
-
import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
4
3
|
import type { DatasourceFetcher } from "~/shared/datasources/fetcher";
|
|
5
4
|
|
|
6
5
|
const fetchMastodonAccount: DatasourceFetcher<MastodonAccountSchema, null, MastodonCommonOptions> = async ({
|
|
@@ -18,13 +17,6 @@ const fetchMastodonAccount: DatasourceFetcher<MastodonAccountSchema, null, Masto
|
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
const account = (await response.json()) as MastodonAccountSchema;
|
|
21
|
-
const isValid = ajv.validate<MastodonAccountSchema>(mastodonAccountSchema, account);
|
|
22
|
-
|
|
23
|
-
if (!isValid) {
|
|
24
|
-
throw new Error(
|
|
25
|
-
`fetchMastodonAccount Error: Invalid Mastodon account response data: ${serializeAjvErrors(ajv.errors)}`,
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
20
|
|
|
29
21
|
return account;
|
|
30
22
|
};
|
|
@@ -44,22 +44,4 @@ describe("fetchMastodonAccount", () => {
|
|
|
44
44
|
} as any),
|
|
45
45
|
).rejects.toThrow("fetchMastodonAccount Error: Response status: 404");
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
it("should throw error on invalid response data", async () => {
|
|
49
|
-
const invalidResponse = { invalid: "data" };
|
|
50
|
-
|
|
51
|
-
(global.fetch as any).mockResolvedValueOnce({
|
|
52
|
-
ok: true,
|
|
53
|
-
json: () => Promise.resolve(invalidResponse),
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
await expect(
|
|
57
|
-
fetchMastodonAccount({
|
|
58
|
-
options: { username: "testuser" },
|
|
59
|
-
env: {},
|
|
60
|
-
pageConfig: {},
|
|
61
|
-
oauth: null,
|
|
62
|
-
} as any),
|
|
63
|
-
).rejects.toThrow();
|
|
64
|
-
});
|
|
65
47
|
});
|
|
@@ -2,7 +2,6 @@ import { type MastodonStatusArraySchema, mastodonStatusArraySchema } from "./sch
|
|
|
2
2
|
import fetchMastodonAccount from "../account/fetcher";
|
|
3
3
|
import { UnauthorizedError } from "~/shared/errors";
|
|
4
4
|
import type { MastodonCommonOptions } from "../options";
|
|
5
|
-
import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
6
5
|
import type { DatasourceFetcher } from "~/shared/datasources/fetcher";
|
|
7
6
|
|
|
8
7
|
const fetchMastodonStatus: DatasourceFetcher<
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RssOptions } from "./options";
|
|
2
2
|
import { parseFeed } from "htmlparser2";
|
|
3
3
|
import { type RssSchema, rssSchema } from "./schema";
|
|
4
|
-
import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
4
|
+
// import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
5
5
|
import type { DatasourceFetcher } from "../../fetcher";
|
|
6
6
|
import { createPlaceholderReplacer, placeholderRx } from "../../utils";
|
|
7
7
|
|
|
@@ -17,11 +17,11 @@ const fetchRss: DatasourceFetcher<RssSchema, null, RssOptions> = async ({ option
|
|
|
17
17
|
pubDate: item.pubDate ? item.pubDate.toISOString() : new Date().toISOString(),
|
|
18
18
|
})) ?? [];
|
|
19
19
|
|
|
20
|
-
const isValid = ajv.validate<RssSchema>(rssSchema, newFeed);
|
|
20
|
+
// const isValid = ajv.validate<RssSchema>(rssSchema, newFeed);
|
|
21
21
|
|
|
22
|
-
if (!isValid) {
|
|
23
|
-
|
|
24
|
-
}
|
|
22
|
+
// if (!isValid) {
|
|
23
|
+
// throw new Error(`fetchRss Error: Invalid Feed data (${url}): ${serializeAjvErrors(ajv.errors)}`);
|
|
24
|
+
// }
|
|
25
25
|
|
|
26
26
|
return newFeed;
|
|
27
27
|
};
|
|
@@ -4,7 +4,6 @@ import invariant from "~/shared/utils/invariant";
|
|
|
4
4
|
import { UnauthorizedError } from "~/shared/errors";
|
|
5
5
|
import type { MetaOptions } from "~/shared/datasources/external/meta/options";
|
|
6
6
|
import { stringifyObjectValues } from "~/shared/datasources/utils";
|
|
7
|
-
import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
8
7
|
import type { DatasourceFetcher } from "~/shared/datasources/fetcher";
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -48,14 +47,6 @@ const fetchThreadsMediaDatasource: DatasourceFetcher<
|
|
|
48
47
|
|
|
49
48
|
const media = (await response.json()) as ThreadsMediaSchema;
|
|
50
49
|
|
|
51
|
-
const isValid = ajv.validate<ThreadsMediaSchema>(threadsMediaSchema, media);
|
|
52
|
-
|
|
53
|
-
if (!isValid) {
|
|
54
|
-
throw new Error(
|
|
55
|
-
`fetchThreadsMediaDatasource Error: Invalid Threads response data: ${serializeAjvErrors(ajv.errors)}`,
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
50
|
return media;
|
|
60
51
|
};
|
|
61
52
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { TiktokVideoOptions } from "./options";
|
|
2
2
|
import { type TiktokVideoListSchema, tiktokVideoListSchema } from "./schema";
|
|
3
3
|
import { UnauthorizedError } from "~/shared/errors";
|
|
4
|
-
import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
5
4
|
import type { TiktokFullOAuthConfig } from "../oauth/config";
|
|
6
5
|
import type { DatasourceFetcher } from "~/shared/datasources/fetcher";
|
|
7
6
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { YoutubeListOptions } from "./options";
|
|
2
|
-
import {
|
|
2
|
+
import type { YoutubeListSchema } from "./schema";
|
|
3
3
|
import { UnauthorizedError } from "~/shared/errors";
|
|
4
4
|
import { stringifyObjectValues } from "~/shared/datasources/utils";
|
|
5
|
-
import { ajv, serializeAjvErrors } from "~/shared/ajv";
|
|
6
5
|
import type { YoutubeFullOAuthConfig } from "../oauth/config";
|
|
7
6
|
import type { DatasourceFetcher } from "~/shared/datasources/fetcher";
|
|
8
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { JSONSchemaType } from "ajv";
|
|
2
|
-
import { type Static, Type, type TObject, type UnsafeOptions } from "@sinclair/typebox";
|
|
2
|
+
import { type Static, Type, type TSchema, type TObject, type UnsafeOptions } from "@sinclair/typebox";
|
|
3
|
+
import { jsonDefault } from "json-schema-default";
|
|
3
4
|
|
|
4
5
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
5
6
|
export function typeboxSchemaToJSONSchema<T extends Record<string, any>>(schema: TObject): JSONSchemaType<T> {
|
|
@@ -28,3 +29,7 @@ export function getLitteralFromEnum(schema: ReturnType<typeof StringEnum>) {
|
|
|
28
29
|
title: enumNames ? enumNames[index] : value,
|
|
29
30
|
}));
|
|
30
31
|
}
|
|
32
|
+
|
|
33
|
+
export function getSchemaDefaults<T extends TSchema>(schema: T) {
|
|
34
|
+
return jsonDefault(schema) as Static<T>;
|
|
35
|
+
}
|
|
@@ -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 e}from"@sinclair/typebox";function d(t,r,a={}){return i({title:t,schema:e.String({default:r,...a})})}function l(t="URL",r){return i({title:t,schema:e.String({format:"uri","ui:field":"url",default:r})})}var o=e.String({"ui:field":"page-id"});function s(t="URL or Page ID",r){return i({title:t,schema:e.Union([e.String({format:"uri"}),o],{$id:"content:urlOrPageId",default:r,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 f(t={}){return n("content:urlOrPageId",{...t})}export{d as a,l as b,s as c,f as d};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{Type as i}from"@sinclair/typebox";function s(n){return JSON.parse(JSON.stringify(n))}var p=(n,e={})=>i.Unsafe({type:"string",enum:n,...e});function u(n){if(!("enum"in n)||!("enumNames"in n))throw new Error("Schema does not contain enum or enumNames properties");let{enum:e,enumNames:t}=n;return e.map((r,m)=>({const:r,title:t?t[m]:r}))}export{s as a,p as b,u 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 f}from"./chunk-VBWC36L2.js";import{a as c}from"./chunk-VTFWVTPI.js";import{a as d}from"./chunk-P5DZK4TS.js";import{c as y}from"./chunk-74EL657O.js";import{a as n}from"./chunk-WAAKB6OB.js";import{a as h}from"./chunk-ALFOZHAH.js";import{a as p}from"./chunk-DFSQR6QC.js";import{a as i}from"./chunk-YZ5Y4WE6.js";import{a as o,c as s}from"./chunk-HYVQXAK5.js";import{a as m}from"./chunk-LKVQQQTI.js";import{a as l}from"./chunk-CAVNF3BU.js";import{a as r}from"./chunk-VA5LFJVE.js";import{a}from"./chunk-ZMDHKAWL.js";import O from"ajv";import F from"ajv-formats";import{jsonDefault as k}from"json-schema-default";var e=new O({useDefaults:!0,strictSchema:!1,validateSchema:!1,coerceTypes:!0,allErrors:!0,inlineRefs:!1});e.addSchema(a(),"styles:preset");e.addSchema(o(),"styles:background");e.addSchema(s(),"styles:backgroundColor");e.addSchema(i(),"styles:basicAlign");e.addSchema(n(),"styles:containerLayout");e.addSchema(r(),"styles:hidden");e.addSchema(m(),"styles:border");e.addSchema(d(),"styles:padding");e.addSchema(l(),"styles:color");e.addSchema(p(),"styles:shadow");e.addSchema(h(),"styles:cssLength");e.addSchema(c(),"assets:image");e.addSchema(f(),"content:textContent");e.addSchema(y(),"content:urlOrPageId");var w=["date-time","time","date","email","hostname","ipv4","ipv6","uri","uri-reference","uuid","uri-template","json-pointer","relative-json-pointer","regex"];F(e,[...w]);e.addFormat("date-object",{validate:t=>t instanceof Date&&!Number.isNaN(t.getTime()),async:!1});e.addFormat("richtext",{validate:t=>typeof t=="string",async:!1});e.addFormat("markdown",{validate:t=>typeof t=="string",async:!1});e.addFormat("multiline",{validate:t=>typeof t=="string",async:!1});e.addFormat("password",{validate:t=>typeof t=="string",async:!1});function H(t){return!t||t.length===0?"Unknown validation error":t.map(u=>{let{instancePath:g,message:S,params:j}=u,b=g||"root",v=Object.entries(j||{}).map(([T,x])=>`${T}: ${x}`).join(", ");return`${b} ${S} (${v})`}).join("; ")}function K(t){return k(t)}export{e as a,w as b,H as c,K as d};
|
|
@@ -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-T5NMTWQA.js";import{a as p,b as D}from"./chunk-O24ODVIU.js";import{a as s,b as B}from"./chunk-T5PGA3H3.js";import{b as n,c as j}from"./chunk-NRZCKO72.js";import{a as o,b as W}from"./chunk-QXIZOPDX.js";import{b as l,c as w}from"./chunk-FEI3PT7G.js";import{a as d,b as G}from"./chunk-MNSCJBRC.js";import{a as E,b as F}from"./chunk-C3U3EMYW.js";import{a as u,b as I}from"./chunk-MT3RY7IH.js";import{a as m,b as R}from"./chunk-UMM353HT.js";import{a as r,b as L}from"./chunk-FRGTJHVS.js";import{a as y,b as q}from"./chunk-5SSQU3VZ.js";import{b as i,c as h}from"./chunk-URNBJWDN.js";import{a as g,b as H}from"./chunk-ZPKOMXCX.js";import{a as x,b as z}from"./chunk-KLNXIBFA.js";import{a as f,b as P}from"./chunk-XO7VLVOB.js";import{a,b as v}from"./chunk-BQ5JAQ2K.js";import{a as M,b as C}from"./chunk-4VVETQA6.js";import{a as t,b}from"./chunk-T2OZONYR.js";import{a as c,b as A}from"./chunk-Z5MZDCKB.js";import{b as e}from"./chunk-NUYYQ3JH.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 l}from"./chunk-CTRS76PX.js";import{a as p}from"./chunk-G7LX3UKQ.js";import{a as n}from"./chunk-ATDJCXC2.js";import{d as u}from"./chunk-F2NL2BBM.js";import{a as i}from"./chunk-74EL657O.js";import{b as s}from"./chunk-HYVQXAK5.js";import{e}from"./chunk-BJSO43AS.js";import{Type as t}from"@sinclair/typebox";function S(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 x(a){return t.Composite([a,o])}var g={$pageLanguage:p("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(n("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(l("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}),k=t.Pick(o,["$bodyBackground","$pageBackground"]),w=t.Pick(o,["$pageTitle","$pageDescription","$pageKeywords","$pageLanguage","$pagePath","$bodyBackground","$pageBackground"]);function T(a=t.Object({}),r={}){return{...u(o),...r}}export{S as a,x as b,o as c,k as d,w as e,T as f};
|