@nice-code/action 0.3.2 → 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.
@@ -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: { display: "flex", flexDirection: "column", gap: "1em" },
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: { display: "flex", flexWrap: "wrap", gap: "6px", alignItems: "center" },
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: { color, fontFamily: MONO3, fontSize: "10px", opacity: 0.8 },
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: { color: DEVTOOL_COLOR_TEXT_MUTED, fontFamily: MONO3, fontSize: "10px" },
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", {
@@ -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("span", {
4624
+ /* @__PURE__ */ jsxDEV19("div", {
4594
4625
  style: {
4595
- color: DEVTOOL_COLOR_SEMANTIC_METADATA,
4596
- fontSize: "10px",
4597
- letterSpacing: "0.02em",
4598
- fontFamily: "ui-sans-serif, system-ui, sans-serif",
4599
- flexShrink: 0
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: timestamp
4602
- }, undefined, false, undefined, this),
4603
- /* @__PURE__ */ jsxDEV19("span", {
4604
- style: { color: DEVTOOL_COLOR_SEMANTIC_WARNING, fontSize: "11px", flexShrink: 0 },
4605
- children: /* @__PURE__ */ jsxDEV19(DurationDisplay, {
4606
- entry
4607
- }, undefined, false, undefined, this)
4608
- }, undefined, false, undefined, this)
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.2",
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.2",
48
- "@nice-code/error": "0.3.2",
49
- "@nice-code/util": "0.3.2",
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",