@xenosystem/blocks 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import {
2
- Svg
2
+ Svg,
3
+ XGlyph
3
4
  } from "./chunk-GQWAIPDF.js";
4
5
 
5
6
  // src/edit/layers/react/icons.tsx
@@ -147,10 +148,7 @@ function EntryIcon({ name, size = 11 }) {
147
148
  return /* @__PURE__ */ jsx3("svg", { ...svgBase(size), children: paths.map((d, i) => /* @__PURE__ */ jsx3("path", { d }, i)) });
148
149
  }
149
150
  function XIcon2({ size = 10 }) {
150
- return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
151
- /* @__PURE__ */ jsx3("path", { d: "M18 6 6 18" }),
152
- /* @__PURE__ */ jsx3("path", { d: "m6 6 12 12" })
153
- ] });
151
+ return /* @__PURE__ */ jsx3(XGlyph, { size });
154
152
  }
155
153
  function TrashIcon({ size = 11 }) {
156
154
  return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
@@ -171,38 +169,19 @@ function RedoIcon({ size = 11 }) {
171
169
  /* @__PURE__ */ jsx3("path", { d: "M20 9H9.5a5.5 5.5 0 0 0 0 11H13" })
172
170
  ] });
173
171
  }
174
- function PendingGlyph({ size = 9 }) {
175
- return /* @__PURE__ */ jsx3(
176
- "span",
177
- {
178
- className: "xeno-history-spinner",
179
- "aria-label": "Pending",
180
- style: {
181
- width: size,
182
- height: size,
183
- borderRadius: 2,
184
- border: "1px solid currentColor",
185
- borderRightColor: "transparent",
186
- opacity: 0.8,
187
- display: "inline-block",
188
- flex: "0 0 auto"
189
- }
190
- }
191
- );
192
- }
193
172
 
194
173
  // src/edit/color/react/icons.tsx
