@contentful/field-editor-slug 0.13.0 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -3,203 +3,132 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [0.13.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.3...@contentful/field-editor-slug@0.13.0) (2021-10-06)
7
-
8
-
9
- ### Features
6
+ ## [1.0.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@1.0.0...@contentful/field-editor-slug@1.0.1) (2021-11-17)
10
7
 
11
- * [EXT-3161] bump app sdk to v4 ([#881](https://github.com/contentful/field-editors/issues/881)) ([9c4a2af](https://github.com/contentful/field-editors/commit/9c4a2af07da203d59fb5f15c3a5188ecc64b1d44))
8
+ ### Bug Fixes
12
9
 
10
+ - **card-actions:** update forma 36 to fix card actions click issue ([#927](https://github.com/contentful/field-editors/issues/927)) ([3dfdef2](https://github.com/contentful/field-editors/commit/3dfdef2c2b0045f12ea94ddafca89a8e9f25e7d0))
13
11
 
14
-
15
-
16
-
17
- ## [0.12.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.2...@contentful/field-editor-slug@0.12.3) (2021-09-17)
12
+ # [1.0.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.14.0...@contentful/field-editor-slug@1.0.0) (2021-11-04)
18
13
 
19
14
  **Note:** Version bump only for package @contentful/field-editor-slug
20
15
 
16
+ # [0.14.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.13.1...@contentful/field-editor-slug@0.14.0) (2021-11-04)
21
17
 
18
+ ### Features
22
19
 
20
+ - Forma v4 components adoption ([#805](https://github.com/contentful/field-editors/issues/805)) ([526bde6](https://github.com/contentful/field-editors/commit/526bde6e10e0ee3789705ec10fb31489af7ca59e))
23
21
 
22
+ ### BREAKING CHANGES
24
23
 
25
- ## [0.12.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.1...@contentful/field-editor-slug@0.12.2) (2021-09-16)
24
+ - adopts a new Forma v4 beta
26
25
 
27
- **Note:** Version bump only for package @contentful/field-editor-slug
26
+ ## [0.13.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.13.0...@contentful/field-editor-slug@0.13.1) (2021-10-14)
28
27
 
28
+ **Note:** Version bump only for package @contentful/field-editor-slug
29
29
 
30
+ # [0.13.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.3...@contentful/field-editor-slug@0.13.0) (2021-10-06)
30
31
 
32
+ ### Features
31
33
 
34
+ - [EXT-3161] bump app sdk to v4 ([#881](https://github.com/contentful/field-editors/issues/881)) ([9c4a2af](https://github.com/contentful/field-editors/commit/9c4a2af07da203d59fb5f15c3a5188ecc64b1d44))
32
35
 
33
- ## [0.12.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.0...@contentful/field-editor-slug@0.12.1) (2021-08-19)
36
+ ## [0.12.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.2...@contentful/field-editor-slug@0.12.3) (2021-09-17)
34
37
 
35
38
  **Note:** Version bump only for package @contentful/field-editor-slug
36
39
 
40
+ ## [0.12.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.1...@contentful/field-editor-slug@0.12.2) (2021-09-16)
37
41
 
42
+ **Note:** Version bump only for package @contentful/field-editor-slug
38
43
 
44
+ ## [0.12.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.0...@contentful/field-editor-slug@0.12.1) (2021-08-19)
39
45
 
46
+ **Note:** Version bump only for package @contentful/field-editor-slug
40
47
 
41
48
  # [0.12.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.11.1...@contentful/field-editor-slug@0.12.0) (2021-08-11)
42
49
 
43
-
44
50
  ### Features
45
51
 
46
- * throttle slug editor uniqueness requests ([#799](https://github.com/contentful/field-editors/issues/799)) ([bfadaf0](https://github.com/contentful/field-editors/commit/bfadaf03a2c1a032a56218287ec30929c3581a25))
47
-
48
-
49
-
50
-
52
+ - throttle slug editor uniqueness requests ([#799](https://github.com/contentful/field-editors/issues/799)) ([bfadaf0](https://github.com/contentful/field-editors/commit/bfadaf03a2c1a032a56218287ec30929c3581a25))
51
53
 
52
54
  ## [0.11.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.11.0...@contentful/field-editor-slug@0.11.1) (2021-07-29)
53
55
 
54
56
  **Note:** Version bump only for package @contentful/field-editor-slug
55
57
 
56
-
57
-
58
-
59
-
60
58
  # [0.11.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.6...@contentful/field-editor-slug@0.11.0) (2021-07-23)
61
59
 
62
-
63
60
  ### Features
64
61
 
65
- * 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
66
-
67
-
68
-
69
-
62
+ - 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
70
63
 
71
64
  ## [0.10.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.3...@contentful/field-editor-slug@0.10.6) (2021-07-06)
72
65
 
73
66
  **Note:** Version bump only for package @contentful/field-editor-slug
74
67
 
75
-
76
-
77
-
78
-
79
68
  ## [0.10.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.3...@contentful/field-editor-slug@0.10.5) (2021-07-06)
80
69
 
81
70
  **Note:** Version bump only for package @contentful/field-editor-slug
82
71
 
83
-
84
-
85
-
86
-
87
72
  ## [0.10.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.3...@contentful/field-editor-slug@0.10.4) (2021-06-23)
88
73
 
89
74
  **Note:** Version bump only for package @contentful/field-editor-slug
90
75
 
91
-
92
-
93
-
94
-
95
76
  ## [0.10.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.2...@contentful/field-editor-slug@0.10.3) (2021-06-23)
96
77
 
97
78
  **Note:** Version bump only for package @contentful/field-editor-slug
98
79
 
99
-
100
-
101
-
102
-
103
80
  ## [0.10.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.1...@contentful/field-editor-slug@0.10.2) (2021-06-22)
104
81
 
105
82
  **Note:** Version bump only for package @contentful/field-editor-slug
106
83
 
107
-
108
-
109
-
110
-
111
84
  ## [0.10.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.0...@contentful/field-editor-slug@0.10.1) (2021-03-05)
112
85
 
113
86
  **Note:** Version bump only for package @contentful/field-editor-slug
114
87
 
115
-
116
-
117
-
118
-
119
88
  # [0.10.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.9.1...@contentful/field-editor-slug@0.10.0) (2021-02-19)
120
89
 
121
-
122
90
  ### Features
123
91
 
124
- * bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
125
-
126
-
127
-
128
-
92
+ - bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
129
93
 
130
94
  ## [0.9.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.9.0...@contentful/field-editor-slug@0.9.1) (2021-02-09)
131
95
 
132
96
  **Note:** Version bump only for package @contentful/field-editor-slug
133
97
 
134
-
135
-
136
-
137
-
138
98
  # [0.9.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.8.0...@contentful/field-editor-slug@0.9.0) (2021-02-01)
139
99
 
140
-
141
100
  ### Features
142
101
 
143
- * swap ui-extension-sdk to app-sdk ([#576](https://github.com/contentful/field-editors/issues/576)) ([ac88b4b](https://github.com/contentful/field-editors/commit/ac88b4bd4573a72f521246fc8fcc873520ca90d4))
144
-
145
-
146
-
147
-
102
+ - swap ui-extension-sdk to app-sdk ([#576](https://github.com/contentful/field-editors/issues/576)) ([ac88b4b](https://github.com/contentful/field-editors/commit/ac88b4bd4573a72f521246fc8fcc873520ca90d4))
148
103
 
149
104
  # [0.8.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.7.0...@contentful/field-editor-slug@0.8.0) (2021-01-20)
150
105
 
151
-
152
106
  ### Features
153
107
 
154
- * update minimal forma-36 versions to use updated design ([#565](https://github.com/contentful/field-editors/issues/565)) ([332c734](https://github.com/contentful/field-editors/commit/332c734bfaf54f0e9773fcbb460d743b1f5459ec))
155
-
156
-
157
-
158
-
108
+ - update minimal forma-36 versions to use updated design ([#565](https://github.com/contentful/field-editors/issues/565)) ([332c734](https://github.com/contentful/field-editors/commit/332c734bfaf54f0e9773fcbb460d743b1f5459ec))
159
109
 
160
110
  # [0.7.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.5...@contentful/field-editor-slug@0.7.0) (2021-01-12)
161
111
 
162
-
163
112
  ### Features
164
113
 
165
- * update minimal required Forma version to the 3.73.12 ([#552](https://github.com/contentful/field-editors/issues/552)) ([2816fd9](https://github.com/contentful/field-editors/commit/2816fd960c28815faebf49a9ef8f4c4c0d91fc36))
166
-
167
-
168
-
169
-
114
+ - update minimal required Forma version to the 3.73.12 ([#552](https://github.com/contentful/field-editors/issues/552)) ([2816fd9](https://github.com/contentful/field-editors/commit/2816fd960c28815faebf49a9ef8f4c4c0d91fc36))
170
115
 
171
116
  ## [0.6.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.4...@contentful/field-editor-slug@0.6.5) (2020-12-16)
172
117
 
173
118
  **Note:** Version bump only for package @contentful/field-editor-slug
174
119
 
175
-
176
-
177
-
178
-
179
120
  ## [0.6.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.3...@contentful/field-editor-slug@0.6.4) (2020-11-06)
180
121
 
181
122
  **Note:** Version bump only for package @contentful/field-editor-slug
182
123
 
183
-
184
-
185
-
186
-
187
124
  ## [0.6.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.2...@contentful/field-editor-slug@0.6.3) (2020-11-06)
188
125
 
189
126
  **Note:** Version bump only for package @contentful/field-editor-slug
190
127
 
191
-
192
-
193
-
194
-
195
128
  ## [0.6.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.1...@contentful/field-editor-slug@0.6.2) (2020-10-28)
196
129
 
197
130
  **Note:** Version bump only for package @contentful/field-editor-slug
198
131
 
199
-
200
-
201
-
202
-
203
132
  ## [0.6.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.0...@contentful/field-editor-slug@0.6.1) (2020-08-24)
204
133
 
205
134
  **Note:** Version bump only for package @contentful/field-editor-slug
package/README.md CHANGED
@@ -7,6 +7,5 @@ npm install @contentful/field-editor-slug
7
7
  This package contains a React `SlugEditor` component that is used as a default for the `Symbol` field type in the Contentful web application.
8
8
 
9
9
  ```js
10
- import '@contentful/forma-36-react-components/dist/styles.css';
11
10
  import { SlugEditor } from '@contentful/field-editor-slug';
12
11
  ```
@@ -8,10 +8,11 @@ var React = require('react');
8
8
  var React__default = _interopDefault(React);
9
9
  var fieldEditorShared = require('@contentful/field-editor-shared');
10
10
  var useDebounce = require('use-debounce');
11
- var forma36ReactComponents = require('@contentful/forma-36-react-components');
12
11
  var getSlug = _interopDefault(require('speakingurl'));
13
- var tokens = _interopDefault(require('@contentful/forma-36-tokens'));
12
+ var tokens = _interopDefault(require('@contentful/f36-tokens'));
14
13
  var emotion = require('emotion');
14
+ var f36Components = require('@contentful/f36-components');
15
+ var f36Icons = require('@contentful/f36-icons');
15
16
 
16
17
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
17
18
  try {
@@ -983,9 +984,7 @@ var inputContainer = /*#__PURE__*/emotion.css({
983
984
  position: 'relative'
984
985
  });
985
986
  var input = /*#__PURE__*/emotion.css({
986
- input: {
987
- paddingLeft: '40px'
988
- }
987
+ paddingLeft: '40px'
989
988
  });
990
989
  var icon = /*#__PURE__*/emotion.css({
991
990
  position: 'absolute',
@@ -1072,13 +1071,12 @@ function SlugEditorFieldStatic(props) {
1072
1071
  var status = useUniqueChecker(props);
1073
1072
  return React__default.createElement("div", {
1074
1073
  className: inputContainer
1075
- }, React__default.createElement(forma36ReactComponents.Icon, {
1076
- icon: "Link",
1074
+ }, React__default.createElement(f36Icons.LinkIcon, {
1077
1075
  className: icon
1078
- }), React__default.createElement(forma36ReactComponents.TextInput, {
1076
+ }), React__default.createElement(f36Components.TextInput, {
1079
1077
  className: input,
1080
- error: hasError || status === 'duplicate',
1081
- disabled: isDisabled,
1078
+ isInvalid: hasError || status === 'duplicate',
1079
+ isDisabled: isDisabled,
1082
1080
  value: value || '',
1083
1081
  onChange: function onChange(e) {
1084
1082
  setValue(e.target.value);
@@ -1094,10 +1092,9 @@ function SlugEditorFieldStatic(props) {
1094
1092
  }
1095
1093
  }), status === 'checking' && React__default.createElement("div", {
1096
1094
  className: spinnerContainer
1097
- }, React__default.createElement(forma36ReactComponents.Spinner, {
1098
- testId: "slug-editor-spinner",
1099
- size: "default"
1100
- })), status === 'duplicate' && React__default.createElement(forma36ReactComponents.ValidationMessage, {
1095
+ }, React__default.createElement(f36Components.Spinner, {
1096
+ testId: "slug-editor-spinner"
1097
+ })), status === 'duplicate' && React__default.createElement(f36Components.ValidationMessage, {
1101
1098
  testId: "slug-editor-duplicate-error",
1102
1099
  className: uniqueValidationError
1103
1100
  }, "This slug has already been published in another entry"));