@theoremjs/react 0.3.4-next.379.gf91c8b4 → 0.3.4-next.385.ga3608be

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/react",
3
- "version": "0.3.4-next.379.gf91c8b4",
3
+ "version": "0.3.4-next.385.ga3608be",
4
4
  "description": "React bindings for Theorem: headless hooks + transport, an Astryx chat UI, and a Web-standard server handler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -55,13 +55,13 @@
55
55
  "recharts": "^3.10.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@astryxdesign/core": "0.7.0",
59
- "@astryxdesign/theme-neutral": "0.7.0",
58
+ "@astryxdesign/core": "0.7.1",
59
+ "@astryxdesign/theme-neutral": "0.7.1",
60
60
  "@stylexjs/stylex": "0.19.0",
61
61
  "react": "^19.0.0",
62
62
  "react-dom": "^19.0.0",
63
- "@theoremjs/agents": "^0.3.4-next.379.gf91c8b4",
64
- "@theoremjs/web": "^0.3.4-next.379.gf91c8b4"
63
+ "@theoremjs/agents": "^0.3.4-next.385.ga3608be",
64
+ "@theoremjs/web": "^0.3.4-next.385.ga3608be"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@astryxdesign/core": {
@@ -49,7 +49,7 @@ function PendingRow(props) {
49
49
  const moveUp = t('@theorem.composer.pending.move_up');
50
50
  const moveDown = t('@theorem.composer.pending.move_down');
51
51
  const remove = t('@theorem.composer.pending.remove');
52
- return (_jsxs(HStack, { gap: 1, align: "center", width: "100%", children: [_jsx(Badge, { variant: message.kind === 'steer' ? 'info' : 'neutral', label: t(`@theorem.composer.pending.${message.kind}`) }), _jsx(StackItem, { size: "fill", children: _jsx(Text, { size: "sm", maxLines: 1, hasTruncateTooltip: true, children: composerPendingPreview(message) }) }), _jsxs(HStack, { gap: 0.5, children: [_jsx(IconButton, { label: edit, tooltip: edit, size: "sm", variant: "ghost", icon: icon(IconPencil), onClick: () => props.onRestore(message.id) }), message.kind === 'stash' ? (_jsx(IconButton, { label: queue, tooltip: queue, size: "sm", variant: "ghost", icon: icon(IconCornerDownLeft), onClick: () => props.onQueue(message.id) })) : null, _jsx(IconButton, { label: sendNow, tooltip: sendNow, size: "sm", variant: "ghost", icon: icon(IconSend), onClick: () => props.onSendNow(message.id) }), _jsx(IconButton, { label: moveUp, tooltip: moveUp, size: "sm", variant: "ghost", icon: icon(IconArrowUp), onClick: () => props.onMove(message.id, 'up') }), _jsx(IconButton, { label: moveDown, tooltip: moveDown, size: "sm", variant: "ghost", icon: icon(IconArrowDown), onClick: () => props.onMove(message.id, 'down') }), _jsx(IconButton, { label: remove, tooltip: remove, size: "sm", variant: "ghost", icon: icon(IconX), onClick: () => props.onRemove(message.id) })] })] }));
52
+ return (_jsxs(HStack, { gap: 1, align: "center", width: "100%", children: [_jsx(Badge, { variant: message.kind === 'steer' ? 'info' : 'neutral', label: t(`@theorem.composer.pending.${message.kind}`) }), _jsx(StackItem, { size: "fill", style: { width: 0 }, children: _jsx(Text, { size: "sm", maxLines: 1, hasTruncateTooltip: true, children: composerPendingPreview(message) }) }), _jsxs(HStack, { gap: 0.5, children: [_jsx(IconButton, { label: edit, tooltip: edit, size: "sm", variant: "ghost", icon: icon(IconPencil), onClick: () => props.onRestore(message.id) }), message.kind === 'stash' ? (_jsx(IconButton, { label: queue, tooltip: queue, size: "sm", variant: "ghost", icon: icon(IconCornerDownLeft), onClick: () => props.onQueue(message.id) })) : null, _jsx(IconButton, { label: sendNow, tooltip: sendNow, size: "sm", variant: "ghost", icon: icon(IconSend), onClick: () => props.onSendNow(message.id) }), _jsx(IconButton, { label: moveUp, tooltip: moveUp, size: "sm", variant: "ghost", icon: icon(IconArrowUp), onClick: () => props.onMove(message.id, 'up') }), _jsx(IconButton, { label: moveDown, tooltip: moveDown, size: "sm", variant: "ghost", icon: icon(IconArrowDown), onClick: () => props.onMove(message.id, 'down') }), _jsx(IconButton, { label: remove, tooltip: remove, size: "sm", variant: "ghost", icon: icon(IconX), onClick: () => props.onRemove(message.id) })] })] }));
53
53
  }
