@fluxdown/react-native-plugins 0.2.2 → 0.2.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @fluxdown/react-native-plugins
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [feae5bf]
8
+ - @fluxdown/hast@0.7.3
9
+ - @fluxdown/react-base-plugins@0.11.4
10
+ - @fluxdown/react-hooks@0.2.2
11
+ - @fluxdown/utils@0.8.0
12
+ - @fluxdown/types@0.11.1
13
+
14
+ ## 0.2.3
15
+
16
+ ### Patch Changes
17
+
18
+ - fba214a: Resolve plugin enablement and constructor configuration through optional static `enabled` and `prepareConfig` hooks across all plugin types. Keep context outside instances and refresh active pluggables when reactive inputs change.
19
+
20
+ Include `TexRepairPlugin` in the default core repair preset. Core plugins depend on KaTeX to select a valid streaming prefix when no custom `render` is supplied; renderer plugins use this preset without separate repair registration.
21
+
22
+ Keep repair output intact across all renderer adapters, including trailing TeX whitespace and empty pending formulas. Validate streaming TeX in the repair layer and preserve lazy loading in renderer components, with an empty loading placeholder instead of raw-source flashes. Default compiler presets now include KaTeX; MathJax-only syntax is deferred until the formula closes unless a custom validator is configured.
23
+
24
+ - Updated dependencies [fba214a]
25
+ - Updated dependencies [fba214a]
26
+ - Updated dependencies [fba214a]
27
+ - Updated dependencies [fba214a]
28
+ - @fluxdown/react-base-plugins@0.11.3
29
+ - @fluxdown/types@0.11.0
30
+
3
31
  ## 0.2.2
4
32
 
5
33
  ### Patch Changes
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.CodeHighlighterRenderer;
68
68
  type = 'CodeHighlighter';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- CodeHighlighterSlotPlugin: ()=>CodeHighlighterSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ CodeHighlighterSlotPlugin: CodeHighlighterSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.CodeHighlighterSlotPlugin = __webpack_exports__.CodeHighlighterSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.CodeHighlightRenderer;
68
68
  type = 'CodeHighlighter';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- CodeHighlightSlotPlugin: ()=>CodeHighlightSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ CodeHighlightSlotPlugin: CodeHighlightSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.CodeHighlightSlotPlugin = __webpack_exports__.CodeHighlightSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.CodeMermaidRenderer;
68
68
  type = 'CodeBlock';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- CodeMermaidSlotPlugin: ()=>CodeMermaidSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ CodeMermaidSlotPlugin: CodeMermaidSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.CodeMermaidSlotPlugin = __webpack_exports__.CodeMermaidSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.ChunkRenderer;
68
68
  type = 'Chunk';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- EffectChunkSlotPlugin: ()=>EffectChunkSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ EffectChunkSlotPlugin: EffectChunkSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.EffectChunkSlotPlugin = __webpack_exports__.EffectChunkSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.ScaleRenderer;
68
68
  type = 'Scale';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- EffectScaleSlotPlugin: ()=>EffectScaleSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ EffectScaleSlotPlugin: EffectScaleSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.EffectScaleSlotPlugin = __webpack_exports__.EffectScaleSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.ScaleWordRenderer;
68
68
  type = 'ScaleWord';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- EffectScaleWordSlotPlugin: ()=>EffectScaleWordSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ EffectScaleWordSlotPlugin: EffectScaleWordSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.EffectScaleWordSlotPlugin = __webpack_exports__.EffectScaleWordSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.ShadRenderer;
68
68
  type = 'Shad';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- EffectShadSlotPlugin: ()=>EffectShadSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ EffectShadSlotPlugin: EffectShadSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.EffectShadSlotPlugin = __webpack_exports__.EffectShadSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.SuffixRenderer;
68
68
  type = 'Suffix';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- EffectSuffixSlotPlugin: ()=>EffectSuffixSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ EffectSuffixSlotPlugin: EffectSuffixSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.EffectSuffixSlotPlugin = __webpack_exports__.EffectSuffixSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.TexRenderer;
68
68
  type = 'Tex';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- TexSlotPlugin: ()=>TexSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ TexSlotPlugin: TexSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.TexSlotPlugin = __webpack_exports__.TexSlotPlugin;
