@pipelex/mthds-form 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- // src/brand/manifest.ts
4
- var httpUrl = z.url({ protocol: /^https?$/ });
5
- var brandManifestSchema = z.strictObject({
6
- name: z.string().min(1),
7
- website: httpUrl,
8
- logo: z.strictObject({
9
- /** The mark drawn on the light canvas: usually the dark version of the logo. */
10
- onLight: httpUrl,
11
- /** The mark drawn on the dark canvas: usually the light version of the logo. */
12
- onDark: httpUrl
13
- }),
14
- webfont: z.strictObject({
15
- provider: z.literal("google-fonts"),
16
- family: z.string().min(1)
17
- }).nullable()
18
- });
19
-
20
- export { brandManifestSchema, httpUrl };
21
- //# sourceMappingURL=chunk-QFX332LE.js.map
22
- //# sourceMappingURL=chunk-QFX332LE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/brand/manifest.ts"],"names":[],"mappings":";;;AAmBO,IAAM,UAAU,CAAA,CAAE,GAAA,CAAI,EAAE,QAAA,EAAU,YAAY;AAE9C,IAAM,mBAAA,GAAsB,EAAE,YAAA,CAAa;AAAA,EAChD,IAAA,EAAM,CAAA,CAAE,MAAA,EAAO,CAAE,IAAI,CAAC,CAAA;AAAA,EACtB,OAAA,EAAS,OAAA;AAAA,EACT,IAAA,EAAM,EAAE,YAAA,CAAa;AAAA;AAAA,IAEnB,OAAA,EAAS,OAAA;AAAA;AAAA,IAET,MAAA,EAAQ;AAAA,GACT,CAAA;AAAA,EACD,OAAA,EAAS,EACN,YAAA,CAAa;AAAA,IACZ,QAAA,EAAU,CAAA,CAAE,OAAA,CAAQ,cAAc,CAAA;AAAA,IAClC,MAAA,EAAQ,CAAA,CAAE,MAAA,EAAO,CAAE,IAAI,CAAC;AAAA,GACzB,EACA,QAAA;AACL,CAAC","file":"chunk-QFX332LE.js","sourcesContent":["import { z } from 'zod';\n\n/**\n * The brand manifest, `brand.json`: what a page needs from a brand that is not\n * a token - its name, its site, the logo pair, the web font to load. The tokens\n * are the palette; the manifest is what the page says it is. The generative\n * layer's app bar reads it through `BrandProvider`, which also loads the web\n * font, and `assembleBrand` validates it beside the tokens.\n */\n\n/**\n * Every URL in a manifest is http(s) and nothing else.\n *\n * A bare `z.url()` accepts any scheme - `javascript:`, `data:`, `file:` - and\n * the two logo URLs are handed straight to an `<img src>` in the app bar. A\n * manifest is produced content with the same provenance as a layout, so the\n * scheme is checked where the manifest is parsed rather than trusted at the\n * point it reaches the DOM.\n */\nexport const httpUrl = z.url({ protocol: /^https?$/ });\n\nexport const brandManifestSchema = z.strictObject({\n name: z.string().min(1),\n website: httpUrl,\n logo: z.strictObject({\n /** The mark drawn on the light canvas: usually the dark version of the logo. */\n onLight: httpUrl,\n /** The mark drawn on the dark canvas: usually the light version of the logo. */\n onDark: httpUrl,\n }),\n webfont: z\n .strictObject({\n provider: z.literal('google-fonts'),\n family: z.string().min(1),\n })\n .nullable(),\n});\n\nexport type BrandManifest = z.infer<typeof brandManifestSchema>;\n"]}
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const brandManifestSchema: z.ZodObject<{
4
- name: z.ZodString;
5
- website: z.ZodURL;
6
- logo: z.ZodObject<{
7
- onLight: z.ZodURL;
8
- onDark: z.ZodURL;
9
- }, z.core.$strict>;
10
- webfont: z.ZodNullable<z.ZodObject<{
11
- provider: z.ZodLiteral<"google-fonts">;
12
- family: z.ZodString;
13
- }, z.core.$strict>>;
14
- }, z.core.$strict>;
15
- type BrandManifest = z.infer<typeof brandManifestSchema>;
16
-
17
- export { type BrandManifest as B, brandManifestSchema as b };