54
54
  /** The model and effort choices this profile offers; efforts only for a chosen model. */
55
55
  function generationOptions(iface, selectedModel) {
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/ui/theorem-theme.ts
4
4
  * Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
5
- * CLI: @astryxdesign/cli@0.7.0
6
- * Core: @astryxdesign/core@0.7.0
5
+ * CLI: @astryxdesign/cli@0.7.1
6
+ * Core: @astryxdesign/core@0.7.1
7
7
  */
8
8
 
9
9
  @layer reset, astryx-base, astryx-theme;
@@ -166,6 +166,11 @@
166
166
  --color-syntax-property: light-dark(#005348, #90d7c8);
167
167
  --color-syntax-punctuation: light-dark(#6a6a6a, #9e9e9e);
168
168
  --color-syntax-background: light-dark(#ffffff, #111111);
169
+ --color-syntax-added: color-mix(in srgb, var(--color-success-muted) 25%, transparent);
170
+ --color-syntax-removed: color-mix(in srgb, var(--color-error-muted) 25%, transparent);
171
+ --color-syntax-diff-header: transparent;
172
+ --color-syntax-added-marker: var(--color-syntax-punctuation);
173
+ --color-syntax-removed-marker: var(--color-syntax-punctuation);
169
174
  --color-background-surface: light-dark(#ffffff, #262626);
170
175
  --color-background-body: light-dark(#f1f1f1, #1b1b1b);
171
176
  --color-background-card: light-dark(#ffffff, #1b1b1b);
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/ui/theorem-theme.ts
4
4
  * Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
5
- * CLI: @astryxdesign/cli@0.7.0
6
- * Core: @astryxdesign/core@0.7.0
5
+ * CLI: @astryxdesign/cli@0.7.1
6
+ * Core: @astryxdesign/core@0.7.1
7
7
  */
8
8
 
9
9
  export {};
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/ui/theorem-theme.ts
4
4
  * Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
5
- * CLI: @astryxdesign/cli@0.7.0
6
- * Core: @astryxdesign/core@0.7.0
5
+ * CLI: @astryxdesign/cli@0.7.1
6
+ * Core: @astryxdesign/core@0.7.1
7
7
  */
8
8
 
9
9
  /// <reference path="./theorem.variants.d.ts" />
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/ui/theorem-theme.ts
4
4
  * Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
5
- * CLI: @astryxdesign/cli@0.7.0
6
- * Core: @astryxdesign/core@0.7.0
5
+ * CLI: @astryxdesign/cli@0.7.1
6
+ * Core: @astryxdesign/core@0.7.1
7
7
  */
8
8
 
9
9
  import { neutralTheme } from '@astryxdesign/theme-neutral/built';
@@ -100,6 +100,11 @@ export const theoremTheme = {
100
100
  "--color-syntax-property": "light-dark(#005348, #90d7c8)",
101
101
  "--color-syntax-punctuation": "light-dark(#6a6a6a, #9e9e9e)",
102
102
  "--color-syntax-background": "light-dark(#ffffff, #111111)",
103
+ "--color-syntax-added": "color-mix(in srgb, var(--color-success-muted) 25%, transparent)",
104
+ "--color-syntax-removed": "color-mix(in srgb, var(--color-error-muted) 25%, transparent)",
105
+ "--color-syntax-diff-header": "transparent",
106
+ "--color-syntax-added-marker": "var(--color-syntax-punctuation)",
107
+ "--color-syntax-removed-marker": "var(--color-syntax-punctuation)",
103
108
  "--color-background-surface": "light-dark(#ffffff, #262626)",
104
109
  "--color-background-body": "light-dark(#f1f1f1, #1b1b1b)",
105
110
  "--color-background-card": "light-dark(#ffffff, #1b1b1b)",
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/ui/theorem-theme.ts
4
4
  * Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
5
- * CLI: @astryxdesign/cli@0.7.0
6
- * Core: @astryxdesign/core@0.7.0
5
+ * CLI: @astryxdesign/cli@0.7.1
6
+ * Core: @astryxdesign/core@0.7.1
7
7
  */
8
8
 
9
9
  // Generated by astryx theme build