@wordpress/element 5.7.0 → 5.9.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.9.0 (2023-04-26)
6
+
7
+ ## 5.8.0 (2023-04-12)
8
+
5
9
  ## 5.7.0 (2023-03-29)
6
10
 
7
11
  ## 5.6.0 (2023-03-15)
package/README.md CHANGED
@@ -139,8 +139,7 @@ _Returns_
139
139
 
140
140
  ### createElement
141
141
 
142
- Returns a new element of given type. Type can be either a string tag name or
143
- another function which itself returns an element.
142
+ Returns a new element of given type. Type can be either a string tag name or another function which itself returns an element.
144
143
 
145
144
  _Parameters_
146
145
 
@@ -154,9 +153,7 @@ _Returns_
154
153
 
155
154
  ### createInterpolateElement
156
155
 
157
- This function creates an interpolated element from a passed in string with
158
- specific tags matching how the string should be converted to an element via
159
- the conversion map value.
156
+ This function creates an interpolated element from a passed in string with specific tags matching how the string should be converted to an element via the conversion map value.
160
157
 
161
158
  _Usage_
162
159
 
@@ -199,9 +196,7 @@ _Parameters_
199
196
 
200
197
  ### createRef
201
198
 
202
- Returns an object tracking a reference to a rendered element via its
203
- `current` property as either a DOMElement or Element, dependent upon the
204
- type of element rendered with the ref attribute.
199
+ Returns an object tracking a reference to a rendered element via its `current` property as either a DOMElement or Element, dependent upon the type of element rendered with the ref attribute.
205
200
 
206
201
  _Returns_
207
202
 
@@ -237,10 +232,7 @@ _Parameters_
237
232
 
238
233
  ### forwardRef
239
234
 
240
- Component enhancer used to enable passing a ref to its wrapped component.
241
- Pass a function argument which receives `props` and `ref` as its arguments,
242
- returning an element using the forwarded ref. The return value is a new
243
- component which forwards its ref.
235
+ Component enhancer used to enable passing a ref to its wrapped component. Pass a function argument which receives `props` and `ref` as its arguments, returning an element using the forwarded ref. The return value is a new component which forwards its ref.
244
236
 
245
237
  _Parameters_
246
238
 
@@ -314,8 +306,7 @@ _Related_
314
306
 
315
307
  ### Platform
316
308
 
317
- Component used to detect the current Platform being used.
318
- Use Platform.OS === 'web' to detect if running on web enviroment.
309
+ Component used to detect the current Platform being used. Use Platform.OS === 'web' to detect if running on web enviroment.
319
310
 
320
311
  This is the same concept as the React Native implementation.
321
312
 
@@ -338,10 +329,7 @@ const placeholderLabel = Platform.select( {
338
329
 
339
330
  ### RawHTML
340
331
 
341
- Component used as equivalent of Fragment with unescaped HTML, in cases where
342
- it is desirable to render dangerous HTML without needing a wrapper element.
343
- To preserve additional props, a `div` wrapper _will_ be created if any props
344
- aside from `children` are passed.
332
+ Component used as equivalent of Fragment with unescaped HTML, in cases where it is desirable to render dangerous HTML without needing a wrapper element. To preserve additional props, a `div` wrapper _will_ be created if any props aside from `children` are passed.
345
333
 
346
334
  _Parameters_
347
335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/element",
3
- "version": "5.7.0",
3
+ "version": "5.9.0",
4
4
  "description": "Element React module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,7 +31,7 @@
31
31
  "@babel/runtime": "^7.16.0",
32
32
  "@types/react": "^18.0.21",
33
33
  "@types/react-dom": "^18.0.6",
34
- "@wordpress/escape-html": "^2.30.0",
34
+ "@wordpress/escape-html": "^2.32.0",
35
35
  "change-case": "^4.1.2",
36
36
  "is-plain-object": "^5.0.0",
37
37
  "react": "^18.2.0",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "d5c28a67b11e91e3e4b8e90346bfcb90909364d6"
43
+ "gitHead": "6df0c62d43b8901414ccd22ffbe56eaa99d012a6"
44
44
  }