@nice-code/action 0.3.1 → 0.3.3
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/build/devtools/browser/index.js +76 -23
- package/package.json +4 -4
|
@@ -3090,7 +3090,13 @@ function FullErrorContent({
|
|
|
3090
3090
|
function CompactErrorContent({ value, color }) {
|
|
3091
3091
|
if (isNiceErrorJson(value)) {
|
|
3092
3092
|
return /* @__PURE__ */ jsxDEV5("div", {
|
|
3093
|
-
style: {
|
|
3093
|
+
style: {
|
|
3094
|
+
display: "flex",
|
|
3095
|
+
flexDirection: "column",
|
|
3096
|
+
gap: "1em",
|
|
3097
|
+
width: "100%",
|
|
3098
|
+
minWidth: 0
|
|
3099
|
+
},
|
|
3094
3100
|
children: [
|
|
3095
3101
|
/* @__PURE__ */ jsxDEV5("div", {
|
|
3096
3102
|
style: {
|
|
@@ -3100,19 +3106,39 @@ function CompactErrorContent({ value, color }) {
|
|
|
3100
3106
|
fontWeight: 600,
|
|
3101
3107
|
lineHeight: "1.4",
|
|
3102
3108
|
wordBreak: "break-word",
|
|
3109
|
+
overflowWrap: "anywhere",
|
|
3103
3110
|
textAlign: "left"
|
|
3104
3111
|
},
|
|
3105
3112
|
children: value.message
|
|
3106
3113
|
}, undefined, false, undefined, this),
|
|
3107
3114
|
/* @__PURE__ */ jsxDEV5("div", {
|
|
3108
|
-
style: {
|
|
3115
|
+
style: {
|
|
3116
|
+
display: "flex",
|
|
3117
|
+
flexWrap: "wrap",
|
|
3118
|
+
gap: "6px",
|
|
3119
|
+
alignItems: "center",
|
|
3120
|
+
minWidth: 0
|
|
3121
|
+
},
|
|
3109
3122
|
children: [
|
|
3110
3123
|
value.ids.map((id) => /* @__PURE__ */ jsxDEV5("span", {
|
|
3111
|
-
style: {
|
|
3124
|
+
style: {
|
|
3125
|
+
color,
|
|
3126
|
+
fontFamily: MONO3,
|
|
3127
|
+
fontSize: "10px",
|
|
3128
|
+
opacity: 0.8,
|
|
3129
|
+
wordBreak: "break-word",
|
|
3130
|
+
overflowWrap: "anywhere"
|
|
3131
|
+
},
|
|
3112
3132
|
children: id
|
|
3113
3133
|
}, id, false, undefined, this)),
|
|
3114
3134
|
/* @__PURE__ */ jsxDEV5("span", {
|
|
3115
|
-
style: {
|
|
3135
|
+
style: {
|
|
3136
|
+
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
3137
|
+
fontFamily: MONO3,
|
|
3138
|
+
fontSize: "10px",
|
|
3139
|
+
wordBreak: "break-word",
|
|
3140
|
+
overflowWrap: "anywhere"
|
|
3141
|
+
},
|
|
3116
3142
|
children: value.def.domain
|
|
3117
3143
|
}, undefined, false, undefined, this)
|
|
3118
3144
|
]
|
|
@@ -3129,7 +3155,8 @@ function CompactErrorContent({ value, color }) {
|
|
|
3129
3155
|
fontFamily: SANS2,
|
|
3130
3156
|
fontSize: "12px",
|
|
3131
3157
|
lineHeight: "1.4",
|
|
3132
|
-
wordBreak: "break-word"
|
|
3158
|
+
wordBreak: "break-word",
|
|
3159
|
+
overflowWrap: "anywhere"
|
|
3133
3160
|
},
|
|
3134
3161
|
children: text
|
|
3135
3162
|
}, undefined, false, undefined, this);
|
|
@@ -3254,7 +3281,11 @@ function Tooltip({
|
|
|
3254
3281
|
pointerEvents: "none",
|
|
3255
3282
|
maxWidth: resolvedMaxWidth != null ? `${resolvedMaxWidth}px` : undefined,
|
|
3256
3283
|
maxHeight: `${maxHeight}px`,
|
|
3257
|
-
overflowY: "auto"
|
|
3284
|
+
overflowY: "auto",
|
|
3285
|
+
overflowX: "hidden",
|
|
3286
|
+
whiteSpace: "normal",
|
|
3287
|
+
wordBreak: "break-word",
|
|
3288
|
+
overflowWrap: "anywhere"
|
|
3258
3289
|
},
|
|
3259
3290
|
children: [
|
|
3260
3291
|
resolvedTitle != null && /* @__PURE__ */ jsxDEV6("div", {
|
|
@@ -4369,7 +4400,6 @@ var ActionInputAndOutputChip = ({
|
|
|
4369
4400
|
title: isNewOutput ? "New Output" : "Output"
|
|
4370
4401
|
}
|
|
4371
4402
|
}, undefined, false, undefined, this),
|
|
4372
|
-
isNewOutput && newSparkleComp,
|
|
4373
4403
|
(entry.error != null || entry.abortReason != null) && /* @__PURE__ */ jsxDEV18(Icon, {
|
|
4374
4404
|
noBackground: true,
|
|
4375
4405
|
icon: CircleX2,
|
|
@@ -4382,7 +4412,8 @@ var ActionInputAndOutputChip = ({
|
|
|
4382
4412
|
title: entry.status === "aborted" ? "Aborted" : "Error",
|
|
4383
4413
|
maxWidth: 340
|
|
4384
4414
|
}
|
|
4385
|
-
}, undefined, false, undefined, this)
|
|
4415
|
+
}, undefined, false, undefined, this),
|
|
4416
|
+
isNewOutput && newSparkleComp
|
|
4386
4417
|
]
|
|
4387
4418
|
}, undefined, true, undefined, this)
|
|
4388
4419
|
}, undefined, false, undefined, this);
|
|
@@ -4590,27 +4621,49 @@ function ActionEntryRow({
|
|
|
4590
4621
|
/* @__PURE__ */ jsxDEV19("div", {
|
|
4591
4622
|
style: { flex: 1 }
|
|
4592
4623
|
}, undefined, false, undefined, this),
|
|
4593
|
-
/* @__PURE__ */ jsxDEV19("
|
|
4624
|
+
/* @__PURE__ */ jsxDEV19("div", {
|
|
4594
4625
|
style: {
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4626
|
+
display: "flex",
|
|
4627
|
+
flexDirection: "column",
|
|
4628
|
+
alignItems: "end",
|
|
4629
|
+
gap: "0.35em",
|
|
4630
|
+
marginTop: "-0.2em",
|
|
4631
|
+
marginRight: "-0.2em"
|
|
4600
4632
|
},
|
|
4601
|
-
children:
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4633
|
+
children: [
|
|
4634
|
+
/* @__PURE__ */ jsxDEV19("span", {
|
|
4635
|
+
style: {
|
|
4636
|
+
display: "flex",
|
|
4637
|
+
color: DEVTOOL_COLOR_SEMANTIC_METADATA,
|
|
4638
|
+
fontSize: "10px",
|
|
4639
|
+
lineHeight: "1em",
|
|
4640
|
+
letterSpacing: "0.02em",
|
|
4641
|
+
fontFamily: "ui-sans-serif, system-ui, sans-serif",
|
|
4642
|
+
flexShrink: 0,
|
|
4643
|
+
opacity: 0.7
|
|
4644
|
+
},
|
|
4645
|
+
children: timestamp
|
|
4646
|
+
}, undefined, false, undefined, this),
|
|
4647
|
+
/* @__PURE__ */ jsxDEV19("span", {
|
|
4648
|
+
style: {
|
|
4649
|
+
display: "flex",
|
|
4650
|
+
color: DEVTOOL_COLOR_SEMANTIC_WARNING,
|
|
4651
|
+
lineHeight: "1em",
|
|
4652
|
+
fontSize: "11px",
|
|
4653
|
+
opacity: 0.9,
|
|
4654
|
+
flexShrink: 0
|
|
4655
|
+
},
|
|
4656
|
+
children: /* @__PURE__ */ jsxDEV19(DurationDisplay, {
|
|
4657
|
+
entry
|
|
4658
|
+
}, undefined, false, undefined, this)
|
|
4659
|
+
}, undefined, false, undefined, this)
|
|
4660
|
+
]
|
|
4661
|
+
}, undefined, true, undefined, this)
|
|
4609
4662
|
]
|
|
4610
4663
|
}, undefined, true, undefined, this)
|
|
4611
4664
|
]
|
|
4612
4665
|
}, undefined, true, undefined, this),
|
|
4613
|
-
hasBottomContent && /* @__PURE__ */ jsxDEV19("div", {
|
|
4666
|
+
hasBottomContent && (childEntries?.length ?? 0) > 0 && /* @__PURE__ */ jsxDEV19("div", {
|
|
4614
4667
|
style: {
|
|
4615
4668
|
display: "flex",
|
|
4616
4669
|
flexWrap: "wrap",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-code/action",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"build-types": "tsc --project tsconfig.build.json"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@nice-code/common-errors": "0.3.
|
|
48
|
-
"@nice-code/error": "0.3.
|
|
49
|
-
"@nice-code/util": "0.3.
|
|
47
|
+
"@nice-code/common-errors": "0.3.3",
|
|
48
|
+
"@nice-code/error": "0.3.3",
|
|
49
|
+
"@nice-code/util": "0.3.3",
|
|
50
50
|
"@standard-schema/spec": "^1.1.0",
|
|
51
51
|
"@tanstack/react-virtual": "^3.13.26",
|
|
52
52
|
"http-status-codes": "^2.3.0",
|