dsh-plugin-core-demo 0.43.0 → 0.43.1

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.
Files changed (2) hide show
  1. package/dist/client.js +11 -11
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -6199,7 +6199,7 @@ var FEEDBACK_CSS = "/* \u906E\u7F69\u4E0E\u5934\u90E8\u5728 overlay.css\uFF0C\u8
6199
6199
  var import_react21 = require("react");
6200
6200
 
6201
6201
  // dist/ui/display/flip-text-css.generated.js
6202
- var FLIP_TEXT_CSS = "/* \u7FFB\u724C\u6587\u672C\uFF08FlipText\uFF09\uFF1A\u4E00\u4E2A\u5355\u884C\u7A97\u53E3 + \u4E24\u5C42\u540C\u683C\u53E0\u653E\uFF0C\u6362\u5B57\u65F6\u65E7\u7684\u4E0A\u79FB\u51FA\u3001\u65B0\u7684\u4ECE\u4E0B\u8FDB\u3002\n \u6EA2\u51FA\uFF08\u4E09\u70B9\u7701\u7565 + hover \u8DD1\u9A6C\u706F\uFF09\u4E0D\u5728\u8FD9\u91CC\u505A \u2014\u2014 \u4EA4\u7ED9 MarqueeText\uFF0C\u672C\u6587\u4EF6\u53EA\u7BA1\u88C1\u526A\u4E0E\u5207\u6362\u52A8\u6548\u3002\n \u53E0\u653E\u7528 grid \u540C\u683C\u800C\u4E0D\u662F\u7EDD\u5BF9\u5B9A\u4F4D\uFF1A\u5BB9\u5668\u9AD8\u5EA6\u5929\u7136\u7B49\u4E8E\u4E00\u884C\uFF0C\u4E0D\u7528\u6D4B\u91CF\u3001\u4E5F\u4E0D\u4F9D\u8D56 lh \u5355\u4F4D\u3002 */\n.dshpc-flip{--dshpc-flip-dur:260ms;--dshpc-flip-ease:cubic-bezier(.22,.61,.36,1);display:grid;min-width:0;overflow:hidden}\n.dshpc-flip__item{grid-area:1/1;min-width:0}\n.dshpc-flip__in{animation:dshpc-flip-in var(--dshpc-flip-dur) var(--dshpc-flip-ease) both}\n.dshpc-flip__out{animation:dshpc-flip-out var(--dshpc-flip-dur) var(--dshpc-flip-ease) both}\n@keyframes dshpc-flip-in{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}\n@keyframes dshpc-flip-out{from{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}\n/* \u524D\u5EAD\u654F\u611F / \u4F4E\u6027\u80FD\u8BBE\u5907\u5173\u6389\u4F4D\u79FB\u52A8\u753B\uFF1A\u6362\u5B57\u4ECD\u5728\uFF0C\u53EA\u662F\u4E0D\u518D\u7FFB\u3002\n \u65E7\u5E27\u6CA1\u6709\u52A8\u753B\u53EF\u64AD\uFF0C\u5FC5\u987B\u81EA\u5DF1\u9690\u5F62 \u2014\u2014 \u4E24\u5C42\u540C\u683C\u53E0\u653E\uFF0C\u7559\u7740\u5C31\u91CD\u5F71\u3002 */\n@media (prefers-reduced-motion:reduce){\n .dshpc-flip__in,.dshpc-flip__out{animation:none}\n .dshpc-flip__out{opacity:0}\n}\n/* \u626B\u5149\uFF08sweep\uFF09\uFF1A\u5E38\u9A7B\u5FAA\u73AF\uFF0C\u505C\u5728\u539F\u5730\u7684\u63D0\u793A\u4E5F\u770B\u5F97\u51FA\u5728\u52A8\u3002\u5F00\u5173\u9ED8\u8BA4\u5173\uFF0C\u5F39\u7A97 / \u62BD\u5C49\u5E95\u680F\u9ED8\u8BA4\u5F00\u3002\n \u5149\u5FC5\u987B\u53EA\u843D\u5728\u5B57\u4E0A\uFF1A\u76D6\u4E00\u5C42\u534A\u900F\u660E\u5149\u5E26\u7684\u8BDD\uFF0Cnotice \u662F flex:1 \u6491\u5F00\u7684\u5BBD\u5BB9\u5668\uFF0C\u53F3\u4FA7\u5927\u7247\u7A7A\u767D\n \u91CC\u4F1A\u51FA\u73B0\u4E00\u6761\u767D\u5149\u5728\u626B\u3002\u6545\u628A\u5149\u505A\u6210\u6587\u5B57\u81EA\u5DF1\u7684 background + background-clip:text \u88C1\u5230\u5B57\u5F62\uFF1B\n \u57FA\u8272\u53D6 currentColor \u21D2 \u8C03\u7528\u65B9\u6362\u5B57\u8272\u4E5F\u8DDF\u7740\u8D70\uFF0C\u4E0D\u9700\u8981\u77E5\u9053\u6587\u5B57\u5BBD\u5EA6\u3002 */\n.dshpc-flip--sweep .dshpc-mq-in{\n background-image:linear-gradient(105deg,currentColor 0,currentColor 47%,color-mix(in srgb,var(--dshpc-on-signal) 70%,currentColor) 50%,currentColor 53%,currentColor 100%);\n background-size:300% 100%;background-repeat:no-repeat;\n background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;\n animation:dshpc-flip-sweep 1.5s linear infinite;\n}\n/* 1.5s \u4E00\u8F6E\uFF1A\u524D 40% \u626B\u5B8C\uFF0C\u5176\u4F59\u505C\u5728\u89C6\u91CE\u5916\u4F11\u606F \u2014\u2014 \u4E00\u76F4\u626B\u4F1A\u6643\u773C\uFF0C\u95F4\u6B47\u624D\u50CF\u300C\u8FD8\u5728\u5E72\u6D3B\u300D\u3002 */\n@keyframes dshpc-flip-sweep{0%{background-position:100% 0}40%,100%{background-position:0 0}}\n@media (prefers-reduced-motion:reduce){\n .dshpc-flip--sweep .dshpc-mq-in{animation:none;background-image:none;-webkit-text-fill-color:currentColor}\n}\n";
6202
+ var FLIP_TEXT_CSS = "/* \u7FFB\u724C\u6587\u672C\uFF08FlipText\uFF09\uFF1A\u4E00\u4E2A\u5355\u884C\u7A97\u53E3 + \u4E24\u5C42\u540C\u683C\u53E0\u653E\uFF0C\u6362\u5B57\u65F6\u65E7\u7684\u4E0A\u79FB\u51FA\u3001\u65B0\u7684\u4ECE\u4E0B\u8FDB\u3002\n \u6EA2\u51FA\uFF08\u4E09\u70B9\u7701\u7565 + hover \u8DD1\u9A6C\u706F\uFF09\u4E0D\u5728\u8FD9\u91CC\u505A \u2014\u2014 \u4EA4\u7ED9 MarqueeText\uFF0C\u672C\u6587\u4EF6\u53EA\u7BA1\u88C1\u526A\u4E0E\u5207\u6362\u52A8\u6548\u3002\n \u53E0\u653E\u7528 grid \u540C\u683C\u800C\u4E0D\u662F\u7EDD\u5BF9\u5B9A\u4F4D\uFF1A\u5BB9\u5668\u9AD8\u5EA6\u5929\u7136\u7B49\u4E8E\u4E00\u884C\uFF0C\u4E0D\u7528\u6D4B\u91CF\u3001\u4E5F\u4E0D\u4F9D\u8D56 lh \u5355\u4F4D\u3002 */\n.dshpc-flip{--dshpc-flip-dur:260ms;--dshpc-flip-ease:cubic-bezier(.22,.61,.36,1);--dshpc-sweep-hi:var(--dshpc-on-signal);display:grid;min-width:0;overflow:hidden}\n/* \u6697\u8272\u5B57\u672C\u8EAB\u662F\u6D45\u767D\uFF0C\u767D\u5149\u53E0\u4E0A\u53BB\u6CA1\u53CD\u5DEE \u21D2 \u626B\u5149\u9AD8\u4EAE\u8272\u6362\u9971\u548C\u9752\uFF0C\u6D45\u5B57\u4E0A\u4E5F\u770B\u5F97\u51FA\u5149\u5E26\u626B\u8FC7\u3002 */\nbody[data-ds-dark-theme] .dshpc-flip{--dshpc-sweep-hi:var(--dshpc-cyan)}\n.dshpc-flip__item{grid-area:1/1;min-width:0}\n.dshpc-flip__in{animation:dshpc-flip-in var(--dshpc-flip-dur) var(--dshpc-flip-ease) both}\n.dshpc-flip__out{animation:dshpc-flip-out var(--dshpc-flip-dur) var(--dshpc-flip-ease) both}\n@keyframes dshpc-flip-in{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}\n@keyframes dshpc-flip-out{from{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}\n/* \u524D\u5EAD\u654F\u611F / \u4F4E\u6027\u80FD\u8BBE\u5907\u5173\u6389\u4F4D\u79FB\u52A8\u753B\uFF1A\u6362\u5B57\u4ECD\u5728\uFF0C\u53EA\u662F\u4E0D\u518D\u7FFB\u3002\n \u65E7\u5E27\u6CA1\u6709\u52A8\u753B\u53EF\u64AD\uFF0C\u5FC5\u987B\u81EA\u5DF1\u9690\u5F62 \u2014\u2014 \u4E24\u5C42\u540C\u683C\u53E0\u653E\uFF0C\u7559\u7740\u5C31\u91CD\u5F71\u3002 */\n@media (prefers-reduced-motion:reduce){\n .dshpc-flip__in,.dshpc-flip__out{animation:none}\n .dshpc-flip__out{opacity:0}\n}\n/* \u626B\u5149\uFF08sweep\uFF09\uFF1A\u5E38\u9A7B\u5FAA\u73AF\uFF0C\u505C\u5728\u539F\u5730\u7684\u63D0\u793A\u4E5F\u770B\u5F97\u51FA\u5728\u52A8\u3002\u5F00\u5173\u9ED8\u8BA4\u5173\uFF0C\u5F39\u7A97 / \u62BD\u5C49\u5E95\u680F\u9ED8\u8BA4\u5F00\u3002\n \u5149\u5FC5\u987B\u53EA\u843D\u5728\u5B57\u4E0A\uFF1A\u76D6\u4E00\u5C42\u534A\u900F\u660E\u5149\u5E26\u7684\u8BDD\uFF0Cnotice \u662F flex:1 \u6491\u5F00\u7684\u5BBD\u5BB9\u5668\uFF0C\u53F3\u4FA7\u5927\u7247\u7A7A\u767D\n \u91CC\u4F1A\u51FA\u73B0\u4E00\u6761\u767D\u5149\u5728\u626B\u3002\u6545\u628A\u5149\u505A\u6210\u6587\u5B57\u81EA\u5DF1\u7684 background + background-clip:text \u88C1\u5230\u5B57\u5F62\uFF1B\n \u57FA\u8272\u53D6 currentColor \u21D2 \u8C03\u7528\u65B9\u6362\u5B57\u8272\u4E5F\u8DDF\u7740\u8D70\uFF0C\u4E0D\u9700\u8981\u77E5\u9053\u6587\u5B57\u5BBD\u5EA6\u3002\n \u9AD8\u4EAE\u8272\u53D6 --dshpc-sweep-hi\uFF08\u4EAE\u8272\u767D / \u6697\u8272\u9752\uFF09\uFF0C70% \u6DF7\u5165 \u21D2 \u548C\u5B57\u8272\u603B\u6709\u660E\u5EA6\u5DEE\uFF0C\u4E0D\u4F1A\u7CCA\u6210\u4E00\u7247\u3002 */\n.dshpc-flip--sweep .dshpc-mq-in{\n background-image:linear-gradient(105deg,currentColor 0,currentColor 42%,color-mix(in srgb,var(--dshpc-sweep-hi) 70%,currentColor) 50%,currentColor 58%,currentColor 100%);\n background-size:250% 100%;background-repeat:no-repeat;\n background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;\n animation:dshpc-flip-sweep 1.8s linear infinite;\n}\n/* 1.8s \u4E00\u8F6E\uFF1A\u524D 55% \u626B\u5B8C\uFF08\u4EAE\u5E26\u52A0\u5BBD\u5230 16% \u6E10\u53D8\uFF0C\u6162\u4E00\u70B9\u624D\u770B\u6E05\uFF09\uFF0C\u5176\u4F59\u505C\u5728\u89C6\u91CE\u5916\u4F11\u606F \u2014\u2014 \u4E00\u76F4\u626B\u4F1A\u6643\u773C\u3002 */\n@keyframes dshpc-flip-sweep{0%{background-position:100% 0}55%,100%{background-position:0 0}}\n@media (prefers-reduced-motion:reduce){\n .dshpc-flip--sweep .dshpc-mq-in{animation:none;background-image:none;-webkit-text-fill-color:currentColor}\n}\n";
6203
6203
 
