@validationcloud/fractal-ui 1.56.0 → 1.58.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/dist/charts.js +9 -9
- package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +2 -6
- package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +2 -6
- package/dist/components/select/select.d.ts +10 -8
- package/dist/{src/components → components}/select/select.js +43 -43
- package/dist/index.js +29 -29
- package/dist/lib/font-data.d.ts +17 -0
- package/dist/lib/font-data.js +19 -0
- package/dist/lib/render-chart-to-image.d.ts +12 -14
- package/dist/lib/render-chart-to-image.js +75 -0
- package/dist/lib/render-mavrik-chart-to-image.js +28 -0
- package/dist/server.js +3 -3
- package/package.json +5 -5
- package/dist/fonts/Poppins-Bold.ttf +0 -0
- package/dist/fonts/Poppins-Medium.ttf +0 -0
- package/dist/fonts/Poppins-Regular.ttf +0 -0
- package/dist/fonts/Poppins-SemiBold.ttf +0 -0
- package/dist/lib/get-echarts-module.d.ts +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@1_d580df0584800d3ed24dd50bc4bb768c/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_965c21727754e936eeb7d35183788fa0/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +0 -53
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.6_@types_react-dom@19.2.3_@types_react@19.2.6__@t_c6844451b48448597731ceee2c7ec947/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -18
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_1236dc37c73a65e17034434472fa319b/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_875fb0de6110028421a3e7790df757e0/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_5324bcb5f7050b43e9225714ff37edcd/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js +0 -35
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_6ddc7a756051e26689ab8a69ff12c731/node_modules/@radix-ui/react-select/dist/index.js +0 -821
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +0 -48
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -32
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_06b3b0029799d875b5a80b38402a9c14/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
- package/dist/src/lib/get-echarts-module.js +0 -8
- package/dist/src/lib/render-chart-to-image.js +0 -84
- package/dist/src/lib/render-mavrik-chart-to-image.js +0 -22
- /package/dist/{src/assets → assets}/animated-loader.svg.js +0 -0
- /package/dist/{src/assets → assets}/default-avatar.svg.js +0 -0
- /package/dist/{src/assets → assets}/not-found.svg.js +0 -0
- /package/dist/{src/assets → assets}/vc-logo.svg.js +0 -0
- /package/dist/{src/components → components}/animated-loader/animated-loader.js +0 -0
- /package/dist/{src/components → components}/badge/badge.js +0 -0
- /package/dist/{src/components → components}/box/box.js +0 -0
- /package/dist/{src/components → components}/button/button.js +0 -0
- /package/dist/{src/components → components}/client-modal/client-modal.js +0 -0
- /package/dist/{src/components → components}/collapsible/collapsible.js +0 -0
- /package/dist/{src/components → components}/copy-button/copy-button.js +0 -0
- /package/dist/{src/components → components}/decorated-icon/decorated-icon.js +0 -0
- /package/dist/{src/components → components}/dropdown-menu/dropdown-menu.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/calculate-title-layout.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/detect-horizontal-bars.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-chart-option.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-renderer.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-theme-option.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-chart.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-theme-horizontal.json.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-theme.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-theme.json.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options-for-static-rendering.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/use-chart-instance.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/watermark-graphic.js +0 -0
- /package/dist/{src/components → components}/error-boundary/error-boundary.js +0 -0
- /package/dist/{src/components → components}/icon/icon.js +0 -0
- /package/dist/{src/components → components}/icon-button/icon-button.js +0 -0
- /package/dist/{src/components → components}/input-button/input-button.js +0 -0
- /package/dist/{src/components → components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
- /package/dist/{src/components → components}/not-found-component/not-found-component.js +0 -0
- /package/dist/{src/components → components}/page-padding/page-padding.js +0 -0
- /package/dist/{src/components → components}/protocol-logo/protocol-logo.js +0 -0
- /package/dist/{src/components → components}/scroll-area/index.js +0 -0
- /package/dist/{src/components → components}/scroll-area/scroll-area-viewport.js +0 -0
- /package/dist/{src/components → components}/scroll-area/scroll-area.js +0 -0
- /package/dist/{src/components → components}/skeleton/skeleton.js +0 -0
- /package/dist/{src/components → components}/switch/switch.js +0 -0
- /package/dist/{src/components → components}/text-input/text-input.js +0 -0
- /package/dist/{src/components → components}/tooltip/tooltip.js +0 -0
- /package/dist/{src/components → components}/tooltip-provider/tooltip-provider.js +0 -0
- /package/dist/{src/components → components}/touch-target/touch-target.js +0 -0
- /package/dist/{src/components → components}/user-dropdown/user-dropdown.js +0 -0
- /package/dist/{src/components → components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
- /package/dist/{src/hooks → hooks}/use-scroll-to-bottom.js +0 -0
- /package/dist/{src/internal → internal}/modal-header.js +0 -0
- /package/dist/{src/internal → internal}/modal.js +0 -0
- /package/dist/{src/internal → internal}/react-portal.js +0 -0
- /package/dist/{src/internal → internal}/round-button.js +0 -0
- /package/dist/{src/lib → lib}/tailwind-merge.js +0 -0
- /package/dist/{src/utils → utils}/disable-password-managers.js +0 -0
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
registerTheme: (name: string, theme: Record<string, unknown>) => void;
|
|
8
|
-
init: (dom?: any, theme?: string | Record<string, unknown> | null, opts?: EChartsInitOpts) => EChartsInstance;
|
|
9
|
-
}
|
|
10
|
-
interface EChartsInstance {
|
|
11
|
-
setOption: (option: unknown) => void;
|
|
12
|
-
dispose: () => void;
|
|
1
|
+
/** Font family registration for server-side chart rendering */
|
|
2
|
+
export interface FontRegistration {
|
|
3
|
+
/** Font family name (e.g., 'Poppins', 'Inter') */
|
|
4
|
+
family: string;
|
|
5
|
+
/** Font data buffers for each weight/style variant */
|
|
6
|
+
data: readonly Buffer[];
|
|
13
7
|
}
|
|
14
8
|
export interface RenderChartToImageOptions {
|
|
15
9
|
option: unknown;
|
|
16
10
|
theme?: Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Fonts to register before rendering. Each font family is registered once
|
|
13
|
+
* and cached for subsequent renders.
|
|
14
|
+
*/
|
|
15
|
+
fonts?: FontRegistration[];
|
|
17
16
|
/**
|
|
18
17
|
* Adds Validation Cloud watermark graphic to the chart option before rendering.
|
|
19
18
|
*
|
|
@@ -45,5 +44,4 @@ export interface RenderChartToImageOptions {
|
|
|
45
44
|
* });
|
|
46
45
|
* ```
|
|
47
46
|
*/
|
|
48
|
-
export declare function renderChartToImage({ option, theme, includeWatermark, width, height, devicePixelRatio, }: RenderChartToImageOptions): Buffer;
|
|
49
|
-
export {};
|
|
47
|
+
export declare function renderChartToImage({ option, theme, fonts, includeWatermark, width, height, devicePixelRatio, }: RenderChartToImageOptions): Buffer;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as p from "echarts";
|
|
2
|
+
import { randomUUID as h } from "node:crypto";
|
|
3
|
+
import { writeFileSync as O, mkdtempSync as T } from "node:fs";
|
|
4
|
+
import { tmpdir as b } from "node:os";
|
|
5
|
+
import d from "node:path";
|
|
6
|
+
import { Image as j, Canvas as F, FontLibrary as S } from "skia-canvas";
|
|
7
|
+
import { calculateTitleLayout as I } from "../components/echarts-renderer/calculate-title-layout.js";
|
|
8
|
+
import { addWatermarkToOptions as C } from "../components/echarts-renderer/watermark-graphic.js";
|
|
9
|
+
globalThis.Image = j;
|
|
10
|
+
const u = /* @__PURE__ */ new Set();
|
|
11
|
+
let f;
|
|
12
|
+
function w() {
|
|
13
|
+
return f || (f = T(d.join(b(), "chart-fonts-"))), f;
|
|
14
|
+
}
|
|
15
|
+
function A(r) {
|
|
16
|
+
for (const t of r)
|
|
17
|
+
if (!u.has(t.family))
|
|
18
|
+
try {
|
|
19
|
+
const e = w(), i = t.data.map((o, n) => {
|
|
20
|
+
const a = d.join(e, `${t.family}-${String(n)}.ttf`);
|
|
21
|
+
return O(a, o), a;
|
|
22
|
+
});
|
|
23
|
+
S.use(t.family, i), u.add(t.family);
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.warn(`Failed to register ${t.family} fonts, charts will use fallback font:`, e);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const D = /* @__PURE__ */ new Set([
|
|
29
|
+
"aria",
|
|
30
|
+
// Tries to set DOM attributes which node-canvas doesn't implement
|
|
31
|
+
"toolbox",
|
|
32
|
+
// Export/zoom/reset buttons - not useful in static image
|
|
33
|
+
"dataZoom",
|
|
34
|
+
// Interactive range slider
|
|
35
|
+
"brush",
|
|
36
|
+
// Selection tool
|
|
37
|
+
"axisPointer"
|
|
38
|
+
// Crosshair on hover
|
|
39
|
+
]);
|
|
40
|
+
function E(r) {
|
|
41
|
+
if (!r || typeof r != "object" || Array.isArray(r))
|
|
42
|
+
return { animation: !1 };
|
|
43
|
+
const t = Object.fromEntries(
|
|
44
|
+
Object.entries(r).filter(([e]) => !D.has(e))
|
|
45
|
+
);
|
|
46
|
+
return t.animation = !1, t;
|
|
47
|
+
}
|
|
48
|
+
function L({
|
|
49
|
+
option: r,
|
|
50
|
+
theme: t,
|
|
51
|
+
fonts: e,
|
|
52
|
+
includeWatermark: i = !1,
|
|
53
|
+
width: o = 800,
|
|
54
|
+
height: n = 600,
|
|
55
|
+
devicePixelRatio: a = 2
|
|
56
|
+
}) {
|
|
57
|
+
e?.length && A(e);
|
|
58
|
+
let s;
|
|
59
|
+
t && typeof t == "object" && (s = `theme-${h()}`, p.registerTheme(s, t));
|
|
60
|
+
const m = new F(o, n), c = p.init(m, s, {
|
|
61
|
+
renderer: "canvas",
|
|
62
|
+
devicePixelRatio: a,
|
|
63
|
+
width: o,
|
|
64
|
+
height: n
|
|
65
|
+
});
|
|
66
|
+
try {
|
|
67
|
+
const y = E(r), l = I(y, o, t), g = i ? C(l) : l;
|
|
68
|
+
return c.setOption(g), m.toBufferSync("png");
|
|
69
|
+
} finally {
|
|
70
|
+
c.dispose();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
L as renderChartToImage
|
|
75
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { selectMavrikTheme as n } from "../components/echarts-renderer/mavrik-theme.js";
|
|
2
|
+
import { PoppinsRegular as p, PoppinsMedium as a, PoppinsSemiBold as s, PoppinsBold as f } from "./font-data.js";
|
|
3
|
+
import { renderChartToImage as P } from "./render-chart-to-image.js";
|
|
4
|
+
const d = {
|
|
5
|
+
family: "Poppins",
|
|
6
|
+
data: [p, a, s, f]
|
|
7
|
+
};
|
|
8
|
+
function g({
|
|
9
|
+
option: e,
|
|
10
|
+
includeWatermark: o = !1,
|
|
11
|
+
width: r = 800,
|
|
12
|
+
height: i = 600,
|
|
13
|
+
devicePixelRatio: m = 2
|
|
14
|
+
}) {
|
|
15
|
+
const t = n(e);
|
|
16
|
+
return P({
|
|
17
|
+
option: e,
|
|
18
|
+
theme: t.config,
|
|
19
|
+
fonts: [d],
|
|
20
|
+
includeWatermark: o,
|
|
21
|
+
width: r,
|
|
22
|
+
height: i,
|
|
23
|
+
devicePixelRatio: m
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
g as renderMavrikChartToImage
|
|
28
|
+
};
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { renderChartToImage as o } from "./
|
|
2
|
-
import { renderMavrikChartToImage as a } from "./
|
|
3
|
-
import { sanitizeChartOptionsForStaticRendering as n } from "./
|
|
1
|
+
import { renderChartToImage as o } from "./lib/render-chart-to-image.js";
|
|
2
|
+
import { renderMavrikChartToImage as a } from "./lib/render-mavrik-chart-to-image.js";
|
|
3
|
+
import { sanitizeChartOptionsForStaticRendering as n } from "./components/echarts-renderer/sanitize-chart-options-for-static-rendering.js";
|
|
4
4
|
export {
|
|
5
5
|
o as renderChartToImage,
|
|
6
6
|
a as renderMavrikChartToImage,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validationcloud/fractal-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.58.0",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "https://github.com/validationcloud/fractal-ui/issues"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"prebuild": "pnpm run generate:theme",
|
|
21
|
+
"prebuild": "pnpm run generate:theme && pnpm run generate:fonts",
|
|
22
22
|
"build": "vite build",
|
|
23
23
|
"lint": "eslint",
|
|
24
24
|
"storybook": "storybook dev -p 6006",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"typecheck": "tsc -b --noEmit",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"prepublishOnly": "pnpm build",
|
|
31
|
-
"generate:theme": "node --experimental-transform-types scripts/generate-mavrik-theme.ts"
|
|
31
|
+
"generate:theme": "node --experimental-transform-types scripts/generate-mavrik-theme.ts && prettier --write src/components/echarts-renderer/mavrik-theme*.json",
|
|
32
|
+
"generate:fonts": "node --experimental-transform-types scripts/generate-font-data.ts && prettier --write src/lib/font-data.ts"
|
|
32
33
|
},
|
|
33
34
|
"exports": {
|
|
34
35
|
".": {
|
|
@@ -50,8 +51,6 @@
|
|
|
50
51
|
"node": ">=22.14.0"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@radix-ui/react-select": "^2.1.7",
|
|
54
|
-
"echarts": "^6",
|
|
55
54
|
"radix-ui": "^1",
|
|
56
55
|
"react": "^19",
|
|
57
56
|
"react-dom": "^19",
|
|
@@ -97,6 +96,7 @@
|
|
|
97
96
|
},
|
|
98
97
|
"peerDependencies": {
|
|
99
98
|
"@radix-ui/react-compose-refs": "^1",
|
|
99
|
+
"echarts": "^6",
|
|
100
100
|
"skia-canvas": "^3",
|
|
101
101
|
"radix-ui": "^1",
|
|
102
102
|
"react": "^19",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getEChartsModule(): typeof import('echarts');
|