@gradial/aci 0.1.20-preview.2 → 0.1.20
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/README.md +48 -110
- package/bin/{aci → aci-darwin-arm64} +0 -0
- package/bin/aci.js +99 -6
- package/dist/assets/index.d.ts +3 -3
- package/dist/assets/index.js +3 -3
- package/dist/astro/index.d.ts +14 -3
- package/dist/astro/index.js +24 -5
- package/dist/content/assets.d.ts +17 -0
- package/dist/content/assets.js +65 -0
- package/dist/content/index.d.ts +2 -0
- package/dist/content/index.js +2 -0
- package/dist/content/provider.d.ts +19 -0
- package/dist/content/provider.js +7 -0
- package/dist/content/resolve-slots.d.ts +9 -0
- package/dist/content/resolve-slots.js +24 -0
- package/dist/content/types.d.ts +1 -1
- package/dist/define-component.d.ts +1 -2
- package/dist/define-component.js +73 -11
- package/dist/define-layout.d.ts +2 -0
- package/dist/define-layout.js +3 -0
- package/dist/dev/content-watch.d.ts +37 -0
- package/dist/dev/content-watch.js +154 -0
- package/dist/dev/index.d.ts +24 -43
- package/dist/dev/index.js +4 -169
- package/dist/index.d.ts +14 -5
- package/dist/index.js +8 -8
- package/dist/next/asset-route.d.ts +2 -0
- package/dist/next/asset-route.js +12 -4
- package/dist/next/config.d.ts +2 -2
- package/dist/next/config.js +6 -6
- package/dist/next/content-watch.js +6 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +2 -2
- package/dist/next/middleware.d.ts +7 -3
- package/dist/next/middleware.js +12 -7
- package/dist/next/page.d.ts +16 -15
- package/dist/next/page.js +30 -10
- package/dist/next/render.d.ts +5 -0
- package/dist/next/render.js +17 -0
- package/dist/next/root-layout.d.ts +4 -0
- package/dist/next/root-layout.js +5 -0
- package/dist/next/server.d.ts +14 -13
- package/dist/next/server.js +13 -3
- package/dist/providers/file.d.ts +2 -0
- package/dist/providers/file.js +61 -1
- package/dist/providers/s3.d.ts +1 -0
- package/dist/providers/s3.js +14 -1
- package/dist/react/Media.d.ts +24 -0
- package/dist/react/Media.js +30 -0
- package/dist/react/Picture.d.ts +12 -0
- package/dist/react/Picture.js +11 -0
- package/dist/react/VideoPlayer.d.ts +13 -0
- package/dist/react/{GradialVideoPlayer.js → VideoPlayer.js} +6 -5
- package/dist/react/index.d.ts +333 -3
- package/dist/react/index.js +89 -3
- package/dist/registry.d.ts +15 -0
- package/dist/registry.js +10 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.js +15 -2
- package/dist/types/block-ref.d.ts +26 -0
- package/dist/types/block-ref.js +28 -0
- package/dist/types/component.d.ts +36 -41
- package/dist/types/config.d.ts +1 -2
- package/dist/types/image.d.ts +33 -20
- package/dist/types/image.js +42 -50
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/link.d.ts +38 -0
- package/dist/types/link.js +58 -0
- package/dist/types/media.d.ts +16 -35
- package/dist/types/media.js +15 -84
- package/dist/types/page.d.ts +1 -2
- package/dist/types/render-mode.d.ts +0 -1
- package/dist/types/renderer.d.ts +1 -1
- package/dist/types/rich-text.d.ts +40 -0
- package/dist/types/rich-text.js +39 -0
- package/dist/types/video.d.ts +7 -13
- package/dist/types/video.js +3 -3
- package/package.json +32 -74
- package/src/cli/compile-registry.mjs +236 -59
- package/src/cli/validate-content.mjs +38 -75
- package/src/types/image.ts +79 -60
- package/templates/astro/template/.aci.yaml +27 -0
- package/templates/astro/template/.storybook/main.ts +79 -0
- package/templates/astro/template/.storybook/manager.ts +6 -0
- package/templates/astro/template/.storybook/preview.ts +33 -0
- package/templates/astro/template/astro.config.mjs +37 -0
- package/templates/astro/template/package.json.tmpl +41 -0
- package/templates/astro/template/src/cms/contracts/layouts/index.ts +18 -0
- package/templates/astro/template/src/cms/registry.ts +28 -0
- package/templates/astro/template/src/components/chrome/Footer.astro +107 -0
- package/templates/astro/template/src/components/chrome/Header.astro +94 -0
- package/templates/astro/template/src/components/elements/AtomicBlock.astro +15 -0
- package/templates/astro/template/src/components/elements/AtomicBlocks.astro +16 -0
- package/templates/astro/template/src/components/elements/Button.astro +51 -0
- package/templates/astro/template/src/components/elements/ButtonBlock.astro +25 -0
- package/templates/astro/template/src/components/elements/Container.astro +11 -0
- package/templates/astro/template/src/components/elements/Icon.astro +31 -0
- package/templates/astro/template/src/components/elements/Logo.astro +29 -0
- package/templates/astro/template/src/components/elements/RemoteImage.astro +41 -0
- package/templates/astro/template/src/components/sections/ContainerSection.astro +32 -0
- package/templates/astro/template/src/components/sections/FeatureCard.astro +23 -0
- package/templates/astro/template/src/components/sections/FeatureGrid.astro +35 -0
- package/templates/astro/template/src/components/sections/HomeHero.astro +51 -0
- package/templates/astro/template/src/components/sections/StatsBar.astro +33 -0
- package/templates/astro/template/src/design-system/styles.css +399 -0
- package/templates/astro/template/src/design-system/tokens/colors.css +60 -0
- package/templates/astro/template/src/design-system/tokens/components.css +69 -0
- package/templates/astro/template/src/design-system/tokens/index.css +6 -0
- package/templates/astro/template/src/design-system/tokens/radii.css +5 -0
- package/templates/astro/template/src/design-system/tokens/shadows.css +5 -0
- package/templates/astro/template/src/design-system/tokens/spacing.css +13 -0
- package/templates/astro/template/src/design-system/tokens/typography.css +24 -0
- package/templates/astro/template/src/env.d.ts +1 -0
- package/templates/astro/template/src/fixtures/atomicBlocks.ts +33 -0
- package/templates/astro/template/src/fixtures/composition.ts +31 -0
- package/templates/astro/template/src/fixtures/index.ts +17 -0
- package/templates/astro/template/src/fixtures/sections.ts +39 -0
- package/templates/astro/template/src/layouts/SiteLayout.astro +30 -0
- package/templates/astro/template/src/pages/[...slug].astro +61 -0
- package/templates/astro/template/src/render/RenderPage.astro +66 -0
- package/templates/astro/template/src/stories/CompositionStoryFrame.astro +15 -0
- package/templates/astro/template/src/stories/HomeHero.stories.ts +24 -0
- package/templates/astro/template/src/stories/SectionStoryFrame.astro +16 -0
- package/templates/astro/template/src/stories/StoryDocFrame.astro +31 -0
- package/templates/astro/template/tsconfig.json +11 -0
- package/templates/common/.agents/AGENTS.md +37 -0
- package/templates/common/.agents/skills/aci/SKILL.md +162 -0
- package/templates/common/.agents/skills/authoring/SKILL.md +590 -0
- package/templates/common/.agents/skills/authoring/references/block-registry.md +151 -0
- package/templates/common/.agents/skills/authoring/references/contracts.md +153 -0
- package/templates/common/.agents/skills/authoring/references/design-system.md +171 -0
- package/templates/common/.agents/skills/authoring/references/image-assets.md +73 -0
- package/templates/common/.agents/skills/authoring/references/repo-structure.md +157 -0
- package/templates/common/.agents/skills/migration/SKILL.md +160 -0
- package/templates/common/.agents/skills/migration/references/analyzing-source.md +215 -0
- package/templates/common/.agents/skills/migration/references/component-migration.md +200 -0
- package/templates/common/.agents/skills/migration/references/selector-map.md +31 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/7f/bf/7fbfc7fe230ff12688c496f660119e41d9725c4504d82e310c15665c73c09292 +0 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/a0/f5/a0f506689de9b15a7055f70103a3f02cd3ba105771ae2de6754df2ede1210d3a +0 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/dd/b7/ddb7e9642be08317bcd4b2bd26b58ba8d0d34dd7239e03e684a4f3634fa3845b +0 -0
- package/templates/common/.content/.gradial-dam/blobs/sha256/fb/32/fb3260e8286ea8231ea1c77b9c0be92d6edd9026565731eb14cfdcfd6b1b75b3 +0 -0
- package/templates/common/.content/config/site.json +192 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/asset.json +9 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/editorial.json +14 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/governance.json +23 -0
- package/templates/common/.content/dam/folders/seed/ast_site_about_hero/versions/v0001.json +37 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/asset.json +9 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/editorial.json +14 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/governance.json +23 -0
- package/templates/common/.content/dam/folders/seed/ast_site_home_hero/versions/v0001.json +37 -0
- package/templates/common/.content/fragments/navbar/_index.json +25 -0
- package/templates/common/.content/fragments/site-footer/_index.json +62 -0
- package/templates/common/.content/pages/about/_index.json +51 -0
- package/templates/common/.content/pages/home/_index.json +112 -0
- package/templates/common/.content/schemas/site.schema.json +123 -0
- package/templates/common/README.md.tmpl +45 -0
- package/templates/common/contracts/components/button.contract.ts +19 -0
- package/templates/common/contracts/components/container.contract.ts +19 -0
- package/templates/common/contracts/components/featureCard.contract.ts +15 -0
- package/templates/common/contracts/components/featureGrid.contract.ts +16 -0
- package/templates/common/contracts/components/homeHero.contract.ts +36 -0
- package/templates/common/contracts/components/index.ts +21 -0
- package/templates/common/contracts/components/siteFooter.contract.ts +45 -0
- package/templates/common/contracts/components/siteNavigation.contract.ts +30 -0
- package/templates/common/contracts/components/statsBar.contract.ts +19 -0
- package/templates/common/design-system/styles.css +346 -0
- package/templates/common/design-system/tokens/colors.css +110 -0
- package/templates/common/design-system/tokens/components.css +86 -0
- package/templates/common/design-system/tokens/index.css +6 -0
- package/templates/common/design-system/tokens/radii.css +5 -0
- package/templates/common/design-system/tokens/shadows.css +9 -0
- package/templates/common/design-system/tokens/spacing.css +26 -0
- package/templates/common/design-system/tokens/typography.css +32 -0
- package/templates/common/eslint-rules/no-raw-tailwind-values.js +127 -0
- package/templates/common/public/assets/Dwire-model.png +0 -0
- package/templates/common/public/assets/bare-metal-logo.png +0 -0
- package/templates/common/public/assets/meridian-logo.svg +8 -0
- package/templates/common/public/assets/seattle.avif +0 -0
- package/templates/nextjs/template/.aci.yaml +25 -0
- package/templates/nextjs/template/.storybook/main.ts +13 -0
- package/templates/nextjs/template/.storybook/preview.ts +34 -0
- package/templates/nextjs/template/eslint.config.mjs +36 -0
- package/templates/nextjs/template/next-env.d.ts +6 -0
- package/templates/nextjs/template/next.config.ts +8 -0
- package/templates/nextjs/template/package.json.tmpl +46 -0
- package/templates/nextjs/template/postcss.config.mjs +7 -0
- package/templates/nextjs/template/src/app/[[...slug]]/page.tsx +8 -0
- package/templates/nextjs/template/src/app/gradial/assets/[releaseId]/[...path]/route.ts +31 -0
- package/templates/nextjs/template/src/app/layout.tsx +29 -0
- package/templates/nextjs/template/src/cms/contracts/components/button.contract.ts +19 -0
- package/templates/nextjs/template/src/cms/contracts/components/container.contract.ts +20 -0
- package/templates/nextjs/template/src/cms/contracts/components/homeHero.contract.ts +36 -0
- package/templates/nextjs/template/src/cms/contracts/components/index.ts +15 -0
- package/templates/nextjs/template/src/cms/contracts/components/siteFooter.contract.ts +45 -0
- package/templates/nextjs/template/src/cms/contracts/components/siteNavigation.contract.ts +30 -0
- package/templates/nextjs/template/src/cms/contracts/layouts/index.ts +16 -0
- package/templates/nextjs/template/src/cms/registry.ts +28 -0
- package/templates/nextjs/template/src/components/chrome/Footer.tsx +86 -0
- package/templates/nextjs/template/src/components/chrome/Header.tsx +74 -0
- package/templates/nextjs/template/src/components/elements/AtomicBlock.tsx +13 -0
- package/templates/nextjs/template/src/components/elements/Button.tsx +40 -0
- package/templates/nextjs/template/src/components/elements/ButtonBlock.tsx +18 -0
- package/templates/nextjs/template/src/components/elements/Container.tsx +14 -0
- package/templates/nextjs/template/src/components/elements/Icon.tsx +29 -0
- package/templates/nextjs/template/src/components/elements/Logo.tsx +38 -0
- package/templates/nextjs/template/src/components/sections/ContainerSection.tsx +28 -0
- package/templates/nextjs/template/src/components/sections/FeatureCard.tsx +25 -0
- package/templates/nextjs/template/src/components/sections/FeatureGrid.tsx +36 -0
- package/templates/nextjs/template/src/components/sections/HomeHero.tsx +62 -0
- package/templates/nextjs/template/src/components/sections/StatsBar.tsx +30 -0
- package/templates/nextjs/template/src/middleware.ts +4 -0
- package/templates/nextjs/template/src/stories/Button.stories.tsx +38 -0
- package/templates/nextjs/template/src/stories/Header.stories.tsx +30 -0
- package/templates/nextjs/template/src/stories/HomeHero.stories.tsx +33 -0
- package/templates/nextjs/template/tsconfig.json +23 -0
- package/templates/nextjs/template/vercel.json +6 -0
- package/dist/content/cache.test.d.ts +0 -1
- package/dist/content/cache.test.js +0 -86
- package/dist/content/contract.d.ts +0 -83
- package/dist/content/contract.js +0 -104
- package/dist/content/tailwind-validator.d.ts +0 -6
- package/dist/content/tailwind-validator.js +0 -31
- package/dist/content/validation.d.ts +0 -108
- package/dist/content/validation.js +0 -184
- package/dist/next/preview-banner.d.ts +0 -4
- package/dist/next/preview-banner.js +0 -51
- package/dist/next/preview.d.ts +0 -7
- package/dist/next/preview.js +0 -37
- package/dist/react/GradialMedia.d.ts +0 -24
- package/dist/react/GradialMedia.js +0 -31
- package/dist/react/GradialPicture.d.ts +0 -14
- package/dist/react/GradialPicture.js +0 -30
- package/dist/react/GradialVideoPlayer.d.ts +0 -13
- package/dist/sveltekit/index.d.ts +0 -23
- package/dist/sveltekit/index.js +0 -62
- package/dist/sveltekit/preview.d.ts +0 -5
- package/dist/sveltekit/preview.js +0 -33
- package/src/cli/verify-renderer.mjs +0 -73
- package/src/types/component.ts +0 -59
- package/src/types/config.ts +0 -38
- package/src/types/data.ts +0 -47
- package/src/types/index.ts +0 -10
- package/src/types/layout.ts +0 -29
- package/src/types/media.ts +0 -125
- package/src/types/page.ts +0 -48
- package/src/types/render-mode.ts +0 -18
- package/src/types/renderer.ts +0 -83
- package/src/types/video.ts +0 -66
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const InlineContentSchema = z.lazy(() => z.object({
|
|
3
|
+
type: z.literal('text'),
|
|
4
|
+
text: z.string(),
|
|
5
|
+
}).or(z.object({
|
|
6
|
+
type: z.literal('span'),
|
|
7
|
+
content: z.array(InlineContentSchema),
|
|
8
|
+
variant: z.string().optional(),
|
|
9
|
+
})).or(z.object({
|
|
10
|
+
type: z.literal('strong'),
|
|
11
|
+
content: z.array(InlineContentSchema),
|
|
12
|
+
})).or(z.object({
|
|
13
|
+
type: z.literal('em'),
|
|
14
|
+
content: z.array(InlineContentSchema),
|
|
15
|
+
})).or(z.object({
|
|
16
|
+
type: z.literal('link'),
|
|
17
|
+
href: z.string().min(1),
|
|
18
|
+
content: z.array(InlineContentSchema),
|
|
19
|
+
})));
|
|
20
|
+
export const HeadingSchema = z.object({
|
|
21
|
+
type: z.literal('heading'),
|
|
22
|
+
level: z.union([
|
|
23
|
+
z.literal(1),
|
|
24
|
+
z.literal(2),
|
|
25
|
+
z.literal(3),
|
|
26
|
+
z.literal(4),
|
|
27
|
+
z.literal(5),
|
|
28
|
+
z.literal(6),
|
|
29
|
+
]),
|
|
30
|
+
content: z.array(InlineContentSchema),
|
|
31
|
+
variant: z.string().optional(),
|
|
32
|
+
});
|
|
33
|
+
export const RichTextValueSchema = z.object({
|
|
34
|
+
format: z.literal('html'),
|
|
35
|
+
html: z.string(),
|
|
36
|
+
}).or(z.object({
|
|
37
|
+
format: z.literal('markdown'),
|
|
38
|
+
markdown: z.string(),
|
|
39
|
+
}));
|
package/dist/types/video.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Image } from './image.js';
|
|
3
3
|
export interface VideoSource {
|
|
4
4
|
src: string;
|
|
5
5
|
type: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface Video {
|
|
8
8
|
/** Discriminator — always 'gradial.video'. */
|
|
9
9
|
$type: 'gradial.video';
|
|
10
10
|
/** DAM asset identifier. */
|
|
@@ -22,10 +22,10 @@ export interface GradialVideo {
|
|
|
22
22
|
/** Intrinsic height in pixels. */
|
|
23
23
|
height: number;
|
|
24
24
|
/**
|
|
25
|
-
* Poster frame — a full
|
|
25
|
+
* Poster frame — a full Image with responsive srcset.
|
|
26
26
|
* The compiler extracts or generates this from the video asset.
|
|
27
27
|
*/
|
|
28
|
-
poster?:
|
|
28
|
+
poster?: Image;
|
|
29
29
|
/** Format variants (e.g. mp4 + webm). Maps to <video><source> elements. */
|
|
30
30
|
sources?: VideoSource[];
|
|
31
31
|
/** Duration in seconds (if known). */
|
|
@@ -35,7 +35,7 @@ export declare const VideoSourceSchema: z.ZodObject<{
|
|
|
35
35
|
src: z.ZodString;
|
|
36
36
|
type: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const VideoSchema: z.ZodObject<{
|
|
39
39
|
$type: z.ZodLiteral<"gradial.video">;
|
|
40
40
|
assetId: z.ZodString;
|
|
41
41
|
versionId: z.ZodString;
|
|
@@ -49,18 +49,12 @@ export declare const GradialVideoSchema: z.ZodObject<{
|
|
|
49
49
|
assetId: z.ZodString;
|
|
50
50
|
versionId: z.ZodString;
|
|
51
51
|
alt: z.ZodString;
|
|
52
|
-
|
|
52
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
53
53
|
src: z.ZodString;
|
|
54
54
|
width: z.ZodNumber;
|
|
55
55
|
height: z.ZodNumber;
|
|
56
56
|
type: z.ZodString;
|
|
57
|
-
}, z.core.$strip
|
|
58
|
-
sources: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
59
|
-
media: z.ZodOptional<z.ZodString>;
|
|
60
|
-
type: z.ZodString;
|
|
61
|
-
srcset: z.ZodString;
|
|
62
|
-
sizes: z.ZodOptional<z.ZodString>;
|
|
63
|
-
}, z.core.$strip>>>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
64
58
|
}, z.core.$strip>>;
|
|
65
59
|
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
60
|
src: z.ZodString;
|
package/dist/types/video.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { ImageSchema } from './image.js';
|
|
3
3
|
// ---------------------------------------------------------------------------
|
|
4
4
|
// Zod schema
|
|
5
5
|
// ---------------------------------------------------------------------------
|
|
@@ -7,7 +7,7 @@ export const VideoSourceSchema = z.object({
|
|
|
7
7
|
src: z.string().min(1),
|
|
8
8
|
type: z.string().min(1),
|
|
9
9
|
});
|
|
10
|
-
export const
|
|
10
|
+
export const VideoSchema = z.object({
|
|
11
11
|
$type: z.literal('gradial.video'),
|
|
12
12
|
assetId: z.string().min(1),
|
|
13
13
|
versionId: z.string().min(1),
|
|
@@ -16,7 +16,7 @@ export const GradialVideoSchema = z.object({
|
|
|
16
16
|
type: z.string().min(1),
|
|
17
17
|
width: z.number().int().nonnegative(),
|
|
18
18
|
height: z.number().int().nonnegative(),
|
|
19
|
-
poster:
|
|
19
|
+
poster: ImageSchema.optional(),
|
|
20
20
|
sources: z.array(VideoSourceSchema).optional(),
|
|
21
21
|
duration: z.number().nonnegative().optional(),
|
|
22
22
|
});
|
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradial/aci",
|
|
3
|
-
"version": "0.1.20
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"bin/aci.js",
|
|
10
|
-
"bin/aci",
|
|
10
|
+
"bin/aci-*",
|
|
11
11
|
"src/cli/*.mjs",
|
|
12
|
-
"src/types
|
|
12
|
+
"src/types/image.ts",
|
|
13
|
+
"templates/common",
|
|
14
|
+
"templates/nextjs",
|
|
15
|
+
"templates/astro",
|
|
13
16
|
"README.md"
|
|
14
17
|
],
|
|
15
18
|
"bin": {
|
|
@@ -23,33 +26,13 @@
|
|
|
23
26
|
"types": "./dist/index.d.ts",
|
|
24
27
|
"import": "./dist/index.js"
|
|
25
28
|
},
|
|
26
|
-
"./compiler": {
|
|
27
|
-
"types": "./dist/compiler/index.d.ts",
|
|
28
|
-
"import": "./dist/compiler/index.js"
|
|
29
|
-
},
|
|
30
29
|
"./content": {
|
|
31
30
|
"types": "./dist/content/index.d.ts",
|
|
32
31
|
"import": "./dist/content/index.js"
|
|
33
32
|
},
|
|
34
|
-
"./
|
|
35
|
-
"types": "./dist/
|
|
36
|
-
"import": "./dist/
|
|
37
|
-
},
|
|
38
|
-
"./content/cache": {
|
|
39
|
-
"types": "./dist/content/cache.d.ts",
|
|
40
|
-
"import": "./dist/content/cache.js"
|
|
41
|
-
},
|
|
42
|
-
"./content/validation": {
|
|
43
|
-
"types": "./dist/content/validation.d.ts",
|
|
44
|
-
"import": "./dist/content/validation.js"
|
|
45
|
-
},
|
|
46
|
-
"./content/cache": {
|
|
47
|
-
"types": "./dist/content/cache.d.ts",
|
|
48
|
-
"import": "./dist/content/cache.js"
|
|
49
|
-
},
|
|
50
|
-
"./content/tailwind-validator": {
|
|
51
|
-
"types": "./dist/content/tailwind-validator.d.ts",
|
|
52
|
-
"import": "./dist/content/tailwind-validator.js"
|
|
33
|
+
"./compiler": {
|
|
34
|
+
"types": "./dist/compiler/index.d.ts",
|
|
35
|
+
"import": "./dist/compiler/index.js"
|
|
53
36
|
},
|
|
54
37
|
"./providers/file": {
|
|
55
38
|
"types": "./dist/providers/file.d.ts",
|
|
@@ -63,41 +46,19 @@
|
|
|
63
46
|
"types": "./dist/dev/index.d.ts",
|
|
64
47
|
"import": "./dist/dev/index.js"
|
|
65
48
|
},
|
|
66
|
-
"./assets": {
|
|
67
|
-
"types": "./dist/assets/index.d.ts",
|
|
68
|
-
"import": "./dist/assets/index.js"
|
|
69
|
-
},
|
|
70
|
-
"./runtime": {
|
|
71
|
-
"types": "./dist/runtime/page.d.ts",
|
|
72
|
-
"import": "./dist/runtime/page.js"
|
|
73
|
-
},
|
|
74
49
|
"./react": {
|
|
75
50
|
"types": "./dist/react/index.d.ts",
|
|
76
51
|
"import": "./dist/react/index.js"
|
|
77
52
|
},
|
|
78
|
-
"./astro": {
|
|
79
|
-
"types": "./dist/astro/index.d.ts",
|
|
80
|
-
"import": "./dist/astro/index.js"
|
|
81
|
-
},
|
|
82
|
-
"./preview": {
|
|
83
|
-
"types": "./dist/preview/core.d.ts",
|
|
84
|
-
"import": "./dist/preview/core.js",
|
|
85
|
-
"default": "./dist/preview/core.js"
|
|
86
|
-
},
|
|
87
53
|
"./next": {
|
|
88
54
|
"types": "./dist/next/index.d.ts",
|
|
89
55
|
"import": "./dist/next/index.js",
|
|
90
56
|
"default": "./dist/next/index.js"
|
|
91
57
|
},
|
|
92
|
-
"./next/
|
|
93
|
-
"types": "./dist/next/
|
|
94
|
-
"import": "./dist/next/
|
|
95
|
-
"default": "./dist/next/
|
|
96
|
-
},
|
|
97
|
-
"./next/server": {
|
|
98
|
-
"types": "./dist/next/server.d.ts",
|
|
99
|
-
"import": "./dist/next/server.js",
|
|
100
|
-
"default": "./dist/next/server.js"
|
|
58
|
+
"./next/config": {
|
|
59
|
+
"types": "./dist/next/config.d.ts",
|
|
60
|
+
"import": "./dist/next/config.js",
|
|
61
|
+
"default": "./dist/next/config.js"
|
|
101
62
|
},
|
|
102
63
|
"./next/middleware": {
|
|
103
64
|
"types": "./dist/next/middleware.d.ts",
|
|
@@ -108,38 +69,29 @@
|
|
|
108
69
|
"types": "./dist/next/dev-refresh.d.ts",
|
|
109
70
|
"import": "./dist/next/dev-refresh.js"
|
|
110
71
|
},
|
|
111
|
-
"./
|
|
112
|
-
"types": "./dist/
|
|
113
|
-
"import": "./dist/
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"types": "./dist/sveltekit/index.d.ts",
|
|
117
|
-
"import": "./dist/sveltekit/index.js"
|
|
118
|
-
},
|
|
119
|
-
"./testing": {
|
|
120
|
-
"types": "./dist/testing/index.d.ts",
|
|
121
|
-
"import": "./dist/testing/index.js"
|
|
122
|
-
},
|
|
123
|
-
"./cli/compile-registry": "./src/cli/compile-registry.mjs",
|
|
124
|
-
"./cli/validate-content": "./src/cli/validate-content.mjs",
|
|
125
|
-
"./cli/verify-renderer": "./src/cli/verify-renderer.mjs"
|
|
72
|
+
"./astro": {
|
|
73
|
+
"types": "./dist/astro/index.d.ts",
|
|
74
|
+
"import": "./dist/astro/index.js",
|
|
75
|
+
"default": "./dist/astro/index.js"
|
|
76
|
+
}
|
|
126
77
|
},
|
|
127
78
|
"scripts": {
|
|
128
|
-
"build": "tsc -p tsconfig.json",
|
|
79
|
+
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
|
|
129
80
|
"build:cli": "cd ../.. && ./scripts/build-cli.sh",
|
|
81
|
+
"generate-starters": "cd ../.. && tsx scripts/generate-starters.ts",
|
|
130
82
|
"compile-registry": "tsx src/cli/compile-registry.mjs",
|
|
131
|
-
"prepack": "npm run build"
|
|
132
|
-
},
|
|
133
|
-
"overrides": {
|
|
134
|
-
"postcss": "^8.5.10"
|
|
83
|
+
"prepack": "npm run generate-starters && npm run build && npm run build:cli"
|
|
135
84
|
},
|
|
136
85
|
"dependencies": {
|
|
86
|
+
"markdown-it": "^14.1.0",
|
|
87
|
+
"sanitize-html": "^2.13.1",
|
|
137
88
|
"ws": "^8.18.0"
|
|
138
89
|
},
|
|
139
90
|
"peerDependencies": {
|
|
140
91
|
"@vercel/edge-config": "^1.4.3",
|
|
141
|
-
"next": "^15.
|
|
142
|
-
"react": "^19.0.0",
|
|
92
|
+
"next": "^15.0.0",
|
|
93
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
94
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
143
95
|
"zod": "^4.0.0"
|
|
144
96
|
},
|
|
145
97
|
"peerDependenciesMeta": {
|
|
@@ -151,15 +103,21 @@
|
|
|
151
103
|
},
|
|
152
104
|
"react": {
|
|
153
105
|
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"react-dom": {
|
|
108
|
+
"optional": true
|
|
154
109
|
}
|
|
155
110
|
},
|
|
156
111
|
"devDependencies": {
|
|
157
112
|
"@types/node": "^24.10.1",
|
|
158
113
|
"@types/react": "^19.0.0",
|
|
114
|
+
"@types/markdown-it": "^14.1.2",
|
|
115
|
+
"@types/sanitize-html": "^2.16.0",
|
|
159
116
|
"@types/ws": "^8.18.0",
|
|
160
117
|
"@vercel/edge-config": "^1.4.3",
|
|
161
118
|
"next": "^15.5.6",
|
|
162
119
|
"react": "^19.0.0",
|
|
120
|
+
"react-dom": "^19.0.0",
|
|
163
121
|
"tsx": "^4.20.0",
|
|
164
122
|
"typescript": "^5.9.3",
|
|
165
123
|
"ws": "^8.18.0",
|