@jetcrab/pi-desk-sdk 1.1.22-dev → 1.1.23-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ui.js CHANGED
@@ -18,7 +18,7 @@ const PLUGIN_UI_STYLES = `
18
18
  .pi-desk-ui-tab:hover{background:color-mix(in oklab,var(--foreground) 8%,transparent);color:var(--foreground)}
19
19
  .pi-desk-ui-tab[data-active="true"]{border-bottom-color:var(--foreground);color:var(--foreground)}.pi-desk-ui-tab:focus-visible{outline:2px solid var(--pi-desk-plugin-ring,var(--ring));outline-offset:2px}.pi-desk-ui-tab:disabled{cursor:not-allowed;opacity:.5}
20
20
  .pi-desk-ui-key-values{display:grid;min-width:0;gap:.5rem;margin:0}.pi-desk-ui-key-value{display:grid;min-width:0;grid-template-columns:minmax(5rem,auto) minmax(0,1fr) auto;align-items:start;gap:.3rem .65rem}.pi-desk-ui-key-value-label{color:var(--pi-desk-plugin-muted-foreground,var(--muted-foreground));font-size:.75rem;line-height:1.45}.pi-desk-ui-key-value-value{min-width:0;margin:0;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}.pi-desk-ui-key-value-action{display:flex;align-items:center}.pi-desk-ui-key-values-compact{gap:.35rem}.pi-desk-ui-key-values-compact .pi-desk-ui-key-value{grid-template-columns:minmax(3.5rem,auto) minmax(0,1fr) auto;gap:.2rem .5rem}.pi-desk-ui-key-values-compact .pi-desk-ui-key-value-label{font-size:.75rem}.pi-desk-ui-key-values-stacked .pi-desk-ui-key-value{grid-template-columns:minmax(0,1fr);gap:.1rem}.pi-desk-ui-key-values-stacked .pi-desk-ui-key-value-action{justify-self:start}
21
- .pi-desk-ui-loading{display:flex;min-height:6rem;align-items:center;justify-content:center;gap:.5rem;color:var(--pi-desk-plugin-muted-foreground,var(--muted-foreground));font-size:.875rem;text-align:center}.pi-desk-ui-loading-error{display:grid;gap:.6rem}
21
+ .pi-desk-ui-loading{display:flex;min-width:0;min-height:10rem;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:2rem 1rem;color:var(--pi-desk-plugin-muted-foreground,var(--muted-foreground));font-size:.875rem;line-height:1.5;text-align:center}.pi-desk-ui-loading .pi-desk-ui-spinner{width:1.5rem;height:1.5rem;flex:none}.pi-desk-ui-loading-label{min-width:0;overflow-wrap:anywhere}.pi-desk-ui-loading-error{display:grid;gap:.6rem}
22
22
  .pi-desk-ui-spinner circle {
23
23
  opacity: .15;
24
24
  transform: scale(.6);
@@ -232,7 +232,7 @@ export function PluginLoadingState({ loading, error, loadingLabel = '正在加
232
232
  return (_jsxs("div", { className: classNames('pi-desk-ui-loading-error', className), children: [_jsx(PluginAlert, { tone: "error", density: "compact", children: message }), onRetry ? (_jsx(PluginActionRow, { children: _jsx(PluginButton, { size: "sm", variant: "primary", onClick: onRetry, children: retryLabel }) })) : null] }));
233
233
  }
234
234
  if (loading) {
235
- return (_jsxs("div", { className: classNames('pi-desk-ui-loading', className), role: "status", children: [_jsx(PluginSpinner, {}), _jsx("span", { children: loadingLabel })] }));
235
+ return (_jsxs("div", { className: classNames('pi-desk-ui-loading', className), role: "status", children: [_jsx("span", { "aria-hidden": "true", style: { display: 'flex' }, children: _jsx(PluginSpinner, {}) }), _jsx("span", { className: "pi-desk-ui-loading-label", children: loadingLabel })] }));
236
236
  }
237
237
  return _jsx(_Fragment, { children: children });
238
238
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/JetCrab/pi-desk.git",
6
6
  "directory": "plugins/pi-desk-sdk"
7
7
  },
8
- "version": "1.1.22-dev",
8
+ "version": "1.1.23-dev",
9
9
  "license": "Apache-2.0",
10
10
  "publishConfig": {
11
11
  "registry": "https://registry.npmjs.org",