@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.
@@ -1,2 +1,2 @@
1
- import { n as MarkdownEditorProps, t as MarkdownEditor } from "../index-CGlGZgy4.mjs";
1
+ import { n as MarkdownEditorProps, t as MarkdownEditor } from "../index-DZG-30Gw.mjs";
2
2
  export { MarkdownEditor, MarkdownEditorProps };
@@ -1,5 +1,5 @@
1
1
  import "../styles-CHlwZuC0.mjs";
2
- import "../markdown-C4xToWDj.mjs";
3
- import { t as MarkdownEditor } from "../editor-DPtRYvim.mjs";
2
+ import "../markdown-Cf8w0vog.mjs";
3
+ import { t as MarkdownEditor } from "../editor-DsqLcIUB.mjs";
4
4
 
5
5
  export { MarkdownEditor };
@@ -1,5 +1,5 @@
1
1
  import { V as cn } from "./styles-CHlwZuC0.mjs";
2
- import { n as Markdown } from "./markdown-C4xToWDj.mjs";
2
+ import { n as Markdown } from "./markdown-Cf8w0vog.mjs";
3
3
  import { useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -1,4 +1,4 @@
1
- import * as react1 from "react";
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): react1.JSX.Element;
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-CGlGZgy4.mjs";
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-C4xToWDj.mjs";
4
- import { t as MarkdownEditor } from "./editor-DPtRYvim.mjs";
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 react0 from "react";
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): react0.JSX.Element;
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 };
@@ -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-C4xToWDj.mjs";
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 ? [...math[0], ...SHARED_REMARK] : SHARED_REMARK, [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-df54825",
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",