@wordpress/views 1.7.1-next.v.202602271551.0 → 1.7.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,IAAI,mDAAE,MAAM,iCAIzB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { View, SupportedLayouts, Form } from '@wordpress/dataviews';
|
|
2
|
+
/**
|
|
3
|
+
* A hook that retrieves the view configuration for a given entity
|
|
4
|
+
* from the core data store.
|
|
5
|
+
*
|
|
6
|
+
* @param {Object} params
|
|
7
|
+
* @param {string} params.kind The kind of the entity.
|
|
8
|
+
* @param {string} params.name The name of the entity.
|
|
9
|
+
* @return {Object} An object containing the `default_view`, `default_layouts`, and `view_list` configuration for the entity.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useViewConfig({ kind, name }: {
|
|
12
|
+
kind: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}): {
|
|
15
|
+
default_view: View;
|
|
16
|
+
default_layouts: SupportedLayouts;
|
|
17
|
+
view_list: Array<any>;
|
|
18
|
+
form: Form | undefined;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=use-view-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-view-config.d.ts","sourceRoot":"","sources":["../src/use-view-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAOzE;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAE,EAC9B,IAAI,EACJ,IAAI,EACJ,EAAE;IACF,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb,GAAI;IACJ,YAAY,EAAE,IAAI,CAAC;IACnB,eAAe,EAAE,gBAAgB,CAAC;IAClC,SAAS,EAAE,KAAK,CAAE,GAAG,CAAE,CAAC;IACxB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACvB,CAOA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/views",
|
|
3
|
-
"version": "1.7.1
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "View persistence and management for WordPress DataViews.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
},
|
|
42
42
|
"types": "build-types",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@wordpress/data": "^10.40.1
|
|
45
|
-
"@wordpress/dataviews": "^12.
|
|
46
|
-
"@wordpress/element": "^6.40.1
|
|
47
|
-
"@wordpress/preferences": "^4.40.1
|
|
44
|
+
"@wordpress/data": "^10.40.1",
|
|
45
|
+
"@wordpress/dataviews": "^12.0.1",
|
|
46
|
+
"@wordpress/element": "^6.40.1",
|
|
47
|
+
"@wordpress/preferences": "^4.40.1",
|
|
48
48
|
"dequal": "^2.0.3"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "adb6623c9f32490cfc73c7ac7f122578c1f10c65"
|
|
54
54
|
}
|