@codepress/codepress-engine 0.7.11-dev.jsmap.20251203054934 → 0.7.11-dev.jsmap.20251204014331

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/types.d.ts CHANGED
@@ -14,4 +14,21 @@ export interface CodePressPluginOptions {
14
14
  * Used by CodePress HMR to substitute env vars in dynamically built modules.
15
15
  */
16
16
  env_vars?: Record<string, string>;
17
+ /**
18
+ * Store metadata in window.__CODEPRESS_MAP__ instead of DOM attributes.
19
+ * When true, only codepress-data-fp attribute is added to DOM.
20
+ * This avoids React reconciliation issues and keeps DOM clean.
21
+ * Defaults to true.
22
+ */
23
+ useJsMetadataMap?: boolean;
24
+ /**
25
+ * Skip wrapping custom components with __CPProvider.
26
+ * Useful for frameworks that handle HMR differently (e.g., Next.js).
27
+ */
28
+ skipProviderWrap?: boolean;
29
+ /**
30
+ * Skip wrapping custom components with <codepress-marker>.
31
+ * Only used when useJsMetadataMap is false.
32
+ */
33
+ skipMarkerWrap?: boolean;
17
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codepress/codepress-engine",
3
- "version": "0.7.11-dev.jsmap.20251203054934",
3
+ "version": "0.7.11-dev.jsmap.20251204014331",
4
4
  "packageManager": "pnpm@10.22.0",
5
5
  "description": "CodePress engine - Babel and SWC plug-ins",
6
6
  "main": "./dist/index.js",
Binary file
Binary file
Binary file
Binary file