@wordpress/dataviews 10.1.0 → 10.1.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 +6 -0
- package/README.md +1 -1
- package/build/components/dataviews-item-actions/index.js +5 -0
- package/build/components/dataviews-item-actions/index.js.map +2 -2
- package/build/dataform-layouts/index.js +2 -22
- package/build/dataform-layouts/index.js.map +2 -2
- package/build/dataform-layouts/normalize-form-fields.js.map +1 -1
- package/build-module/components/dataviews-item-actions/index.js +5 -0
- package/build-module/components/dataviews-item-actions/index.js.map +2 -2
- package/build-module/dataform-layouts/index.js +2 -22
- package/build-module/dataform-layouts/index.js.map +2 -2
- package/build-module/dataform-layouts/normalize-form-fields.js.map +1 -1
- package/build-types/components/dataviews-item-actions/index.d.ts.map +1 -1
- package/build-types/dataform-layouts/index.d.ts +2 -2
- package/build-types/dataform-layouts/index.d.ts.map +1 -1
- package/build-types/dataform-layouts/normalize-form-fields.d.ts.map +1 -1
- package/build-types/stories/dataform.story.d.ts.map +1 -1
- package/build-wp/index.js +6 -22
- package/package.json +15 -15
- package/src/components/dataviews-item-actions/index.tsx +7 -0
- package/src/dataform-layouts/index.tsx +4 -22
- package/src/dataform-layouts/normalize-form-fields.ts +1 -1
- package/src/stories/dataform.story.tsx +1 -0
- package/src/test/normalize-form-fields.ts +28 -7
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -28,11 +28,17 @@ describe( 'normalizeFormFields', () => {
|
|
|
28
28
|
expect( result ).toEqual( [
|
|
29
29
|
{
|
|
30
30
|
id: 'field1',
|
|
31
|
-
layout: {
|
|
31
|
+
layout: {
|
|
32
|
+
type: 'regular',
|
|
33
|
+
labelPosition: 'top',
|
|
34
|
+
},
|
|
32
35
|
},
|
|
33
36
|
{
|
|
34
37
|
id: 'field2',
|
|
35
|
-
layout: {
|
|
38
|
+
layout: {
|
|
39
|
+
type: 'regular',
|
|
40
|
+
labelPosition: 'top',
|
|
41
|
+
},
|
|
36
42
|
},
|
|
37
43
|
] );
|
|
38
44
|
} );
|
|
@@ -51,12 +57,18 @@ describe( 'normalizeFormFields', () => {
|
|
|
51
57
|
expect( result ).toEqual( [
|
|
52
58
|
{
|
|
53
59
|
id: 'field1',
|
|
54
|
-
layout: {
|
|
60
|
+
layout: {
|
|
61
|
+
type: 'regular',
|
|
62
|
+
labelPosition: 'top',
|
|
63
|
+
},
|
|
55
64
|
},
|
|
56
65
|
{
|
|
57
66
|
id: 'field2',
|
|
58
67
|
label: 'Field 2',
|
|
59
|
-
layout: {
|
|
68
|
+
layout: {
|
|
69
|
+
type: 'regular',
|
|
70
|
+
labelPosition: 'top',
|
|
71
|
+
},
|
|
60
72
|
},
|
|
61
73
|
] );
|
|
62
74
|
} );
|
|
@@ -72,7 +84,10 @@ describe( 'normalizeFormFields', () => {
|
|
|
72
84
|
expect( result ).toEqual( [
|
|
73
85
|
{
|
|
74
86
|
id: 'field1',
|
|
75
|
-
layout: {
|
|
87
|
+
layout: {
|
|
88
|
+
type: 'regular',
|
|
89
|
+
labelPosition: 'top',
|
|
90
|
+
},
|
|
76
91
|
},
|
|
77
92
|
] );
|
|
78
93
|
} );
|
|
@@ -86,7 +101,10 @@ describe( 'normalizeFormFields', () => {
|
|
|
86
101
|
expect( result ).toEqual( [
|
|
87
102
|
{
|
|
88
103
|
id: 'field1',
|
|
89
|
-
layout: {
|
|
104
|
+
layout: {
|
|
105
|
+
type: 'regular',
|
|
106
|
+
labelPosition: 'side',
|
|
107
|
+
},
|
|
90
108
|
},
|
|
91
109
|
] );
|
|
92
110
|
} );
|
|
@@ -245,7 +263,10 @@ describe( 'normalizeFormFields', () => {
|
|
|
245
263
|
expect( result ).toEqual( [
|
|
246
264
|
{
|
|
247
265
|
id: 'field1',
|
|
248
|
-
layout: {
|
|
266
|
+
layout: {
|
|
267
|
+
type: 'regular',
|
|
268
|
+
labelPosition: 'top',
|
|
269
|
+
},
|
|
249
270
|
},
|
|
250
271
|
{
|
|
251
272
|
id: 'field2',
|