@comet/cms-admin 9.0.0-canary-20251211112608 → 9.0.0-canary-20251222112948

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DamTableFilter.d.ts","sourceRoot":"","sources":["../../../../src/dam/DataGrid/filter/DamTableFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,UAAU,EAIlB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,UAAU,mBAAmB;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,cAAc,GAAI,kCAAkC,mBAAmB,4CAgCnF,CAAC"}
1
+ {"version":3,"file":"DamTableFilter.d.ts","sourceRoot":"","sources":["../../../../src/dam/DataGrid/filter/DamTableFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,UAAU,EAIlB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,UAAU,mBAAmB;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,cAAc,GAAI,kCAAkC,mBAAmB,4CA+BnF,CAAC"}
@@ -18,7 +18,6 @@ var DamTableFilter = exports.DamTableFilter = function DamTableFilter(_ref) {
18
18
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Field, {
19
19
  name: "searchText",
20
20
  component: _admin.FinalFormSearchTextField,
21
- clearable: true,
22
21
  disableContentTranslation: true,
23
22
  fieldContainerProps: {
24
23
  fieldMargin: "never"
@@ -95,6 +95,12 @@ var FinalFormFileUpload = exports.FinalFormFileUpload = function FinalFormFileUp
95
95
  });
96
96
  });
97
97
  setTooManyFilesSelected(tooManyFilesWereDropped);
98
+ if (!(tooManyFilesWereDropped || !acceptedFiles.length)) {
99
+ _context2.n = 1;
100
+ break;
101
+ }
102
+ return _context2.a(2);
103
+ case 1:
98
104
  rejectedFiles.map(function (rejection) {
99
105
  var failedFile = {
100
106
  name: rejection.file.name,
@@ -117,12 +123,6 @@ var FinalFormFileUpload = exports.FinalFormFileUpload = function FinalFormFileUp
117
123
  if (singleFile) {
118
124
  onChange(undefined);
119
125
  }
120
- if (!(tooManyFilesWereDropped || !acceptedFiles.length)) {
121
- _context2.n = 1;
122
- break;
123
- }
124
- return _context2.a(2);
125
- case 1:
126
126
  setUploadingFiles(acceptedFiles.map(function (file) {
127
127
  return {
128
128
  name: file.name,
@@ -251,7 +251,7 @@ var FinalFormFileUpload = exports.FinalFormFileUpload = function FinalFormFileUp
251
251
  files: files,
252
252
  multiple: multiple,
253
253
  maxFiles: maxFiles,
254
- error: typeof maxFiles !== "undefined" && tooManyFilesSelected ? _admin.commonFileErrorMessages.tooManyFiles(maxFiles) : undefined,
254
+ error: tooManyFilesSelected ? _admin.commonFileErrorMessages.tooManyFiles(maxFiles ? maxFiles : 1) : undefined,
255
255
  getDownloadUrl: function getDownloadUrl(file) {
256
256
  return isDownloadableFile(file) && file.downloadUrl ? "".concat(apiUrl).concat(file.downloadUrl) : undefined;
257
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comet/cms-admin",
3
- "version": "9.0.0-canary-20251211112608",
3
+ "version": "9.0.0-canary-20251222112948",
4
4
  "description": "Comet CMS Admin package",
5
5
  "repository": {
6
6
  "directory": "packages/admin/cms-admin",
@@ -39,10 +39,10 @@
39
39
  "slugify": "^1.6.6",
40
40
  "use-debounce": "^10.0.5",
41
41
  "uuid": "^11.1.0",
42
- "@comet/admin": "9.0.0-canary-20251211112608",
43
- "@comet/admin-date-time": "9.0.0-canary-20251211112608",
44
- "@comet/admin-icons": "9.0.0-canary-20251211112608",
45
- "@comet/admin-rte": "9.0.0-canary-20251211112608"
42
+ "@comet/admin": "9.0.0-canary-20251222112948",
43
+ "@comet/admin-date-time": "9.0.0-canary-20251222112948",
44
+ "@comet/admin-icons": "9.0.0-canary-20251222112948",
45
+ "@comet/admin-rte": "9.0.0-canary-20251222112948"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@apollo/client": "^3.14.0",
@@ -63,13 +63,12 @@
63
63
  "@types/draft-js": "^0.11.20",
64
64
  "@types/file-saver": "^2.0.7",
65
65
  "@types/final-form-set-field-touched": "^1.0.3",
66
- "@types/jest": "^29.5.14",
67
66
  "@types/js-cookie": "^3.0.6",
68
67
  "@types/lodash.escaperegexp": "^4.1.9",
69
68
  "@types/lodash.isequal": "^4.5.8",
70
69
  "@types/mime-db": "^1.43.6",
71
70
  "@types/node": "^24.9.1",
72
- "@types/react": "^18.3.23",
71
+ "@types/react": "^18.3.27",
73
72
  "@types/react-dom": "^18.3.7",
74
73
  "@types/react-router": "^5.1.20",
75
74
  "@types/react-router-dom": "^5.3.3",
@@ -79,9 +78,6 @@
79
78
  "eslint": "^9.30.1",
80
79
  "final-form": "^4.20.10",
81
80
  "graphql": "^16.0.0",
82
- "jest": "^29.7.0",
83
- "jest-environment-jsdom": "^29.7.0",
84
- "jest-junit": "^16.0.0",
85
81
  "npm-run-all2": "^8.0.0",
86
82
  "prettier": "^3.6.2",
87
83
  "react": "^18.3.1",
@@ -92,11 +88,11 @@
92
88
  "react-intl": "^7.1.11",
93
89
  "react-router": "^5.3.4",
94
90
  "react-router-dom": "^5.3.4",
95
- "ts-jest": "^29.4.0",
96
91
  "typescript": "5.9.3",
97
- "@comet/admin-babel-preset": "9.0.0-canary-20251211112608",
98
- "@comet/cli": "9.0.0-canary-20251211112608",
99
- "@comet/eslint-config": "9.0.0-canary-20251211112608"
92
+ "vitest": "^4.0.16",
93
+ "@comet/admin-babel-preset": "9.0.0-canary-20251222112948",
94
+ "@comet/cli": "9.0.0-canary-20251222112948",
95
+ "@comet/eslint-config": "9.0.0-canary-20251222112948"
100
96
  },
101
97
  "peerDependencies": {
102
98
  "@apollo/client": "^3.7.0",
@@ -139,7 +135,7 @@
139
135
  "start": "run-p gql:types generate-block-types && run-p start:babel start:types",
140
136
  "start:babel": "pnpm exec babel ./src -x \".ts,.tsx\" -d lib -w",
141
137
  "start:types": "tsc --project ./tsconfig.json --emitDeclarationOnly --watch --preserveWatchOutput",
142
- "test": "jest --verbose=true",
143
- "test:watch": "jest --watch"
138
+ "test": "vitest --run",
139
+ "test:watch": "vitest --watch"
144
140
  }
145
141
  }
@@ -1,3 +0,0 @@
1
- declare const _default: "";
2
- export default _default;
3
- //# sourceMappingURL=stub-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stub-file.d.ts","sourceRoot":"","sources":["../../src/testing/stub-file.ts"],"names":[],"mappings":"wBAGe,EAAE;AAAjB,wBAAkB"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- // This is a stub file for testing purposes. It is used in the jest.config.ts (moduleNameMapper) in order to mock certain file types, or modules that are in ESM format
8
- // Documentation of the use of stub files in jest's moduleNameMapper can be found here: https://jestjs.io/docs/configuration#modulenamemapper-objectstring-string--arraystring
9
- var _default = exports["default"] = "";