6204
6204
  // dist/ui/display/FlipText.js
6205
6205
  var FLIP_MS = 300;
@@ -68707,8 +68707,8 @@ var docData = {
68707
68707
  "en": 'Widths follow Button / Chip: `width` wins; `minWidth` / `maxWidth` apply only when it is unset; none of the three means "follow the parent" (a flex child stretches naturally \u2014 that is how the dialog footer uses it). To put it on the left of a dialog footer, use the `notice` prop on `Modal` / `ConfirmModal` / `AlertModal` / `SideSheet` rather than wrapping it yourself.'
68708
68708
  },
68709
68709
  {
68710
- "zh": "`sweep` = \u5E38\u9A7B\u626B\u5149\uFF1A\u4E00\u9053\u659C\u5149\u6BCF 1.5s \u4ECE\u6587\u5B57\u4E0A\u626B\u8FC7\uFF0C\u626B\u5230\u7684\u5B57\u63D0\u4EAE\uFF0C\u751A\u81F3\u6587\u6848\u4E00\u76F4\u4E0D\u53D8\u4E5F\u770B\u5F97\u51FA\u300C\u8FD8\u5728\u5E72\u6D3B\u300D\u3002**\u9ED8\u8BA4\u5173**\uFF1B`Modal` / `SideSheet` \u7684 `notice` \u9ED8\u8BA4\u6253\u5F00\uFF08\u786E\u8BA4\u6846\u4E0E\u8FC7\u7A0B\u63D0\u793A\u7684\u573A\u666F\uFF09\u3002\u5149\u53EA\u843D\u5728\u5B57\u5F62\u4E0A\uFF08`background-clip:text`\uFF09\uFF0C\u4E0D\u4F1A\u5728\u5E95\u680F\u7684\u7A7A\u767D\u533A\u663E\u51FA\u4E00\u6761\u767D\u5149\uFF1B`prefers-reduced-motion` \u4E0B\u4E0E\u7FFB\u724C\u4E00\u8D77\u5173\u6389\u3002",
68711
- "en": '`sweep` is a persistent sheen: a slanted highlight crosses the text every 1.5s, brightening the characters it passes, so an unchanged line still reads as "still working". **Off by default**; the `notice` prop on `Modal` / `SideSheet` turns it on (confirm dialogs and progress hints). The light is clipped to the glyphs (`background-clip:text`), so it never shows as a white bar across the empty part of a footer, and it is turned off together with the flip under `prefers-reduced-motion`.'
68710
+ "zh": "`sweep` = \u5E38\u9A7B\u626B\u5149\uFF1A\u4E00\u9053\u659C\u5149\u6BCF 1.8s \u4ECE\u6587\u5B57\u4E0A\u626B\u8FC7\uFF0C\u626B\u5230\u7684\u5B57\u63D0\u4EAE\uFF0C\u751A\u81F3\u6587\u6848\u4E00\u76F4\u4E0D\u53D8\u4E5F\u770B\u5F97\u51FA\u300C\u8FD8\u5728\u5E72\u6D3B\u300D\u3002**\u9ED8\u8BA4\u5173**\uFF1B`Modal` / `SideSheet` \u7684 `notice` \u9ED8\u8BA4\u6253\u5F00\uFF08\u786E\u8BA4\u6846\u4E0E\u8FC7\u7A0B\u63D0\u793A\u7684\u573A\u666F\uFF09\u3002\u5149\u53EA\u843D\u5728\u5B57\u5F62\u4E0A\uFF08`background-clip:text`\uFF09\uFF0C\u4E0D\u4F1A\u5728\u5E95\u680F\u7684\u7A7A\u767D\u533A\u663E\u51FA\u4E00\u6761\u767D\u5149\uFF0C\u4E14\u4EAE\u8272\u4E3B\u9898\u7528\u767D\u5149\u3001\u6697\u8272\u4E3B\u9898\u7528\u9752\u5149\u4EE5\u4FDD\u8BC1\u6D45\u5B57\u4E0A\u4E5F\u6709\u53CD\u5DEE\uFF1B`prefers-reduced-motion` \u4E0B\u4E0E\u7FFB\u724C\u4E00\u8D77\u5173\u6389\u3002",
68711
+ "en": '`sweep` is a persistent sheen: a slanted highlight crosses the text every 1.8s, brightening the characters it passes, so an unchanged line still reads as "still working". **Off by default**; the `notice` prop on `Modal` / `SideSheet` turns it on (confirm dialogs and progress hints). The light is clipped to the glyphs (`background-clip:text`), so it never shows as a white bar across the empty part of a footer; it uses white in light theme and cyan in dark theme to stay visible on light glyphs, and is turned off together with the flip under `prefers-reduced-motion`.'
68712
68712
  }
