@contentful/field-editor-slug 2.1.5-canary.6 → 2.2.0

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.
@@ -299,8 +299,7 @@ describe('SlugEditor', ()=>{
299
299
  }));
300
300
  await (0, _react1.waitFor)(()=>{
301
301
  expect(sdk.cma.entry.getMany).toHaveBeenCalledTimes(1);
302
- expect(queryByText('Warning: This slug has already been published in another entry. Enable "Unique" validation in the content model to enforce this as an error.')).toBeInTheDocument();
303
- expect(queryByText('This slug has already been published in another entry')).not.toBeInTheDocument();
302
+ expect(queryByText('This slug has already been published in another entry.')).toBeInTheDocument();
304
303
  expect(getByTestId('cf-ui-text-input')).not.toHaveAttribute('aria-invalid');
305
304
  });
306
305
  });
@@ -152,7 +152,7 @@ function SlugEditorFieldStatic(props) {
152
152
  className: _styles.uniqueValidationError
153
153
  }, _core.i18n._({
154
154
  id: "FieldEditors.Slug.SlugEditorField.DuplicateSlugWarning",
155
- message: 'Warning: This slug has already been published in another entry. Enable "Unique" validation in the content model to enforce this as an error.'
155
+ message: "This slug has already been published in another entry."
156
156
  })));
157
157
  }
158
158
  function SlugEditorField(props) {
@@ -254,8 +254,7 @@ describe('SlugEditor', ()=>{
254
254
  }));
255
255
  await waitFor(()=>{
256
256
  expect(sdk.cma.entry.getMany).toHaveBeenCalledTimes(1);
257
- expect(queryByText('Warning: This slug has already been published in another entry. Enable "Unique" validation in the content model to enforce this as an error.')).toBeInTheDocument();
258
- expect(queryByText('This slug has already been published in another entry')).not.toBeInTheDocument();
257
+ expect(queryByText('This slug has already been published in another entry.')).toBeInTheDocument();
259
258
  expect(getByTestId('cf-ui-text-input')).not.toHaveAttribute('aria-invalid');
260
259
  });
261
260
  });
@@ -93,7 +93,7 @@ export function SlugEditorFieldStatic(props) {
93
93
  className: styles.uniqueValidationError
94
94
  }, $_i18n._({
95
95
  id: "FieldEditors.Slug.SlugEditorField.DuplicateSlugWarning",
96
- message: 'Warning: This slug has already been published in another entry. Enable "Unique" validation in the content model to enforce this as an error.'
96
+ message: "This slug has already been published in another entry."
97
97
  })));
98
98
  }
99
99
  export function SlugEditorField(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-slug",
3
- "version": "2.1.5-canary.6+2bae425d",
3
+ "version": "2.2.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "registry": "https://npm.pkg.github.com/"
61
61
  },
62
- "gitHead": "2bae425d639a833aea33f11ef8bd4082644a1250"
62
+ "gitHead": "7fc723378f59798b57cdf21c9e1503edca857311"
63
63
  }