dsh-workbench-tasks 5.5.4 → 5.5.5

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/lib/client.js +563 -1314
  2. package/package.json +5 -6
package/lib/client.js CHANGED
@@ -4895,1161 +4895,6 @@ var require_stats = __commonJS({
4895
4895
  }
4896
4896
  });
4897
4897
 
4898
- // packages/addons/lib/highlight.cjs
4899
- var require_highlight = __commonJS({
4900
- "packages/addons/lib/highlight.cjs"(exports2, module2) {
4901
- "use strict";
4902
- module2.exports = function(React) {
4903
- var h = React.createElement;
4904
- function sourceOf(keyword) {
4905
- var pattern = keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4906
- return pattern.replace(/[a-zA-Z]/g, function(letter) {
4907
- return "[" + letter.toLowerCase() + letter.toUpperCase() + "]";
4908
- });
4909
- }
4910
- return function createHighlight(prefix) {
4911
- var className = String(prefix || "wb") + "-hit";
4912
- function hit(rawText, rawKeyword) {
4913
- var text = rawText == null ? "" : String(rawText);
4914
- var keyword = rawKeyword == null ? "" : String(rawKeyword);
4915
- if (!keyword) return text;
4916
- var matcher, match, end = 0, parts = [];
4917
- try {
4918
- matcher = new RegExp(sourceOf(keyword), "g");
4919
- } catch (error) {
4920
- return text;
4921
- }
4922
- while (match = matcher.exec(text)) {
4923
- if (match.index > end) parts.push(text.slice(end, match.index));
4924
- parts.push(h("mark", { className, key: match.index }, match[0]));
4925
- end = match.index + match[0].length;
4926
- if (!match[0]) matcher.lastIndex += 1;
4927
- }
4928
- if (!parts.length) return text;
4929
- if (end < text.length) parts.push(text.slice(end));
4930
- return parts;
4931
- }
4932
- function Highlight(props) {
4933
- return hit(props.text, props.keyword);
4934
- }
4935
- Highlight.hit = hit;
4936
- return Highlight;
4937
- };
4938
- };
4939
- }
4940
- });
4941
-
4942
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
4943
- var toKebabCase;
4944
- var init_toKebabCase = __esm({
4945
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs"() {
4946
- toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4947
- }
4948
- });
4949
-
4950
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
4951
- function toLucideIconData(iconName, iconNode, aliases = []) {
4952
- if (iconNode == null) {
4953
- throw new Error("[lucide]: iconNode is required when icon name is used");
4954
- }
4955
- return {
4956
- name: toKebabCase(iconName),
4957
- size: 24,
4958
- node: iconNode,
4959
- ...aliases.length > 0 ? { aliases } : {}
4960
- };
4961
- }
4962
- var init_toLucideIconData = __esm({
4963
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs"() {
4964
- init_toKebabCase();
4965
- }
4966
- });
4967
-
4968
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
4969
- var toCamelCase;
4970
- var init_toCamelCase = __esm({
4971
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs"() {
4972
- toCamelCase = (string) => {
4973
- let out = "";
4974
- let upperNext = false;
4975
- for (const ch of string) {
4976
- if (ch === "-" || ch === "_" || ch <= " ") {
4977
- upperNext = out.length > 0;
4978
- continue;
4979
- }
4980
- if (out.length === 0) {
4981
- out += ch.toLowerCase();
4982
- } else {
4983
- out += upperNext ? ch.toUpperCase() : ch;
4984
- }
4985
- upperNext = false;
4986
- }
4987
- return out;
4988
- };
4989
- }
4990
- });
4991
-
4992
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
4993
- var toPascalCase;
4994
- var init_toPascalCase = __esm({
4995
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs"() {
4996
- init_toCamelCase();
4997
- toPascalCase = (string) => {
4998
- const camelCase = toCamelCase(string);
4999
- return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
5000
- };
5001
- }
5002
- });
5003
-
5004
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
5005
- var mergeClasses;
5006
- var init_mergeClasses = __esm({
5007
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs"() {
5008
- mergeClasses = (...classes) => classes.filter((className, index, array) => {
5009
- return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
5010
- }).join(" ").trim();
5011
- }
5012
- });
5013
-
5014
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
5015
- var defaultAttributes;
5016
- var init_defaultAttributes = __esm({
5017
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs"() {
5018
- defaultAttributes = {
5019
- xmlns: "http://www.w3.org/2000/svg",
5020
- width: 24,
5021
- height: 24,
5022
- viewBox: "0 0 24 24",
5023
- fill: "none",
5024
- stroke: "currentColor",
5025
- "stroke-width": 2,
5026
- "stroke-linecap": "round",
5027
- "stroke-linejoin": "round"
5028
- };
5029
- }
5030
- });
5031
-
5032
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
5033
- function isDefined(value) {
5034
- return value !== null && value !== void 0;
5035
- }
5036
- function buildLucideIconNode(icon, params = {}) {
5037
- const attributeNames = params.attributeNames ?? {};
5038
- const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;
5039
- const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes["width"];
5040
- const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes["height"];
5041
- const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === "string" && alias.trim() !== "").map((alias) => `lucide-${alias}`) ?? [];
5042
- const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];
5043
- const classNamesFromClassName = params.className?.split(" ").filter(Boolean) ?? [];
5044
- const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses("lucide", ...iconClassNames, ...classNamesFromClassName);
5045
- const calculatedStrokeWidth = params.absoluteStrokeWidth ? Number(params.strokeWidth ?? defaultAttributes["stroke-width"]) * Number(icon.size ?? icon.width ?? defaultAttributes["width"]) / Number(params.size ?? params.width ?? defaultAttributes["width"]) : params.strokeWidth ?? defaultAttributes["stroke-width"];
5046
- const attributes = {
5047
- ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {
5048
- attrs[getAttributeName(attrName)] = value;
5049
- return attrs;
5050
- }, {}),
5051
- ..."color" in params && params.color && {
5052
- [getAttributeName("stroke")]: params.color
5053
- },
5054
- ..."size" in params && isDefined(params.size) && {
5055
- [getAttributeName("width")]: params.size,
5056
- [getAttributeName("height")]: params.size
5057
- },
5058
- ..."width" in params && isDefined(params.width) && {
5059
- [getAttributeName("width")]: params.width
5060
- },
5061
- ..."height" in params && isDefined(params.height) && {
5062
- [getAttributeName("height")]: params.height
5063
- },
5064
- [getAttributeName("stroke-width")]: calculatedStrokeWidth,
5065
- ...className && {
5066
- [getAttributeName("class")]: className
5067
- },
5068
- [getAttributeName("viewBox")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
5069
- ...params.hasA11yProp === false ? {
5070
- [getAttributeName("aria-hidden")]: "true"
5071
- } : {},
5072
- ..."attributes" in params && params.attributes
5073
- };
5074
- return [
5075
- "svg",
5076
- attributes,
5077
- icon.node.map((child) => {
5078
- const [name, attrs, children] = child;
5079
- const nextAttrs = params.nonScalingStroke ? { [getAttributeName("vector-effect")]: "non-scaling-stroke", ...attrs } : attrs;
5080
- return children ? [name, nextAttrs, children] : [name, nextAttrs];
5081
- })
5082
- ];
5083
- }
5084
- var init_buildLucideIconNode = __esm({
5085
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs"() {
5086
- init_defaultAttributes();
5087
- init_mergeClasses();
5088
- }
5089
- });
5090
-
5091
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
5092
- function buildLucideIconForReact(icon, params = {}) {
5093
- return buildLucideIconNode(icon, {
5094
- ...params,
5095
- attributeNames: {
5096
- ...params.attributeNames,
5097
- class: "className",
5098
- "stroke-width": "strokeWidth",
5099
- "stroke-linecap": "strokeLinecap",
5100
- "stroke-linejoin": "strokeLinejoin",
5101
- "vector-effect": "vectorEffect"
5102
- }
5103
- });
5104
- }
5105
- var init_buildLucideIconForReact = __esm({
5106
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs"() {
5107
- init_buildLucideIconNode();
5108
- }
5109
- });
5110
-
5111
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
5112
- var hasA11yProp;
5113
- var init_hasA11yProp = __esm({
5114
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs"() {
5115
- hasA11yProp = (props) => {
5116
- for (const prop in props) {
5117
- if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
5118
- return true;
5119
- }
5120
- }
5121
- return false;
5122
- };
5123
- }
5124
- });
5125
-
5126
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs
5127
- var import_react, LucideContext, useLucideContext;
5128
- var init_context = __esm({
5129
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs"() {
5130
- "use strict";
5131
- "use client";
5132
- import_react = require("react");
5133
- LucideContext = (0, import_react.createContext)({});
5134
- useLucideContext = () => (0, import_react.useContext)(LucideContext);
5135
- }
5136
- });
5137
-
5138
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs
5139
- var import_react2, Icon;
5140
- var init_Icon = __esm({
5141
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs"() {
5142
- "use strict";
5143
- "use client";
5144
- import_react2 = require("react");
5145
- init_mergeClasses();
5146
- init_buildLucideIconForReact();
5147
- init_hasA11yProp();
5148
- init_context();
5149
- Icon = (0, import_react2.forwardRef)(
5150
- ({
5151
- color,
5152
- size,
5153
- width,
5154
- height,
5155
- strokeWidth,
5156
- absoluteStrokeWidth,
5157
- nonScalingStroke,
5158
- className = "",
5159
- children,
5160
- iconNode = [],
5161
- icon = {
5162
- node: iconNode,
5163
- aliases: [],
5164
- size: 24
5165
- },
5166
- ...rest
5167
- }, ref) => {
5168
- const {
5169
- size: contextSize = 24,
5170
- strokeWidth: contextStrokeWidth = 2,
5171
- absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
5172
- nonScalingStroke: contextNonScalingStroke = false,
5173
- color: contextColor = "currentColor",
5174
- className: contextClass = ""
5175
- } = useLucideContext() ?? {};
5176
- const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);
5177
- const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {
5178
- color: color ?? contextColor,
5179
- width: width ?? size ?? contextSize,
5180
- height: height ?? size ?? contextSize,
5181
- strokeWidth: strokeWidth ?? contextStrokeWidth,
5182
- absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,
5183
- nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,
5184
- className: mergeClasses(contextClass, className),
5185
- hasA11yProp: hasAccessibleProp,
5186
- attributes: rest
5187
- });
5188
- return (0, import_react2.createElement)(
5189
- name,
5190
- {
5191
- ref,
5192
- ...svgAttributes
5193
- },
5194
- [
5195
- ...builtIconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
5196
- ...Array.isArray(children) ? children : [children]
5197
- ]
5198
- );
5199
- }
5200
- );
5201
- }
5202
- });
5203
-
5204
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
5205
- function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
5206
- const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
5207
- const Component = (0, import_react3.forwardRef)(
5208
- ({ className, ...props }, ref) => (0, import_react3.createElement)(Icon, {
5209
- ref,
5210
- icon: iconData,
5211
- className,
5212
- ...props
5213
- })
5214
- );
5215
- if (iconData.name) {
5216
- Component.displayName = toPascalCase(iconData.name);
5217
- }
5218
- return Component;
5219
- }
5220
- var import_react3;
5221
- var init_createLucideIcon = __esm({
5222
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs"() {
5223
- import_react3 = require("react");
5224
- init_toLucideIconData();
5225
- init_toPascalCase();
5226
- init_Icon();
5227
- }
5228
- });
5229
-
5230
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
5231
- var chevron_right_exports = {};
5232
- __export(chevron_right_exports, {
5233
- __iconData: () => __iconData,
5234
- default: () => ChevronRight
5235
- });
5236
- var __iconData, ChevronRight;
5237
- var init_chevron_right = __esm({
5238
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs"() {
5239
- init_createLucideIcon();
5240
- __iconData = {
5241
- name: "chevron-right",
5242
- size: 24,
5243
- node: [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]]
5244
- };
5245
- __iconData.node;
5246
- ChevronRight = createLucideIcon(__iconData);
5247
- }
5248
- });
5249
-
5250
- // packages/addons/lib/disclosure-styles.cjs
5251
- var require_disclosure_styles = __commonJS({
5252
- "packages/addons/lib/disclosure-styles.cjs"(exports2, module2) {
5253
- "use strict";
5254
- module2.exports = [
5255
- ".wb-disc{min-width:0;border:0;padding:0;margin:0}",
5256
- // 原生 details/summary 保留键盘与无障碍语义,这里只接管观感:去掉默认三角并铺满整行。
5257
- ".wb-disc>summary{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:12.5px;font-weight:600;line-height:1.6;color:inherit;user-select:none;list-style:none;padding:2px 8px 2px 2px;margin:-2px -8px -2px -2px;border-radius:7px}",
5258
- ".wb-disc>summary::-webkit-details-marker{display:none}",
5259
- '.wb-disc>summary::marker{content:""}',
5260
- ".wb-disc>summary:hover{background:color-mix(in oklab,currentColor 6%,transparent)}",
5261
- ".wb-disc>summary:focus-visible{outline:2px solid var(--wb-accent,var(--dsw-alias-brand-primary,Highlight));outline-offset:2px}",
5262
- ".wb-disc-chev{flex:0 0 auto;width:14px;height:14px;transition:transform 160ms ease}",
5263
- ".wb-disc[open]>summary .wb-disc-chev{transform:rotate(90deg)}",
5264
- ".wb-disc-title{min-width:0;overflow-wrap:anywhere}",
5265
- ".wb-disc-meta{font-weight:400;font-size:12px;color:var(--wb-muted,var(--dsw-alias-label-tertiary,GrayText))}",
5266
- ".wb-disc-body{margin-top:8px;min-width:0;animation:wb-disc-in 160ms ease}",
5267
- "@keyframes wb-disc-in{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:none}}",
5268
- "@media(prefers-reduced-motion:reduce){.wb-disc-chev{transition:none}.wb-disc-body{animation:none}}"
5269
- ].join("\n");
5270
- }
5271
- });
5272
-
5273
- // packages/addons/lib/disclosure.cjs
5274
- var require_disclosure = __commonJS({
5275
- "packages/addons/lib/disclosure.cjs"(exports2, module2) {
5276
- "use strict";
5277
- var ChevronRight2 = (init_chevron_right(), __toCommonJS(chevron_right_exports)).default;
5278
- function createDisclosure(React) {
5279
- var h = React.createElement;
5280
- function Disclosure(props) {
5281
- var attrs = Object.assign({ className: ("wb-disc " + (props.className || "")).trim() }, props.attrs || {});
5282
- if (props.open !== void 0) attrs.open = !!props.open;
5283
- else if (props.defaultOpen !== void 0) attrs.open = !!props.defaultOpen;
5284
- if (props.onToggle) attrs.onToggle = props.onToggle;
5285
- return h(
5286
- "details",
5287
- attrs,
5288
- h(
5289
- "summary",
5290
- null,
5291
- h(ChevronRight2, { className: "wb-disc-chev", "aria-hidden": true, focusable: false }),
5292
- h("span", { className: "wb-disc-title" }, props.title),
5293
- props.meta != null && props.meta !== "" ? h("span", { className: "wb-disc-meta" }, props.meta) : null
5294
- ),
5295
- h("div", { className: "wb-disc-body" }, props.children)
5296
- );
5297
- }
5298
- return { Disclosure, css: require_disclosure_styles() };
5299
- }
5300
- module2.exports = { createDisclosure, css: require_disclosure_styles() };
5301
- }
5302
- });
5303
-
5304
- // packages/addons/lib/action-schema-style.cjs
5305
- var require_action_schema_style = __commonJS({
5306
- "packages/addons/lib/action-schema-style.cjs"(exports2, module2) {
5307
- "use strict";
5308
- module2.exports = function(PREFIX, DOMAIN) {
5309
- var P = PREFIX + "-as";
5310
- var hairline = "1px solid color-mix(in oklab,currentColor 8%,transparent)";
5311
- var CSS = [
5312
- "." + P + "{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;font-size:13px;color:inherit}",
5313
- "." + P + "-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
5314
- "." + P + "-title{font-size:15px;font-weight:660;margin:0}",
5315
- "." + P + "-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:999px;padding:1px 8px;font-size:11px;color:var(--dsw-alias-label-secondary,currentColor);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}",
5316
- "." + P + "-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px}",
5317
- "." + P + "-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
5318
- "." + P + "-search{position:relative;flex:1 1 220px;min-width:0;display:flex;align-items:center}",
5319
- "." + P + "-search input{width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 10px 6px 30px}",
5320
- "." + P + "-search input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
5321
- "." + P + "-search .wbi-svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--dsw-alias-label-tertiary,inherit)}",
5322
- "." + P + " select{border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 8px;max-width:100%}",
5323
- "." + P + " select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
5324
- "." + P + "-list{display:flex;flex-direction:column;gap:8px}",
5325
- "." + P + "-card{border:1px solid var(--wb-border,#e3e5e9);border-radius:10px;padding:10px 12px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));display:flex;flex-direction:column;gap:8px;min-width:0}",
5326
- "." + P + "-cardhead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}",
5327
- "." + P + "-cardmeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;min-height:24px}",
5328
- "." + P + "-cardhead code{font-weight:640;overflow-wrap:anywhere;min-width:0}",
5329
- "." + P + "-hintline{margin:0;color:var(--dsw-alias-label-tertiary,inherit);font-size:11.5px;line-height:1.5}",
5330
- "." + P + "-origins{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}",
5331
- "." + P + "-origins-label{font-size:11px;color:var(--wb-muted);white-space:nowrap}",
5332
- "." + P + "-origin{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--wb-muted);cursor:pointer;user-select:none}",
5333
- // 该 action 本身不支持的来源:整项置灰、不可点,示意「不是没开,是开不了」。
5334
- "." + P + "-origin-off{opacity:.55;cursor:not-allowed}",
5335
- "." + P + "-origin input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:var(--wb-accent);cursor:inherit}",
5336
- "." + P + "-origin input[type=checkbox]:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}",
5337
- "." + P + "-locked{border-color:var(--wb-warn,#b7791f);color:var(--wb-warn,#b7791f)}",
5338
- "." + P + "-desc{margin:0;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55;font-size:12.5px;overflow-wrap:anywhere}",
5339
- // 搜索命中:用品牌色透明度叠加而不是写死浅色,深浅主题都可读;继承文字颜色、不覆盖 ::selection。
5340
- "." + P + " mark." + P + "-hit{background:color-mix(in oklab,var(--dsw-alias-brand-primary,#4f6ef7) 22%,transparent);color:inherit;border-radius:2px;padding:0;font:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}",
5341
- "." + P + "-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}",
5342
- "." + P + "-table th{text-align:left;font-weight:620;font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:var(--dsw-alias-label-tertiary,inherit);padding:4px 8px 4px 0;white-space:nowrap}",
5343
- "." + P + "-table td{padding:4px 8px 4px 0;vertical-align:top;border-top:" + hairline + ";line-height:1.5;overflow-wrap:anywhere}",
5344
- "." + P + "-req{color:var(--dsw-alias-state-error-primary,#d9534f);font-weight:620}",
5345
- "." + P + "-opt{color:var(--dsw-alias-label-tertiary,inherit)}",
5346
- "." + P + "-none{color:var(--dsw-alias-label-tertiary,inherit);font-size:12px}",
5347
- "." + P + "-example{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}",
5348
- "." + P + "-examplehead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}",
5349
- "." + P + "-pre{margin:0;padding:8px 10px;border-radius:8px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.5;overflow:auto;max-height:280px;white-space:pre-wrap;word-break:break-word}",
5350
- "." + P + "-copy{border:1px solid var(--wb-border,#e3e5e9);border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:11.5px;padding:2px 8px;cursor:pointer}",
5351
- "." + P + "-copy:hover{background:var(--dsw-alias-interactive-bg-hover,color-mix(in oklab,currentColor 5%,transparent))}",
5352
- "." + P + "-copy:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}",
5353
- // 折叠头观感已收口到共享控件 disclosure-styles.cjs(.wb-disc),这里不再重复定义 details>summary。
5354
- "." + P + "-params{min-width:0}",
5355
- "." + P + "-empty{padding:24px;text-align:center;border:1px dashed var(--wb-border,#e3e5e9);border-radius:10px;color:var(--dsw-alias-label-tertiary,inherit)}",
5356
- "." + P + "-error{padding:12px;border:1px solid var(--dsw-alias-state-error-primary,#d9534f);border-radius:10px;color:var(--dsw-alias-state-error-primary,#d9534f);display:flex;gap:10px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}",
5357
- "." + P + "-toast{position:sticky;bottom:8px;align-self:flex-start;border-radius:999px;padding:3px 10px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);font-size:11.5px;max-width:100%}",
5358
- // 窄屏:五列参数表压成一列会丢失列名、且 table 布局按最小内容宽度撑破容器,
5359
- // 这里整体改成块级网格:每行 = 名称 / 类型 / 必填 + 约束行 + 说明行,行间用细线分隔。
5360
- "@media(max-width:760px){." + P + "-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}." + P + "-search{grid-column:1/-1}." + P + "-toolbar>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}." + P + "-toolbar select{width:100%;min-width:0}." + P + "-cardhead{grid-template-columns:minmax(0,1fr);row-gap:6px}." + P + "-origins{justify-content:flex-start}." + P + "-table{display:block}." + P + "-table thead{display:none}." + P + "-table tbody{display:block}." + P + '-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"name type need" "extra extra extra" "desc desc desc";column-gap:8px;padding:9px 0;border-top:' + hairline + "}." + P + "-table tr:first-child{border-top:0;padding-top:2px}." + P + "-table tr:last-child{padding-bottom:2px}." + P + "-table td{display:block;border:0;padding:0;min-width:0}." + P + "-table td:empty{display:none}." + P + "-pname{grid-area:name;font-weight:640}." + P + "-ptype{grid-area:type;justify-self:start;align-self:center;color:var(--dsw-alias-label-tertiary,inherit)}." + P + "-pneed{grid-area:need;justify-self:end;align-self:center;font-size:11px;line-height:1.6;white-space:nowrap}." + P + "-pextra{grid-area:extra;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}." + P + "-pdesc{grid-area:desc;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}}",
5361
- // 中等宽度(521–760px)三个筛选项正好排成一行,避免第三项独占一行显得参差。
5362
- "@media(min-width:521px) and (max-width:760px){." + P + "-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}",
5363
- "@media(max-width:420px){." + P + "-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}." + P + "-card{padding:10px}." + P + "-table tr{padding:8px 0}}"
5364
- ].join("\n") + "\n" + require_disclosure_styles();
5365
- return function injectCss() {
5366
- if (typeof document === "undefined") return;
5367
- var id = "wb-addon-" + DOMAIN + "-actions-css";
5368
- var old = document.getElementById(id);
5369
- if (old) {
5370
- old.textContent = CSS;
5371
- return;
5372
- }
5373
- var style = document.createElement("style");
5374
- style.id = id;
5375
- style.setAttribute("data-wb-addon", "wb-addon-" + DOMAIN);
5376
- style.textContent = CSS;
5377
- document.head.appendChild(style);
5378
- };
5379
- };
5380
- }
5381
- });
5382
-
5383
- // packages/addons/lib/action-schema-view.cjs
5384
- var require_action_schema_view = __commonJS({
5385
- "packages/addons/lib/action-schema-view.cjs"(exports2, module2) {
5386
- "use strict";
5387
- var React = require("react");
5388
- var createHighlight = require_highlight()(React);
5389
- var Disclosure = require_disclosure().createDisclosure(React).Disclosure;
5390
- var h = React.createElement;
5391
- var COPY = {
5392
- zh: {
5393
- title: "Action",
5394
- hint: "\u8FD0\u884C\u65F6\u6CE8\u518C \xB7 \u53EA\u8BFB",
5395
- switchHint: "\u5141\u8BB8\u6765\u6E90\u843D\u672C\u673A\u3001\u5373\u6539\u5373\u751F\u6548\uFF1A\u52FE\u4E0A\u7684\u6765\u6E90\u624D\u80FD\u8C03\u7528\u8BE5 action\uFF0C\u5176\u4F59\u4F1A\u88AB ACTION_ORIGIN_DENIED \u62E6\u4E0B\u3002",
5396
- hostHint: "\u5BBF\u4E3B action \u7684\u5141\u8BB8\u6765\u6E90\uFF1B\u6807\u300C\u6765\u6E90\u56FA\u5B9A\u300D\u7684\u4E0D\u53EF\u4FEE\u6539\u3002",
5397
- originsLabel: "\u5141\u8BB8\u6765\u6E90",
5398
- originUi: "\u754C\u9762",
5399
- originPlugin: "\u63D2\u4EF6",
5400
- originAgent: "agent",
5401
- originSync: "\u540C\u6B65",
5402
- originsSaving: "\u4FDD\u5B58\u4E2D\u2026",
5403
- originsToast: "\u5DF2\u66F4\u65B0\u5141\u8BB8\u6765\u6E90",
5404
- originsFail: "\u66F4\u65B0\u5141\u8BB8\u6765\u6E90\u5931\u8D25",
5405
- originsEmpty: "\u81F3\u5C11\u8981\u4FDD\u7559\u4E00\u4E2A\u6765\u6E90",
5406
- originsUnsupported: "\u8BE5 action \u672C\u8EAB\u4E0D\u652F\u6301\u8FD9\u4E2A\u6765\u6E90",
5407
- originsPinned: "\u6765\u6E90\u56FA\u5B9A",
5408
- originsPinnedHint: "\u8BE5 action \u7684\u5141\u8BB8\u6765\u6E90\u88AB\u56FA\u5B9A\uFF08\u5B89\u5168\u7EA6\u675F\uFF09\uFF0C\u4E0D\u80FD\u4FEE\u6539",
5409
- domain: "\u57DF",
5410
- versionLabel: "\u7248\u672C",
5411
- shell: "\u5BBF\u4E3B",
5412
- count: function(shown, total) {
5413
- return shown + " / " + total + " \u4E2A action";
5414
- },
5415
- search: "\u641C\u7D22\u540D\u79F0\u3001\u63CF\u8FF0\u3001\u53C2\u6570\uFF08\u547D\u4E2D\u5904\u9AD8\u4EAE\uFF09",
5416
- filterReq: "\u5FC5\u586B\u7B5B\u9009",
5417
- all: "\u5168\u90E8",
5418
- onlyRequired: "\u542B\u5FC5\u586B\u9879",
5419
- onlyOptional: "\u65E0\u5FC5\u586B\u9879",
5420
- filterType: "\u53C2\u6570\u7C7B\u578B",
5421
- allTypes: "\u5168\u90E8\u7C7B\u578B",
5422
- filterOrigin: "\u5141\u8BB8\u6765\u6E90",
5423
- allOrigins: "\u5168\u90E8\u6765\u6E90",
5424
- colName: "\u53C2\u6570",
5425
- colType: "\u7C7B\u578B",
5426
- colReq: "\u5FC5\u586B",
5427
- colExtra: "\u9ED8\u8BA4 / \u679A\u4E3E / \u7EA6\u675F",
5428
- colDesc: "\u8BF4\u660E",
5429
- required: "\u5FC5\u586B",
5430
- optional: "\u53EF\u9009",
5431
- noParams: "\u65E0\u53C2\u6570",
5432
- paramCount: function(n) {
5433
- return n + " \u4E2A\u53C2\u6570";
5434
- },
5435
- params: "\u53C2\u6570",
5436
- requiredCount: function(n) {
5437
- return "\u5FC5\u586B " + n;
5438
- },
5439
- examples: "\u793A\u4F8B",
5440
- noExamples: "\u65E0\u793A\u4F8B",
5441
- copy: "\u590D\u5236",
5442
- copied: "\u5DF2\u590D\u5236",
5443
- raw: "\u539F\u59CB JSON Schema",
5444
- loading: "\u8F7D\u5165\u4E2D\u2026",
5445
- loadFail: "\u8BFB\u53D6 action schema \u5931\u8D25",
5446
- retry: "\u91CD\u8BD5",
5447
- empty: "\u6CA1\u6709\u5339\u914D\u7684 action",
5448
- emptyRegistry: "\u8BE5\u57DF\u6CA1\u6709\u6CE8\u518C action",
5449
- envelope: "\u9ED8\u8BA4",
5450
- enumLabel: "\u679A\u4E3E",
5451
- range: "\u8303\u56F4",
5452
- length: "\u957F\u5EA6",
5453
- pattern: "\u6B63\u5219",
5454
- format: "\u683C\u5F0F",
5455
- items: "\u5143\u7D20\u6570"
5456
- },
5457
- en: {
5458
- title: "Actions",
5459
- hint: "runtime registry \xB7 read-only",
5460
- switchHint: "Allowed origins are stored locally and apply immediately: only checked origins may call the action; others get ACTION_ORIGIN_DENIED.",
5461
- hostHint: "Allowed origins for host actions; items marked pinned cannot be changed.",
5462
- originsLabel: "Origins",
5463
- originUi: "UI",
5464
- originPlugin: "Plugin",
5465
- originAgent: "Agent",
5466
- originSync: "Sync",
5467
- originsSaving: "Saving\u2026",
5468
- originsToast: "Allowed origins updated",
5469
- originsFail: "Failed to update allowed origins",
5470
- originsEmpty: "Keep at least one origin",
5471
- originsUnsupported: "This action does not support this origin",
5472
- originsPinned: "Pinned",
5473
- originsPinnedHint: "Allowed origins are pinned for this action (security constraint) and cannot be changed",
5474
- originsDefaultOn: "Allowed by default",
5475
- originsDefaultOff: "Off by default, can be enabled",
5476
- domain: "Domain",
5477
- versionLabel: "Version",
5478
- shell: "Host",
5479
- count: function(shown, total) {
5480
- return shown + " / " + total + " actions";
5481
- },
5482
- search: "Search name, description, params (matches highlighted)",
5483
- filterReq: "Required",
5484
- all: "All",
5485
- onlyRequired: "Has required",
5486
- onlyOptional: "No required",
5487
- filterType: "Param type",
5488
- allTypes: "All types",
5489
- filterOrigin: "Origins",
5490
- allOrigins: "All origins",
5491
- colName: "Param",
5492
- colType: "Type",
5493
- colReq: "Required",
5494
- colExtra: "Default / enum / constraints",
5495
- colDesc: "Description",
5496
- required: "required",
5497
- optional: "optional",
5498
- noParams: "No parameters",
5499
- paramCount: function(n) {
5500
- return n + " params";
5501
- },
5502
- params: "Parameters",
5503
- requiredCount: function(n) {
5504
- return n + " required";
5505
- },
5506
- examples: "Examples",
5507
- noExamples: "No examples",
5508
- copy: "Copy",
5509
- copied: "Copied",
5510
- raw: "Raw JSON Schema",
5511
- loading: "Loading\u2026",
5512
- loadFail: "Failed to read action schema",
5513
- retry: "Retry",
5514
- empty: "No matching action",
5515
- emptyRegistry: "This domain has no registered action",
5516
- envelope: "Default",
5517
- enumLabel: "Enum",
5518
- range: "Range",
5519
- length: "Length",
5520
- pattern: "Pattern",
5521
- format: "Format",
5522
- items: "Items"
5523
- }
5524
- };
5525
- function typeLabel(schema) {
5526
- if (!schema || typeof schema !== "object") return "";
5527
- if (Array.isArray(schema.type)) return schema.type.join(" | ");
5528
- if (typeof schema.type === "string") {
5529
- if (schema.type === "array" && schema.items) {
5530
- var inner = typeLabel(schema.items);
5531
- return inner ? inner + "[]" : "array";
5532
- }
5533
- return schema.type;
5534
- }
5535
- if (Array.isArray(schema.oneOf)) return schema.oneOf.map(typeLabel).filter(Boolean).join(" | ");
5536
- if (Array.isArray(schema.anyOf)) return schema.anyOf.map(typeLabel).filter(Boolean).join(" | ");
5537
- return "";
5538
- }
5539
- function typeNames(schema) {
5540
- var label = typeLabel(schema);
5541
- if (!label) return [];
5542
- return label.split("|").map(function(x) {
5543
- return x.trim().replace(/\[\]$/, "");
5544
- }).filter(Boolean);
5545
- }
5546
- function scalar(value) {
5547
- if (typeof value === "string") return JSON.stringify(value);
5548
- return String(value);
5549
- }
5550
- function extraText(schema, t) {
5551
- if (!schema || typeof schema !== "object") return "";
5552
- var parts = [];
5553
- if (Object.prototype.hasOwnProperty.call(schema, "default")) {
5554
- parts.push(t.envelope + " " + scalar(schema.default));
5555
- }
5556
- if (Array.isArray(schema.enum)) {
5557
- parts.push(t.enumLabel + " " + schema.enum.map(scalar).join(" / "));
5558
- }
5559
- if (typeof schema.minimum === "number" || typeof schema.maximum === "number") {
5560
- var lo = typeof schema.minimum === "number" ? schema.minimum : null;
5561
- var hi = typeof schema.maximum === "number" ? schema.maximum : null;
5562
- if (lo !== null && hi !== null) parts.push(t.range + " \u2265" + lo + " \u4E14 \u2264" + hi);
5563
- else if (lo !== null) parts.push(t.range + " \u2265" + lo);
5564
- else parts.push(t.range + " \u2264" + hi);
5565
- }
5566
- if (typeof schema.minLength === "number" || typeof schema.maxLength === "number") {
5567
- parts.push(t.length + " " + (schema.minLength ?? 0) + "\u2013" + (schema.maxLength ?? "\u221E"));
5568
- }
5569
- if (typeof schema.minItems === "number" || typeof schema.maxItems === "number") {
5570
- parts.push(t.items + " " + (schema.minItems ?? 0) + "\u2013" + (schema.maxItems ?? "\u221E"));
5571
- }
5572
- if (typeof schema.pattern === "string") parts.push(t.pattern + " " + schema.pattern);
5573
- if (typeof schema.format === "string") parts.push(t.format + " " + schema.format);
5574
- return parts.join(" \xB7 ");
5575
- }
5576
- function paramRows(action) {
5577
- var input = action && action.input && typeof action.input === "object" ? action.input : {};
5578
- var props = input.properties && typeof input.properties === "object" ? input.properties : {};
5579
- var required = Array.isArray(input.required) ? input.required : [];
5580
- return Object.keys(props).map(function(key) {
5581
- var schema = props[key] && typeof props[key] === "object" ? props[key] : {};
5582
- return {
5583
- name: key,
5584
- schema,
5585
- type: typeLabel(schema),
5586
- types: typeNames(schema),
5587
- required: required.indexOf(key) >= 0,
5588
- description: typeof schema.description === "string" ? schema.description : ""
5589
- };
5590
- });
5591
- }
5592
- module2.exports = function createActionSchemaView(options) {
5593
- var raw = String(options.domain || "");
5594
- var SOURCE = options.source === "actions.list" ? "actions.list" : "actionSchema";
5595
- var DOMAIN = SOURCE === "actions.list" ? raw : raw.indexOf("wb-addon-") === 0 ? raw : "wb-addon-" + raw;
5596
- var LIST_DOMAIN = options.listDomain ? String(options.listDomain) : DOMAIN;
5597
- var prefix = options.prefix;
5598
- var P = prefix + "-as";
5599
- var Icon2 = options.Icon || null;
5600
- var injectCss = require_action_schema_style()(prefix, DOMAIN);
5601
- var Highlight = createHighlight(P);
5602
- function icon(name, size) {
5603
- return Icon2 ? h(Icon2, { name, size: size || 14 }) : null;
5604
- }
5605
- function plainCopy(text) {
5606
- if (typeof document === "undefined") return;
5607
- var area = document.createElement("textarea");
5608
- area.value = text;
5609
- area.setAttribute("readonly", "readonly");
5610
- area.style.position = "fixed";
5611
- area.style.opacity = "0";
5612
- document.body.appendChild(area);
5613
- area.select();
5614
- try {
5615
- document.execCommand("copy");
5616
- } catch (e) {
5617
- }
5618
- document.body.removeChild(area);
5619
- }
5620
- function ActionSchemaView(props) {
5621
- var lang = props.lang === "en" ? "en" : "zh";
5622
- var t = COPY[lang];
5623
- var api = props.api;
5624
- var snapState = React.useState(null);
5625
- var snap = snapState[0], setSnap = snapState[1];
5626
- var errState = React.useState("");
5627
- var err = errState[0], setErr = errState[1];
5628
- var loadingState = React.useState(true);
5629
- var loading = loadingState[0], setLoading = loadingState[1];
5630
- var reloadState = React.useState(0);
5631
- var reload = reloadState[0], setReload = reloadState[1];
5632
- var queryState = React.useState("");
5633
- var query = queryState[0], setQuery = queryState[1];
5634
- var reqState = React.useState("all");
5635
- var reqMode = reqState[0], setReqMode = reqState[1];
5636
- var typeState = React.useState("");
5637
- var typePick = typeState[0], setTypePick = typeState[1];
5638
- var originFilterState = React.useState("");
5639
- var originPick = originFilterState[0], setOriginPick = originFilterState[1];
5640
- var toastState = React.useState("");
5641
- var toast = toastState[0], setToast = toastState[1];
5642
- var savingState = React.useState("");
5643
- var saving = savingState[0], setSaving = savingState[1];
5644
- var foldsState = React.useState({});
5645
- var folds = foldsState[0], setFolds = foldsState[1];
5646
- React.useEffect(function() {
5647
- injectCss();
5648
- }, []);
5649
- React.useEffect(function() {
5650
- var alive = true;
5651
- setLoading(true);
5652
- setErr("");
5653
- var pending;
5654
- var actionName = SOURCE === "actions.list" ? "actions.list" : DOMAIN.replace(/^wb-addon-/, "") + ".actionSchema";
5655
- var callArgs = SOURCE === "actions.list" ? { detail: true, domain: LIST_DOMAIN } : void 0;
5656
- if (api && typeof api.call === "function") {
5657
- pending = Promise.resolve(api.call(actionName, callArgs)).then(function(r) {
5658
- if (r && r.ok === false) return r;
5659
- return r && r.result || r;
5660
- });
5661
- } else {
5662
- pending = Promise.reject(new Error("no call api"));
5663
- }
5664
- Promise.resolve(pending).then(function(r) {
5665
- if (!alive) return;
5666
- if (!r || r.ok === false) {
5667
- setSnap(null);
5668
- setErr(String(r && (r.error || r.text) || t.loadFail));
5669
- } else {
5670
- setSnap(r);
5671
- }
5672
- setLoading(false);
5673
- }, function(e) {
5674
- if (!alive) return;
5675
- setSnap(null);
5676
- setErr(String(e && e.message || e || t.loadFail));
5677
- setLoading(false);
5678
- });
5679
- return function() {
5680
- alive = false;
5681
- };
5682
- }, [reload]);
5683
- function copy(text) {
5684
- var done = function() {
5685
- setToast(t.copied);
5686
- };
5687
- if (typeof navigator !== "undefined" && navigator.clipboard && typeof navigator.clipboard.writeText === "function") {
5688
- navigator.clipboard.writeText(text).then(done, function() {
5689
- plainCopy(text);
5690
- done();
5691
- });
5692
- return;
5693
- }
5694
- plainCopy(text);
5695
- done();
5696
- }
5697
- var ORIGINS = ["ui", "plugin", "agent", "sync"];
5698
- var originText = { ui: t.originUi, plugin: t.originPlugin, agent: t.originAgent, sync: t.originSync };
5699
- function setOrigins(action, origin) {
5700
- var name = action.name;
5701
- var current = Array.isArray(action.origins) ? action.origins.slice() : [];
5702
- var index = current.indexOf(origin);
5703
- var next = index >= 0 ? current.filter(function(o) {
5704
- return o !== origin;
5705
- }) : current.concat([origin]);
5706
- if (next.length === 0) {
5707
- setToast(t.originsEmpty);
5708
- return;
5709
- }
5710
- next = ORIGINS.filter(function(o) {
5711
- return next.indexOf(o) >= 0;
5712
- });
5713
- setSaving(name);
5714
- setToast("");
5715
- var fail = function(e) {
5716
- setSaving("");
5717
- setToast(t.originsFail + "\uFF1A" + String(e && e.message || e || ""));
5718
- };
5719
- var done = function(r) {
5720
- setSaving("");
5721
- var payload = r && typeof r === "object" && Object.prototype.hasOwnProperty.call(r, "result") ? r.result : r;
5722
- if (r && r.ok === false) {
5723
- setToast(t.originsFail + "\uFF1A" + String(r.error || r.text || ""));
5724
- return;
5725
- }
5726
- var value = payload && Array.isArray(payload.origins) ? payload.origins : next;
5727
- var source = payload && typeof payload.source === "string" ? payload.source : action.originsSource;
5728
- setSnap(function(prev) {
5729
- if (!prev || !Array.isArray(prev.actions)) return prev;
5730
- return Object.assign({}, prev, {
5731
- actions: prev.actions.map(function(a) {
5732
- if (!a || a.name !== name) return a;
5733
- return Object.assign({}, a, { origins: value, originsSource: source });
5734
- })
5735
- });
5736
- });
5737
- setToast(t.originsToast);
5738
- };
5739
- if (!api || typeof api.call !== "function") {
5740
- fail(new Error("no call api"));
5741
- return;
5742
- }
5743
- Promise.resolve(api.call("actions.setActionOrigins", { action: name, origins: next })).then(done, fail);
5744
- }
5745
- function paramsOpen(action) {
5746
- if (Object.prototype.hasOwnProperty.call(folds, action.name)) return folds[action.name] === true;
5747
- return Boolean(String(query || "").trim()) || reqMode !== "all" || Boolean(typePick);
5748
- }
5749
- function resetFolds() {
5750
- setFolds(function(prev) {
5751
- return Object.keys(prev).length ? {} : prev;
5752
- });
5753
- }
5754
- var all = snap && Array.isArray(snap.actions) ? snap.actions.filter(function(a) {
5755
- return a && a.domain === DOMAIN;
5756
- }) : [];
5757
- var info = snap && Array.isArray(snap.domains) ? snap.domains.filter(function(d) {
5758
- return d && d.id === DOMAIN;
5759
- })[0] || null : null;
5760
- var typeOptions = [];
5761
- all.forEach(function(a) {
5762
- paramRows(a).forEach(function(row) {
5763
- row.types.forEach(function(name) {
5764
- if (typeOptions.indexOf(name) < 0) typeOptions.push(name);
5765
- });
5766
- });
5767
- });
5768
- typeOptions.sort();
5769
- var kw = String(query || "").trim();
5770
- var q = kw.toLowerCase();
5771
- var visible = all.filter(function(a) {
5772
- var rows = paramRows(a);
5773
- if (q) {
5774
- var hay = [a.name || "", a.description || ""].concat(rows.map(function(row) {
5775
- return row.name + " " + row.type + " " + row.description;
5776
- })).join(" ").toLowerCase();
5777
- if (hay.indexOf(q) < 0) return false;
5778
- }
5779
- var hasRequired = rows.some(function(row) {
5780
- return row.required;
5781
- });
5782
- if (reqMode === "required" && !hasRequired) return false;
5783
- if (reqMode === "optional" && hasRequired) return false;
5784
- if (typePick && !rows.some(function(row) {
5785
- return row.types.indexOf(typePick) >= 0;
5786
- })) return false;
5787
- if (originPick && (!Array.isArray(a.origins) || a.origins.indexOf(originPick) < 0)) return false;
5788
- return true;
5789
- });
5790
- function paramRow(row) {
5791
- var extra = extraText(row.schema, t);
5792
- return h(
5793
- "tr",
5794
- { key: row.name },
5795
- h("td", { className: P + "-mono " + P + "-pname" }, Highlight.hit(row.name, kw)),
5796
- h("td", { className: P + "-mono " + P + "-ptype" }, Highlight.hit(row.type, kw)),
5797
- h(
5798
- "td",
5799
- { className: row.required ? P + "-req " + P + "-pneed" : P + "-opt " + P + "-pneed" },
5800
- row.required ? t.required : t.optional
5801
- ),
5802
- // extra(默认 / 枚举 / 约束)不在过滤 haystack 里,因此也不高亮,保持「显示即命中」口径。
5803
- h("td", { className: P + "-mono " + P + "-pextra" }, extra),
5804
- h("td", { className: P + "-pdesc" }, Highlight.hit(row.description, kw))
5805
- );
5806
- }
5807
- function originsChips(action) {
5808
- if (!Array.isArray(action.origins)) return null;
5809
- if (action.originsSource === "invalid") {
5810
- return h("span", { className: P + "-badge " + P + "-locked", title: t.originsPinnedHint, "data-origins-invalid": action.name }, t.originsPinned);
5811
- }
5812
- var busy = saving === action.name;
5813
- var pinned = action.name === "actions.setActionOrigins";
5814
- var supported = Array.isArray(action.originsDeclared) ? action.originsDeclared : action.origins;
5815
- return h(
5816
- "div",
5817
- { className: P + "-origins", "data-origins-row": action.name },
5818
- h("span", { className: P + "-origins-label" }, t.originsLabel),
5819
- ORIGINS.map(function(origin) {
5820
- var on = action.origins.indexOf(origin) >= 0;
5821
- var allowed = supported.indexOf(origin) >= 0;
5822
- var preset = Array.isArray(action.originsDefault) ? action.originsDefault : supported;
5823
- var byDefault = preset.indexOf(origin) >= 0;
5824
- return h(
5825
- "label",
5826
- {
5827
- key: origin,
5828
- className: P + "-origin" + (allowed ? "" : " " + P + "-origin-off"),
5829
- title: pinned ? t.originsPinnedHint : !allowed ? t.originsUnsupported : originText[origin] + " \xB7 " + action.name + " \xB7 " + (byDefault ? t.originsDefaultOn : t.originsDefaultOff)
5830
- },
5831
- h("input", {
5832
- type: "checkbox",
5833
- checked: on,
5834
- disabled: busy || pinned || !allowed,
5835
- "data-origin": origin,
5836
- "data-origin-row": action.name,
5837
- "data-origin-supported": allowed ? "1" : "0",
5838
- onChange: function() {
5839
- setOrigins(action, origin);
5840
- }
5841
- }),
5842
- h("span", null, originText[origin])
5843
- );
5844
- }),
5845
- busy ? h("span", { className: P + "-origins-label" }, t.originsSaving) : null
5846
- );
5847
- }
5848
- function card(action) {
5849
- var rows = paramRows(action);
5850
- var required = rows.filter(function(row) {
5851
- return row.required;
5852
- }).length;
5853
- var open = paramsOpen(action);
5854
- var examples = Array.isArray(action.examples) ? action.examples : [];
5855
- return h(
5856
- "div",
5857
- { className: P + "-card", key: action.name },
5858
- h(
5859
- "div",
5860
- { className: P + "-cardhead" },
5861
- h(
5862
- "div",
5863
- { className: P + "-cardmeta" },
5864
- h("code", { className: P + "-mono" }, Highlight.hit(action.name, kw)),
5865
- h("span", { className: P + "-badge" }, rows.length ? t.paramCount(rows.length) : t.noParams),
5866
- rows.some(function(row) {
5867
- return row.required;
5868
- }) ? h("span", { className: P + "-badge " + P + "-req" }, t.required) : null
5869
- ),
5870
- originsChips(action)
5871
- ),
5872
- action.description ? h("p", { className: P + "-desc" }, Highlight.hit(action.description, kw)) : null,
5873
- rows.length ? h(
5874
- Disclosure,
5875
- {
5876
- className: P + "-params",
5877
- title: t.params,
5878
- meta: required ? t.requiredCount(required) : "",
5879
- attrs: { "data-params-fold": action.name },
5880
- open,
5881
- // 原生 details 自带键盘与无障碍语义,这里只记下用户的开合;
5882
- // 筛选变化引起的程序性开合也会触发 toggle,记下的值与当次默认一致,随后由 resetFolds 清掉。
5883
- onToggle: function(e) {
5884
- var next = !!(e && e.currentTarget && e.currentTarget.open);
5885
- setFolds(function(prev) {
5886
- if (prev[action.name] === next) return prev;
5887
- var out = Object.assign({}, prev);
5888
- out[action.name] = next;
5889
- return out;
5890
- });
5891
- }
5892
- },
5893
- h(
5894
- "table",
5895
- { className: P + "-table" },
5896
- h("thead", null, h(
5897
- "tr",
5898
- null,
5899
- h("th", null, t.colName),
5900
- h("th", null, t.colType),
5901
- h("th", null, t.colReq),
5902
- h("th", null, t.colExtra),
5903
- h("th", null, t.colDesc)
5904
- )),
5905
- h("tbody", null, rows.map(paramRow))
5906
- )
5907
- ) : h("div", { className: P + "-none" }, t.noParams),
5908
- h(
5909
- "div",
5910
- { className: P + "-example" },
5911
- h(
5912
- "div",
5913
- { className: P + "-examplehead" },
5914
- h("span", { className: P + "-none" }, t.examples),
5915
- examples.length ? h("button", {
5916
- type: "button",
5917
- className: P + "-copy",
5918
- "data-copy-example": action.name,
5919
- onClick: function() {
5920
- copy(JSON.stringify(examples.length === 1 ? examples[0] : examples, null, 2));
5921
- }
5922
- }, t.copy) : null
5923
- ),
5924
- examples.length ? examples.map(function(example, index) {
5925
- return h("pre", { className: P + "-pre", key: index }, JSON.stringify(example, null, 2));
5926
- }) : h("div", { className: P + "-none" }, t.noExamples)
5927
- ),
5928
- h(
5929
- Disclosure,
5930
- { title: t.raw },
5931
- h("pre", { className: P + "-pre" }, JSON.stringify(action.input || {}, null, 2))
5932
- )
5933
- );
5934
- }
5935
- var body;
5936
- if (loading) {
5937
- body = h("div", { className: P + "-empty", role: "status" }, t.loading);
5938
- } else if (err) {
5939
- body = h(
5940
- "div",
5941
- { className: P + "-error", role: "alert" },
5942
- h("span", null, t.loadFail + "\uFF1A" + err),
5943
- h("button", { type: "button", className: P + "-copy", onClick: function() {
5944
- setReload(reload + 1);
5945
- } }, t.retry)
5946
- );
5947
- } else if (!all.length) {
5948
- body = h("div", { className: P + "-empty" }, t.emptyRegistry);
5949
- } else if (!visible.length) {
5950
- body = h("div", { className: P + "-empty" }, t.empty);
5951
- } else {
5952
- body = h("div", { className: P + "-list" }, visible.map(card));
5953
- }
5954
- return h(
5955
- "div",
5956
- { className: P },
5957
- h(
5958
- "div",
5959
- { className: P + "-head" },
5960
- h("h3", { className: P + "-title" }, t.title),
5961
- h("span", { className: P + "-badge" }, t.domain + " " + DOMAIN),
5962
- info && info.version ? h("span", { className: P + "-badge" }, t.versionLabel + " v" + info.version) : null,
5963
- snap && snap.shellVersion ? h("span", { className: P + "-badge" }, t.shell + " v" + snap.shellVersion) : null,
5964
- h("span", { className: P + "-badge" }, t.count(visible.length, all.length)),
5965
- h("span", { className: P + "-none" }, t.hint)
5966
- ),
5967
- h("p", { className: P + "-hintline" }, SOURCE === "actions.list" ? t.hostHint : t.switchHint),
5968
- snap ? h(
5969
- "div",
5970
- { className: P + "-toolbar" },
5971
- h(
5972
- "label",
5973
- { className: P + "-search" },
5974
- icon("search", 14),
5975
- h("input", {
5976
- type: "search",
5977
- value: query,
5978
- placeholder: t.search,
5979
- "aria-label": t.search,
5980
- onChange: function(e) {
5981
- setQuery(e.target.value);
5982
- resetFolds();
5983
- }
5984
- })
5985
- ),
5986
- h(
5987
- "label",
5988
- { className: P + "-none" },
5989
- t.filterReq + " ",
5990
- h(
5991
- "select",
5992
- { value: reqMode, "aria-label": t.filterReq, onChange: function(e) {
5993
- setReqMode(e.target.value);
5994
- resetFolds();
5995
- } },
5996
- h("option", { value: "all" }, t.all),
5997
- h("option", { value: "required" }, t.onlyRequired),
5998
- h("option", { value: "optional" }, t.onlyOptional)
5999
- )
6000
- ),
6001
- h(
6002
- "label",
6003
- { className: P + "-none" },
6004
- t.filterType + " ",
6005
- h(
6006
- "select",
6007
- { value: typePick, "aria-label": t.filterType, onChange: function(e) {
6008
- setTypePick(e.target.value);
6009
- resetFolds();
6010
- } },
6011
- h("option", { value: "" }, t.allTypes),
6012
- typeOptions.map(function(name) {
6013
- return h("option", { value: name, key: name }, name);
6014
- })
6015
- )
6016
- ),
6017
- h(
6018
- "label",
6019
- { className: P + "-none" },
6020
- t.filterOrigin + " ",
6021
- h(
6022
- "select",
6023
- { value: originPick, "aria-label": t.filterOrigin, "data-origin-filter": "", onChange: function(e) {
6024
- setOriginPick(e.target.value);
6025
- } },
6026
- h("option", { value: "" }, t.allOrigins),
6027
- ORIGINS.map(function(origin) {
6028
- return h("option", { value: origin, key: origin }, originText[origin]);
6029
- })
6030
- )
6031
- )
6032
- ) : null,
6033
- body,
6034
- toast ? h("div", { className: P + "-toast", role: "status" }, toast) : null
6035
- );
6036
- }
6037
- return { ActionSchemaView, DOMAIN, typeLabel, paramRows };
6038
- };
6039
- }
6040
- });
6041
-
6042
- // packages/addons/tasks/client/views/actions.cjs
6043
- var require_actions = __commonJS({
6044
- "packages/addons/tasks/client/views/actions.cjs"(exports2, module2) {
6045
- "use strict";
6046
- module2.exports = require_action_schema_view()({
6047
- domain: "tasks",
6048
- prefix: "wbt"
6049
- });
6050
- }
6051
- });
6052
-
6053
4898
  // packages/addons/lib/body-copy.cjs
