toolcraft-openapi 0.0.155 → 0.0.156

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.
@@ -38,12 +38,12 @@
38
38
  },
39
39
  {
40
40
  "name": "toolcraft-openapi",
41
- "version": "0.0.155",
41
+ "version": "0.0.156",
42
42
  "license": "MIT"
43
43
  },
44
44
  {
45
45
  "name": "toolcraft-schema",
46
- "version": "0.0.155",
46
+ "version": "0.0.156",
47
47
  "license": "MIT"
48
48
  },
49
49
  {
@@ -786,14 +786,15 @@ function dispatchAction(state, action, confirmed, runtimeHandles, modalRows) {
786
786
  return mark(state, 0);
787
787
  }
788
788
  if (action.destructive === true && !confirmed) {
789
+ const actionLabel = typeof action.label === "function" ? action.label() : action.label;
789
790
  return {
790
791
  state: {
791
792
  ...state,
792
793
  modal: {
793
794
  kind: "confirm",
794
795
  title: action.destructive ? "Confirm destructive action" : "Confirm action",
795
- message: `${typeof action.label === "function" ? action.label() : action.label} ${rows.length === 1 ? rows[0].title : `${rows.length} items`}?`,
796
- confirmLabel: action.destructive ? "Delete" : "Yes",
796
+ message: `${actionLabel} ${rows.length === 1 ? rows[0].title : `${rows.length} items`}?`,
797
+ confirmLabel: actionLabel,
797
798
  cancelLabel: "Cancel",
798
799
  destructive: action.destructive === true,
799
800
  action,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.155",
3
+ "version": "0.0.156",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-openapi",
3
- "version": "0.0.155",
3
+ "version": "0.0.156",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "toolcraft-openapi-generate": "dist/bin/generate.js"
31
31
  },
32
32
  "dependencies": {
33
- "toolcraft": "0.0.155",
33
+ "toolcraft": "0.0.156",
34
34
  "auth-store": "^0.0.1",
35
35
  "fast-string-width": "^3.0.2",
36
36
  "fast-wrap-ansi": "^0.2.0",
@@ -46,7 +46,7 @@
46
46
  "directory": "packages/toolcraft-openapi"
47
47
  },
48
48
  "optionalDependencies": {
49
- "toolcraft-schema": "0.0.155",
49
+ "toolcraft-schema": "0.0.156",
50
50
  "toolcraft-design": "*",
51
51
  "@poe-code/frontmatter": "*"
52
52
  },