195
174
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
196
- var svg = { width: 11, height: 11, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true };
197
- function EyedropperIcon() {
198
- return /* @__PURE__ */ jsxs4("svg", { ...svg, children: [
175
+ var svg = (size) => ({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true });
176
+ function EyedropperIcon({ size = 11 } = {}) {
177
+ return /* @__PURE__ */ jsxs4("svg", { ...svg(size), children: [
199
178
  /* @__PURE__ */ jsx4("path", { d: "m2 22 1-1h3l9-9" }),
200
179
  /* @__PURE__ */ jsx4("path", { d: "M3 21v-3l9-9" }),
201
180
  /* @__PURE__ */ jsx4("path", { d: "m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" })
202
181
  ] });
203
182
  }
204
- function SwapIcon() {
205
- return /* @__PURE__ */ jsxs4("svg", { ...svg, children: [
183
+ function SwapIcon({ size = 11 } = {}) {
184
+ return /* @__PURE__ */ jsxs4("svg", { ...svg(size), children: [
206
185
  /* @__PURE__ */ jsx4("path", { d: "m16 3 4 4-4 4" }),
207
186
  /* @__PURE__ */ jsx4("path", { d: "M20 7H4" }),
208
187
  /* @__PURE__ */ jsx4("path", { d: "m8 21-4-4 4-4" }),
@@ -272,7 +251,6 @@ export {
272
251
  TrashIcon,
273
252
  UndoIcon,
274
253
  RedoIcon,
275
- PendingGlyph,
276
254
  EyedropperIcon,
277
255
  SwapIcon,
278
256
  TreeIcon
@@ -6,7 +6,6 @@ import {
6
6
  LinkIcon,
7
7
  LockStateIcon,
8
8
  NextIcon,
9
- PendingGlyph,
10
9
  PrevIcon,
11
10
  RedoIcon,
12
11
  ResetIcon,
@@ -18,7 +17,7 @@ import {
18
17
  VisibilityIcon,
19
18
  XIcon,
20
19
  XIcon2
21
- } from "../chunk-J5XEAON6.js";
20
+ } from "../chunk-SFSCCISX.js";
22
21
  import {
23
22
  CaseGlyph,
24
23
  ChevronGlyph,
@@ -4833,7 +4832,7 @@ var HISTORY_DECLARATION = {
4833
4832
  node: {
4834
4833
  component: "fragment",
4835
4834
  children: [
4836
- { component: "icons/Pending", when: { item: "pending" } },
4835
+ { component: "chrome/Spinner", when: { item: "pending" } },
4837
4836
  { component: "chrome/Badge", when: { item: "failed" }, props: { size: { value: "sm" }, tone: { value: "error" } }, children: [text3({ value: "failed" })] },
4838
4837
  { component: "chrome/Badge", when: { item: "showSource" }, props: { size: { value: "sm" }, title: { item: "sourceTitle" } }, children: [text3({ item: "sourceGlyph" })] },
4839
4838
  { component: "chrome/Badge", when: { item: "showCoalesced" }, props: { size: { value: "sm" }, title: { item: "coalescedTitle" } }, children: [text3({ item: "coalescedText" })] },
@@ -4869,7 +4868,7 @@ var HISTORY_DECLARATION = {
4869
4868
  };
4870
4869
 
4871
4870
  // src/edit/history/react/HistoryPanelView.tsx
4872
- import { Badge as Badge3, Column as Column3, EmptyState as EmptyState3, IconButton as IconButton4, InlineConfirm, RowList as RowList2, Row as Row2, ScrollArea as ScrollArea3, SearchField as SearchField3, StatusBar as StatusBar2, Text as Text4, Toolbar as Toolbar2, VirtualWindow as VirtualWindow2 } from "@xenosystem/components/chrome";
4871
+ import { Badge as Badge3, Column as Column3, EmptyState as EmptyState3, IconButton as IconButton4, InlineConfirm, RowList as RowList2, Row as Row2, ScrollArea as ScrollArea3, SearchField as SearchField3, Spinner, StatusBar as StatusBar2, Text as Text4, Toolbar as Toolbar2, VirtualWindow as VirtualWindow2 } from "@xenosystem/components/chrome";
4873
4872
  import { Fragment as Fragment4, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
4874
4873
  function HistoryPanelView({ controller }) {
4875
4874
  const subscribe = useCallback4((cb) => controller.subscribe(cb), [controller]);
@@ -4966,7 +4965,7 @@ function HistoryRowView({ row: row2, controller }) {
4966
4965
  "data-history-row": row2.key,
4967
4966
  title: row2.label,
4968
4967
  trailing: /* @__PURE__ */ jsxs4(Fragment4, { children: [
4969
- row2.pending ? /* @__PURE__ */ jsx5(PendingGlyph, {}) : null,
4968
+ row2.pending ? /* @__PURE__ */ jsx5(Spinner, {}) : null,
4970
4969
  row2.failed ? /* @__PURE__ */ jsx5(Badge3, { size: "sm", tone: "error", children: "failed" }) : null,
4971
4970
  row2.showSource ? /* @__PURE__ */ jsx5(Badge3, { size: "sm", title: row2.sourceTitle, children: row2.sourceGlyph }) : null,
4972
4971
  row2.showCoalesced ? /* @__PURE__ */ jsx5(Badge3, { size: "sm", title: row2.coalescedTitle, children: row2.coalescedText }) : null,
@@ -21,7 +21,6 @@ import {
21
21
  LinkIcon,
22
22
  LockStateIcon,
23
23
  NextIcon,
24
- PendingGlyph,
25
24
  PrevIcon,
26
25
  RedoIcon,
27
26
  ResetIcon,
@@ -30,9 +29,8 @@ import {
30
29
  TrashIcon,
31
30
  TreeIcon,
32
31
  UndoIcon,
33
- VisibilityIcon,
34
- XIcon2 as XIcon
35
- } from "../chunk-J5XEAON6.js";
32
+ VisibilityIcon
33
+ } from "../chunk-SFSCCISX.js";
36
34
  import {
37
35
  CancelGlyph,
38
36
  CaseGlyph,
@@ -73,8 +71,6 @@ var ICONS = Object.freeze({
73
71
  "icons/Undo": UndoIcon,
74
72
  "icons/Redo": RedoIcon,
75
73
  "icons/Trash": TrashIcon,
76
- "icons/X": XIcon,
77
- "icons/Pending": PendingGlyph,
78
74
  "icons/HistoryEntry": EntryIcon,
79
75
  // inspector
80
76
  "icons/Stopwatch": StopwatchIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/blocks",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "XENO Blocks — rung 3 of the front ladder: components composed into a contract-bearing unit (manifest: ports, intents, commands, agent surface), rendered by @xenosystem/workbench. ONE package, one subpath per family (/auth, /edit, /data, /time, /ops, /trust, /agent), one named export per block — XENO PACKAGE NAMING - STANDARD.md.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -64,7 +64,7 @@
64
64
  "peerDependencies": {
65
65
  "@duckdb/duckdb-wasm": ">=1.28.0",
66
66
  "@xenosystem/block-sdk": ">=0.3.3 <1",
67
- "@xenosystem/components": ">=0.17.1 <1",
67
+ "@xenosystem/components": ">=0.17.2 <1",
68
68
  "@xenosystem/data-core": "^0.1.0",
69
69
  "@xenosystem/elements-react": ">=0.0.1",
70
70
  "@xenosystem/time-core": "^0.1.0",
@@ -80,7 +80,7 @@
80
80
  "@types/react": "^19.0.0",
81
81
  "@types/react-dom": "^19.0.0",
82
82
  "@xenosystem/block-sdk": "^0.3.3",
83
- "@xenosystem/components": "^0.17.1",
83
+ "@xenosystem/components": "^0.17.2",
84
84
  "@xenosystem/data-core": "^0.1.0",
85
85
  "@xenosystem/elements-react": "0.0.1",
86
86
  "@xenosystem/time-core": "^0.1.0",