@hezhijie0327/zjdesign 0.1.4-df54825 → 0.1.4-e9e8a03
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/editor/index.d.mts +1 -1
- package/dist/editor/index.mjs +2 -2
- package/dist/{editor-DPtRYvim.mjs → editor-DsqLcIUB.mjs} +1 -1
- package/dist/{index-CGlGZgy4.d.mts → index-DZG-30Gw.d.mts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown/index.d.mts +2 -2
- package/dist/markdown/index.mjs +1 -1
- package/dist/{markdown-C4xToWDj.mjs → markdown-Cf8w0vog.mjs} +1 -1
- package/package.json +2 -5
package/dist/editor/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MarkdownEditorProps, t as MarkdownEditor } from "../index-
|
|
1
|
+
import { n as MarkdownEditorProps, t as MarkdownEditor } from "../index-DZG-30Gw.mjs";
|
|
2
2
|
export { MarkdownEditor, MarkdownEditorProps };
|
package/dist/editor/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/MarkdownEditor.d.ts
|
|
@@ -28,6 +28,6 @@ declare function MarkdownEditor({
|
|
|
28
28
|
rows,
|
|
29
29
|
label,
|
|
30
30
|
className
|
|
31
|
-
}: MarkdownEditorProps):
|
|
31
|
+
}: MarkdownEditorProps): react0.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { MarkdownEditorProps as n, MarkdownEditor as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MarkdownEditorProps, t as MarkdownEditor } from "./index-
|
|
1
|
+
import { n as MarkdownEditorProps, t as MarkdownEditor } from "./index-DZG-30Gw.mjs";
|
|
2
2
|
import { _ as setThemeStyle, a as THEME_BOOTSTRAP, b as reducedMotion, c as THEME_COLOR_LIGHT, d as applyThemeStyle, f as cookieThemeStorage, g as readThemeStyle, h as nextThemeStyle, i as useExitPresence, l as ThemeStorage, m as localStorageThemeStorage, n as UseThemeResult, o as THEME_COLOR_BLACK, p as createThemeController, r as useTheme, s as THEME_COLOR_DARK, t as UseThemeOptions, u as ThemeStyle, v as watchSystemTheme, y as watchThemeDark } from "./index-q0kgAj_t.mjs";
|
|
3
3
|
import * as react15 from "react";
|
|
4
4
|
import { ButtonHTMLAttributes, ReactNode, RefObject } from "react";
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as SEGMENT, M as SEGMENT_ITEM_OFF, N as SEGMENT_ITEM_ON, V as cn, _ as META, a as BTN_PRIMARY, b as MODAL_SCRIM, h as LIST_ROW, i as BTN_OUTLINE, o as CARD, p as ICON_BTN, r as BTN_GHOST, x as MONO_CHIP } from "./styles-CHlwZuC0.mjs";
|
|
2
2
|
import { a as THEME_COLOR_DARK, c as cookieThemeStorage, d as nextThemeStyle, f as readThemeStyle, g as reducedMotion, h as watchThemeDark, i as THEME_COLOR_BLACK, l as createThemeController, m as watchSystemTheme, n as useExitPresence, o as THEME_COLOR_LIGHT, p as setThemeStyle, r as THEME_BOOTSTRAP, s as applyThemeStyle, t as useTheme, u as localStorageThemeStorage } from "./hooks-CIPeAyTY.mjs";
|
|
3
|
-
import "./markdown-
|
|
4
|
-
import { t as MarkdownEditor } from "./editor-
|
|
3
|
+
import "./markdown-Cf8w0vog.mjs";
|
|
4
|
+
import { t as MarkdownEditor } from "./editor-DsqLcIUB.mjs";
|
|
5
5
|
import { forwardRef, useEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Check, ChevronDown, Copy, Languages, MonitorCog, Moon, Pause, Play, Search, Sun, SunMoon, X } from "lucide-react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1 from "react";
|
|
2
2
|
import { JSX, ReactNode } from "react";
|
|
3
3
|
import { PluggableList, Processor } from "unified";
|
|
4
4
|
import { Node } from "unist";
|
|
@@ -123,6 +123,6 @@ declare function Streamdown({
|
|
|
123
123
|
settled,
|
|
124
124
|
className,
|
|
125
125
|
components
|
|
126
|
-
}: StreamdownProps):
|
|
126
|
+
}: StreamdownProps): react1.JSX.Element;
|
|
127
127
|
//#endregion
|
|
128
128
|
export { MD, Markdown, type MarkdownProps, SHARED_REMARK, Streamdown, type StreamdownProps, buildFamilyMap, holdBackTail, inlineMdHtml, normalizeEmphasis, remarkCallouts, remarkHtmlFallback, remarkMark, sharedRemarkWithMath, useMathPlugins };
|
package/dist/markdown/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as SHARED_REMARK, c as remarkCallouts, d as sharedRemarkWithMath, f as MD, i as useMathPlugins, l as remarkHtmlFallback, n as Markdown, o as holdBackTail, p as inlineMdHtml, r as buildFamilyMap, s as normalizeEmphasis, t as Streamdown, u as remarkMark } from "../markdown-
|
|
1
|
+
import { a as SHARED_REMARK, c as remarkCallouts, d as sharedRemarkWithMath, f as MD, i as useMathPlugins, l as remarkHtmlFallback, n as Markdown, o as holdBackTail, p as inlineMdHtml, r as buildFamilyMap, s as normalizeEmphasis, t as Streamdown, u as remarkMark } from "../markdown-Cf8w0vog.mjs";
|
|
2
2
|
|
|
3
3
|
export { MD, Markdown, SHARED_REMARK, Streamdown, buildFamilyMap, holdBackTail, inlineMdHtml, normalizeEmphasis, remarkCallouts, remarkHtmlFallback, remarkMark, sharedRemarkWithMath, useMathPlugins };
|
|
@@ -240,7 +240,7 @@ const MATH_FENCE = /\$\$[\s\S]+?\$\$|^```math/m;
|
|
|
240
240
|
function Markdown({ children, normalize = false, className, components }) {
|
|
241
241
|
const text = normalize ? normalizeEmphasis(children) : children;
|
|
242
242
|
const math = useMathPlugins(MATH_FENCE.test(text));
|
|
243
|
-
const remarkPlugins = useMemo(() => math ?
|
|
243
|
+
const remarkPlugins = useMemo(() => math ? sharedRemarkWithMath(math[0]) : SHARED_REMARK, [math]);
|
|
244
244
|
const rehypePlugins = useMemo(() => math?.[1] ?? [], [math]);
|
|
245
245
|
return /* @__PURE__ */ jsx("div", {
|
|
246
246
|
className,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hezhijie0327/zjdesign",
|
|
3
|
-
"version": "0.1.4-
|
|
3
|
+
"version": "0.1.4-e9e8a03",
|
|
4
4
|
"description": "ZJ Design — the shared design system of the ZJ product family (warm paper / ink / amber-gold). Tokens, Tailwind fragments, hooks and React components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -87,10 +87,7 @@
|
|
|
87
87
|
"bump-compat": "node scripts/bump-compat-date.cjs",
|
|
88
88
|
"bump-version": "node scripts/bump-version.mjs",
|
|
89
89
|
"ci": "pnpm build && pnpm lint && pnpm check && pnpm test",
|
|
90
|
-
"audit": "vite build playground --config playground/vite.config.ts && node scripts/audit.mjs"
|
|
91
|
-
"precommit": "pnpm run ci",
|
|
92
|
-
"install-hooks": "git config core.hooksPath .githooks",
|
|
93
|
-
"install-hooks:win": "powershell -ExecutionPolicy Bypass -File scripts/install-hooks.ps1"
|
|
90
|
+
"audit": "vite build playground --config playground/vite.config.ts && node scripts/audit.mjs"
|
|
94
91
|
},
|
|
95
92
|
"dependencies": {
|
|
96
93
|
"@types/mdast": "^4.0.4",
|