6054
4899
  var require_body_copy = __commonJS({
6055
4900
  "packages/addons/lib/body-copy.cjs"(exports2, module2) {
@@ -6452,77 +5297,365 @@ var require_copy = __commonJS({
6452
5297
  }
6453
5298
  });
6454
5299
 
6455
- // packages/addons/lib/icon-label.cjs
6456
- var require_icon_label = __commonJS({
6457
- "packages/addons/lib/icon-label.cjs"(exports2, module2) {
5300
+ // packages/addons/lib/icon-label.cjs
5301
+ var require_icon_label = __commonJS({
5302
+ "packages/addons/lib/icon-label.cjs"(exports2, module2) {
5303
+ "use strict";
5304
+ var VISUALLY_HIDDEN = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap";
5305
+ module2.exports = function iconLabel(h, Icon2, text, options) {
5306
+ var opts = options || {};
5307
+ var cls = "wb-icon-label" + (opts.short ? " wb-icon-label-short" : "") + (Icon2 ? "" : " wb-icon-label-fallback");
5308
+ return h(
5309
+ "span",
5310
+ { className: cls, title: typeof text === "string" ? text : void 0 },
5311
+ Icon2 ? h(Icon2, { size: 14, strokeWidth: 2, "aria-hidden": true, focusable: false }) : null,
5312
+ h("span", { className: "wb-icon-label-text" }, text)
5313
+ );
5314
+ };
5315
+ module2.exports.styles = ".wb-icon-label{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;text-align:start}.wb-icon-label>svg{flex:none}.wb-icon-label>span{min-width:0;overflow-wrap:anywhere}button .wb-icon-label:not(.wb-icon-label-fallback) .wb-icon-label-text{" + VISUALLY_HIDDEN + "}button .wb-icon-label.wb-icon-label-short .wb-icon-label-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}";
5316
+ }
5317
+ });
5318
+
5319
+ // packages/addons/lib/icons.cjs
5320
+ var require_icons = __commonJS({
5321
+ "packages/addons/lib/icons.cjs"(exports2, module2) {
5322
+ "use strict";
5323
+ var h = require("react").createElement;
5324
+ function create(prefix, glyphs, options) {
5325
+ var opts = options || {};
5326
+ var ICONS = Object.assign({}, glyphs);
5327
+ function Icon2(props) {
5328
+ var C = ICONS[props.name] || (opts.fallback ? ICONS[opts.fallback] : null);
5329
+ if (!C) return null;
5330
+ var size = typeof opts.sizeOf === "function" ? opts.sizeOf(props) : props.size || 14;
5331
+ var cls = prefix + "-svg" + (opts.classNameAppend && props.className ? " " + props.className : "");
5332
+ var attrs = {
5333
+ size,
5334
+ strokeWidth: props.strokeWidth || 2,
5335
+ "aria-hidden": "true",
5336
+ className: cls
5337
+ };
5338
+ if (opts.focusable) attrs.focusable = false;
5339
+ return h(C, attrs);
5340
+ }
5341
+ var set = { ICONS, Icon: Icon2 };
5342
+ set.label = function(name, text, options2) {
5343
+ return require_icon_label()(h, function NamedIcon(props) {
5344
+ return h(Icon2, Object.assign({ name }, props));
5345
+ }, text, options2);
5346
+ };
5347
+ if (opts.tabIcon) {
5348
+ set.tabIcon = function(name) {
5349
+ return function TabIcon() {
5350
+ return h(Icon2, { name, size: 14 });
5351
+ };
5352
+ };
5353
+ }
5354
+ return set;
5355
+ }
5356
+ module2.exports = { create };
5357
+ }
5358
+ });
5359
+
5360
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
5361
+ var toKebabCase;
5362
+ var init_toKebabCase = __esm({
5363
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs"() {
5364
+ toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
5365
+ }
5366
+ });
5367
+
5368
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
5369
+ function toLucideIconData(iconName, iconNode, aliases = []) {
5370
+ if (iconNode == null) {
5371
+ throw new Error("[lucide]: iconNode is required when icon name is used");
5372
+ }
5373
+ return {
5374
+ name: toKebabCase(iconName),
5375
+ size: 24,
5376
+ node: iconNode,
5377
+ ...aliases.length > 0 ? { aliases } : {}
5378
+ };
5379
+ }
5380
+ var init_toLucideIconData = __esm({
5381
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs"() {
5382
+ init_toKebabCase();
5383
+ }
5384
+ });
5385
+
5386
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
5387
+ var toCamelCase;
5388
+ var init_toCamelCase = __esm({
5389
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs"() {
5390
+ toCamelCase = (string) => {
5391
+ let out = "";
5392
+ let upperNext = false;
5393
+ for (const ch of string) {
5394
+ if (ch === "-" || ch === "_" || ch <= " ") {
5395
+ upperNext = out.length > 0;
5396
+ continue;
5397
+ }
5398
+ if (out.length === 0) {
5399
+ out += ch.toLowerCase();
5400
+ } else {
5401
+ out += upperNext ? ch.toUpperCase() : ch;
5402
+ }
5403
+ upperNext = false;
5404
+ }
5405
+ return out;
5406
+ };
5407
+ }
5408
+ });
5409
+
5410
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
5411
+ var toPascalCase;
5412
+ var init_toPascalCase = __esm({
5413
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs"() {
5414
+ init_toCamelCase();
5415
+ toPascalCase = (string) => {
5416
+ const camelCase = toCamelCase(string);
5417
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
5418
+ };
5419
+ }
5420
+ });
5421
+
5422
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
5423
+ var mergeClasses;
5424
+ var init_mergeClasses = __esm({
5425
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs"() {
5426
+ mergeClasses = (...classes) => classes.filter((className, index, array) => {
5427
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
5428
+ }).join(" ").trim();
5429
+ }
5430
+ });
5431
+
5432
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
5433
+ var defaultAttributes;
5434
+ var init_defaultAttributes = __esm({
5435
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs"() {
5436
+ defaultAttributes = {
5437
+ xmlns: "http://www.w3.org/2000/svg",
5438
+ width: 24,
5439
+ height: 24,
5440
+ viewBox: "0 0 24 24",
5441
+ fill: "none",
5442
+ stroke: "currentColor",
5443
+ "stroke-width": 2,
5444
+ "stroke-linecap": "round",
5445
+ "stroke-linejoin": "round"
5446
+ };
5447
+ }
5448
+ });
5449
+
5450
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
5451
+ function isDefined(value) {
5452
+ return value !== null && value !== void 0;
5453
+ }
5454
+ function buildLucideIconNode(icon, params = {}) {
5455
+ const attributeNames = params.attributeNames ?? {};
5456
+ const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;
5457
+ const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes["width"];
5458
+ const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes["height"];
5459
+ const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === "string" && alias.trim() !== "").map((alias) => `lucide-${alias}`) ?? [];
5460
+ const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];
5461
+ const classNamesFromClassName = params.className?.split(" ").filter(Boolean) ?? [];
5462
+ const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses("lucide", ...iconClassNames, ...classNamesFromClassName);
5463
+ const calculatedStrokeWidth = params.absoluteStrokeWidth ? Number(params.strokeWidth ?? defaultAttributes["stroke-width"]) * Number(icon.size ?? icon.width ?? defaultAttributes["width"]) / Number(params.size ?? params.width ?? defaultAttributes["width"]) : params.strokeWidth ?? defaultAttributes["stroke-width"];
5464
+ const attributes = {
5465
+ ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {
5466
+ attrs[getAttributeName(attrName)] = value;
5467
+ return attrs;
5468
+ }, {}),
5469
+ ..."color" in params && params.color && {
5470
+ [getAttributeName("stroke")]: params.color
5471
+ },
5472
+ ..."size" in params && isDefined(params.size) && {
5473
+ [getAttributeName("width")]: params.size,
5474
+ [getAttributeName("height")]: params.size
5475
+ },
5476
+ ..."width" in params && isDefined(params.width) && {
5477
+ [getAttributeName("width")]: params.width
5478
+ },
5479
+ ..."height" in params && isDefined(params.height) && {
5480
+ [getAttributeName("height")]: params.height
5481
+ },
5482
+ [getAttributeName("stroke-width")]: calculatedStrokeWidth,
5483
+ ...className && {
5484
+ [getAttributeName("class")]: className
5485
+ },
5486
+ [getAttributeName("viewBox")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
5487
+ ...params.hasA11yProp === false ? {
5488
+ [getAttributeName("aria-hidden")]: "true"
5489
+ } : {},
5490
+ ..."attributes" in params && params.attributes
5491
+ };
5492
+ return [
5493
+ "svg",
5494
+ attributes,
5495
+ icon.node.map((child) => {
5496
+ const [name, attrs, children] = child;
5497
+ const nextAttrs = params.nonScalingStroke ? { [getAttributeName("vector-effect")]: "non-scaling-stroke", ...attrs } : attrs;
5498
+ return children ? [name, nextAttrs, children] : [name, nextAttrs];
5499
+ })
5500
+ ];
5501
+ }
5502
+ var init_buildLucideIconNode = __esm({
5503
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs"() {
5504
+ init_defaultAttributes();
5505
+ init_mergeClasses();
5506
+ }
5507
+ });
5508
+
5509
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
5510
+ function buildLucideIconForReact(icon, params = {}) {
5511
+ return buildLucideIconNode(icon, {
5512
+ ...params,
5513
+ attributeNames: {
5514
+ ...params.attributeNames,
5515
+ class: "className",
5516
+ "stroke-width": "strokeWidth",
5517
+ "stroke-linecap": "strokeLinecap",
5518
+ "stroke-linejoin": "strokeLinejoin",
5519
+ "vector-effect": "vectorEffect"
5520
+ }
5521
+ });
5522
+ }
5523
+ var init_buildLucideIconForReact = __esm({
5524
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs"() {
5525
+ init_buildLucideIconNode();
5526
+ }
5527
+ });
5528
+
5529
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
5530
+ var hasA11yProp;
5531
+ var init_hasA11yProp = __esm({
5532
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs"() {
5533
+ hasA11yProp = (props) => {
5534
+ for (const prop in props) {
5535
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
5536
+ return true;
5537
+ }
5538
+ }
5539
+ return false;
5540
+ };
5541
+ }
5542
+ });
5543
+
5544
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs
5545
+ var import_react, LucideContext, useLucideContext;
5546
+ var init_context = __esm({
5547
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs"() {
6458
5548
  "use strict";
6459
- var VISUALLY_HIDDEN = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap";
6460
- module2.exports = function iconLabel(h, Icon2, text, options) {
6461
- var opts = options || {};
6462
- var cls = "wb-icon-label" + (opts.short ? " wb-icon-label-short" : "") + (Icon2 ? "" : " wb-icon-label-fallback");
6463
- return h(
6464
- "span",
6465
- { className: cls, title: typeof text === "string" ? text : void 0 },
6466
- Icon2 ? h(Icon2, { size: 14, strokeWidth: 2, "aria-hidden": true, focusable: false }) : null,
6467
- h("span", { className: "wb-icon-label-text" }, text)
6468
- );
6469
- };
6470
- module2.exports.styles = ".wb-icon-label{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;text-align:start}.wb-icon-label>svg{flex:none}.wb-icon-label>span{min-width:0;overflow-wrap:anywhere}button .wb-icon-label:not(.wb-icon-label-fallback) .wb-icon-label-text{" + VISUALLY_HIDDEN + "}button .wb-icon-label.wb-icon-label-short .wb-icon-label-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}";
5549
+ "use client";
5550
+ import_react = require("react");
5551
+ LucideContext = (0, import_react.createContext)({});
5552
+ useLucideContext = () => (0, import_react.useContext)(LucideContext);
6471
5553
  }
6472
5554
  });
