@fluxdown/react-native-plugins 0.2.1 → 0.2.2
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 +12 -0
- package/dist/esm/{855~0.js → 7~0.js} +1 -1
- package/dist/esm/base.js +7 -7
- package/dist/esm/highlight~0.js +1 -1
- package/dist/esm/mermaid~0.js +2 -2
- package/dist/esm/plugins/blockquote.js +2 -2
- package/dist/esm/plugins/break-line.js +1 -1
- package/dist/esm/plugins/code-highlight.js +1 -1
- package/dist/esm/plugins/code-mermaid.js +1 -1
- package/dist/esm/plugins/code.js +3 -3
- package/dist/esm/plugins/effect-chunk.js +3 -3
- package/dist/esm/plugins/effect-scale.js +4 -4
- package/dist/esm/plugins/effect-shad.js +3 -3
- package/dist/esm/plugins/effect-suffix.js +3 -3
- package/dist/esm/plugins/emphasis.js +2 -2
- package/dist/esm/plugins/fallback.js +4 -4
- package/dist/esm/plugins/heading.js +3 -3
- package/dist/esm/plugins/image.js +3 -3
- package/dist/esm/plugins/link.js +3 -3
- package/dist/esm/plugins/list.js +3 -3
- package/dist/esm/plugins/paragraph.js +4 -4
- package/dist/esm/plugins/strong.js +3 -3
- package/dist/esm/plugins/table.js +3 -3
- package/dist/esm/plugins/tex-svg.js +1 -1
- package/dist/esm/plugins/tex.js +3 -3
- package/dist/esm/svg~0.js +1 -1
- package/dist/esm/{493~0.js → x6~0.js} +2 -2
- package/dist/esm/{319~0.js → x~0.js} +2 -2
- package/package.json +12 -12
- /package/dist/esm/{480~0.js → be~0.js} +0 -0
- /package/dist/esm/{856~0.js → bj~0.js} +0 -0
- /package/dist/esm/{992~0.js → b~0.js} +0 -0
- /package/dist/esm/{121~0.js → r~0.js} +0 -0
- /package/dist/esm/{390~0.js → z~0.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @fluxdown/react-native-plugins
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a6380c3: Move documentation links and package homepages to https://fluxdown.dev/.
|
|
8
|
+
- Updated dependencies [a6380c3]
|
|
9
|
+
- @fluxdown/hast@0.7.2
|
|
10
|
+
- @fluxdown/react-base-plugins@0.11.2
|
|
11
|
+
- @fluxdown/react-hooks@0.2.1
|
|
12
|
+
- @fluxdown/types@0.10.2
|
|
13
|
+
- @fluxdown/utils@0.7.3
|
|
14
|
+
|
|
3
15
|
## 0.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@ import { useMemoValue } from "@fluxdown/react-hooks";
|
|
|
3
3
|
import { isEqual, pickBy } from "lodash-es";
|
|
4
4
|
import { StyleSheet, Text } from "react-native";
|
|
5
5
|
import { createContext, useContext, useMemo } from "react";
|
|
6
|
-
import { useTheme } from "./
|
|
6
|
+
import { useTheme } from "./r~0.js";
|
|
7
7
|
const TextContext = /*#__PURE__*/ createContext(null);
|
|
8
8
|
const TextProvider = TextContext.Provider;
|
|
9
9
|
const useTextStyle = ()=>{
|
package/dist/esm/base.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "@fluxdown/react-base-plugins/base";
|
|
2
|
-
export { BLOCK_TAG_NAMES, InlineRenderer, renderNativeChildren } from "./
|
|
3
|
-
export { DARK_THEME, LIGHT_THEME, ThemeProvider, useTheme, useThemeConfig } from "./
|
|
4
|
-
export { InheritedText } from "./
|
|
5
|
-
export { InlineDrawing } from "./
|
|
6
|
-
export { TextMeasurement } from "./
|
|
7
|
-
export { getNativeProps, isImageOnlyParagraph, isLastChild } from "./
|
|
8
|
-
export { useAppear } from "./
|
|
2
|
+
export { BLOCK_TAG_NAMES, InlineRenderer, renderNativeChildren } from "./x6~0.js";
|
|
3
|
+
export { DARK_THEME, LIGHT_THEME, ThemeProvider, useTheme, useThemeConfig } from "./r~0.js";
|
|
4
|
+
export { InheritedText } from "./7~0.js";
|
|
5
|
+
export { InlineDrawing } from "./x~0.js";
|
|
6
|
+
export { TextMeasurement } from "./z~0.js";
|
|
7
|
+
export { getNativeProps, isImageOnlyParagraph, isLastChild } from "./be~0.js";
|
|
8
|
+
export { useAppear } from "./bj~0.js";
|
package/dist/esm/highlight~0.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { Text, View } from "react-native";
|
|
5
5
|
import react_native_code_highlighter from "react-native-code-highlighter";
|
|
6
|
-
import { useTheme } from "./
|
|
6
|
+
import { useTheme } from "./r~0.js";
|
|
7
7
|
var highlight_namespaceObject = {};
|
|
8
8
|
__webpack_require__.r(highlight_namespaceObject);
|
|
9
9
|
__webpack_require__.d(highlight_namespaceObject, {
|
package/dist/esm/mermaid~0.js
CHANGED
|
@@ -3,8 +3,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useId, useMemo, useState } from "react";
|
|
4
4
|
import { ScrollView, View } from "react-native";
|
|
5
5
|
import { SvgAst, parse } from "react-native-svg";
|
|
6
|
-
import { createTypeOfSlot } from "./
|
|
7
|
-
import { useTheme } from "./
|
|
6
|
+
import { createTypeOfSlot } from "./b~0.js";
|
|
7
|
+
import { useTheme } from "./r~0.js";
|
|
8
8
|
var mermaid_namespaceObject = {};
|
|
9
9
|
__webpack_require__.r(mermaid_namespaceObject);
|
|
10
10
|
__webpack_require__.d(mermaid_namespaceObject, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BlockquotePlugin } from "@fluxdown/react-base-plugins/plugins/blockquote";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { View } from "react-native";
|
|
4
|
-
import { useTheme } from "../
|
|
5
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
4
|
+
import { useTheme } from "../r~0.js";
|
|
5
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
6
6
|
const BlockquoteRenderer = ({ children, nativeID })=>{
|
|
7
7
|
const { tokens } = useTheme();
|
|
8
8
|
return /*#__PURE__*/ jsx(View, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BreakLinePlugin } from "@fluxdown/react-base-plugins/plugins/break-line";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Text } from "react-native";
|
|
4
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
4
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
5
5
|
const BreakLineRenderer = ()=>/*#__PURE__*/ jsx(Text, {
|
|
6
6
|
children: '\n'
|
|
7
7
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense, lazy } from "react";
|
|
3
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
3
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
4
4
|
import { CodePlugin as code_CodePlugin } from "./code.js";
|
|
5
5
|
const LazyHighlightRenderer = /*#__PURE__*/ lazy(()=>import("../highlight~0.js").then((m)=>m.highlight_namespaceObject));
|
|
6
6
|
const CodeHighlightRenderer = ({ Raw, ...props })=>/*#__PURE__*/ jsx(Suspense, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense, lazy } from "react";
|
|
3
|
-
import { BaseSlotPlugin } from "../
|
|
3
|
+
import { BaseSlotPlugin } from "../b~0.js";
|
|
4
4
|
const LazyMermaidRenderer = /*#__PURE__*/ lazy(()=>import("../mermaid~0.js").then((m)=>m.mermaid_namespaceObject));
|
|
5
5
|
const CodeMermaidRenderer = ({ Raw, ...props })=>{
|
|
6
6
|
if (props.language?.toLowerCase() !== 'mermaid') return Raw && /*#__PURE__*/ jsx(Raw, {
|
package/dist/esm/plugins/code.js
CHANGED
|
@@ -2,9 +2,9 @@ import { CodePlugin } from "@fluxdown/react-base-plugins/plugins/code";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ScrollView, StyleSheet, View } from "react-native";
|
|
4
4
|
import { createElement, isValidElement } from "react";
|
|
5
|
-
import { createTypeOfSlot, pluginExtends, BaseSlotPlugin } from "../
|
|
6
|
-
import { useTheme } from "../
|
|
7
|
-
import { InheritedText } from "../
|
|
5
|
+
import { createTypeOfSlot, pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
6
|
+
import { useTheme } from "../r~0.js";
|
|
7
|
+
import { InheritedText } from "../7~0.js";
|
|
8
8
|
const CodeHeader = /*#__PURE__*/ createTypeOfSlot('CodeHeader');
|
|
9
9
|
const CodeHighlighter = /*#__PURE__*/ createTypeOfSlot('CodeHighlighter');
|
|
10
10
|
const CodeBlockRenderer = ({ code, language, loading, meta, onCopy, showHeader = true, suffix })=>{
|
|
@@ -2,9 +2,9 @@ import { EffectChunkPlugin } from "@fluxdown/react-base-plugins/plugins/effect-c
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { Animated, Easing, processColor } from "react-native";
|
|
5
|
-
import { useAppear } from "../
|
|
6
|
-
import { InheritedText } from "../
|
|
7
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
5
|
+
import { useAppear } from "../bj~0.js";
|
|
6
|
+
import { InheritedText } from "../7~0.js";
|
|
7
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
8
8
|
const EASE_OUT = /*#__PURE__*/ Easing.bezier(0, 0, 0.58, 1);
|
|
9
9
|
const ChunkText = ({ children, color, progress })=>{
|
|
10
10
|
const animatedColor = useMemo(()=>{
|
|
@@ -3,10 +3,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Children, Component, Fragment, useId, useMemo } from "react";
|
|
4
4
|
import { Animated, Easing } from "react-native";
|
|
5
5
|
import react_native_svg, { Defs, FeGaussianBlur, Filter, ForeignObject, G } from "react-native-svg";
|
|
6
|
-
import { useAppear } from "../
|
|
7
|
-
import { InlineDrawing } from "../
|
|
8
|
-
import { InheritedText } from "../
|
|
9
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
6
|
+
import { useAppear } from "../bj~0.js";
|
|
7
|
+
import { InlineDrawing } from "../x~0.js";
|
|
8
|
+
import { InheritedText } from "../7~0.js";
|
|
9
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
10
10
|
const EASE_OUT = /*#__PURE__*/ Easing.out(Easing.cubic);
|
|
11
11
|
const STEPS = /*#__PURE__*/ Array.from({
|
|
12
12
|
length: 11
|
|
@@ -6,9 +6,9 @@ import { useLatestFn } from "@fluxdown/react-hooks";
|
|
|
6
6
|
import { pick } from "lodash-es";
|
|
7
7
|
import { Children, cloneElement, isValidElement, useId, useMemo, useState } from "react";
|
|
8
8
|
import react_native_svg, { Defs, ForeignObject, G, LinearGradient, Mask, Rect, Stop } from "react-native-svg";
|
|
9
|
-
import { InlineDrawing } from "../
|
|
10
|
-
import { InheritedText } from "../
|
|
11
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
9
|
+
import { InlineDrawing } from "../x~0.js";
|
|
10
|
+
import { InheritedText } from "../7~0.js";
|
|
11
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
12
12
|
const mapText = (children, map, opaque = (node)=>node)=>Children.map(children, (child)=>{
|
|
13
13
|
if ('string' == typeof child || 'number' == typeof child) return map(String(child));
|
|
14
14
|
if (/*#__PURE__*/ isValidElement(child) && Children.toArray(child.props.children).length > 0) {
|
|
@@ -3,9 +3,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useStatic } from "@fluxdown/react-hooks";
|
|
4
4
|
import { useLayoutEffect, useState } from "react";
|
|
5
5
|
import { Animated, Easing, Text, View } from "react-native";
|
|
6
|
-
import { InheritedText } from "../
|
|
7
|
-
import { TextMeasurement } from "../
|
|
8
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
6
|
+
import { InheritedText } from "../7~0.js";
|
|
7
|
+
import { TextMeasurement } from "../z~0.js";
|
|
8
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
9
9
|
const EASE_IN_OUT = /*#__PURE__*/ Easing.bezier(0.42, 0, 0.58, 1);
|
|
10
10
|
const SuffixRenderer = ({ children, type })=>{
|
|
11
11
|
const opacity = useStatic(()=>new Animated.Value(1));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmphasisPlugin } from "@fluxdown/react-base-plugins/plugins/emphasis";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { InheritedText } from "../
|
|
4
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
3
|
+
import { InheritedText } from "../7~0.js";
|
|
4
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
5
5
|
const EmphasisRenderer = ({ children })=>/*#__PURE__*/ jsx(InheritedText, {
|
|
6
6
|
style: {
|
|
7
7
|
fontStyle: 'italic'
|
|
@@ -2,10 +2,10 @@ import { FallbackPlugin } from "@fluxdown/react-base-plugins/plugins/fallback";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { getTextWords } from "@fluxdown/hast";
|
|
4
4
|
import { Text, View } from "react-native";
|
|
5
|
-
import { createTypeOfSlot, BaseReactRenderPlugin, BaseSlotPlugin, pluginExtends, isHastElement } from "../
|
|
6
|
-
import { InlineRenderer, BLOCK_TAG_NAMES, renderNativeChildren } from "../
|
|
7
|
-
import { useTheme } from "../
|
|
8
|
-
import { InheritedText } from "../
|
|
5
|
+
import { createTypeOfSlot, BaseReactRenderPlugin, BaseSlotPlugin, pluginExtends, isHastElement } from "../b~0.js";
|
|
6
|
+
import { InlineRenderer, BLOCK_TAG_NAMES, renderNativeChildren } from "../x6~0.js";
|
|
7
|
+
import { useTheme } from "../r~0.js";
|
|
8
|
+
import { InheritedText } from "../7~0.js";
|
|
9
9
|
const Element = /*#__PURE__*/ createTypeOfSlot('Element');
|
|
10
10
|
class NativeFallbackRenderPlugin extends BaseReactRenderPlugin {
|
|
11
11
|
static key = 'render-native-fallback';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HeadingPlugin } from "@fluxdown/react-base-plugins/plugins/heading";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { useTheme } from "../
|
|
5
|
-
import { InheritedText } from "../
|
|
6
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
4
|
+
import { useTheme } from "../r~0.js";
|
|
5
|
+
import { InheritedText } from "../7~0.js";
|
|
6
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
7
7
|
const HeadingRenderer = ({ children, level, nativeID })=>{
|
|
8
8
|
const { tokens } = useTheme();
|
|
9
9
|
const [isFirst, setIsFirst] = useState(false);
|
|
@@ -2,9 +2,9 @@ import { ImagePlugin } from "@fluxdown/react-base-plugins/plugins/image";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { Image, Pressable, Text } from "react-native";
|
|
5
|
-
import { useTheme } from "../
|
|
6
|
-
import { isImageOnlyParagraph } from "../
|
|
7
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
5
|
+
import { useTheme } from "../r~0.js";
|
|
6
|
+
import { isImageOnlyParagraph } from "../be~0.js";
|
|
7
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
8
8
|
const getDimension = (value)=>{
|
|
9
9
|
if ('number' == typeof value) return Number.isFinite(value) && value >= 0 ? value : void 0;
|
|
10
10
|
if ('string' != typeof value) return;
|
package/dist/esm/plugins/link.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LinkPlugin } from "@fluxdown/react-base-plugins/plugins/link";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Linking } from "react-native";
|
|
4
|
-
import { useTheme } from "../
|
|
5
|
-
import { InheritedText } from "../
|
|
6
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
4
|
+
import { useTheme } from "../r~0.js";
|
|
5
|
+
import { InheritedText } from "../7~0.js";
|
|
6
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
7
7
|
const LinkRenderer = ({ children, href, onPress, title, nativeID })=>{
|
|
8
8
|
const { tokens } = useTheme();
|
|
9
9
|
return /*#__PURE__*/ jsx(InheritedText, {
|
package/dist/esm/plugins/list.js
CHANGED
|
@@ -2,9 +2,9 @@ import { ListPlugin } from "@fluxdown/react-base-plugins/plugins/list";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
|
-
import { useTheme } from "../
|
|
6
|
-
import { pluginExtends, BaseSlotPlugin, isHastElement } from "../
|
|
7
|
-
import { InheritedText } from "../
|
|
5
|
+
import { useTheme } from "../r~0.js";
|
|
6
|
+
import { pluginExtends, BaseSlotPlugin, isHastElement } from "../b~0.js";
|
|
7
|
+
import { InheritedText } from "../7~0.js";
|
|
8
8
|
const styles = /*#__PURE__*/ StyleSheet.create({
|
|
9
9
|
row: {
|
|
10
10
|
flexDirection: 'row',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ParagraphPlugin } from "@fluxdown/react-base-plugins/plugins/paragraph";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { View } from "react-native";
|
|
4
|
-
import { useTheme } from "../
|
|
5
|
-
import { isImageOnlyParagraph, isLastChild } from "../
|
|
6
|
-
import { InheritedText } from "../
|
|
7
|
-
import { pluginExtends, BaseSlotPlugin, isHastElement } from "../
|
|
4
|
+
import { useTheme } from "../r~0.js";
|
|
5
|
+
import { isImageOnlyParagraph, isLastChild } from "../be~0.js";
|
|
6
|
+
import { InheritedText } from "../7~0.js";
|
|
7
|
+
import { pluginExtends, BaseSlotPlugin, isHastElement } from "../b~0.js";
|
|
8
8
|
const ParagraphRenderer = ({ children, current, parents, nativeID, accessibilityLabel })=>{
|
|
9
9
|
const { tokens } = useTheme();
|
|
10
10
|
if ('element' === current.type && isImageOnlyParagraph(current)) return /*#__PURE__*/ jsx(View, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StrongPlugin } from "@fluxdown/react-base-plugins/plugins/strong";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useTheme } from "../
|
|
4
|
-
import { InheritedText } from "../
|
|
5
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
3
|
+
import { useTheme } from "../r~0.js";
|
|
4
|
+
import { InheritedText } from "../7~0.js";
|
|
5
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
6
6
|
const StrongRenderer = ({ children })=>{
|
|
7
7
|
const { tokens } = useTheme();
|
|
8
8
|
return /*#__PURE__*/ jsx(InheritedText, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TablePlugin } from "@fluxdown/react-base-plugins/plugins/table";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ScrollView, View } from "react-native";
|
|
4
|
-
import { useTheme } from "../
|
|
5
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
6
|
-
import { InheritedText } from "../
|
|
4
|
+
import { useTheme } from "../r~0.js";
|
|
5
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
6
|
+
import { InheritedText } from "../7~0.js";
|
|
7
7
|
const TableRenderer = ({ children })=>{
|
|
8
8
|
const { tokens } = useTheme();
|
|
9
9
|
return /*#__PURE__*/ jsx(ScrollView, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense, lazy } from "react";
|
|
3
3
|
import { once } from "lodash-es";
|
|
4
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
4
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
5
5
|
import { TexPlugin as tex_TexPlugin } from "./tex.js";
|
|
6
6
|
const loadSvgRenderer = /*#__PURE__*/ once(async ()=>{
|
|
7
7
|
const navigator = "u" < typeof window ? void 0 : window.navigator;
|
package/dist/esm/plugins/tex.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TexPlugin } from "@fluxdown/react-base-plugins/plugins/tex";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useTheme } from "../
|
|
4
|
-
import { InheritedText } from "../
|
|
5
|
-
import { pluginExtends, BaseSlotPlugin } from "../
|
|
3
|
+
import { useTheme } from "../r~0.js";
|
|
4
|
+
import { InheritedText } from "../7~0.js";
|
|
5
|
+
import { pluginExtends, BaseSlotPlugin } from "../b~0.js";
|
|
6
6
|
const TexRenderer = ({ mode, tex })=>{
|
|
7
7
|
const { tokens } = useTheme();
|
|
8
8
|
return /*#__PURE__*/ jsx(InheritedText, {
|
package/dist/esm/svg~0.js
CHANGED
|
@@ -22,7 +22,7 @@ import "mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js";
|
|
|
22
22
|
import "mathjax-full/js/input/tex/newcommand/NewcommandConfiguration.js";
|
|
23
23
|
import "mathjax-full/js/input/tex/physics/PhysicsConfiguration.js";
|
|
24
24
|
import "mathjax-full/js/input/tex/textmacros/TextMacrosConfiguration.js";
|
|
25
|
-
import { useTheme } from "./
|
|
25
|
+
import { useTheme } from "./r~0.js";
|
|
26
26
|
var svg_namespaceObject = {};
|
|
27
27
|
__webpack_require__.r(svg_namespaceObject);
|
|
28
28
|
__webpack_require__.d(svg_namespaceObject, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from "react";
|
|
3
|
-
import { useTheme } from "./
|
|
4
|
-
import { InheritedText } from "./
|
|
3
|
+
import { useTheme } from "./r~0.js";
|
|
4
|
+
import { InheritedText } from "./7~0.js";
|
|
5
5
|
const BLOCK_TAG_NAMES = [
|
|
6
6
|
'address',
|
|
7
7
|
'article',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { Text, View } from "react-native";
|
|
4
|
-
import { InheritedText } from "./
|
|
5
|
-
import { TextMeasurement } from "./
|
|
4
|
+
import { InheritedText } from "./7~0.js";
|
|
5
|
+
import { TextMeasurement } from "./z~0.js";
|
|
6
6
|
const InlineDrawing = ({ children, active, length = 1, renderDrawing, onMeasure })=>{
|
|
7
7
|
const [layout, setLayout] = useState(null);
|
|
8
8
|
if (!active && !layout && !onMeasure) return /*#__PURE__*/ jsx(InheritedText, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxdown/react-native-plugins",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "React Native render slots and plugin presets for Fluxdown.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hast",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"renderer",
|
|
12
12
|
"streaming"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://
|
|
14
|
+
"homepage": "https://fluxdown.dev/",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/hexmora/fluxdown/issues"
|
|
17
17
|
},
|
|
@@ -72,22 +72,22 @@
|
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@fluxdown/hast": "^0.7.
|
|
76
|
-
"@fluxdown/react-base-plugins": "^0.11.
|
|
77
|
-
"@fluxdown/react-hooks": "^0.2.
|
|
78
|
-
"@fluxdown/types": "^0.10.
|
|
79
|
-
"@fluxdown/utils": "^0.7.
|
|
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",
|
|
80
80
|
"@osuki-dev/skia-diagrams": "^0.2.0",
|
|
81
|
-
"@types/hast": "
|
|
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.
|
|
89
|
-
"@fluxdown/core-plugins": "^0.
|
|
90
|
-
"@fluxdown/types": "^0.10.
|
|
88
|
+
"@fluxdown/core": "^0.12.8",
|
|
89
|
+
"@fluxdown/core-plugins": "^0.13.0",
|
|
90
|
+
"@fluxdown/types": "^0.10.2",
|
|
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.
|
|
106
|
+
"stative": "^2.1.1",
|
|
107
107
|
"typescript": "7.0.2"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|