@ktnpm_devops/react-component 0.15.0 → 0.17.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/README.md +38 -2
- package/dist/constants.d.ts +9 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrix.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts +42 -0
- package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts +9 -0
- package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts.map +1 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.d.ts +11 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.d.ts.map +1 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts +2 -0
- package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts.map +1 -0
- package/dist/data/HeatmapMatrix/index.d.ts +1 -1
- package/dist/data/HeatmapMatrix/index.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +28 -2
- package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -1
- package/dist/geo/GeoMapCard/MapStatusBars.d.ts +11 -0
- package/dist/geo/GeoMapCard/MapStatusBars.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/ViewportReporter.d.ts +15 -0
- package/dist/geo/GeoMapCard/ViewportReporter.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/describePoints.d.ts +7 -0
- package/dist/geo/GeoMapCard/describePoints.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizeViewport.d.ts +13 -0
- package/dist/geo/GeoMapCard/normalizeViewport.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts +2 -0
- package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/resolveTiles.d.ts +9 -0
- package/dist/geo/GeoMapCard/resolveTiles.d.ts.map +1 -0
- package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts +9 -0
- package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +39 -15
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +38 -14
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +9 -7
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +8 -6
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +10 -6
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +9 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +20 -70
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +19 -69
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +14 -25
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +13 -24
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +10 -21
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +9 -20
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +70 -134
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +69 -133
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +8 -38
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +9 -39
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +48 -31
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +47 -30
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +18 -40
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +17 -39
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +31 -52
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +31 -52
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +49 -19
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +49 -19
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +35 -2
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +36 -3
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +10 -19
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +11 -20
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +18 -36
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +18 -36
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +39 -39
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +38 -38
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +69 -92
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +68 -91
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +52 -34
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +52 -34
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +16 -116
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +15 -115
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +16 -37
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +16 -37
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +17 -84
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +16 -83
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +2 -20
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +3 -21
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +19 -1164
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +17 -1163
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +6 -1575
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +5 -1575
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +21 -0
- package/dist/index124.cjs.map +1 -0
- package/dist/index124.js +21 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.cjs +87 -0
- package/dist/index125.cjs.map +1 -0
- package/dist/index125.js +87 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.cjs +24 -0
- package/dist/index126.cjs.map +1 -0
- package/dist/index126.js +24 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.cjs +36 -0
- package/dist/index127.cjs.map +1 -0
- package/dist/index127.js +36 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.cjs +1166 -0
- package/dist/index128.cjs.map +1 -0
- package/dist/index128.js +1167 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.cjs +1578 -0
- package/dist/index129.cjs.map +1 -0
- package/dist/index129.js +1579 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +37 -0
- package/dist/index130.cjs.map +1 -0
- package/dist/index130.js +37 -0
- package/dist/index130.js.map +1 -0
- 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 +1 -1
- package/dist/index25.js +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +2 -2
- package/dist/index29.js +2 -2
- package/dist/index30.cjs +37 -35
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +35 -33
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +4 -4
- package/dist/index31.js +4 -4
- package/dist/index32.cjs +78 -53
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +79 -54
- package/dist/index32.js.map +1 -1
- 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 +2 -2
- package/dist/index38.js +2 -2
- 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 +2 -2
- package/dist/index50.js +2 -2
- 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 +7 -4
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +7 -4
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +20 -5
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +21 -6
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +18 -17
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +17 -16
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +4 -1
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +4 -1
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +142 -6
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +141 -5
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +22 -141
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +20 -139
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +19 -16
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +19 -16
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +16 -46
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +16 -46
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +37 -52
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +37 -52
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +28 -28
- package/dist/index69.js +28 -28
- package/dist/index70.cjs +20 -2
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +21 -3
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +4 -13
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +4 -13
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +116 -40
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +115 -39
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +33 -24
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +34 -25
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +52 -13
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +53 -14
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +39 -15
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +38 -14
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +92 -21
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +91 -20
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +34 -4
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +35 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +22 -42
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +21 -41
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +69 -33
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +68 -32
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +7 -21
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +6 -20
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +39 -22
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +38 -21
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +127 -63
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +127 -63
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +45 -7
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +44 -6
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +2 -35
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +3 -36
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +39 -35
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +38 -34
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +33 -43
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +32 -42
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +6 -24
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +5 -23
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +22 -20
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +21 -19
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +25 -14
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +24 -13
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +42 -51
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +42 -51
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +21 -18
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +22 -19
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +22 -13
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +22 -13
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +2 -50
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +3 -51
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +13 -22
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +14 -23
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +3 -15
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +3 -15
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +19 -13
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +19 -13
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +35 -27
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +34 -26
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +43 -21
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +42 -20
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +24 -21
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +23 -20
- package/dist/index99.js.map +1 -1
- package/dist/style.css +64 -5
- package/dist/types/geo.types.d.ts +14 -0
- package/dist/types/geo.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index120.js
CHANGED
|
@@ -1,87 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const badge = "krc-badge-yVq9o";
|
|
10
|
-
const clear = "krc-clear-11V9Q";
|
|
11
|
-
const panel = "krc-panel-xf2f8";
|
|
12
|
-
const header = "krc-header--VMR-";
|
|
13
|
-
const search = "krc-search-4gQgB";
|
|
14
|
-
const headerActions = "krc-headerActions-orxXD";
|
|
15
|
-
const chip = "krc-chip--n-9m";
|
|
16
|
-
const chipGhost = "krc-chipGhost-oayjh";
|
|
17
|
-
const list = "krc-list-NRoxf";
|
|
18
|
-
const status = "krc-status-j7xbM";
|
|
19
|
-
const statusError = "krc-statusError-u6rfB";
|
|
20
|
-
const option = "krc-option-ZAXum";
|
|
21
|
-
const optionLabel = "krc-optionLabel-MdDyI";
|
|
22
|
-
const optionCount = "krc-optionCount-JSQl9";
|
|
23
|
-
const create = "krc-create-hO8Cq";
|
|
24
|
-
const footer = "krc-footer-2yk6S";
|
|
25
|
-
const selection = "krc-selection-aYDH-";
|
|
26
|
-
const selectionDelta = "krc-selectionDelta-S1dV7";
|
|
27
|
-
const footerActions = "krc-footerActions-77iCX";
|
|
28
|
-
const styles = {
|
|
29
|
-
root,
|
|
30
|
-
trigger,
|
|
31
|
-
active,
|
|
32
|
-
triggerContent,
|
|
33
|
-
chevron,
|
|
34
|
-
label,
|
|
35
|
-
valueGroup,
|
|
36
|
-
value,
|
|
37
|
-
badge,
|
|
38
|
-
clear,
|
|
39
|
-
panel,
|
|
40
|
-
header,
|
|
41
|
-
search,
|
|
42
|
-
headerActions,
|
|
43
|
-
chip,
|
|
44
|
-
chipGhost,
|
|
45
|
-
list,
|
|
46
|
-
status,
|
|
47
|
-
statusError,
|
|
48
|
-
option,
|
|
49
|
-
optionLabel,
|
|
50
|
-
optionCount,
|
|
51
|
-
create,
|
|
52
|
-
footer,
|
|
53
|
-
selection,
|
|
54
|
-
selectionDelta,
|
|
55
|
-
footerActions
|
|
1
|
+
import { marked as g } from "./index128.js";
|
|
2
|
+
import purify from "./index129.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
|
+
}
|
|
56
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));
|
|
57
16
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
chevron,
|
|
61
|
-
chip,
|
|
62
|
-
chipGhost,
|
|
63
|
-
clear,
|
|
64
|
-
create,
|
|
65
|
-
styles as default,
|
|
66
|
-
footer,
|
|
67
|
-
footerActions,
|
|
68
|
-
header,
|
|
69
|
-
headerActions,
|
|
70
|
-
label,
|
|
71
|
-
list,
|
|
72
|
-
option,
|
|
73
|
-
optionCount,
|
|
74
|
-
optionLabel,
|
|
75
|
-
panel,
|
|
76
|
-
root,
|
|
77
|
-
search,
|
|
78
|
-
selection,
|
|
79
|
-
selectionDelta,
|
|
80
|
-
status,
|
|
81
|
-
statusError,
|
|
82
|
-
trigger,
|
|
83
|
-
triggerContent,
|
|
84
|
-
value,
|
|
85
|
-
valueGroup
|
|
17
|
+
parseMarkdown,
|
|
18
|
+
sanitizeHtml
|
|
86
19
|
};
|
|
87
20
|
//# sourceMappingURL=index120.js.map
|
package/dist/index120.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index120.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index120.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;"}
|
package/dist/index121.cjs
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const rail = "krc-rail-S-V5h";
|
|
5
|
-
const fill = "krc-fill-NAEy9";
|
|
6
|
-
const tick = "krc-tick-j75qi";
|
|
7
|
-
const disabled = "krc-disabled-DgBiL";
|
|
8
|
-
const thumb = "krc-thumb-QVYVM";
|
|
9
|
-
const valueTooltip = "krc-valueTooltip-Vuimh";
|
|
3
|
+
const root = "krc-root-93Nfs";
|
|
10
4
|
const styles = {
|
|
11
|
-
root
|
|
12
|
-
rail,
|
|
13
|
-
fill,
|
|
14
|
-
tick,
|
|
15
|
-
disabled,
|
|
16
|
-
thumb,
|
|
17
|
-
valueTooltip
|
|
5
|
+
root
|
|
18
6
|
};
|
|
19
7
|
exports.default = styles;
|
|
20
|
-
exports.disabled = disabled;
|
|
21
|
-
exports.fill = fill;
|
|
22
|
-
exports.rail = rail;
|
|
23
8
|
exports.root = root;
|
|
24
|
-
exports.thumb = thumb;
|
|
25
|
-
exports.tick = tick;
|
|
26
|
-
exports.valueTooltip = valueTooltip;
|
|
27
9
|
//# sourceMappingURL=index121.cjs.map
|
package/dist/index121.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index121.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index121.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/index121.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const rail = "krc-rail-S-V5h";
|
|
3
|
-
const fill = "krc-fill-NAEy9";
|
|
4
|
-
const tick = "krc-tick-j75qi";
|
|
5
|
-
const disabled = "krc-disabled-DgBiL";
|
|
6
|
-
const thumb = "krc-thumb-QVYVM";
|
|
7
|
-
const valueTooltip = "krc-valueTooltip-Vuimh";
|
|
1
|
+
const root = "krc-root-93Nfs";
|
|
8
2
|
const styles = {
|
|
9
|
-
root
|
|
10
|
-
rail,
|
|
11
|
-
fill,
|
|
12
|
-
tick,
|
|
13
|
-
disabled,
|
|
14
|
-
thumb,
|
|
15
|
-
valueTooltip
|
|
3
|
+
root
|
|
16
4
|
};
|
|
17
5
|
export {
|
|
18
6
|
styles as default,
|
|
19
|
-
|
|
20
|
-
fill,
|
|
21
|
-
rail,
|
|
22
|
-
root,
|
|
23
|
-
thumb,
|
|
24
|
-
tick,
|
|
25
|
-
valueTooltip
|
|
7
|
+
root
|
|
26
8
|
};
|
|
27
9
|
//# sourceMappingURL=index121.js.map
|
package/dist/index121.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index121.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index121.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|