6473
5555
 
6474
- // packages/addons/lib/icons.cjs
6475
- var require_icons = __commonJS({
6476
- "packages/addons/lib/icons.cjs"(exports2, module2) {
5556
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs
5557
+ var import_react2, Icon;
5558
+ var init_Icon = __esm({
5559
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs"() {
6477
5560
  "use strict";
6478
- var h = require("react").createElement;
6479
- function create(prefix, glyphs, options) {
6480
- var opts = options || {};
6481
- var ICONS = Object.assign({}, glyphs);
6482
- function Icon2(props) {
6483
- var C = ICONS[props.name] || (opts.fallback ? ICONS[opts.fallback] : null);
6484
- if (!C) return null;
6485
- var size = typeof opts.sizeOf === "function" ? opts.sizeOf(props) : props.size || 14;
6486
- var cls = prefix + "-svg" + (opts.classNameAppend && props.className ? " " + props.className : "");
6487
- var attrs = {
6488
- size,
6489
- strokeWidth: props.strokeWidth || 2,
6490
- "aria-hidden": "true",
6491
- className: cls
6492
- };
6493
- if (opts.focusable) attrs.focusable = false;
6494
- return h(C, attrs);
6495
- }
6496
- var set = { ICONS, Icon: Icon2 };
6497
- set.label = function(name, text, options2) {
6498
- return require_icon_label()(h, function NamedIcon(props) {
6499
- return h(Icon2, Object.assign({ name }, props));
6500
- }, text, options2);
6501
- };
6502
- if (opts.tabIcon) {
6503
- set.tabIcon = function(name) {
6504
- return function TabIcon() {
6505
- return h(Icon2, { name, size: 14 });
6506
- };
6507
- };
5561
+ "use client";
5562
+ import_react2 = require("react");
5563
+ init_mergeClasses();
5564
+ init_buildLucideIconForReact();
5565
+ init_hasA11yProp();
5566
+ init_context();
5567
+ Icon = (0, import_react2.forwardRef)(
5568
+ ({
5569
+ color,
5570
+ size,
5571
+ width,
5572
+ height,
5573
+ strokeWidth,
5574
+ absoluteStrokeWidth,
5575
+ nonScalingStroke,
5576
+ className = "",
5577
+ children,
5578
+ iconNode = [],
5579
+ icon = {
5580
+ node: iconNode,
5581
+ aliases: [],
5582
+ size: 24
5583
+ },
5584
+ ...rest
5585
+ }, ref) => {
5586
+ const {
5587
+ size: contextSize = 24,
5588
+ strokeWidth: contextStrokeWidth = 2,
5589
+ absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
5590
+ nonScalingStroke: contextNonScalingStroke = false,
5591
+ color: contextColor = "currentColor",
5592
+ className: contextClass = ""
5593
+ } = useLucideContext() ?? {};
5594
+ const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);
5595
+ const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {
5596
+ color: color ?? contextColor,
5597
+ width: width ?? size ?? contextSize,
5598
+ height: height ?? size ?? contextSize,
5599
+ strokeWidth: strokeWidth ?? contextStrokeWidth,
5600
+ absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,
5601
+ nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,
5602
+ className: mergeClasses(contextClass, className),
5603
+ hasA11yProp: hasAccessibleProp,
5604
+ attributes: rest
5605
+ });
5606
+ return (0, import_react2.createElement)(
5607
+ name,
5608
+ {
5609
+ ref,
5610
+ ...svgAttributes
5611
+ },
5612
+ [
5613
+ ...builtIconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
5614
+ ...Array.isArray(children) ? children : [children]
5615
+ ]
5616
+ );
6508
5617
  }
6509
- return set;
6510
- }
6511
- module2.exports = { create };
5618
+ );
5619
+ }
5620
+ });
5621
+
5622
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
5623
+ function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
5624
+ const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
5625
+ const Component = (0, import_react3.forwardRef)(
5626
+ ({ className, ...props }, ref) => (0, import_react3.createElement)(Icon, {
5627
+ ref,
5628
+ icon: iconData,
5629
+ className,
5630
+ ...props
5631
+ })
5632
+ );
5633
+ if (iconData.name) {
5634
+ Component.displayName = toPascalCase(iconData.name);
5635
+ }
5636
+ return Component;
5637
+ }
5638
+ var import_react3;
5639
+ var init_createLucideIcon = __esm({
5640
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs"() {
5641
+ import_react3 = require("react");
5642
+ init_toLucideIconData();
5643
+ init_toPascalCase();
5644
+ init_Icon();
6512
5645
  }
6513
5646
  });
