@firecms/collection_editor 3.0.0-canary.46 → 3.0.0-canary.48

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,16 +1,16 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.46",
4
+ "version": "3.0.0-canary.48",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "source": "src/index.ts",
9
9
  "dependencies": {
10
- "@firecms/data_import_export": "^3.0.0-canary.46",
11
- "@firecms/formex": "^3.0.0-canary.46",
12
- "@firecms/schema_inference": "^3.0.0-canary.46",
13
- "@firecms/ui": "^3.0.0-canary.46",
10
+ "@firecms/data_import_export": "^3.0.0-canary.48",
11
+ "@firecms/formex": "^3.0.0-canary.48",
12
+ "@firecms/schema_inference": "^3.0.0-canary.48",
13
+ "@firecms/ui": "^3.0.0-canary.48",
14
14
  "json5": "^2.2.3",
15
15
  "prism-react-renderer": "^2.3.1"
16
16
  },
@@ -54,10 +54,10 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@jest/globals": "^29.7.0",
57
- "@types/react": "^18.2.79",
58
- "@types/react-dom": "^18.2.25",
59
- "@typescript-eslint/eslint-plugin": "^7.7.0",
60
- "@typescript-eslint/parser": "^7.7.0",
57
+ "@types/react": "^18.3.1",
58
+ "@types/react-dom": "^18.3.0",
59
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
60
+ "@typescript-eslint/parser": "^7.8.0",
61
61
  "@vitejs/plugin-react": "^4.2.1",
62
62
  "eslint": "^8.57.0",
63
63
  "eslint-config-standard": "^17.1.0",
@@ -65,13 +65,13 @@
65
65
  "eslint-plugin-n": "^16.6.2",
66
66
  "eslint-plugin-promise": "^6.1.1",
67
67
  "eslint-plugin-react": "^7.34.1",
68
- "eslint-plugin-react-hooks": "^4.6.0",
68
+ "eslint-plugin-react-hooks": "^4.6.2",
69
69
  "jest": "^29.7.0",
70
- "react-router": "^6.22.3",
71
- "react-router-dom": "^6.22.3",
70
+ "react-router": "^6.23.0",
71
+ "react-router-dom": "^6.23.0",
72
72
  "ts-jest": "^29.1.2",
73
73
  "typescript": "^5.4.5",
74
- "vite": "^5.2.9",
74
+ "vite": "^5.2.11",
75
75
  "vite-plugin-fonts": "^0.7.0"
76
76
  },
77
77
  "files": [
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "7af477c065bf21042e06cb957803665ee504a712"
84
+ "gitHead": "271073e231ff9a4946d1a39bf901c891b834f341"
85
85
  }
@@ -5,6 +5,7 @@ import {
5
5
  AutocompleteItem,
6
6
  BooleanSwitchWithLabel,
7
7
  Chip,
8
+ ClearIcon,
8
9
  cn,
9
10
  Container,
10
11
  DebouncedTextField,
@@ -245,11 +246,19 @@ export function CollectionDetailsForm({
245
246
  setFieldTouched("sideDialogWidth", true);
246
247
  const value = e.target.value;
247
248
  if (!value) {
248
- setFieldValue("sideDialogWidth", undefined);
249
+ setFieldValue("sideDialogWidth", null);
249
250
  } else if (!isNaN(Number(value))) {
250
251
  setFieldValue("sideDialogWidth", Number(value));
251
252
  }
252
253
  }}
254
+ endAdornment={<IconButton
255
+ size={"small"}
256
+ onClick={() => {
257
+ setFieldValue("sideDialogWidth", null);
258
+ }}
259
+ disabled={!values.sideDialogWidth}>
260
+ <ClearIcon size={"small"}/>
261
+ </IconButton>}
253
262
  value={values.sideDialogWidth ?? ""}
254
263
  label={"Side dialog width"}/>
255
264
  <FieldCaption error={showErrors && Boolean(errors.singularName)}>