@zenithbuild/core 0.6.3 → 1.2.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.
- package/cli/commands/dev.ts +107 -48
- package/compiler/discovery/componentDiscovery.ts +75 -11
- package/compiler/output/types.ts +15 -1
- package/compiler/parse/parseTemplate.ts +29 -0
- package/compiler/runtime/dataExposure.ts +27 -12
- package/compiler/runtime/generateDOM.ts +12 -3
- package/compiler/runtime/transformIR.ts +36 -0
- package/compiler/runtime/wrapExpression.ts +32 -13
- package/compiler/runtime/wrapExpressionWithLoop.ts +24 -10
- package/compiler/ssg-build.ts +71 -7
- package/compiler/test/component-stacking.test.ts +365 -0
- package/compiler/transform/componentResolver.ts +42 -4
- package/compiler/transform/fragmentLowering.ts +153 -1
- package/compiler/transform/generateBindings.ts +31 -10
- package/compiler/transform/transformNode.ts +114 -1
- package/core/config/index.ts +5 -3
- package/core/config/types.ts +67 -37
- package/core/plugins/bridge.ts +193 -0
- package/core/plugins/registry.ts +51 -6
- package/dist/cli.js +8 -0
- package/dist/zen-build.js +482 -1802
- package/dist/zen-dev.js +482 -1802
- package/dist/zen-preview.js +482 -1802
- package/dist/zenith.js +482 -1802
- package/package.json +11 -3
- package/runtime/bundle-generator.ts +10 -1
- package/runtime/client-runtime.ts +462 -120
- package/cli/utils/content.ts +0 -112
- package/router/manifest.ts +0 -314
- package/router/navigation/ZenLink.zen +0 -231
- package/router/navigation/index.ts +0 -78
- package/router/navigation/zen-link.ts +0 -584
- package/router/runtime.ts +0 -458
- package/router/types.ts +0 -168
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenithbuild/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Core library for the Zenith framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,15 @@
|
|
|
47
47
|
"start": "bun run build && bun run dev",
|
|
48
48
|
"build:cli": "bun build bin/zenith.ts bin/zen-dev.ts bin/zen-build.ts bin/zen-preview.ts --outdir dist --target bun --bundle && for f in dist/*.js; do echo '#!/usr/bin/env bun' | cat - \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\" && chmod +x \"$f\"; done",
|
|
49
49
|
"format": "prettier --write \"**/*.ts\"",
|
|
50
|
-
"format:check": "prettier --check \"**/*.ts\""
|
|
50
|
+
"format:check": "prettier --check \"**/*.ts\"",
|
|
51
|
+
"release": "bun run scripts/release.ts",
|
|
52
|
+
"release:dry": "bun run scripts/release.ts --dry-run",
|
|
53
|
+
"release:patch": "bun run scripts/release.ts --bump=patch",
|
|
54
|
+
"release:minor": "bun run scripts/release.ts --bump=minor",
|
|
55
|
+
"release:major": "bun run scripts/release.ts --bump=major"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
51
59
|
},
|
|
52
60
|
"private": false,
|
|
53
61
|
"devDependencies": {
|
|
@@ -69,4 +77,4 @@
|
|
|
69
77
|
"parse5": "^8.0.0",
|
|
70
78
|
"picocolors": "^1.1.1"
|
|
71
79
|
}
|
|
72
|
-
}
|
|
80
|
+
}
|
|
@@ -640,7 +640,16 @@ export function generateBundleJS(): string {
|
|
|
640
640
|
function defineSchema(name, schema) { schemaRegistry.set(name, schema); }
|
|
641
641
|
|
|
642
642
|
function zenCollection(collectionName) {
|
|
643
|
-
|
|
643
|
+
// Access plugin data from the neutral envelope
|
|
644
|
+
// Content plugin stores all items under 'content' namespace
|
|
645
|
+
const pluginData = global.__ZENITH_PLUGIN_DATA__ || {};
|
|
646
|
+
const contentItems = pluginData.content || [];
|
|
647
|
+
|
|
648
|
+
// Filter by collection name (plugin owns data structure, runtime just filters)
|
|
649
|
+
const data = Array.isArray(contentItems)
|
|
650
|
+
? contentItems.filter(item => item && item.collection === collectionName)
|
|
651
|
+
: [];
|
|
652
|
+
|
|
644
653
|
return new ZenCollection(data);
|
|
645
654
|
}
|
|
646
655
|
|