@@ -67,8 +67,8 @@ var __webpack_exports__ = {};
67
67
  Component = _renderer__rspack_import_1.TexSvgRenderer;
68
68
  type = 'Tex';
69
69
  }
70
- __webpack_require__.d(__webpack_exports__, {
71
- TexSvgSlotPlugin: ()=>TexSvgSlotPlugin
70
+ __webpack_require__.d(__webpack_exports__, {}, {
71
+ TexSvgSlotPlugin: TexSvgSlotPlugin
72
72
  });
73
73
  })();
74
74
  exports.TexSvgSlotPlugin = __webpack_exports__.TexSvgSlotPlugin;
@@ -35,9 +35,7 @@ const external_react_namespaceObject = require("react");
35
35
  const external_utils_cjs_namespaceObject = require("./utils.cjs");
36
36
  const LazySvgRenderer = /*#__PURE__*/ (0, external_react_namespaceObject.lazy)(external_utils_cjs_namespaceObject.loadSvgRenderer);
37
37
  const TexSvgRenderer = ({ Raw, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_namespaceObject.Suspense, {
38
- fallback: Raw && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Raw, {
39
- ...props
40
- }),
38
+ fallback: null,
41
39
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(LazySvgRenderer, {
42
40
  ...props,
43
41
  Raw: Raw
@@ -27,9 +27,7 @@ const loadSvgRenderer = /*#__PURE__*/ once(async ()=>{
27
27
  });
28
28
  const LazySvgRenderer = /*#__PURE__*/ lazy(loadSvgRenderer);
29
29
  const TexSvgRenderer = ({ Raw, ...props })=>/*#__PURE__*/ jsx(Suspense, {
30
- fallback: Raw && /*#__PURE__*/ jsx(Raw, {
31
- ...props
32
- }),
30
+ fallback: null,
33
31
  children: /*#__PURE__*/ jsx(LazySvgRenderer, {
34
32
  ...props,
35
33
  Raw: Raw
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxdown/react-native-plugins",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "React Native render slots and plugin presets for Fluxdown.",
5
5
  "keywords": [
6
6
  "hast",
@@ -72,22 +72,22 @@
72
72
  "access": "public"
73
73
  },
74
74
  "dependencies": {
75
- "@fluxdown/hast": "^0.7.2",
76
- "@fluxdown/react-base-plugins": "^0.11.2",
77
- "@fluxdown/react-hooks": "^0.2.1",
78
- "@fluxdown/types": "^0.10.2",
79
- "@fluxdown/utils": "^0.7.3",
75
+ "@fluxdown/hast": "^0.7.3",
76
+ "@fluxdown/react-base-plugins": "^0.11.4",
77
+ "@fluxdown/react-hooks": "^0.2.2",
78
+ "@fluxdown/types": "^0.11.1",
79
+ "@fluxdown/utils": "^0.8.0",
80
80
  "@osuki-dev/skia-diagrams": "^0.2.0",
81
- "@types/hast": "3.0.4",
81
+ "@types/hast": "^3.0.4",
82
82
  "lodash-es": "^4.18.1",
83
83
  "mathjax-full": "^3.2.2",
84
84
  "react-native-code-highlighter": "^1.3.1",
85
85
  "react-syntax-highlighter": "15.6.6"
86
86
  },
87
87
  "devDependencies": {
88
- "@fluxdown/core": "^0.12.8",
89
- "@fluxdown/core-plugins": "^0.13.0",
90
- "@fluxdown/types": "^0.10.2",
88
+ "@fluxdown/core": "^0.13.1",
89
+ "@fluxdown/core-plugins": "^0.14.1",
90
+ "@fluxdown/types": "^0.11.1",
91
91
  "@rslib/core": "1.0.0",
92
92
  "@testing-library/jest-dom": "^6.9.1",
93
93
  "@testing-library/react": "^16.3.2",
@@ -103,7 +103,7 @@
103
103
  "react-native": "^0.88.0",
104
104
  "react-native-svg": "^15.16.0",
105
105
  "react-native-web": "^0.21.4",
106
- "stative": "^2.1.1",
106
+ "stative": "^2.2.0",
107
107
  "typescript": "7.0.2"
108
108
  },
109
109
  "peerDependencies": {