68713
68713
  ],
68714
68714
  "api": [
@@ -68756,8 +68756,8 @@ var docData = {
68756
68756
  "type": "boolean",
68757
68757
  "def": "false",
68758
68758
  "desc": {
68759
- "zh": "\u5E38\u9A7B\u626B\u5149\uFF1A\u6BCF 1.5s \u4E00\u9053\u659C\u5149\u626B\u8FC7\u6587\u5B57\uFF0C\u6587\u6848\u4E0D\u53D8\u4E5F\u80FD\u770B\u51FA\u5728\u52A8\u3002`Modal` / `SideSheet` \u7684 `notice` \u9ED8\u8BA4\u4F20 true",
68760
- "en": "Persistent sheen: a slanted highlight crosses the text every 1.5s so a static line still reads as active. The `notice` prop on `Modal` / `SideSheet` passes true by default"
68759
+ "zh": "\u5E38\u9A7B\u626B\u5149\uFF1A\u6BCF 1.8s \u4E00\u9053\u659C\u5149\u626B\u8FC7\u6587\u5B57\uFF0C\u6587\u6848\u4E0D\u53D8\u4E5F\u80FD\u770B\u51FA\u5728\u52A8\u3002`Modal` / `SideSheet` \u7684 `notice` \u9ED8\u8BA4\u4F20 true",
68760
+ "en": "Persistent sheen: a slanted highlight crosses the text every 1.8s so a static line still reads as active. The `notice` prop on `Modal` / `SideSheet` passes true by default"
68761
68761
  }
68762
68762
  },
68763
68763
  {
@@ -75631,9 +75631,9 @@ function ReferencePage() {
75631
75631
  "tbody",
75632
75632
  null,
75633
75633
  [
75634
- [t3("buildCore"), `v${"0.43.0"}`],
75635
- [t3("buildDemo"), `v${"0.43.0"}`],
75636
- [t3("buildStamp"), "261120-054739-166"]
75634
+ [t3("buildCore"), `v${"0.43.1"}`],
75635
+ [t3("buildDemo"), `v${"0.43.1"}`],
75636
+ [t3("buildStamp"), "261120-060523-602"]
75637
75637
  ].map(
75638
75638
  ([label, value]) => (0, import_react110.createElement)(
75639
75639
  "tr",
@@ -75948,9 +75948,9 @@ function DemoPage() {
75948
75948
  lineHeight: "14px"
75949
75949
  }
75950
75950
  },
75951
- (0, import_react112.createElement)("span", null, `core v${"0.43.0"}`),
75952
- (0, import_react112.createElement)("span", null, `demo v${"0.43.0"}`),
75953
- (0, import_react112.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261120-054739-166")
75951
+ (0, import_react112.createElement)("span", null, `core v${"0.43.1"}`),
75952
+ (0, import_react112.createElement)("span", null, `demo v${"0.43.1"}`),
75953
+ (0, import_react112.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261120-060523-602")
75954
75954
  )
75955
75955
  )
75956
75956
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-core-demo",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "description": "The shared UI foundation for DSH plugins, with a live component preview: design tokens, common controls, workspace browsing and notifications maintained in one place — install it to preview every component in a real host.",
5
5
  "icon": "./assets/icon-components.svg",
6
6
  "keywords": [