6514
5647
 
6515
5648
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.mjs
6516
5649
  var sliders_horizontal_exports = {};
6517
5650
  __export(sliders_horizontal_exports, {
6518
- __iconData: () => __iconData2,
5651
+ __iconData: () => __iconData,
6519
5652
  default: () => SlidersHorizontal
6520
5653
  });
6521
- var __iconData2, SlidersHorizontal;
5654
+ var __iconData, SlidersHorizontal;
6522
5655
  var init_sliders_horizontal = __esm({
6523
5656
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.mjs"() {
6524
5657
  init_createLucideIcon();
6525
- __iconData2 = {
5658
+ __iconData = {
6526
5659
  name: "sliders-horizontal",
6527
5660
  size: 24,
6528
5661
  node: [
@@ -6537,22 +5670,22 @@ var init_sliders_horizontal = __esm({
6537
5670
  ["path", { d: "M8 12H3", key: "a7s4jb" }]
6538
5671
  ]
6539
5672
  };
6540
- __iconData2.node;
6541
- SlidersHorizontal = createLucideIcon(__iconData2);
5673
+ __iconData.node;
5674
+ SlidersHorizontal = createLucideIcon(__iconData);
6542
5675
  }
6543
5676
  });
6544
5677
 
6545
5678
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chart-column.mjs
6546
5679
  var chart_column_exports = {};
6547
5680
  __export(chart_column_exports, {
6548
- __iconData: () => __iconData3,
5681
+ __iconData: () => __iconData2,
6549
5682
  default: () => ChartColumn
6550
5683
  });
6551
- var __iconData3, ChartColumn;
5684
+ var __iconData2, ChartColumn;
6552
5685
  var init_chart_column = __esm({
6553
5686
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chart-column.mjs"() {
6554
5687
  init_createLucideIcon();
6555
- __iconData3 = {
5688
+ __iconData2 = {
6556
5689
  name: "chart-column",
6557
5690
  size: 24,
6558
5691
  node: [
@@ -6563,22 +5696,22 @@ var init_chart_column = __esm({
6563
5696
  ],
6564
5697
  aliases: ["bar-chart-3"]
6565
5698
  };
6566
- __iconData3.node;
6567
- ChartColumn = createLucideIcon(__iconData3);
5699
+ __iconData2.node;
5700
+ ChartColumn = createLucideIcon(__iconData2);
6568
5701
  }
6569
5702
  });
6570
5703
 
6571
5704
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.mjs
6572
5705
  var settings_exports = {};
6573
5706
  __export(settings_exports, {
6574
- __iconData: () => __iconData4,
5707
+ __iconData: () => __iconData3,
6575
5708
  default: () => Settings
6576
5709
  });
6577
- var __iconData4, Settings;
5710
+ var __iconData3, Settings;
6578
5711
  var init_settings = __esm({
6579
5712
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.mjs"() {
6580
5713
  init_createLucideIcon();
6581
- __iconData4 = {
5714
+ __iconData3 = {
6582
5715
  name: "settings",
6583
5716
  size: 24,
6584
5717
  node: [
@@ -6592,22 +5725,22 @@ var init_settings = __esm({
6592
5725
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
6593
5726
  ]
6594
5727
  };
6595
- __iconData4.node;
6596
- Settings = createLucideIcon(__iconData4);
5728
+ __iconData3.node;
5729
+ Settings = createLucideIcon(__iconData3);
6597
5730
  }
6598
5731
  });
6599
5732
 
6600
5733
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/database.mjs
6601
5734
  var database_exports = {};
6602
5735
  __export(database_exports, {
6603
- __iconData: () => __iconData5,
5736
+ __iconData: () => __iconData4,
6604
5737
  default: () => Database
6605
5738
  });
6606
- var __iconData5, Database;
5739
+ var __iconData4, Database;
6607
5740
  var init_database = __esm({
6608
5741
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/database.mjs"() {
6609
5742
  init_createLucideIcon();
6610
- __iconData5 = {
5743
+ __iconData4 = {
6611
5744
  name: "database",
6612
5745
  size: 24,
6613
5746
  node: [
@@ -6616,22 +5749,22 @@ var init_database = __esm({
6616
5749
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
6617
5750
  ]
6618
5751
  };
6619
- __iconData5.node;
6620
- Database = createLucideIcon(__iconData5);
5752
+ __iconData4.node;
5753
+ Database = createLucideIcon(__iconData4);
6621
5754
  }
6622
5755
  });
6623
5756
 
6624
5757
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/calendar-days.mjs
6625
5758
  var calendar_days_exports = {};
6626
5759
  __export(calendar_days_exports, {
6627
- __iconData: () => __iconData6,
5760
+ __iconData: () => __iconData5,
6628
5761
  default: () => CalendarDays
6629
5762
  });
6630
- var __iconData6, CalendarDays;
5763
+ var __iconData5, CalendarDays;
6631
5764
  var init_calendar_days = __esm({
6632
5765
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/calendar-days.mjs"() {
6633
5766
  init_createLucideIcon();
6634
- __iconData6 = {
5767
+ __iconData5 = {
6635
5768
  name: "calendar-days",
6636
5769
  size: 24,
6637
5770
  node: [
@@ -6647,22 +5780,22 @@ var init_calendar_days = __esm({
6647
5780
  ["path", { d: "M16 17h.01", key: "ql8jdd" }]
6648
5781
  ]
6649
5782
  };
6650
- __iconData6.node;
6651
- CalendarDays = createLucideIcon(__iconData6);
5783
+ __iconData5.node;
5784
+ CalendarDays = createLucideIcon(__iconData5);
6652
5785
  }
6653
5786
  });
6654
5787
 
6655
5788
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code-xml.mjs
6656
5789
  var code_xml_exports = {};
6657
5790
  __export(code_xml_exports, {
6658
- __iconData: () => __iconData7,
5791
+ __iconData: () => __iconData6,
6659
5792
  default: () => CodeXml
6660
5793
  });
6661
- var __iconData7, CodeXml;
5794
+ var __iconData6, CodeXml;
6662
5795
  var init_code_xml = __esm({
6663
5796
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code-xml.mjs"() {
6664
5797
  init_createLucideIcon();
6665
- __iconData7 = {
5798
+ __iconData6 = {
6666
5799
  name: "code-xml",
6667
5800
  size: 24,
6668
5801
  node: [
@@ -6672,22 +5805,22 @@ var init_code_xml = __esm({
6672
5805
  ],
6673
5806
  aliases: ["code-2"]
6674
5807
  };
6675
- __iconData7.node;
6676
- CodeXml = createLucideIcon(__iconData7);
5808
+ __iconData6.node;
5809
+ CodeXml = createLucideIcon(__iconData6);
6677
5810
  }
6678
5811
  });
6679
5812
 
6680
5813
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/terminal.mjs
6681
5814
  var terminal_exports = {};
6682
5815
  __export(terminal_exports, {
6683
- __iconData: () => __iconData8,
5816
+ __iconData: () => __iconData7,
6684
5817
  default: () => Terminal
6685
5818
  });
6686
- var __iconData8, Terminal;
5819
+ var __iconData7, Terminal;
6687
5820
  var init_terminal = __esm({
6688
5821
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/terminal.mjs"() {
6689
5822
  init_createLucideIcon();
6690
- __iconData8 = {
5823
+ __iconData7 = {
6691
5824
  name: "terminal",
6692
5825
  size: 24,
6693
5826
  node: [
@@ -6695,22 +5828,22 @@ var init_terminal = __esm({
6695
5828
  ["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
6696
5829
  ]
6697
5830
  };
6698
- __iconData8.node;
6699
- Terminal = createLucideIcon(__iconData8);
5831
+ __iconData7.node;
5832
+ Terminal = createLucideIcon(__iconData7);
6700
5833
  }
6701
5834
  });
6702
5835
 
6703
5836
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/pilcrow.mjs
6704
5837
  var pilcrow_exports = {};
6705
5838
  __export(pilcrow_exports, {
6706
- __iconData: () => __iconData9,
5839
+ __iconData: () => __iconData8,
6707
5840
  default: () => Pilcrow
6708
5841
  });
6709
- var __iconData9, Pilcrow;
5842
+ var __iconData8, Pilcrow;
6710
5843
  var init_pilcrow = __esm({
6711
5844
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/pilcrow.mjs"() {
6712
5845
  init_createLucideIcon();
6713
- __iconData9 = {
5846
+ __iconData8 = {
6714
5847
  name: "pilcrow",
6715
5848
  size: 24,
6716
5849
  node: [
@@ -6719,22 +5852,22 @@ var init_pilcrow = __esm({
6719
5852
  ["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13", key: "sh4n9v" }]
6720
5853
  ]
6721
5854
  };
6722
- __iconData9.node;
6723
- Pilcrow = createLucideIcon(__iconData9);
5855
+ __iconData8.node;
5856
+ Pilcrow = createLucideIcon(__iconData8);
6724
5857
  }
6725
5858
  });
6726
5859
 
6727
5860
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.mjs
6728
5861
  var plus_exports = {};
6729
5862
  __export(plus_exports, {
6730
- __iconData: () => __iconData10,
5863
+ __iconData: () => __iconData9,
6731
5864
  default: () => Plus
6732
5865
  });
6733
- var __iconData10, Plus;
5866
+ var __iconData9, Plus;
6734
5867
  var init_plus = __esm({
6735
5868
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.mjs"() {
6736
5869
  init_createLucideIcon();
6737
- __iconData10 = {
5870
+ __iconData9 = {
6738
5871
  name: "plus",
6739
5872
  size: 24,
6740
5873
  node: [
@@ -6742,82 +5875,82 @@ var init_plus = __esm({
6742
5875
  ["path", { d: "M12 5v14", key: "s699le" }]
6743
5876
  ]
6744
5877
  };
6745
- __iconData10.node;
6746
- Plus = createLucideIcon(__iconData10);
5878
+ __iconData9.node;
5879
+ Plus = createLucideIcon(__iconData9);
6747
5880
  }
6748
5881
  });
6749
5882
 
6750
5883
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.mjs
6751
5884
  var minus_exports = {};
6752
5885
  __export(minus_exports, {
6753
- __iconData: () => __iconData11,
5886
+ __iconData: () => __iconData10,
6754
5887
  default: () => Minus
6755
5888
  });
6756
- var __iconData11, Minus;
5889
+ var __iconData10, Minus;
6757
5890
  var init_minus = __esm({
6758
5891
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.mjs"() {
6759
5892
  init_createLucideIcon();
6760
- __iconData11 = {
5893
+ __iconData10 = {
6761
5894
  name: "minus",
6762
5895
  size: 24,
6763
5896
  node: [["path", { d: "M5 12h14", key: "1ays0h" }]]
6764
5897
  };
6765
- __iconData11.node;
6766
- Minus = createLucideIcon(__iconData11);
5898
+ __iconData10.node;
5899
+ Minus = createLucideIcon(__iconData10);
6767
5900
  }
6768
5901
  });
6769
5902
 
6770
5903
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.mjs
6771
5904
  var check_exports = {};
6772
5905
  __export(check_exports, {
6773
- __iconData: () => __iconData12,
5906
+ __iconData: () => __iconData11,
6774
5907
  default: () => Check
6775
5908
  });
6776
- var __iconData12, Check;
5909
+ var __iconData11, Check;
6777
5910
  var init_check = __esm({
6778
5911
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.mjs"() {
6779
5912
  init_createLucideIcon();
6780
- __iconData12 = {
5913
+ __iconData11 = {
6781
5914
  name: "check",
6782
5915
  size: 24,
6783
5916
  node: [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]
6784
5917
  };
6785
- __iconData12.node;
6786
- Check = createLucideIcon(__iconData12);
5918
+ __iconData11.node;
5919
+ Check = createLucideIcon(__iconData11);
6787
5920
  }
6788
5921
  });
6789
5922
 
6790
5923
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square.mjs
6791
5924
  var square_exports = {};
6792
5925
  __export(square_exports, {
6793
- __iconData: () => __iconData13,
5926
+ __iconData: () => __iconData12,
6794
5927
  default: () => Square
6795
5928
  });
6796
- var __iconData13, Square;
5929
+ var __iconData12, Square;
6797
5930
  var init_square = __esm({
6798
5931
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square.mjs"() {
6799
5932
  init_createLucideIcon();
6800
- __iconData13 = {
5933
+ __iconData12 = {
6801
5934
  name: "square",
6802
5935
  size: 24,
6803
5936
  node: [["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]]
6804
5937
  };
6805
- __iconData13.node;
6806
- Square = createLucideIcon(__iconData13);
5938
+ __iconData12.node;
5939
+ Square = createLucideIcon(__iconData12);
6807
5940
  }
6808
5941
  });
6809
5942
 
6810
5943
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/rotate-ccw.mjs
6811
5944
  var rotate_ccw_exports = {};
6812
5945
  __export(rotate_ccw_exports, {
6813
- __iconData: () => __iconData14,
5946
+ __iconData: () => __iconData13,
6814
5947
  default: () => RotateCcw
6815
5948
  });
6816
- var __iconData14, RotateCcw;
5949
+ var __iconData13, RotateCcw;
6817
5950
  var init_rotate_ccw = __esm({
6818
5951
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/rotate-ccw.mjs"() {
6819
5952
  init_createLucideIcon();
6820
- __iconData14 = {
5953
+ __iconData13 = {
6821
5954
  name: "rotate-ccw",
6822
5955
  size: 24,
6823
5956
  node: [
@@ -6825,22 +5958,22 @@ var init_rotate_ccw = __esm({
6825
5958
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
6826
5959
  ]
6827
5960
  };
6828
- __iconData14.node;
6829
- RotateCcw = createLucideIcon(__iconData14);
5961
+ __iconData13.node;
5962
+ RotateCcw = createLucideIcon(__iconData13);
6830
5963
  }
6831
5964
  });
6832
5965
 
6833
5966
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-tree.mjs
6834
5967
  var list_tree_exports = {};
6835
5968
  __export(list_tree_exports, {
6836
- __iconData: () => __iconData15,
5969
+ __iconData: () => __iconData14,
6837
5970
  default: () => ListTree
6838
5971
  });
6839
- var __iconData15, ListTree;
5972
+ var __iconData14, ListTree;
6840
5973
  var init_list_tree = __esm({
6841
5974
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-tree.mjs"() {
6842
5975
  init_createLucideIcon();
6843
- __iconData15 = {
5976
+ __iconData14 = {
6844
5977
  name: "list-tree",
6845
5978
  size: 24,
6846
5979
  node: [
@@ -6851,22 +5984,22 @@ var init_list_tree = __esm({
6851
5984
  ["path", { d: "M3 5v12a2 2 0 0 0 2 2h3", key: "x1gjn2" }]
6852
5985
  ]
6853
5986
  };
6854
- __iconData15.node;
6855
- ListTree = createLucideIcon(__iconData15);
5987
+ __iconData14.node;
5988
+ ListTree = createLucideIcon(__iconData14);
6856
5989
  }
6857
5990
  });
6858
5991
 
6859
5992
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/folder-tree.mjs
6860
5993
  var folder_tree_exports = {};
6861
5994
  __export(folder_tree_exports, {
6862
- __iconData: () => __iconData16,
5995
+ __iconData: () => __iconData15,
6863
5996
  default: () => FolderTree
6864
5997
  });
6865
- var __iconData16, FolderTree;
5998
+ var __iconData15, FolderTree;
6866
5999
  var init_folder_tree = __esm({
6867
6000
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/folder-tree.mjs"() {
6868
6001
  init_createLucideIcon();
6869
- __iconData16 = {
6002
+ __iconData15 = {
6870
6003
  name: "folder-tree",
6871
6004
  size: 24,
6872
6005
  node: [
@@ -6888,22 +6021,22 @@ var init_folder_tree = __esm({
6888
6021
  ["path", { d: "M3 3v13a2 2 0 0 0 2 2h3", key: "k8epm1" }]
6889
6022
  ]
6890
6023
  };
6891
- __iconData16.node;
6892
- FolderTree = createLucideIcon(__iconData16);
6024
+ __iconData15.node;
6025
+ FolderTree = createLucideIcon(__iconData15);
6893
6026
  }
6894
6027
  });
6895
6028
 
6896
6029
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.mjs
6897
6030
  var search_exports = {};
6898
6031
  __export(search_exports, {
6899
- __iconData: () => __iconData17,
6032
+ __iconData: () => __iconData16,
6900
6033
  default: () => Search
6901
6034
  });
6902
- var __iconData17, Search;
6035
+ var __iconData16, Search;
6903
6036
  var init_search = __esm({
6904
6037
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.mjs"() {
6905
6038
  init_createLucideIcon();
6906
- __iconData17 = {
6039
+ __iconData16 = {
6907
6040
  name: "search",
6908
6041
  size: 24,
6909
6042
  node: [
@@ -6911,22 +6044,22 @@ var init_search = __esm({
6911
6044
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
6912
6045
  ]
6913
6046
  };
6914
- __iconData17.node;
6915
- Search = createLucideIcon(__iconData17);
6047
+ __iconData16.node;
6048
+ Search = createLucideIcon(__iconData16);
6916
6049
  }
6917
6050
  });
6918
6051
 
6919
6052
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/layout-grid.mjs
6920
6053
  var layout_grid_exports = {};
6921
6054
  __export(layout_grid_exports, {
6922
- __iconData: () => __iconData18,
6055
+ __iconData: () => __iconData17,
6923
6056
  default: () => LayoutGrid
6924
6057
  });
6925
- var __iconData18, LayoutGrid;
6058
+ var __iconData17, LayoutGrid;
6926
6059
  var init_layout_grid = __esm({
6927
6060
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/layout-grid.mjs"() {
6928
6061
  init_createLucideIcon();
6929
- __iconData18 = {
6062
+ __iconData17 = {
6930
6063
  name: "layout-grid",
6931
6064
  size: 24,
6932
6065
  node: [
@@ -6936,22 +6069,22 @@ var init_layout_grid = __esm({
6936
6069
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
6937
6070
  ]
6938
6071
  };
6939
- __iconData18.node;
6940
- LayoutGrid = createLucideIcon(__iconData18);
6072
+ __iconData17.node;
6073
+ LayoutGrid = createLucideIcon(__iconData17);
6941
6074
  }
6942
6075
  });
6943
6076
 
6944
6077
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list.mjs
6945
6078
  var list_exports = {};
6946
6079
  __export(list_exports, {
6947
- __iconData: () => __iconData19,
6080
+ __iconData: () => __iconData18,
6948
6081
  default: () => List
6949
6082
  });
6950
- var __iconData19, List;
6083
+ var __iconData18, List;
6951
6084
  var init_list = __esm({
6952
6085
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list.mjs"() {
6953
6086
  init_createLucideIcon();
6954
- __iconData19 = {
6087
+ __iconData18 = {
6955
6088
  name: "list",
6956
6089
  size: 24,
6957
6090
  node: [
@@ -6963,22 +6096,22 @@ var init_list = __esm({
6963
6096
  ["path", { d: "M8 19h13", key: "m83p4d" }]
6964
6097
  ]
6965
6098
  };
6966
- __iconData19.node;
6967
- List = createLucideIcon(__iconData19);
6099
+ __iconData18.node;
6100
+ List = createLucideIcon(__iconData18);
6968
6101
  }
6969
6102
  });
6970
6103
 
6971
6104
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-checks.mjs
6972
6105
  var list_checks_exports = {};
6973
6106
  __export(list_checks_exports, {
6974
- __iconData: () => __iconData20,
6107
+ __iconData: () => __iconData19,
6975
6108
  default: () => ListChecks
6976
6109
  });
6977
- var __iconData20, ListChecks;
6110
+ var __iconData19, ListChecks;
6978
6111
  var init_list_checks = __esm({
6979
6112
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-checks.mjs"() {
6980
6113
  init_createLucideIcon();
6981
- __iconData20 = {
6114
+ __iconData19 = {
6982
6115
  name: "list-checks",
6983
6116
  size: 24,
6984
6117
  node: [
@@ -6989,22 +6122,22 @@ var init_list_checks = __esm({
6989
6122
  ["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
6990
6123
  ]
6991
6124
  };
6992
- __iconData20.node;
6993
- ListChecks = createLucideIcon(__iconData20);
6125
+ __iconData19.node;
6126
+ ListChecks = createLucideIcon(__iconData19);
6994
6127
  }
6995
6128
  });
6996
6129
 
6997
6130
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square-check-big.mjs
6998
6131
  var square_check_big_exports = {};
6999
6132
  __export(square_check_big_exports, {
7000
- __iconData: () => __iconData21,
6133
+ __iconData: () => __iconData20,
7001
6134
  default: () => SquareCheckBig
7002
6135
  });
7003
- var __iconData21, SquareCheckBig;
6136
+ var __iconData20, SquareCheckBig;
7004
6137
  var init_square_check_big = __esm({
7005
6138
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square-check-big.mjs"() {
7006
6139
  init_createLucideIcon();
7007
- __iconData21 = {
6140
+ __iconData20 = {
7008
6141
  name: "square-check-big",
7009
6142
  size: 24,
7010
6143
  node: [
@@ -7016,28 +6149,48 @@ var init_square_check_big = __esm({
7016
6149
  ],
7017
6150
  aliases: ["check-square"]
7018
6151
  };
7019
- __iconData21.node;
7020
- SquareCheckBig = createLucideIcon(__iconData21);
6152
+ __iconData20.node;
6153
+ SquareCheckBig = createLucideIcon(__iconData20);
7021
6154
  }
7022
6155
  });
7023
6156
 
7024
6157
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-left.mjs
7025
6158
  var chevron_left_exports = {};
7026
6159
  __export(chevron_left_exports, {
7027
- __iconData: () => __iconData22,
6160
+ __iconData: () => __iconData21,
7028
6161
  default: () => ChevronLeft
7029
6162
  });
7030
- var __iconData22, ChevronLeft;
6163
+ var __iconData21, ChevronLeft;
7031
6164
  var init_chevron_left = __esm({
7032
6165
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-left.mjs"() {
7033
6166
  init_createLucideIcon();
7034
- __iconData22 = {
6167
+ __iconData21 = {
7035
6168
  name: "chevron-left",
7036
6169
  size: 24,
7037
6170
  node: [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]]
7038
6171
  };
6172
+ __iconData21.node;
6173
+ ChevronLeft = createLucideIcon(__iconData21);
6174
+ }
6175
+ });
6176
+
6177
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
6178
+ var chevron_right_exports = {};
6179
+ __export(chevron_right_exports, {
6180
+ __iconData: () => __iconData22,
6181
+ default: () => ChevronRight
6182
+ });
6183
+ var __iconData22, ChevronRight;
6184
+ var init_chevron_right = __esm({
6185
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs"() {
6186
+ init_createLucideIcon();
6187
+ __iconData22 = {
6188
+ name: "chevron-right",
6189
+ size: 24,
6190
+ node: [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]]
6191
+ };
7039
6192
  __iconData22.node;
7040
- ChevronLeft = createLucideIcon(__iconData22);
6193
+ ChevronRight = createLucideIcon(__iconData22);
7041
6194
  }
7042
6195
  });
7043
6196
 
@@ -8595,6 +7748,29 @@ var require_staged_dialog = __commonJS({
8595
7748
  }
8596
7749
  });
8597
7750
 
7751
+ // packages/addons/lib/disclosure-styles.cjs
7752
+ var require_disclosure_styles = __commonJS({
7753
+ "packages/addons/lib/disclosure-styles.cjs"(exports2, module2) {
7754
+ "use strict";
7755
+ module2.exports = [
7756
+ ".wb-disc{min-width:0;border:0;padding:0;margin:0}",
7757
+ // 原生 details/summary 保留键盘与无障碍语义,这里只接管观感:去掉默认三角并铺满整行。
7758
+ ".wb-disc>summary{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:12.5px;font-weight:600;line-height:1.6;color:inherit;user-select:none;list-style:none;padding:2px 8px 2px 2px;margin:-2px -8px -2px -2px;border-radius:7px}",
7759
+ ".wb-disc>summary::-webkit-details-marker{display:none}",
7760
+ '.wb-disc>summary::marker{content:""}',
7761
+ ".wb-disc>summary:hover{background:color-mix(in oklab,currentColor 6%,transparent)}",
7762
+ ".wb-disc>summary:focus-visible{outline:2px solid var(--wb-accent,var(--dsw-alias-brand-primary,Highlight));outline-offset:2px}",
7763
+ ".wb-disc-chev{flex:0 0 auto;width:14px;height:14px;transition:transform 160ms ease}",
7764
+ ".wb-disc[open]>summary .wb-disc-chev{transform:rotate(90deg)}",
7765
+ ".wb-disc-title{min-width:0;overflow-wrap:anywhere}",
7766
+ ".wb-disc-meta{font-weight:400;font-size:12px;color:var(--wb-muted,var(--dsw-alias-label-tertiary,GrayText))}",
7767
+ ".wb-disc-body{margin-top:8px;min-width:0;animation:wb-disc-in 160ms ease}",
7768
+ "@keyframes wb-disc-in{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:none}}",
7769
+ "@media(prefers-reduced-motion:reduce){.wb-disc-chev{transition:none}.wb-disc-body{animation:none}}"
7770
+ ].join("\n");
7771
+ }
7772
+ });
7773
+
8598
7774
  // packages/addons/tasks/client/ui/styles.cjs
8599
7775
  var require_styles = __commonJS({
8600
7776
  "packages/addons/tasks/client/ui/styles.cjs"(exports2, module2) {
@@ -8950,6 +8126,50 @@ var require_inject_css = __commonJS({
8950
8126
  }
8951
8127
  });
8952
8128
 
8129
+ // packages/addons/lib/highlight.cjs
8130
+ var require_highlight = __commonJS({
8131
+ "packages/addons/lib/highlight.cjs"(exports2, module2) {
8132
+ "use strict";
8133
+ module2.exports = function(React) {
8134
+ var h = React.createElement;
8135
+ function sourceOf(keyword) {
8136
+ var pattern = keyword.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8137
+ return pattern.replace(/[a-zA-Z]/g, function(letter) {
8138
+ return "[" + letter.toLowerCase() + letter.toUpperCase() + "]";
8139
+ });
8140
+ }
8141
+ return function createHighlight(prefix) {
8142
+ var className = String(prefix || "wb") + "-hit";
8143
+ function hit(rawText, rawKeyword) {
8144
+ var text = rawText == null ? "" : String(rawText);
8145
+ var keyword = rawKeyword == null ? "" : String(rawKeyword);
8146
+ if (!keyword) return text;
8147
+ var matcher, match, end = 0, parts = [];
8148
+ try {
8149
+ matcher = new RegExp(sourceOf(keyword), "g");
8150
+ } catch (error) {
8151
+ return text;
8152
+ }
8153
+ while (match = matcher.exec(text)) {
8154
+ if (match.index > end) parts.push(text.slice(end, match.index));
8155
+ parts.push(h("mark", { className, key: match.index }, match[0]));
8156
+ end = match.index + match[0].length;
8157
+ if (!match[0]) matcher.lastIndex += 1;
8158
+ }
8159
+ if (!parts.length) return text;
8160
+ if (end < text.length) parts.push(text.slice(end));
8161
+ return parts;
8162
+ }
8163
+ function Highlight(props) {
8164
+ return hit(props.text, props.keyword);
8165
+ }
8166
+ Highlight.hit = hit;
8167
+ return Highlight;
8168
+ };
8169
+ };
8170
+ }
8171
+ });
8172
+
8953
8173
  // packages/addons/tasks/client/ui/highlight.cjs
8954
8174
  var require_highlight2 = __commonJS({
8955
8175
  "packages/addons/tasks/client/ui/highlight.cjs"(exports2, module2) {
@@ -9584,6 +8804,37 @@ var require_workspace_select = __commonJS({
9584
8804
  }
9585
8805
  });
9586
8806
 
8807
+ // packages/addons/lib/disclosure.cjs
8808
+ var require_disclosure = __commonJS({
8809
+ "packages/addons/lib/disclosure.cjs"(exports2, module2) {
8810
+ "use strict";
8811
+ var ChevronRight2 = (init_chevron_right(), __toCommonJS(chevron_right_exports)).default;
8812
+ function createDisclosure(React) {
8813
+ var h = React.createElement;
8814
+ function Disclosure(props) {
8815
+ var attrs = Object.assign({ className: ("wb-disc " + (props.className || "")).trim() }, props.attrs || {});
8816
+ if (props.open !== void 0) attrs.open = !!props.open;
8817
+ else if (props.defaultOpen !== void 0) attrs.open = !!props.defaultOpen;
8818
+ if (props.onToggle) attrs.onToggle = props.onToggle;
8819
+ return h(
8820
+ "details",
8821
+ attrs,
8822
+ h(
8823
+ "summary",
8824
+ null,
8825
+ h(ChevronRight2, { className: "wb-disc-chev", "aria-hidden": true, focusable: false }),
8826
+ h("span", { className: "wb-disc-title" }, props.title),
8827
+ props.meta != null && props.meta !== "" ? h("span", { className: "wb-disc-meta" }, props.meta) : null
8828
+ ),
8829
+ h("div", { className: "wb-disc-body" }, props.children)
8830
+ );
8831
+ }
8832
+ return { Disclosure, css: require_disclosure_styles() };
8833
+ }
8834
+ module2.exports = { createDisclosure, css: require_disclosure_styles() };
8835
+ }
8836
+ });
8837
+
9587
8838
  // packages/addons/tasks/client/item/difficulty-field.cjs
9588
8839
  var require_difficulty_field = __commonJS({
9589
8840
  "packages/addons/tasks/client/item/difficulty-field.cjs"(exports2, module2) {
@@ -13483,7 +12734,6 @@ var require_timeline_view = __commonJS({
13483
12734
  var WorkspaceFilter = require_workspacefilter();
13484
12735
  var statsView = require_stats();
13485
12736
  var configView = require_config();
13486
- var actionSchemaView = require_actions();
13487
12737
  var COPY = require_copy();
13488
12738
  function hostHasAddon(id) {
13489
12739
  var list = host.addons;
@@ -13919,7 +13169,7 @@ var require_timeline_view = __commonJS({
13919
13169
  var TimelineView = require_timeline_view()({ React, COPY, injectCss, statusInfo, configView, CFG_FALLBACK, TaskItem, EditModal, DoneModal, TimelineModal, CreateModal });
13920
13170
  host.registerAddon({
13921
13171
  id: "wb-addon-tasks",
13922
- version: "5.5.4",
13172
+ version: "5.5.5",
13923
13173
  icon: ICONS["list-checks"],
13924
13174
  // 贡献声明写在 registerAddon 里:卸载任务插件时宿主按 addonId 一起撤销,
13925
13175
  // 不会在邮件里留一个渲染即报错的孤儿按钮。
@@ -13929,8 +13179,7 @@ var require_timeline_view = __commonJS({
13929
13179
  { id: "tasks", icon: tabIcon("list"), title: { zh: "\u8BB0\u5F55", en: "Records" }, component: TasksView },
13930
13180
  { id: "timeline", icon: tabIcon("timeline"), title: { zh: "\u65F6\u95F4\u7EBF", en: "Timeline" }, component: TimelineView },
13931
13181
  { id: "workspace", icon: tabIcon("folder"), title: { zh: "\u5DE5\u4F5C\u533A", en: "Workspaces" }, component: workspaceView.WorkspaceView },
13932
- { id: "config", icon: tabIcon("settings"), title: { zh: "\u914D\u7F6E", en: "Config" }, component: configView.ConfigView },
13933
- { id: "actions", icon: tabIcon("code-2"), title: { zh: "Action", en: "Actions" }, component: actionSchemaView.ActionSchemaView }
13182
+ { id: "config", icon: tabIcon("settings"), title: { zh: "\u914D\u7F6E", en: "Config" }, component: configView.ConfigView }
13934
13183
  ]
13935
13184
  });
13936
13185
  module.exports = { name: "dsh-workbench-tasks", inject: [], apply: function() {