@contentful/field-editor-slug 1.7.1 → 1.7.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.
|
@@ -19,6 +19,7 @@ _export(exports, {
|
|
|
19
19
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
20
|
const _f36components = require("@contentful/f36-components");
|
|
21
21
|
const _f36icons = require("@contentful/f36-icons");
|
|
22
|
+
const _core = require("@lingui/core");
|
|
22
23
|
const _usedebounce = require("use-debounce");
|
|
23
24
|
const _makeSlug = require("./services/makeSlug");
|
|
24
25
|
const _styles = /*#__PURE__*/ _interop_require_wildcard(require("./styles"));
|
|
@@ -139,7 +140,10 @@ function SlugEditorFieldStatic(props) {
|
|
|
139
140
|
})), status === 'duplicate' && /*#__PURE__*/ _react.createElement(_f36components.ValidationMessage, {
|
|
140
141
|
testId: "slug-editor-duplicate-error",
|
|
141
142
|
className: _styles.uniqueValidationError
|
|
142
|
-
},
|
|
143
|
+
}, _core.i18n._({
|
|
144
|
+
id: "FieldEditors.Slug.SlugEditorField.DuplicateSlugError",
|
|
145
|
+
message: "This slug has already been published in another entry"
|
|
146
|
+
})));
|
|
143
147
|
}
|
|
144
148
|
function SlugEditorField(props) {
|
|
145
149
|
const { titleValue, isOptionalLocaleWithFallback, locale, createdAt, value } = props;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Spinner, TextInput, ValidationMessage } from '@contentful/f36-components';
|
|
3
3
|
import { LinkIcon } from '@contentful/f36-icons';
|
|
4
|
+
import { i18n as $_i18n } from "@lingui/core";
|
|
4
5
|
import { useDebounce } from 'use-debounce';
|
|
5
6
|
import { makeSlug } from './services/makeSlug';
|
|
6
7
|
import * as styles from './styles';
|
|
@@ -80,7 +81,10 @@ export function SlugEditorFieldStatic(props) {
|
|
|
80
81
|
})), status === 'duplicate' && /*#__PURE__*/ React.createElement(ValidationMessage, {
|
|
81
82
|
testId: "slug-editor-duplicate-error",
|
|
82
83
|
className: styles.uniqueValidationError
|
|
83
|
-
},
|
|
84
|
+
}, $_i18n._({
|
|
85
|
+
id: "FieldEditors.Slug.SlugEditorField.DuplicateSlugError",
|
|
86
|
+
message: "This slug has already been published in another entry"
|
|
87
|
+
})));
|
|
84
88
|
}
|
|
85
89
|
export function SlugEditorField(props) {
|
|
86
90
|
const { titleValue, isOptionalLocaleWithFallback, locale, createdAt, value } = props;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-slug",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@contentful/f36-components": "^4.70.0",
|
|
39
39
|
"@contentful/f36-icons": "^4.29.0",
|
|
40
40
|
"@contentful/f36-tokens": "^4.0.5",
|
|
41
|
-
"@contentful/field-editor-shared": "^2.
|
|
41
|
+
"@contentful/field-editor-shared": "^2.10.0",
|
|
42
42
|
"@types/speakingurl": "^13.0.2",
|
|
43
43
|
"emotion": "^10.0.17",
|
|
44
44
|
"lodash": "^4.17.15",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://npm.pkg.github.com/"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "be09f0d73046834685814d083141f5166cb64457"
|
|
62
62
|
}
|