@retikz/core 0.0.1-rc.0 → 0.0.1-rc.1

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.
Files changed (107) hide show
  1. package/dist/es/components/Scope.d.ts +2 -2
  2. package/dist/es/components/Scope.js +6 -5
  3. package/dist/es/components/TikZ.js +2 -2
  4. package/dist/es/components/draw/Draw.d.ts +11 -3
  5. package/dist/es/components/draw/Draw.js +31 -6
  6. package/dist/es/components/draw/InnerDraw.d.ts +7 -3
  7. package/dist/es/components/draw/InnerDraw.js +25 -20
  8. package/dist/es/components/draw/index.js +4 -0
  9. package/dist/es/components/draw/segment/Segment.js +5 -5
  10. package/dist/es/components/draw/segment/index.d.ts +0 -4
  11. package/dist/es/components/draw/segment/index.js +4 -4
  12. package/dist/es/components/draw/segment/useArrow.js +2 -2
  13. package/dist/es/components/draw/segment/useConvertWay.js +10 -6
  14. package/dist/es/components/node/InnerNode.d.ts +2 -2
  15. package/dist/es/components/node/InnerNode.js +6 -6
  16. package/dist/es/components/node/Node.d.ts +42 -3
  17. package/dist/es/components/node/Node.js +7 -6
  18. package/dist/es/components/node/_hooks/useNodeConfig.d.ts +1 -1
  19. package/dist/es/components/node/_hooks/useNodeContent.js +6 -3
  20. package/dist/es/components/node/_hooks/useNodeShape.js +2 -2
  21. package/dist/es/components/{pathNode → path-node}/PathNode.d.ts +11 -2
  22. package/dist/es/components/{pathNode → path-node}/PathNode.js +6 -6
  23. package/dist/es/container/Group.d.ts +2 -2
  24. package/dist/es/container/Group.js +5 -4
  25. package/dist/es/container/Surface.d.ts +4 -2
  26. package/dist/es/container/Surface.js +7 -7
  27. package/dist/es/elements/Path.d.ts +2 -2
  28. package/dist/es/elements/Path.js +5 -4
  29. package/dist/es/elements/Rect.d.ts +3 -5
  30. package/dist/es/elements/Rect.js +6 -5
  31. package/dist/es/elements/Text.d.ts +2 -3
  32. package/dist/es/elements/Text.js +7 -7
  33. package/dist/es/hooks/useForceUpdate.d.ts +1 -1
  34. package/dist/es/index.d.ts +4 -4
  35. package/dist/es/index.js +1 -1
  36. package/dist/es/test.d.ts +1 -0
  37. package/dist/es/types/svg/stroke.d.ts +2 -2
  38. package/dist/es/utils/style/stroke.d.ts +4 -3
  39. package/dist/es/utils/style/stroke.js +4 -2
  40. package/dist/lib/components/Scope.cjs +6 -5
  41. package/dist/lib/components/Scope.d.ts +2 -2
  42. package/dist/lib/components/TikZ.cjs +2 -2
  43. package/dist/lib/components/draw/Draw.cjs +31 -6
  44. package/dist/lib/components/draw/Draw.d.ts +11 -3
  45. package/dist/lib/components/draw/InnerDraw.cjs +26 -21
  46. package/dist/lib/components/draw/InnerDraw.d.ts +7 -3
  47. package/dist/lib/components/draw/index.cjs +4 -0
  48. package/dist/lib/components/draw/segment/Segment.cjs +7 -7
  49. package/dist/lib/components/draw/segment/index.cjs +6 -6
  50. package/dist/lib/components/draw/segment/index.d.ts +0 -4
  51. package/dist/lib/components/draw/segment/useArrow.cjs +4 -4
  52. package/dist/lib/components/draw/segment/useConvertWay.cjs +14 -10
  53. package/dist/lib/components/node/InnerNode.cjs +15 -15
  54. package/dist/lib/components/node/InnerNode.d.ts +2 -2
  55. package/dist/lib/components/node/Node.cjs +12 -11
  56. package/dist/lib/components/node/Node.d.ts +42 -3
  57. package/dist/lib/components/node/_hooks/useNodeConfig.cjs +2 -2
  58. package/dist/lib/components/node/_hooks/useNodeConfig.d.ts +1 -1
  59. package/dist/lib/components/node/_hooks/useNodeContent.cjs +9 -6
  60. package/dist/lib/components/node/_hooks/useNodeShape.cjs +4 -4
  61. package/dist/lib/components/{pathNode → path-node}/PathNode.cjs +12 -12
  62. package/dist/lib/components/{pathNode → path-node}/PathNode.d.ts +11 -2
  63. package/dist/lib/components/{pathNode → path-node}/useAnchor.cjs +4 -4
  64. package/dist/lib/container/Group.cjs +5 -4
  65. package/dist/lib/container/Group.d.ts +2 -2
  66. package/dist/lib/container/Surface.cjs +8 -8
  67. package/dist/lib/container/Surface.d.ts +4 -2
  68. package/dist/lib/elements/Path.cjs +5 -4
  69. package/dist/lib/elements/Path.d.ts +2 -2
  70. package/dist/lib/elements/Rect.cjs +6 -5
  71. package/dist/lib/elements/Rect.d.ts +3 -5
  72. package/dist/lib/elements/Text.cjs +8 -8
  73. package/dist/lib/elements/Text.d.ts +2 -3
  74. package/dist/lib/hooks/context/useCalculate.cjs +3 -3
  75. package/dist/lib/hooks/context/useNodes.cjs +3 -3
  76. package/dist/lib/hooks/context/usePath.cjs +3 -3
  77. package/dist/lib/hooks/context/useScope.cjs +3 -3
  78. package/dist/lib/hooks/useForceUpdate.cjs +2 -2
  79. package/dist/lib/hooks/useForceUpdate.d.ts +1 -1
  80. package/dist/lib/index.cjs +1 -1
  81. package/dist/lib/index.d.ts +4 -4
  82. package/dist/lib/test.d.ts +1 -0
  83. package/dist/lib/types/svg/stroke.d.ts +2 -2
  84. package/dist/lib/utils/style/stroke.cjs +4 -2
  85. package/dist/lib/utils/style/stroke.d.ts +4 -3
  86. package/package.json +9 -8
  87. package/dist/es/_virtual/jsx-runtime.js +0 -5
  88. package/dist/es/_virtual/jsx-runtime2.js +0 -4
  89. package/dist/es/_virtual/react-jsx-runtime.development.js +0 -4
  90. package/dist/es/_virtual/react-jsx-runtime.production.js +0 -4
  91. package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -20
  92. package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -41
  93. package/dist/es/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -17
  94. package/dist/lib/_virtual/jsx-runtime.cjs +0 -5
  95. package/dist/lib/_virtual/jsx-runtime2.cjs +0 -4
  96. package/dist/lib/_virtual/react-jsx-runtime.development.cjs +0 -4
  97. package/dist/lib/_virtual/react-jsx-runtime.production.cjs +0 -4
  98. package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -20
  99. package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -41
  100. package/dist/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs +0 -17
  101. /package/dist/es/components/{pathNode → path-node}/index.d.ts +0 -0
  102. /package/dist/es/components/{pathNode → path-node}/index.js +0 -0
  103. /package/dist/es/components/{pathNode → path-node}/useAnchor.d.ts +0 -0
  104. /package/dist/es/components/{pathNode → path-node}/useAnchor.js +0 -0
  105. /package/dist/lib/components/{pathNode → path-node}/index.cjs +0 -0
  106. /package/dist/lib/components/{pathNode → path-node}/index.d.ts +0 -0
  107. /package/dist/lib/components/{pathNode → path-node}/useAnchor.d.ts +0 -0
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const jsxRuntime = require("../_virtual/jsx-runtime.cjs");
4
- const require$$0 = require("react");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
5
  const string = require("../utils/string.cjs");
