@ktnpm_devops/react-component 0.21.0 → 0.22.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/LICENSE +14 -15
- package/README.md +2 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +6 -10
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +5 -9
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +13 -64
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +13 -64
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +30 -15
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +30 -15
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +28 -22
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +28 -22
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +134 -19
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +133 -18
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +40 -13
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +40 -13
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -1
- package/dist/index107.cjs +16 -19
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +17 -20
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +52 -16
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +52 -16
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +116 -7
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +115 -6
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +37 -19
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +37 -19
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +18 -17
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +17 -16
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +50 -2
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +51 -3
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +35 -15
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +34 -14
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +43 -6
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +42 -5
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +24 -39
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +23 -38
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +39 -21
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +38 -20
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +9 -22
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +8 -21
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +10 -21
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +9 -20
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +20 -19
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +19 -18
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +14 -40
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +13 -39
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +10 -54
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +9 -53
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +70 -48
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +69 -47
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +70 -18
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +69 -17
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +16 -31
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +17 -32
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +22 -33
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +21 -32
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +69 -6
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +68 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +7 -51
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +6 -50
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +34 -10
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +35 -11
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +19 -49
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +18 -48
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +21 -75
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +20 -74
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +48 -1163
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +47 -1163
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +72 -1572
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +71 -1572
- package/dist/index132.js.map +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +2 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +2 -2
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +3 -3
- package/dist/index29.js +3 -3
- package/dist/index30.cjs +11 -11
- package/dist/index30.js +11 -11
- package/dist/index31.cjs +4 -4
- package/dist/index31.js +4 -4
- package/dist/index32.cjs +3 -3
- package/dist/index32.js +3 -3
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.js +2 -2
- package/dist/index35.cjs +2 -2
- package/dist/index35.js +2 -2
- package/dist/index36.cjs +2 -2
- package/dist/index36.js +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +3 -3
- package/dist/index38.js +3 -3
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.cjs +2 -2
- package/dist/index41.js +2 -2
- package/dist/index42.cjs +2 -2
- package/dist/index42.js +2 -2
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +2 -2
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +4 -4
- package/dist/index45.js +4 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +1 -1
- package/dist/index49.cjs +2 -2
- package/dist/index49.js +2 -2
- package/dist/index50.cjs +3 -3
- package/dist/index50.js +3 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +3 -3
- package/dist/index52.js +3 -3
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +3 -3
- package/dist/index55.js +3 -3
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +2 -2
- package/dist/index58.js +2 -2
- package/dist/index60.cjs +21 -18
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +22 -19
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +17 -27
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +16 -26
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +6 -144
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +5 -143
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +5 -17
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +5 -17
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +145 -25
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +143 -23
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +36 -18
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +36 -18
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +20 -17
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +21 -18
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +13 -10
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +13 -10
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +19 -64
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +19 -64
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +11 -2
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +11 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +24 -73
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +23 -72
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +14 -50
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +14 -50
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +2 -80
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +3 -81
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +13 -13
- package/dist/index73.js +13 -13
- package/dist/index74.cjs +19 -34
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +20 -35
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +73 -33
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +72 -32
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +29 -5
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +30 -6
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +2 -5
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +2 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +43 -25
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +44 -26
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +75 -33
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +75 -33
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +25 -134
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +24 -133
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +50 -38
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +50 -38
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +1164 -58
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +1163 -56
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +1570 -34
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +1570 -33
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +15 -92
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +14 -91
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +48 -40
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +47 -39
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +14 -112
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +14 -112
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +31 -37
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +31 -37
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +15 -22
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +14 -21
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +21 -69
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +20 -68
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +9 -7
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +8 -6
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +2 -35
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +3 -36
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +39 -35
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +38 -34
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +21 -43
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +20 -42
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +38 -23
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +38 -23
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +91 -38
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +91 -38
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +40 -9
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +39 -8
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +39 -10
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +38 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +25 -20
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +24 -19
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +43 -14
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +42 -13
- package/dist/index99.js.map +1 -1
- package/package.json +2 -2
package/dist/index44.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import ReactECharts from "echarts-for-react";
|
|
4
4
|
import { clsx } from "./index59.js";
|
|
5
|
-
import { MAX_SANKEY_NODES, CHART_COLORS } from "./
|
|
6
|
-
import styles from "./
|
|
5
|
+
import { MAX_SANKEY_NODES, CHART_COLORS } from "./index64.js";
|
|
6
|
+
import styles from "./index99.js";
|
|
7
7
|
const COLOR_METRIC_OPTIONS = [
|
|
8
8
|
{ value: "deviation", label: "Deviation" },
|
|
9
9
|
{ value: "severity", label: "Severity" },
|
package/dist/index45.cjs
CHANGED
|
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const ReactECharts = require("echarts-for-react");
|
|
6
6
|
const clsx = require("./index59.cjs");
|
|
7
|
-
const foldPoints = require("./
|
|
8
|
-
const buildScatterOption = require("./
|
|
9
|
-
const constants = require("./
|
|
10
|
-
const ScatterChartCard_module = require("./
|
|
7
|
+
const foldPoints = require("./index94.cjs");
|
|
8
|
+
const buildScatterOption = require("./index95.cjs");
|
|
9
|
+
const constants = require("./index64.cjs");
|
|
10
|
+
const ScatterChartCard_module = require("./index96.cjs");
|
|
11
11
|
const SOURCE_INDEX_DIM = 3;
|
|
12
12
|
const buildAriaLabel = (title, xLabel, yLabel) => xLabel && yLabel ? `${title}: scatter plot of ${yLabel} against ${xLabel}` : `${title}: scatter plot`;
|
|
13
13
|
const ScatterChartCard = ({
|
package/dist/index45.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo, useEffect } from "react";
|
|
3
3
|
import ReactECharts from "echarts-for-react";
|
|
4
4
|
import { clsx } from "./index59.js";
|
|
5
|
-
import { foldPoints } from "./
|
|
6
|
-
import { buildScatterOption } from "./
|
|
7
|
-
import { SCATTER } from "./
|
|
8
|
-
import styles from "./
|
|
5
|
+
import { foldPoints } from "./index94.js";
|
|
6
|
+
import { buildScatterOption } from "./index95.js";
|
|
7
|
+
import { SCATTER } from "./index64.js";
|
|
8
|
+
import styles from "./index96.js";
|
|
9
9
|
const SOURCE_INDEX_DIM = 3;
|
|
10
10
|
const buildAriaLabel = (title, xLabel, yLabel) => xLabel && yLabel ? `${title}: scatter plot of ${yLabel} against ${xLabel}` : `${title}: scatter plot`;
|
|
11
11
|
const ScatterChartCard = ({
|
package/dist/index46.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const SegmentedControl_module = require("./
|
|
6
|
+
const SegmentedControl_module = require("./index70.cjs");
|
|
7
7
|
function nextEnabledIndex(options, from, step) {
|
|
8
8
|
const count = options.length;
|
|
9
9
|
for (let i = 1; i <= count; i += 1) {
|
package/dist/index46.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useRef } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
|
-
import styles from "./
|
|
4
|
+
import styles from "./index70.js";
|
|
5
5
|
function nextEnabledIndex(options, from, step) {
|
|
6
6
|
const count = options.length;
|
|
7
7
|
for (let i = 1; i <= count; i += 1) {
|
package/dist/index47.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const Select_module = require("./
|
|
6
|
+
const Select_module = require("./index106.cjs");
|
|
7
7
|
const Select = react.forwardRef(
|
|
8
8
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("select", { ref, className: clsx.clsx(Select_module.default.root, className), ...props, children })
|
|
9
9
|
);
|
package/dist/index47.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
|
-
import styles from "./
|
|
4
|
+
import styles from "./index106.js";
|
|
5
5
|
const Select = forwardRef(
|
|
6
6
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("select", { ref, className: clsx(styles.root, className), ...props, children })
|
|
7
7
|
);
|
package/dist/index48.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const clsx = require("./index59.cjs");
|
|
5
|
-
const SettingsLayout_module = require("./
|
|
5
|
+
const SettingsLayout_module = require("./index89.cjs");
|
|
6
6
|
const SettingsLayout = ({
|
|
7
7
|
sidebar,
|
|
8
8
|
children,
|
package/dist/index48.js
CHANGED
package/dist/index49.cjs
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const constants = require("./
|
|
7
|
-
const Sidebar_module = require("./
|
|
6
|
+
const constants = require("./index64.cjs");
|
|
7
|
+
const Sidebar_module = require("./index92.cjs");
|
|
8
8
|
const SidebarContext = react.createContext({ isCollapsed: false });
|
|
9
9
|
const useSidebarContext = () => react.useContext(SidebarContext);
|
|
10
10
|
const SidebarSection = ({
|
package/dist/index49.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useState, useId, createContext } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
|
-
import { SIDEBAR } from "./
|
|
5
|
-
import styles from "./
|
|
4
|
+
import { SIDEBAR } from "./index64.js";
|
|
5
|
+
import styles from "./index92.js";
|
|
6
6
|
const SidebarContext = createContext({ isCollapsed: false });
|
|
7
7
|
const useSidebarContext = () => useContext(SidebarContext);
|
|
8
8
|
const SidebarSection = ({
|
package/dist/index50.cjs
CHANGED
|
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
6
|
const useClickOutside = require("./index4.cjs");
|
|
7
|
-
const usePanelPlacement = require("./
|
|
7
|
+
const usePanelPlacement = require("./index75.cjs");
|
|
8
8
|
const useEscapeKey = require("./index5.cjs");
|
|
9
|
-
const constants = require("./
|
|
10
|
-
const SingleSelectDropdown_module = require("./
|
|
9
|
+
const constants = require("./index64.cjs");
|
|
10
|
+
const SingleSelectDropdown_module = require("./index81.cjs");
|
|
11
11
|
const SingleSelectDropdown = ({
|
|
12
12
|
label,
|
|
13
13
|
options,
|
package/dist/index50.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useRef, useCallback, useMemo } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
4
|
import { useClickOutside } from "./index4.js";
|
|
5
|
-
import { usePanelPlacement } from "./
|
|
5
|
+
import { usePanelPlacement } from "./index75.js";
|
|
6
6
|
import { useEscapeKey } from "./index5.js";
|
|
7
|
-
import { SVG_STROKE_WIDTH, SVG_VIEWBOX, ICON_SIZE } from "./
|
|
8
|
-
import styles from "./
|
|
7
|
+
import { SVG_STROKE_WIDTH, SVG_VIEWBOX, ICON_SIZE } from "./index64.js";
|
|
8
|
+
import styles from "./index81.js";
|
|
9
9
|
const SingleSelectDropdown = ({
|
|
10
10
|
label,
|
|
11
11
|
options,
|
package/dist/index51.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const Sparkline_module = require("./
|
|
6
|
+
const Sparkline_module = require("./index90.cjs");
|
|
7
7
|
const PAD = 3;
|
|
8
8
|
const Sparkline = react.forwardRef(
|
|
9
9
|
({
|
package/dist/index51.js
CHANGED
package/dist/index52.cjs
CHANGED
|
@@ -4,9 +4,9 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const ReactECharts = require("echarts-for-react");
|
|
6
6
|
const clsx = require("./index59.cjs");
|
|
7
|
-
const constants = require("./
|
|
8
|
-
const buildChartOptions = require("./
|
|
9
|
-
const StackedBarChartCard_module = require("./
|
|
7
|
+
const constants = require("./index64.cjs");
|
|
8
|
+
const buildChartOptions = require("./index104.cjs");
|
|
9
|
+
const StackedBarChartCard_module = require("./index105.cjs");
|
|
10
10
|
const CHART_TYPE_LABELS = {
|
|
11
11
|
bar: "Bar",
|
|
12
12
|
pie: "Pie",
|
package/dist/index52.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo, useCallback } from "react";
|
|
3
3
|
import ReactECharts from "echarts-for-react";
|
|
4
4
|
import { clsx } from "./index59.js";
|
|
5
|
-
import { MAX_CATEGORIES, MAX_SUBCATEGORIES } from "./
|
|
6
|
-
import { aggregateData, buildBarOption, buildSunburstOption, buildPieOption } from "./
|
|
7
|
-
import styles from "./
|
|
5
|
+
import { MAX_CATEGORIES, MAX_SUBCATEGORIES } from "./index64.js";
|
|
6
|
+
import { aggregateData, buildBarOption, buildSunburstOption, buildPieOption } from "./index104.js";
|
|
7
|
+
import styles from "./index105.js";
|
|
8
8
|
const CHART_TYPE_LABELS = {
|
|
9
9
|
bar: "Bar",
|
|
10
10
|
pie: "Pie",
|
package/dist/index53.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const StatCard_module = require("./
|
|
6
|
+
const StatCard_module = require("./index66.cjs");
|
|
7
7
|
const StatCard = react.forwardRef(
|
|
8
8
|
({
|
|
9
9
|
label,
|
package/dist/index53.js
CHANGED
package/dist/index54.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const clsx = require("./index59.cjs");
|
|
5
|
-
const Table_module = require("./
|
|
5
|
+
const Table_module = require("./index63.cjs");
|
|
6
6
|
const TableContainer = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx.clsx(Table_module.default.container, className), ...props });
|
|
7
7
|
const Table = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("table", { className: clsx.clsx(Table_module.default.root, className), ...props });
|
|
8
8
|
exports.Table = Table;
|
package/dist/index54.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { clsx } from "./index59.js";
|
|
3
|
-
import styles from "./
|
|
3
|
+
import styles from "./index63.js";
|
|
4
4
|
const TableContainer = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: clsx(styles.container, className), ...props });
|
|
5
5
|
const Table = ({ className, ...props }) => /* @__PURE__ */ jsx("table", { className: clsx(styles.root, className), ...props });
|
|
6
6
|
export {
|
package/dist/index55.cjs
CHANGED
|
@@ -4,9 +4,9 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
6
|
const ReactECharts = require("echarts-for-react");
|
|
7
|
-
const constants = require("./
|
|
8
|
-
const buildChartOption = require("./
|
|
9
|
-
const TemporalTrendChartCard_module = require("./
|
|
7
|
+
const constants = require("./index64.cjs");
|
|
8
|
+
const buildChartOption = require("./index109.cjs");
|
|
9
|
+
const TemporalTrendChartCard_module = require("./index110.cjs");
|
|
10
10
|
function TemporalTrendChartCard({
|
|
11
11
|
title,
|
|
12
12
|
data,
|
package/dist/index55.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo, useCallback } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
4
|
import ReactECharts from "echarts-for-react";
|
|
5
|
-
import { MAX_SERIES } from "./
|
|
6
|
-
import { groupByCategory, buildTemporalTrendOption } from "./
|
|
7
|
-
import styles from "./
|
|
5
|
+
import { MAX_SERIES } from "./index64.js";
|
|
6
|
+
import { groupByCategory, buildTemporalTrendOption } from "./index109.js";
|
|
7
|
+
import styles from "./index110.js";
|
|
8
8
|
function TemporalTrendChartCard({
|
|
9
9
|
title,
|
|
10
10
|
data,
|
package/dist/index56.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const Textarea_module = require("./
|
|
6
|
+
const Textarea_module = require("./index100.cjs");
|
|
7
7
|
const Textarea = react.forwardRef(
|
|
8
8
|
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("textarea", { ref, className: clsx.clsx(Textarea_module.default.root, className), ...props })
|
|
9
9
|
);
|
package/dist/index56.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
|
-
import styles from "./
|
|
4
|
+
import styles from "./index100.js";
|
|
5
5
|
const Textarea = forwardRef(
|
|
6
6
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("textarea", { ref, className: clsx(styles.root, className), ...props })
|
|
7
7
|
);
|
package/dist/index57.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const clsx = require("./index59.cjs");
|
|
6
|
-
const Toast_module = require("./
|
|
6
|
+
const Toast_module = require("./index111.cjs");
|
|
7
7
|
const Toast = react.forwardRef(
|
|
8
8
|
({ variant = "default", className, role = "status", children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
9
|
"div",
|
package/dist/index57.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { clsx } from "./index59.js";
|
|
4
|
-
import styles from "./
|
|
4
|
+
import styles from "./index111.js";
|
|
5
5
|
const Toast = forwardRef(
|
|
6
6
|
({ variant = "default", className, role = "status", children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
7
|
"div",
|
package/dist/index58.cjs
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const reactDom = require("react-dom");
|
|
6
|
-
const constants = require("./
|
|
6
|
+
const constants = require("./index64.cjs");
|
|
7
7
|
const Toast = require("./index57.cjs");
|
|
8
|
-
const Toast_module = require("./
|
|
8
|
+
const Toast_module = require("./index111.cjs");
|
|
9
9
|
const ToastContext = react.createContext(null);
|
|
10
10
|
const ToastProvider = ({
|
|
11
11
|
children,
|
package/dist/index58.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useCallback, useEffect, useContext, createContext } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
|
-
import { TOAST_DURATION_MS } from "./
|
|
4
|
+
import { TOAST_DURATION_MS } from "./index64.js";
|
|
5
5
|
import { Toast } from "./index57.js";
|
|
6
|
-
import styles from "./
|
|
6
|
+
import styles from "./index111.js";
|
|
7
7
|
const ToastContext = createContext(null);
|
|
8
8
|
const ToastProvider = ({
|
|
9
9
|
children,
|
package/dist/index60.cjs
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const sm = "krc-sm-
|
|
3
|
+
const root = "krc-root-Kdtyn";
|
|
4
|
+
const primary = "krc-primary-6l6aH";
|
|
5
|
+
const secondary = "krc-secondary-29n8Y";
|
|
6
|
+
const outline = "krc-outline-U1Mlr";
|
|
7
|
+
const ghost = "krc-ghost-5wRsR";
|
|
8
|
+
const danger = "krc-danger-gL4NM";
|
|
9
|
+
const sm = "krc-sm-zP51s";
|
|
10
|
+
const lg = "krc-lg-ZefGA";
|
|
10
11
|
const styles = {
|
|
11
12
|
root,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
sm
|
|
13
|
+
primary,
|
|
14
|
+
secondary,
|
|
15
|
+
outline,
|
|
16
|
+
ghost,
|
|
17
|
+
danger,
|
|
18
|
+
sm,
|
|
19
|
+
lg
|
|
18
20
|
};
|
|
21
|
+
exports.danger = danger;
|
|
19
22
|
exports.default = styles;
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
+
exports.ghost = ghost;
|
|
24
|
+
exports.lg = lg;
|
|
25
|
+
exports.outline = outline;
|
|
26
|
+
exports.primary = primary;
|
|
23
27
|
exports.root = root;
|
|
24
|
-
exports.
|
|
28
|
+
exports.secondary = secondary;
|
|
25
29
|
exports.sm = sm;
|
|
26
|
-
exports.square = square;
|
|
27
30
|
//# sourceMappingURL=index60.cjs.map
|
package/dist/index60.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index60.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index60.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const sm = "krc-sm-
|
|
1
|
+
const root = "krc-root-Kdtyn";
|
|
2
|
+
const primary = "krc-primary-6l6aH";
|
|
3
|
+
const secondary = "krc-secondary-29n8Y";
|
|
4
|
+
const outline = "krc-outline-U1Mlr";
|
|
5
|
+
const ghost = "krc-ghost-5wRsR";
|
|
6
|
+
const danger = "krc-danger-gL4NM";
|
|
7
|
+
const sm = "krc-sm-zP51s";
|
|
8
|
+
const lg = "krc-lg-ZefGA";
|
|
8
9
|
const styles = {
|
|
9
10
|
root,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
sm
|
|
11
|
+
primary,
|
|
12
|
+
secondary,
|
|
13
|
+
outline,
|
|
14
|
+
ghost,
|
|
15
|
+
danger,
|
|
16
|
+
sm,
|
|
17
|
+
lg
|
|
16
18
|
};
|
|
17
19
|
export {
|
|
20
|
+
danger,
|
|
18
21
|
styles as default,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
ghost,
|
|
23
|
+
lg,
|
|
24
|
+
outline,
|
|
25
|
+
primary,
|
|
22
26
|
root,
|
|
23
|
-
|
|
24
|
-
sm
|
|
25
|
-
square
|
|
27
|
+
secondary,
|
|
28
|
+
sm
|
|
26
29
|
};
|
|
27
30
|
//# sourceMappingURL=index60.js.map
|
package/dist/index60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index60.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/dist/index61.cjs
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const styles = {
|
|
12
|
-
root,
|
|
13
|
-
primary,
|
|
14
|
-
secondary,
|
|
15
|
-
outline,
|
|
16
|
-
ghost,
|
|
17
|
-
danger,
|
|
18
|
-
sm,
|
|
19
|
-
lg
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const marked_esm = require("./index82.cjs");
|
|
4
|
+
const purify_es = require("./index83.cjs");
|
|
5
|
+
const renderer = {
|
|
6
|
+
link({ href, tokens }) {
|
|
7
|
+
var _a;
|
|
8
|
+
const text = ((_a = this.parser) == null ? void 0 : _a.parseInline(tokens)) ?? tokens.map((t) => t.raw).join("");
|
|
9
|
+
return `<a href="${href}" target="_blank" rel="noopener noreferrer">${text}</a>`;
|
|
10
|
+
}
|
|
20
11
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.sm = sm;
|
|
12
|
+
marked_esm.marked.use({ gfm: true, breaks: true, renderer });
|
|
13
|
+
const sanitizeHtml = (html) => purify_es.sanitize(html, {
|
|
14
|
+
USE_PROFILES: { html: true },
|
|
15
|
+
ADD_ATTR: ["target", "rel"]
|
|
16
|
+
});
|
|
17
|
+
const parseMarkdown = (markdown) => sanitizeHtml(marked_esm.marked.parse(markdown));
|
|
18
|
+
exports.parseMarkdown = parseMarkdown;
|
|
19
|
+
exports.sanitizeHtml = sanitizeHtml;
|
|
30
20
|
//# sourceMappingURL=index61.cjs.map
|
package/dist/index61.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index61.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index61.cjs","sources":["../src/utils/markdown.ts"],"sourcesContent":["import { marked, type Renderer } from 'marked';\nimport DOMPurify from 'dompurify';\n\n// Use a function (not arrow) so `this` binds to marked's renderer instance,\n// which exposes `parser.parseInline`. The default `text` arg is the raw link\n// label (`**bold** text`) — passing it through unchanged would print the\n// asterisks instead of rendering nested inline markdown. `parseInline(tokens)`\n// recurses into bold / italic / code / etc. inside the link text.\nconst renderer: Partial<Renderer> = {\n link({ href, tokens }) {\n /* `this.parser` is provided at runtime when marked wires the renderer\n into its pipeline; the type definition models it as possibly\n undefined for standalone use. `parseInline(tokens)` falls back to\n the join of token raw strings when the parser is absent. */\n const text = this.parser?.parseInline(tokens) ?? tokens.map((t) => t.raw).join('');\n return `<a href=\"${href}\" target=\"_blank\" rel=\"noopener noreferrer\">${text}</a>`;\n },\n};\n\nmarked.use({ gfm: true, breaks: true, renderer });\n\nexport const sanitizeHtml = (html: string): string =>\n DOMPurify.sanitize(html, {\n USE_PROFILES: { html: true },\n ADD_ATTR: ['target', 'rel'],\n });\n\nexport const parseMarkdown = (markdown: string): string =>\n sanitizeHtml(marked.parse(markdown) as string);\n"],"names":["marked","DOMPurify"],"mappings":";;;;AAQA,MAAM,WAA8B;AAAA,EAClC,KAAK,EAAE,MAAM,UAAU;;AAKrB,UAAM,SAAO,UAAK,WAAL,mBAAa,YAAY,YAAW,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE;AACjF,WAAO,YAAY,IAAI,+CAA+C,IAAI;AAAA,EAC5E;AACF;AAEAA,WAAAA,OAAO,IAAI,EAAE,KAAK,MAAM,QAAQ,MAAM,UAAU;AAEzC,MAAM,eAAe,CAAC,SAC3BC,UAAU,SAAS,MAAM;AAAA,EACvB,cAAc,EAAE,MAAM,KAAA;AAAA,EACtB,UAAU,CAAC,UAAU,KAAK;AAC5B,CAAC;AAEI,MAAM,gBAAgB,CAAC,aAC5B,aAAaD,WAAAA,OAAO,MAAM,QAAQ,CAAW;;;"}
|
package/dist/index61.js
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const styles = {
|
|
10
|
-
root,
|
|
11
|
-
primary,
|
|
12
|
-
secondary,
|
|
13
|
-
outline,
|
|
14
|
-
ghost,
|
|
15
|
-
danger,
|
|
16
|
-
sm,
|
|
17
|
-
lg
|
|
1
|
+
import { marked as g } from "./index82.js";
|
|
2
|
+
import purify from "./index83.js";
|
|
3
|
+
const renderer = {
|
|
4
|
+
link({ href, tokens }) {
|
|
5
|
+
var _a;
|
|
6
|
+
const text = ((_a = this.parser) == null ? void 0 : _a.parseInline(tokens)) ?? tokens.map((t) => t.raw).join("");
|
|
7
|
+
return `<a href="${href}" target="_blank" rel="noopener noreferrer">${text}</a>`;
|
|
8
|
+
}
|
|
18
9
|
};
|
|
10
|
+
g.use({ gfm: true, breaks: true, renderer });
|
|
11
|
+
const sanitizeHtml = (html) => purify.sanitize(html, {
|
|
12
|
+
USE_PROFILES: { html: true },
|
|
13
|
+
ADD_ATTR: ["target", "rel"]
|
|
14
|
+
});
|
|
15
|
+
const parseMarkdown = (markdown) => sanitizeHtml(g.parse(markdown));
|
|
19
16
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ghost,
|
|
23
|
-
lg,
|
|
24
|
-
outline,
|
|
25
|
-
primary,
|
|
26
|
-
root,
|
|
27
|
-
secondary,
|
|
28
|
-
sm
|
|
17
|
+
parseMarkdown,
|
|
18
|
+
sanitizeHtml
|
|
29
19
|
};
|
|
30
20
|
//# sourceMappingURL=index61.js.map
|
package/dist/index61.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index61.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index61.js","sources":["../src/utils/markdown.ts"],"sourcesContent":["import { marked, type Renderer } from 'marked';\nimport DOMPurify from 'dompurify';\n\n// Use a function (not arrow) so `this` binds to marked's renderer instance,\n// which exposes `parser.parseInline`. The default `text` arg is the raw link\n// label (`**bold** text`) — passing it through unchanged would print the\n// asterisks instead of rendering nested inline markdown. `parseInline(tokens)`\n// recurses into bold / italic / code / etc. inside the link text.\nconst renderer: Partial<Renderer> = {\n link({ href, tokens }) {\n /* `this.parser` is provided at runtime when marked wires the renderer\n into its pipeline; the type definition models it as possibly\n undefined for standalone use. `parseInline(tokens)` falls back to\n the join of token raw strings when the parser is absent. */\n const text = this.parser?.parseInline(tokens) ?? tokens.map((t) => t.raw).join('');\n return `<a href=\"${href}\" target=\"_blank\" rel=\"noopener noreferrer\">${text}</a>`;\n },\n};\n\nmarked.use({ gfm: true, breaks: true, renderer });\n\nexport const sanitizeHtml = (html: string): string =>\n DOMPurify.sanitize(html, {\n USE_PROFILES: { html: true },\n ADD_ATTR: ['target', 'rel'],\n });\n\nexport const parseMarkdown = (markdown: string): string =>\n sanitizeHtml(marked.parse(markdown) as string);\n"],"names":["marked","DOMPurify"],"mappings":";;AAQA,MAAM,WAA8B;AAAA,EAClC,KAAK,EAAE,MAAM,UAAU;;AAKrB,UAAM,SAAO,UAAK,WAAL,mBAAa,YAAY,YAAW,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE;AACjF,WAAO,YAAY,IAAI,+CAA+C,IAAI;AAAA,EAC5E;AACF;AAEAA,EAAO,IAAI,EAAE,KAAK,MAAM,QAAQ,MAAM,UAAU;AAEzC,MAAM,eAAe,CAAC,SAC3BC,OAAU,SAAS,MAAM;AAAA,EACvB,cAAc,EAAE,MAAM,KAAA;AAAA,EACtB,UAAU,CAAC,UAAU,KAAK;AAC5B,CAAC;AAEI,MAAM,gBAAgB,CAAC,aAC5B,aAAaD,EAAO,MAAM,QAAQ,CAAW;"}
|