@wix/zero-config-implementation 1.59.0 → 1.60.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/README.md +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6519 -6441
- package/package.json +2 -8
- package/src/component-renderer.ts +18 -15
- package/src/jsx-runtime-interceptor.ts +92 -71
- package/src/module-loader.ts +8 -4
- package/vite.config.ts +0 -7
- package/dist/jsx-runtime-interceptor.d.ts +0 -58
- package/dist/jsx-runtime-interceptor.js +0 -63
- package/dist/jsx-runtime-loader.d.ts +0 -27
- package/dist/jsx-runtime-loader.js +0 -7
- package/src/jsx-runtime-loader.ts +0 -38
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ Full API reference: [docs-audit/README.md](./docs-audit/README.md) (generate wit
|
|
|
72
72
|
- `src/ts-compiler.ts` — TypeScript compilation
|
|
73
73
|
- `src/manifest-pipeline.ts` — Per-component pipeline (load → render → CSS → conversion)
|
|
74
74
|
- `src/component-loader.ts` — Resolve and load component package
|
|
75
|
-
- `src/component-renderer
|
|
75
|
+
- `src/component-renderer.ts` — React createElement interception and `renderWithExtractors`
|
|
76
76
|
- `src/information-extractors/` — TS (AST), CSS (css-tree), React (prop tracking, DOM coupling)
|
|
77
77
|
- `src/converters/` — To EditorReactComponent and data items
|
|
78
78
|
- `src/errors.ts` — BaseError, NotFoundError, ParseError, etc.
|
package/dist/index.d.ts
CHANGED
|
@@ -1477,10 +1477,10 @@ ChildCustomClass extends CustomClass,
|
|
|
1477
1477
|
* Attempts to load a module, first via ESM `import()`, then via CJS `require`.
|
|
1478
1478
|
*
|
|
1479
1479
|
* ESM `import()` is preferred because it participates in the ESM loader hook
|
|
1480
|
-
* pipeline
|
|
1481
|
-
*
|
|
1482
|
-
*
|
|
1483
|
-
*
|
|
1480
|
+
* pipeline. The hook is registered here before the import, redirecting
|
|
1481
|
+
* `react/jsx-runtime` to the interceptable version. CJS `require()` bypasses
|
|
1482
|
+
* ESM hooks even when loading ESM modules (Node 22+), so it's only used as a
|
|
1483
|
+
* fallback.
|
|
1484
1484
|
*
|
|
1485
1485
|
* @param entryPath - Absolute path to the module entry point.
|
|
1486
1486
|
* @returns A `ResultAsync` containing the module exports on success.
|