6
- const Text = (props) => {
7
- const { children, ref, align, verticalAlign, fontSize, fill, ...otherProps } = props;
8
- const dominantBaseline = require$$0.useMemo(() => {
6
+ const Text = react.forwardRef((props, ref) => {
7
+ const { children, align, verticalAlign, fontSize, fill, ...otherProps } = props;
8
+ const dominantBaseline = react.useMemo(() => {
9
9
  switch (verticalAlign) {
10
10
  case "top":
11
11
  return "text-top";
@@ -26,10 +26,10 @@ const Text = (props) => {
26
26
  };
27
27
  const parseChildren = (children2) => {
28
28
  if (typeof children2 === "string") {
29
- return string.textWrapParse(children2).map((child, index) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("tspan", { children: child }, index));
29
+ return string.textWrapParse(children2).map((child, index) => /* @__PURE__ */ jsxRuntime.jsx("tspan", { children: child }, index));
30
30
  }
31
31
  return children2;
32
32
  };
33
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("text", { ref, ...textProps, children: parseChildren(children) });
34
- };
33
+ return /* @__PURE__ */ jsxRuntime.jsx("text", { ref, ...textProps, children: parseChildren(children) });
34
+ });
35
35
  exports.default = Text;
@@ -1,4 +1,4 @@
1
- import { FC, PropsWithChildren, Ref, SVGProps } from 'react';
1
+ import { PropsWithChildren, SVGProps } from 'react';
2
2
  import { FontProps } from '../types/svg/font';
3
3
  type TextVerticalAlign = 'top' | 'center' | 'bottom';
4
4
  export type DominantBaseline = 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging' | 'text-top';
@@ -9,11 +9,10 @@ export type TextProps = {
9
9
  verticalAlign?: TextVerticalAlign | DominantBaseline;
10
10
  fontSize?: SVGProps<SVGTextElement>['fontSize'];
11
11
  fill?: SVGProps<SVGTextElement>['fill'];
12
- ref?: Ref<SVGTextElement>;
13
12
  } & FontProps & SVGProps<SVGTextElement>;
14
13
  /**
15
14
  * 文本节点
16
15
  * @tikz node
17
16
  */
18
- declare const Text: FC<PropsWithChildren<TextProps>>;
17
+ declare const Text: import('react').ForwardRefExoticComponent<Omit<PropsWithChildren<TextProps>, "ref"> & import('react').RefAttributes<SVGTextElement>>;
19
18
  export default Text;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const require$$0 = require("react");
4
- const CalculateContext = require$$0.createContext({ precision: 2 });
3
+ const react = require("react");
4
+ const CalculateContext = react.createContext({ precision: 2 });
5
5
  const useCalculate = () => {
6
- return require$$0.useContext(CalculateContext);
6
+ return react.useContext(CalculateContext);
7
7
  };
8
8
  exports.CalculateContext = CalculateContext;
9
9
  exports.default = useCalculate;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const require$$0 = require("react");
3
+ const react = require("react");
4
4
  const node = require("../../model/component/node.cjs");
5
- const NodesContext = require$$0.createContext(/* @__PURE__ */ new Map());
5
+ const NodesContext = react.createContext(/* @__PURE__ */ new Map());
6
6
  const useNodes = () => {
7
- const nodes = require$$0.useContext(NodesContext);
7
+ const nodes = react.useContext(NodesContext);
8
8
  return {
9
9
  subscribeModel: (name, listener) => {
10
10
  const model = nodes.get(name);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const require$$0 = require("react");
4
- const PathContext = require$$0.createContext(null);
3
+ const react = require("react");
4
+ const PathContext = react.createContext(null);
5
5
  const usePath = () => {
6
- const pathModel = require$$0.useContext(PathContext);
6
+ const pathModel = react.useContext(PathContext);
7
7
  if (!pathModel) throw new Error("usePath must be used within a PathProvider");
8
8
  return {
9
9
  model: pathModel,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const require$$0 = require("react");
4
- const ScopeContext = require$$0.createContext({});
5
- const useScope = () => require$$0.useContext(ScopeContext);
3
+ const react = require("react");
4
+ const ScopeContext = react.createContext({});
5
+ const useScope = () => react.useContext(ScopeContext);
6
6
  exports.ScopeContext = ScopeContext;
7
7
  exports.default = useScope;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const require$$0 = require("react");
3
+ const react = require("react");
4
4
  const useForceUpdate = () => {
5
- const [_, forceUpdate] = require$$0.useReducer(() => ({}), {});
5
+ const [_, forceUpdate] = react.useReducer(() => ({}), {});
6
6
  return forceUpdate;
7
7
  };
8
8
  exports.default = useForceUpdate;
@@ -1,2 +1,2 @@
1
- declare const useForceUpdate: () => import('react').ActionDispatch<[]>;
1
+ declare const useForceUpdate: () => import('react').DispatchWithoutAction;
2
2
  export default useForceUpdate;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const Draw = require("./components/draw/Draw.cjs");
4
4
  const Node = require("./components/node/Node.cjs");
5
- const PathNode = require("./components/pathNode/PathNode.cjs");
5
+ const PathNode = require("./components/path-node/PathNode.cjs");
6
6
  const Scope = require("./components/Scope.cjs");
7
7
  const TikZ = require("./components/TikZ.cjs");
8
8
  exports.Draw = Draw.default;
@@ -1,9 +1,9 @@
1
- export { default as Draw } from './components/draw/Draw';
2
- export type { DrawProps } from './components/draw/Draw';
1
+ export { default as Draw } from './components/draw';
2
+ export type { DrawProps } from './components/draw';
3
3
  export { default as Node } from './components/node';
4
4
  export type { NodeProps } from './components/node';
5
- export { default as PathNode } from './components/pathNode';
6
- export type { PathNodeProps } from './components/pathNode';
5
+ export { default as PathNode } from './components/path-node';
6
+ export type { PathNodeProps } from './components/path-node';
7
7
  export { default as Scope } from './components/Scope';
8
8
  export type { ScopeProps } from './components/Scope';
9
9
  export { default as TikZ } from './components/TikZ';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,10 @@
1
1
  export type StrokeProps = {
2
2
  stroke?: string;
3
- strokeWidth?: number;
3
+ strokeWidth?: number | string;
4
4
  strokeDasharray?: string;
5
5
  strokeDashoffset?: string;
6
6
  strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
7
- strokeLinejoin?: "round" | "inherit" | "bevel" | "miter";
7
+ strokeLinejoin?: 'round' | 'inherit' | 'bevel' | 'miter';
8
8
  strokeMiterlimit?: number;
9
9
  strokeOpacity?: number;
10
10
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const convertStrokeType = (strokeType, strokeWidth = 1) => {
3
+ const convertStrokeType = (strokeType, oriStrokeWidth = 1) => {
4
+ const strokeWidth = Number(oriStrokeWidth);
4
5
  switch (strokeType) {
5
6
  case "solid":
6
7
  return {};
@@ -30,7 +31,8 @@ const convertStrokeType = (strokeType, strokeWidth = 1) => {
30
31
  return { strokeDasharray: `${strokeWidth * 4} ${strokeWidth * 6} 1 ${strokeWidth * 6} 1 ${strokeWidth * 6}` };
31
32
  }
32
33
  };
33
- const convertStrokeShortcut = (shortcutProps, strokeWidth = 1) => {
34
+ const convertStrokeShortcut = (shortcutProps, oriStrokeWidth = 1) => {
35
+ const strokeWidth = Number(oriStrokeWidth);
34
36
  return convertStrokeType(
35
37
  shortcutProps.dashed ? "dashed" : shortcutProps.denselyDashed ? "denselyDashed" : shortcutProps.looselyDashed ? "looselyDashed" : shortcutProps.dotted ? "dotted" : shortcutProps.denselyDotted ? "denselyDotted" : shortcutProps.looselyDotted ? "looselyDotted" : shortcutProps.dashDot ? "dashDot" : shortcutProps.denselyDashDot ? "denselyDashDot" : shortcutProps.looselyDashDot ? "looselyDashDot" : shortcutProps.dashDashDot ? "dashDashDot" : shortcutProps.denselyDashDashDot ? "denselyDashDashDot" : shortcutProps.looselyDashDashDot ? "looselyDashDashDot" : "solid",
36
38
  strokeWidth || 1
@@ -1,5 +1,6 @@
1
1
  import { StrokeProps } from '../../types/svg/stroke';
2
- export type StrokeType = 'solid' | 'dashed' | 'denselyDashed' | 'looselyDashed' | 'dotted' | 'denselyDotted' | 'looselyDotted' | 'dashDot' | 'denselyDashDot' | 'looselyDashDot' | 'dashDashDot' | 'denselyDashDashDot' | 'looselyDashDashDot';
2
+ export declare const strokeTypes: readonly ["solid", "dashed", "denselyDashed", "looselyDashed", "dotted", "denselyDotted", "looselyDotted", "dashDot", "denselyDashDot", "looselyDashDot", "dashDashDot", "denselyDashDashDot", "looselyDashDashDot"];
3
+ export type StrokeType = typeof strokeTypes[number];
3
4
  export type StrokeShortcutProps = {
4
5
  dashed?: boolean;
5
6
  denselyDashed?: boolean;
@@ -15,5 +16,5 @@ export type StrokeShortcutProps = {
15
16
  looselyDashDashDot?: boolean;
16
17
  };
17
18
  /** 将 StrokeType 转换为 svg 原生的属性 */
18
- export declare const convertStrokeType: (strokeType: StrokeType, strokeWidth?: number) => Partial<StrokeProps>;
19
- export declare const convertStrokeShortcut: (shortcutProps: StrokeShortcutProps, strokeWidth?: number) => Partial<StrokeProps>;
19
+ export declare const convertStrokeType: (strokeType: StrokeType, oriStrokeWidth?: string | number) => Partial<StrokeProps>;
20
+ export declare const convertStrokeShortcut: (shortcutProps: StrokeShortcutProps, oriStrokeWidth?: string | number) => Partial<StrokeProps>;
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@retikz/core",
3
- "version": "0.0.1-rc.0",
3
+ "version": "0.0.1-rc.1",
4
4
  "description": "atomic drawing library implemented using react and d3, inspired by tikz",
5
5
  "type": "module",
6
+ "homepage": "https://pionpill.github.io/retikz.doc/",
6
7
  "keywords": [
7
8
  "react",
8
9
  "tikz",
@@ -10,7 +11,7 @@
10
11
  ],
11
12
  "license": "MIT",
12
13
  "repository": "https://github.com/Pionpill/retikz",
13
- "main": "dist/lib/index.js",
14
+ "main": "dist/lib/index.cjs",
14
15
  "module": "dist/es/index.js",
15
16
  "types": "dist/lib/index.d.ts",
16
17
  "publishConfig": {
@@ -28,22 +29,22 @@
28
29
  "preview": "vite preview"
29
30
  },
30
31
  "peerDependencies": {
31
- "react": ">=19.0.0",
32
- "react-dom": ">=19.0.0"
32
+ "react": ">=18",
33
+ "react-dom": ">=18"
33
34
  },
34
35
  "dependencies": {
35
36
  "d3-color": "^3.1.0",
36
37
  "d3-shape": "^3.2.0",
37
- "react": "^19",
38
- "react-dom": "^19"
38
+ "react": "~18.3",
39
+ "react-dom": "~18.3"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@eslint/js": "^9.15.0",
42
43
  "@types/d3-color": "^3.1.3",
43
44
  "@types/d3-shape": "^3.1.6",
44
45
  "@types/node": "^22.10.7",
45
- "@types/react": "^19",
46
- "@types/react-dom": "^19",
46
+ "@types/react": "~18.3",
47
+ "@types/react-dom": "~18.3",
47
48
  "@vitejs/plugin-react": "^4.3.4",
48
49
  "eslint": "^9.15.0",
49
50
  "eslint-plugin-react-hooks": "^5.0.0",
@@ -1,5 +0,0 @@
1
- import { __require as requireJsxRuntime } from "../node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js";
2
- var jsxRuntimeExports = requireJsxRuntime();
3
- export {
4
- jsxRuntimeExports as j
5
- };
@@ -1,4 +0,0 @@
1
- var jsxRuntime = { exports: {} };
2
- export {
3
- jsxRuntime as __module
4
- };
@@ -1,4 +0,0 @@
1
- var reactJsxRuntime_development = {};
2
- export {
3
- reactJsxRuntime_development as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var reactJsxRuntime_production = {};
2
- export {
3
- reactJsxRuntime_production as __exports
4
- };
@@ -1,20 +0,0 @@
1
- import { __exports as reactJsxRuntime_development } from "../../../../../../_virtual/react-jsx-runtime.development.js";
2
- import require$$0 from "react";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.development.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var hasRequiredReactJsxRuntime_development;
13
- function requireReactJsxRuntime_development() {
14
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
15
- hasRequiredReactJsxRuntime_development = 1;
16
- return reactJsxRuntime_development;
17
- }
18
- export {
19
- requireReactJsxRuntime_development as __require
20
- };
@@ -1,41 +0,0 @@
1
- import { __exports as reactJsxRuntime_production } from "../../../../../../_virtual/react-jsx-runtime.production.js";
2
- /**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- var hasRequiredReactJsxRuntime_production;
12
- function requireReactJsxRuntime_production() {
13
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
14
- hasRequiredReactJsxRuntime_production = 1;
15
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
16
- function jsxProd(type, config, maybeKey) {
17
- var key = null;
18
- void 0 !== maybeKey && (key = "" + maybeKey);
19
- void 0 !== config.key && (key = "" + config.key);
20
- if ("key" in config) {
21
- maybeKey = {};
22
- for (var propName in config)
23
- "key" !== propName && (maybeKey[propName] = config[propName]);
24
- } else maybeKey = config;
25
- config = maybeKey.ref;
26
- return {
27
- $$typeof: REACT_ELEMENT_TYPE,
28
- type,
29
- key,
30
- ref: void 0 !== config ? config : null,
31
- props: maybeKey
32
- };
33
- }
34
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
35
- reactJsxRuntime_production.jsx = jsxProd;
36
- reactJsxRuntime_production.jsxs = jsxProd;
37
- return reactJsxRuntime_production;
38
- }
39
- export {
40
- requireReactJsxRuntime_production as __require
41
- };
@@ -1,17 +0,0 @@
1
- import { __module as jsxRuntime } from "../../../../../_virtual/jsx-runtime2.js";
2
- import { __require as requireReactJsxRuntime_production } from "./cjs/react-jsx-runtime.production.js";
3
- import { __require as requireReactJsxRuntime_development } from "./cjs/react-jsx-runtime.development.js";
4
- var hasRequiredJsxRuntime;
5
- function requireJsxRuntime() {
6
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
7
- hasRequiredJsxRuntime = 1;
8
- if (true) {
9
- jsxRuntime.exports = requireReactJsxRuntime_production();
10
- } else {
11
- jsxRuntime.exports = requireReactJsxRuntime_development();
12
- }
13
- return jsxRuntime.exports;
14
- }
15
- export {
16
- requireJsxRuntime as __require
17
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs");
4
- var jsxRuntimeExports = jsxRuntime.__require();
5
- exports.jsxRuntimeExports = jsxRuntimeExports;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var jsxRuntime = { exports: {} };
4
- exports.__module = jsxRuntime;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var reactJsxRuntime_development = {};
4
- exports.__exports = reactJsxRuntime_development;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var reactJsxRuntime_production = {};
4
- exports.__exports = reactJsxRuntime_production;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactJsxRuntime_development = require("../../../../../../_virtual/react-jsx-runtime.development.cjs");
4
- const require$$0 = require("react");
5
- /**
6
- * @license React
7
- * react-jsx-runtime.development.js
8
- *
9
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var hasRequiredReactJsxRuntime_development;
15
- function requireReactJsxRuntime_development() {
16
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development.__exports;
17
- hasRequiredReactJsxRuntime_development = 1;
18
- return reactJsxRuntime_development.__exports;
19
- }
20
- exports.__require = requireReactJsxRuntime_development;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const reactJsxRuntime_production = require("../../../../../../_virtual/react-jsx-runtime.production.cjs");
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.js
7
- *
8
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var hasRequiredReactJsxRuntime_production;
14
- function requireReactJsxRuntime_production() {
15
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production.__exports;
16
- hasRequiredReactJsxRuntime_production = 1;
17
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
18
- function jsxProd(type, config, maybeKey) {
19
- var key = null;
20
- void 0 !== maybeKey && (key = "" + maybeKey);
21
- void 0 !== config.key && (key = "" + config.key);
22
- if ("key" in config) {
23
- maybeKey = {};
24
- for (var propName in config)
25
- "key" !== propName && (maybeKey[propName] = config[propName]);
26
- } else maybeKey = config;
27
- config = maybeKey.ref;
28
- return {
29
- $$typeof: REACT_ELEMENT_TYPE,
30
- type,
31
- key,
32
- ref: void 0 !== config ? config : null,
33
- props: maybeKey
34
- };
35
- }
36
- reactJsxRuntime_production.__exports.Fragment = REACT_FRAGMENT_TYPE;
37
- reactJsxRuntime_production.__exports.jsx = jsxProd;
38
- reactJsxRuntime_production.__exports.jsxs = jsxProd;
39
- return reactJsxRuntime_production.__exports;
40
- }
41
- exports.__require = requireReactJsxRuntime_production;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("../../../../../_virtual/jsx-runtime2.cjs");
4
- const reactJsxRuntime_production = require("./cjs/react-jsx-runtime.production.cjs");
5
- const reactJsxRuntime_development = require("./cjs/react-jsx-runtime.development.cjs");
6
- var hasRequiredJsxRuntime;
7
- function requireJsxRuntime() {
8
- if (hasRequiredJsxRuntime) return jsxRuntime.__module.exports;
9
- hasRequiredJsxRuntime = 1;
10
- if (true) {
11
- jsxRuntime.__module.exports = reactJsxRuntime_production.__require();
12
- } else {
13
- jsxRuntime.__module.exports = reactJsxRuntime_development.__require();
14
- }
15
- return jsxRuntime.__module.exports;
16
- }
17
- exports.__require = requireJsxRuntime;