@wordpress/fields 0.40.1 → 0.40.2-next.v.202606191442.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/README.md +28 -0
- package/build/components/media-edit/index.cjs.map +2 -2
- package/build/fields/description/index.cjs +69 -0
- package/build/fields/description/index.cjs.map +7 -0
- package/build/fields/index.cjs +19 -2
- package/build/fields/index.cjs.map +2 -2
- package/build/fields/last-edited/index.cjs +51 -0
- package/build/fields/last-edited/index.cjs.map +7 -0
- package/build/fields/last-edited/last-edited-date-view.cjs +40 -0
- package/build/fields/last-edited/last-edited-date-view.cjs.map +7 -0
- package/build/fields/parent/parent-edit.cjs +1 -1
- package/build/fields/parent/parent-edit.cjs.map +2 -2
- package/build/fields/pattern-title/view.cjs.map +2 -2
- package/build/fields/posts-page-title/index.cjs +47 -0
- package/build/fields/posts-page-title/index.cjs.map +7 -0
- package/build/fields/posts-per-page/index.cjs +42 -0
- package/build/fields/posts-per-page/index.cjs.map +7 -0
- package/build/fields/{date/scheduled → scheduled-date}/index.cjs +6 -6
- package/build/fields/scheduled-date/index.cjs.map +7 -0
- package/build/fields/site-discussion/index.cjs +58 -0
- package/build/fields/site-discussion/index.cjs.map +7 -0
- package/build/fields/template-title/index.cjs +1 -1
- package/build/fields/template-title/index.cjs.map +2 -2
- package/build/types.cjs.map +1 -1
- package/build-module/components/media-edit/index.mjs.map +2 -2
- package/build-module/fields/description/index.mjs +44 -0
- package/build-module/fields/description/index.mjs.map +7 -0
- package/build-module/fields/index.mjs +27 -13
- package/build-module/fields/index.mjs.map +2 -2
- package/build-module/fields/last-edited/index.mjs +20 -0
- package/build-module/fields/last-edited/index.mjs.map +7 -0
- package/build-module/fields/last-edited/last-edited-date-view.mjs +19 -0
- package/build-module/fields/last-edited/last-edited-date-view.mjs.map +7 -0
- package/build-module/fields/parent/parent-edit.mjs +1 -1
- package/build-module/fields/parent/parent-edit.mjs.map +2 -2
- package/build-module/fields/pattern-title/view.mjs.map +2 -2
- package/build-module/fields/posts-page-title/index.mjs +26 -0
- package/build-module/fields/posts-page-title/index.mjs.map +7 -0
- package/build-module/fields/posts-per-page/index.mjs +21 -0
- package/build-module/fields/posts-per-page/index.mjs.map +7 -0
- package/build-module/fields/{date/scheduled → scheduled-date}/index.mjs +3 -3
- package/build-module/fields/scheduled-date/index.mjs.map +7 -0
- package/build-module/fields/site-discussion/index.mjs +37 -0
- package/build-module/fields/site-discussion/index.mjs.map +7 -0
- package/build-module/fields/template-title/index.mjs +1 -1
- package/build-module/fields/template-title/index.mjs.map +2 -2
- package/build-types/components/media-edit/index.d.ts.map +1 -1
- package/build-types/fields/description/index.d.ts +20 -0
- package/build-types/fields/description/index.d.ts.map +1 -0
- package/build-types/fields/index.d.ts +6 -1
- package/build-types/fields/index.d.ts.map +1 -1
- package/build-types/fields/last-edited/index.d.ts +14 -0
- package/build-types/fields/last-edited/index.d.ts.map +1 -0
- package/build-types/fields/last-edited/last-edited-date-view.d.ts +8 -0
- package/build-types/fields/last-edited/last-edited-date-view.d.ts.map +1 -0
- package/build-types/fields/pattern-title/view.d.ts.map +1 -1
- package/build-types/fields/posts-page-title/index.d.ts +14 -0
- package/build-types/fields/posts-page-title/index.d.ts.map +1 -0
- package/build-types/fields/posts-per-page/index.d.ts +14 -0
- package/build-types/fields/posts-per-page/index.d.ts.map +1 -0
- package/build-types/fields/{date/scheduled → scheduled-date}/index.d.ts +1 -1
- package/build-types/fields/scheduled-date/index.d.ts.map +1 -0
- package/build-types/fields/site-discussion/index.d.ts +14 -0
- package/build-types/fields/site-discussion/index.d.ts.map +1 -0
- package/build-types/types.d.ts +10 -0
- package/build-types/types.d.ts.map +1 -1
- package/package.json +33 -28
- package/src/components/media-edit/index.tsx +0 -1
- package/src/fields/description/index.tsx +64 -0
- package/src/fields/index.ts +9 -1
- package/src/fields/last-edited/index.tsx +29 -0
- package/src/fields/last-edited/last-edited-date-view.tsx +26 -0
- package/src/fields/pattern-title/view.tsx +0 -1
- package/src/fields/posts-page-title/index.ts +35 -0
- package/src/fields/posts-per-page/index.ts +30 -0
- package/src/fields/{date/scheduled → scheduled-date}/index.tsx +1 -1
- package/src/fields/site-discussion/index.ts +48 -0
- package/src/fields/template-title/index.ts +1 -1
- package/src/types.ts +10 -0
- package/build/fields/date/scheduled/index.cjs.map +0 -7
- package/build-module/fields/date/scheduled/index.mjs.map +0 -7
- package/build-types/fields/date/scheduled/index.d.ts.map +0 -1
- package/build-types/index.native.d.ts +0 -1
- package/build-types/index.native.d.ts.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// packages/fields/src/fields/description/index.tsx
|
|
2
|
+
import { decodeEntities } from "@wordpress/html-entities";
|
|
3
|
+
import { __ } from "@wordpress/i18n";
|
|
4
|
+
import { Text } from "@wordpress/ui";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var isCustomTemplate = (item) => item.source === "custom" && !item.has_theme_file && item.is_custom;
|
|
7
|
+
var getValue = ({ item }) => decodeEntities(item.description || "");
|
|
8
|
+
var render = ({ item }) => {
|
|
9
|
+
const { description } = item;
|
|
10
|
+
return description && /* @__PURE__ */ jsx(Text, { children: decodeEntities(description) });
|
|
11
|
+
};
|
|
12
|
+
var descriptionField = {
|
|
13
|
+
id: "description",
|
|
14
|
+
type: "text",
|
|
15
|
+
label: __("Description"),
|
|
16
|
+
placeholder: __("Add a description"),
|
|
17
|
+
getValue,
|
|
18
|
+
render,
|
|
19
|
+
Edit: {
|
|
20
|
+
control: "textarea",
|
|
21
|
+
rows: 4
|
|
22
|
+
},
|
|
23
|
+
isVisible: isCustomTemplate,
|
|
24
|
+
enableSorting: false,
|
|
25
|
+
filterBy: false,
|
|
26
|
+
enableGlobalSearch: true
|
|
27
|
+
};
|
|
28
|
+
var readOnlyDescriptionField = {
|
|
29
|
+
id: "description_readonly",
|
|
30
|
+
type: "text",
|
|
31
|
+
label: __("Description"),
|
|
32
|
+
getValue,
|
|
33
|
+
render,
|
|
34
|
+
readOnly: true,
|
|
35
|
+
isVisible: (item) => !isCustomTemplate(item) && !!item.description,
|
|
36
|
+
enableSorting: false,
|
|
37
|
+
filterBy: false
|
|
38
|
+
};
|
|
39
|
+
var description_default = descriptionField;
|
|
40
|
+
export {
|
|
41
|
+
description_default as default,
|
|
42
|
+
readOnlyDescriptionField
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/description/index.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { __ } from '@wordpress/i18n';\nimport { Text } from '@wordpress/ui';\n\n/**\n * Internal dependencies\n */\nimport type { Template } from '../../types';\n\n// A template is editable only when it's a user-created custom template.\n// Theme-provided templates surface a read-only description instead.\nconst isCustomTemplate = ( item: Template ) =>\n\titem.source === 'custom' && ! item.has_theme_file && item.is_custom;\n\nconst getValue = ( { item }: { item: Template } ) =>\n\tdecodeEntities( item.description || '' );\n\nconst render = ( { item }: { item: Template } ) => {\n\tconst { description } = item;\n\treturn description && <Text>{ decodeEntities( description ) }</Text>;\n};\n\nconst descriptionField: Field< Template > = {\n\tid: 'description',\n\ttype: 'text',\n\tlabel: __( 'Description' ),\n\tplaceholder: __( 'Add a description' ),\n\tgetValue,\n\trender,\n\tEdit: {\n\t\tcontrol: 'textarea',\n\t\trows: 4,\n\t},\n\tisVisible: isCustomTemplate,\n\tenableSorting: false,\n\tfilterBy: false,\n\tenableGlobalSearch: true,\n};\n\n/**\n * Read-only description field for theme-provided templates, which can't be\n * edited. Shares the display config with `descriptionField` but renders as\n * read-only and is only visible when a description exists.\n */\nexport const readOnlyDescriptionField: Field< Template > = {\n\tid: 'description_readonly',\n\ttype: 'text',\n\tlabel: __( 'Description' ),\n\tgetValue,\n\trender,\n\treadOnly: true,\n\tisVisible: ( item ) => ! isCustomTemplate( item ) && !! item.description,\n\tenableSorting: false,\n\tfilterBy: false,\n};\n\n/**\n * Description field for templates.\n */\nexport default descriptionField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,sBAAsB;AAC/B,SAAS,UAAU;AACnB,SAAS,YAAY;AAiBE;AARvB,IAAM,mBAAmB,CAAE,SAC1B,KAAK,WAAW,YAAY,CAAE,KAAK,kBAAkB,KAAK;AAE3D,IAAM,WAAW,CAAE,EAAE,KAAK,MACzB,eAAgB,KAAK,eAAe,EAAG;AAExC,IAAM,SAAS,CAAE,EAAE,KAAK,MAA2B;AAClD,QAAM,EAAE,YAAY,IAAI;AACxB,SAAO,eAAe,oBAAC,QAAO,yBAAgB,WAAY,GAAG;AAC9D;AAEA,IAAM,mBAAsC;AAAA,EAC3C,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,aAAc;AAAA,EACzB,aAAa,GAAI,mBAAoB;AAAA,EACrC;AAAA,EACA;AAAA,EACA,MAAM;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,EACX,eAAe;AAAA,EACf,UAAU;AAAA,EACV,oBAAoB;AACrB;AAOO,IAAM,2BAA8C;AAAA,EAC1D,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,aAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,WAAW,CAAE,SAAU,CAAE,iBAAkB,IAAK,KAAK,CAAC,CAAE,KAAK;AAAA,EAC7D,eAAe;AAAA,EACf,UAAU;AACX;AAKA,IAAO,sBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -14,33 +14,47 @@ import { default as default13 } from "./comment-status/index.mjs";
|
|
|
14
14
|
import { default as default14 } from "./ping-status/index.mjs";
|
|
15
15
|
import { default as default15 } from "./discussion/index.mjs";
|
|
16
16
|
import { default as default16 } from "./date/index.mjs";
|
|
17
|
-
import { default as default17 } from "./date/
|
|
18
|
-
import { default as default18 } from "./
|
|
19
|
-
import { default as default19 } from "./
|
|
20
|
-
import { default as default20 } from "./
|
|
21
|
-
import { default as default21 } from "./
|
|
22
|
-
import {
|
|
23
|
-
|
|
17
|
+
import { default as default17 } from "./scheduled-date/index.mjs";
|
|
18
|
+
import { default as default18 } from "./last-edited/index.mjs";
|
|
19
|
+
import { default as default19 } from "./author/index.mjs";
|
|
20
|
+
import { default as default20 } from "./notes/index.mjs";
|
|
21
|
+
import { default as default21 } from "./excerpt/index.mjs";
|
|
22
|
+
import {
|
|
23
|
+
default as default22,
|
|
24
|
+
readOnlyDescriptionField
|
|
25
|
+
} from "./description/index.mjs";
|
|
26
|
+
import { default as default23 } from "./format/index.mjs";
|
|
27
|
+
import { default as default24 } from "./post-content-info/index.mjs";
|
|
28
|
+
import { default as default25 } from "./sticky/index.mjs";
|
|
29
|
+
import { default as default26 } from "./posts-per-page/index.mjs";
|
|
30
|
+
import { default as default27 } from "./site-discussion/index.mjs";
|
|
31
|
+
import { default as default28 } from "./posts-page-title/index.mjs";
|
|
24
32
|
export {
|
|
25
|
-
|
|
33
|
+
default19 as authorField,
|
|
26
34
|
default13 as commentStatusField,
|
|
27
35
|
default16 as dateField,
|
|
36
|
+
default22 as descriptionField,
|
|
28
37
|
default15 as discussionField,
|
|
29
|
-
|
|
38
|
+
default21 as excerptField,
|
|
30
39
|
default8 as featuredImageField,
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
default23 as formatField,
|
|
41
|
+
default18 as lastEditedDateField,
|
|
42
|
+
default20 as notesField,
|
|
33
43
|
default7 as orderField,
|
|
34
44
|
default4 as pageTitleField,
|
|
35
45
|
default10 as parentField,
|
|
36
46
|
default11 as passwordField,
|
|
37
47
|
default6 as patternTitleField,
|
|
38
48
|
default14 as pingStatusField,
|
|
39
|
-
|
|
49
|
+
default24 as postContentInfoField,
|
|
50
|
+
default28 as postsPageTitleField,
|
|
51
|
+
default26 as postsPerPageField,
|
|
52
|
+
readOnlyDescriptionField,
|
|
40
53
|
default17 as scheduledDateField,
|
|
54
|
+
default27 as siteDiscussionField,
|
|
41
55
|
default2 as slugField,
|
|
42
56
|
default12 as statusField,
|
|
43
|
-
|
|
57
|
+
default25 as stickyField,
|
|
44
58
|
default9 as templateField,
|
|
45
59
|
default5 as templateTitleField,
|
|
46
60
|
default3 as titleField
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/fields/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { default as slugField } from './slug';\nexport { default as titleField } from './title';\nexport { default as pageTitleField } from './page-title';\nexport { default as templateTitleField } from './template-title';\nexport { default as patternTitleField } from './pattern-title';\nexport { default as orderField } from './order';\nexport { default as featuredImageField } from './featured-image';\nexport { default as templateField } from './template';\nexport { default as parentField } from './parent';\nexport { default as passwordField } from './password';\nexport { default as statusField } from './status';\nexport { default as commentStatusField } from './comment-status';\nexport { default as pingStatusField } from './ping-status';\nexport { default as discussionField } from './discussion';\nexport { default as dateField } from './date';\nexport { default as scheduledDateField } from './date
|
|
5
|
-
"mappings": ";AAAA,SAAoB,WAAXA,gBAA4B;AACrC,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAAqC;AAC9C,SAAoB,WAAXA,gBAAoC;AAC7C,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAqC;AAC9C,SAAoB,WAAXA,gBAAgC;AACzC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAqC;AAC9C,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAA4B;AACrC,SAAoB,WAAXA,iBAAqC;AAC9C,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA6B;AACtC,SAAoB,WAAXA,iBAA+B;AACxC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAuC;AAChD,SAAoB,WAAXA,iBAA8B;",
|
|
4
|
+
"sourcesContent": ["export { default as slugField } from './slug';\nexport { default as titleField } from './title';\nexport { default as pageTitleField } from './page-title';\nexport { default as templateTitleField } from './template-title';\nexport { default as patternTitleField } from './pattern-title';\nexport { default as orderField } from './order';\nexport { default as featuredImageField } from './featured-image';\nexport { default as templateField } from './template';\nexport { default as parentField } from './parent';\nexport { default as passwordField } from './password';\nexport { default as statusField } from './status';\nexport { default as commentStatusField } from './comment-status';\nexport { default as pingStatusField } from './ping-status';\nexport { default as discussionField } from './discussion';\nexport { default as dateField } from './date';\nexport { default as scheduledDateField } from './scheduled-date';\nexport { default as lastEditedDateField } from './last-edited';\nexport { default as authorField } from './author';\nexport { default as notesField } from './notes';\nexport { default as excerptField } from './excerpt';\nexport {\n\tdefault as descriptionField,\n\treadOnlyDescriptionField,\n} from './description';\nexport { default as formatField } from './format';\nexport { default as postContentInfoField } from './post-content-info';\nexport { default as stickyField } from './sticky';\nexport { default as postsPerPageField } from './posts-per-page';\nexport { default as siteDiscussionField } from './site-discussion';\nexport { default as postsPageTitleField } from './posts-page-title';\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAoB,WAAXA,gBAA4B;AACrC,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAAqC;AAC9C,SAAoB,WAAXA,gBAAoC;AAC7C,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAqC;AAC9C,SAAoB,WAAXA,gBAAgC;AACzC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAqC;AAC9C,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAA4B;AACrC,SAAoB,WAAXA,iBAAqC;AAC9C,SAAoB,WAAXA,iBAAsC;AAC/C,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA6B;AACtC,SAAoB,WAAXA,iBAA+B;AACxC;AAAA,EACY,WAAXA;AAAA,EACA;AAAA,OACM;AACP,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAuC;AAChD,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAsC;AAC/C,SAAoB,WAAXA,iBAAsC;",
|
|
6
6
|
"names": ["default"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// packages/fields/src/fields/last-edited/index.tsx
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
import LastEditedDateView from "./last-edited-date-view.mjs";
|
|
4
|
+
var lastEditedDateField = {
|
|
5
|
+
id: "last_edited_date",
|
|
6
|
+
type: "datetime",
|
|
7
|
+
label: __("Last edited"),
|
|
8
|
+
render: LastEditedDateView,
|
|
9
|
+
getValue: ({ item }) => item.modified,
|
|
10
|
+
isVisible: (item) => !!item.modified,
|
|
11
|
+
readOnly: true,
|
|
12
|
+
enableHiding: false,
|
|
13
|
+
enableSorting: false,
|
|
14
|
+
filterBy: false
|
|
15
|
+
};
|
|
16
|
+
var last_edited_default = lastEditedDateField;
|
|
17
|
+
export {
|
|
18
|
+
last_edited_default as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/last-edited/index.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport LastEditedDateView from './last-edited-date-view';\n\nconst lastEditedDateField: Field< BasePost > = {\n\tid: 'last_edited_date',\n\ttype: 'datetime',\n\tlabel: __( 'Last edited' ),\n\trender: LastEditedDateView,\n\tgetValue: ( { item } ) => item.modified,\n\tisVisible: ( item ) => !! item.modified,\n\treadOnly: true,\n\tenableHiding: false,\n\tenableSorting: false,\n\tfilterBy: false,\n};\n\n/**\n * Last edited date field for BasePost.\n */\nexport default lastEditedDateField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAMnB,OAAO,wBAAwB;AAE/B,IAAM,sBAAyC;AAAA,EAC9C,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,aAAc;AAAA,EACzB,QAAQ;AAAA,EACR,UAAU,CAAE,EAAE,KAAK,MAAO,KAAK;AAAA,EAC/B,WAAW,CAAE,SAAU,CAAC,CAAE,KAAK;AAAA,EAC/B,UAAU;AAAA,EACV,cAAc;AAAA,EACd,eAAe;AAAA,EACf,UAAU;AACX;AAKA,IAAO,sBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// packages/fields/src/fields/last-edited/last-edited-date-view.tsx
|
|
2
|
+
import { Text } from "@wordpress/ui";
|
|
3
|
+
import { __, sprintf } from "@wordpress/i18n";
|
|
4
|
+
import { humanTimeDiff } from "@wordpress/date";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function LastEditedDateView({ item }) {
|
|
7
|
+
if (!item.modified) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ jsx(Text, { children: sprintf(
|
|
11
|
+
// translators: %s: Human-readable time difference, e.g. "2 days ago".
|
|
12
|
+
__("Last edited %s."),
|
|
13
|
+
humanTimeDiff(item.modified)
|
|
14
|
+
) });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
LastEditedDateView as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=last-edited-date-view.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/last-edited/last-edited-date-view.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Text } from '@wordpress/ui';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { humanTimeDiff } from '@wordpress/date';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nexport default function LastEditedDateView( { item }: { item: BasePost } ) {\n\tif ( ! item.modified ) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<Text>\n\t\t\t{ sprintf(\n\t\t\t\t// translators: %s: Human-readable time difference, e.g. \"2 days ago\".\n\t\t\t\t__( 'Last edited %s.' ),\n\t\t\t\thumanTimeDiff( item.modified )\n\t\t\t) }\n\t\t</Text>\n\t);\n}\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,YAAY;AACrB,SAAS,IAAI,eAAe;AAC5B,SAAS,qBAAqB;AAY5B;AALa,SAAR,mBAAqC,EAAE,KAAK,GAAwB;AAC1E,MAAK,CAAE,KAAK,UAAW;AACtB,WAAO;AAAA,EACR;AACA,SACC,oBAAC,QACE;AAAA;AAAA,IAED,GAAI,iBAAkB;AAAA,IACtB,cAAe,KAAK,QAAS;AAAA,EAC9B,GACD;AAEF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -109,7 +109,7 @@ function PageAttributesParent({
|
|
|
109
109
|
const mappedNodes = tree2.map((treeNode) => [
|
|
110
110
|
{
|
|
111
111
|
value: treeNode.id,
|
|
112
|
-
label: "
|
|
112
|
+
label: "— ".repeat(level) + decodeEntities(treeNode.name),
|
|
113
113
|
rawName: treeNode.name
|
|
114
114
|
},
|
|
115
115
|
...getOptionsFromTree(treeNode.children || [], level + 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/fields/parent/parent-edit.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n/**\n * WordPress dependencies\n */\nimport { ComboboxControl, ExternalLink } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport {\n\tcreateInterpolateElement,\n\tuseCallback,\n\tuseMemo,\n\tuseState,\n} from '@wordpress/element';\n// @ts-ignore\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { DataFormControlProps } from '@wordpress/dataviews';\nimport { debounce } from '@wordpress/compose';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { filterURLForDisplay } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport { getTitleWithFallbackName } from './utils';\n\ntype TreeBase = {\n\tid: number;\n\tname: string;\n\t[ key: string ]: any;\n};\n\ntype TreeWithParent = TreeBase & {\n\tparent: number;\n};\n\ntype TreeWithoutParent = TreeBase & {\n\tparent: null;\n};\n\ntype Tree = TreeWithParent | TreeWithoutParent;\n\nfunction buildTermsTree( flatTerms: Tree[] ) {\n\tconst flatTermsWithParentAndChildren = flatTerms.map( ( term ) => {\n\t\treturn {\n\t\t\tchildren: [],\n\t\t\t...term,\n\t\t};\n\t} );\n\n\t// All terms should have a `parent` because we're about to index them by it.\n\tif (\n\t\tflatTermsWithParentAndChildren.some(\n\t\t\t( { parent } ) => parent === null || parent === undefined\n\t\t)\n\t) {\n\t\treturn flatTermsWithParentAndChildren as TreeWithParent[];\n\t}\n\n\tconst termsByParent = (\n\t\tflatTermsWithParentAndChildren as TreeWithParent[]\n\t ).reduce(\n\t\t( acc, term ) => {\n\t\t\tconst { parent } = term;\n\t\t\tif ( ! acc[ parent ] ) {\n\t\t\t\tacc[ parent ] = [];\n\t\t\t}\n\t\t\tacc[ parent ].push( term );\n\t\t\treturn acc;\n\t\t},\n\t\t{} as Record< string, Array< TreeWithParent > >\n\t);\n\n\tconst fillWithChildren = (\n\t\tterms: Array< TreeWithParent >\n\t): Array< TreeWithParent > => {\n\t\treturn terms.map( ( term ) => {\n\t\t\tconst children = termsByParent[ term.id ];\n\t\t\treturn {\n\t\t\t\t...term,\n\t\t\t\tchildren:\n\t\t\t\t\tchildren && children.length\n\t\t\t\t\t\t? fillWithChildren( children )\n\t\t\t\t\t\t: [],\n\t\t\t};\n\t\t} );\n\t};\n\n\treturn fillWithChildren( termsByParent[ '0' ] || [] );\n}\n\nexport const getItemPriority = ( name: string, searchValue: string ) => {\n\tconst normalizedName = removeAccents( name || '' ).toLowerCase();\n\tconst normalizedSearch = removeAccents( searchValue || '' ).toLowerCase();\n\tif ( normalizedName === normalizedSearch ) {\n\t\treturn 0;\n\t}\n\n\tif ( normalizedName.startsWith( normalizedSearch ) ) {\n\t\treturn normalizedName.length;\n\t}\n\n\treturn Infinity;\n};\n\nexport function PageAttributesParent( {\n\tdata,\n\tonChangeControl,\n}: {\n\tdata: BasePost;\n\tonChangeControl: ( newValue: number ) => void;\n} ) {\n\tconst [ fieldValue, setFieldValue ] = useState< string >( '' );\n\n\tconst pageId = data.parent;\n\tconst postId = data.id;\n\tconst postTypeSlug = data.type;\n\n\tconst { parentPostTitle, pageItems, isHierarchical } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord, getEntityRecords, getPostType } =\n\t\t\t\tselect( coreStore );\n\n\t\t\tconst postTypeInfo = getPostType( postTypeSlug );\n\n\t\t\tconst postIsHierarchical =\n\t\t\t\tpostTypeInfo?.hierarchical && postTypeInfo.viewable;\n\n\t\t\tconst parentPost = pageId\n\t\t\t\t? getEntityRecord< BasePost >(\n\t\t\t\t\t\t'postType',\n\t\t\t\t\t\tpostTypeSlug,\n\t\t\t\t\t\tpageId\n\t\t\t\t )\n\t\t\t\t: null;\n\n\t\t\tconst query = {\n\t\t\t\tper_page: 100,\n\t\t\t\texclude: postId,\n\t\t\t\tparent_exclude: postId,\n\t\t\t\torderby: 'menu_order',\n\t\t\t\torder: 'asc',\n\t\t\t\t_fields: 'id,title,parent',\n\t\t\t\t...( !! fieldValue && {\n\t\t\t\t\t// Perform a search by relevance when the field is changed.\n\t\t\t\t\tsearch: fieldValue,\n\t\t\t\t\torderby: 'relevance',\n\t\t\t\t\tsearch_columns: [ 'post_title' ],\n\t\t\t\t} ),\n\t\t\t};\n\n\t\t\treturn {\n\t\t\t\tisHierarchical: postIsHierarchical,\n\t\t\t\tparentPostTitle: parentPost\n\t\t\t\t\t? getTitleWithFallbackName( parentPost )\n\t\t\t\t\t: '',\n\t\t\t\tpageItems: postIsHierarchical\n\t\t\t\t\t? getEntityRecords< BasePost >(\n\t\t\t\t\t\t\t'postType',\n\t\t\t\t\t\t\tpostTypeSlug,\n\t\t\t\t\t\t\tquery\n\t\t\t\t\t )\n\t\t\t\t\t: null,\n\t\t\t};\n\t\t},\n\t\t[ fieldValue, pageId, postId, postTypeSlug ]\n\t);\n\n\t/**\n\t * This logic has been copied from https://github.com/WordPress/gutenberg/blob/0249771b519d5646171fb9fae422006c8ab773f2/packages/editor/src/components/page-attributes/parent.js#L106.\n\t */\n\tconst parentOptions = useMemo( () => {\n\t\tconst getOptionsFromTree = (\n\t\t\ttree: Array< Tree >,\n\t\t\tlevel = 0\n\t\t): Array< {\n\t\t\tvalue: number;\n\t\t\tlabel: string;\n\t\t\trawName: string;\n\t\t} > => {\n\t\t\tconst mappedNodes = tree.map( ( treeNode ) => [\n\t\t\t\t{\n\t\t\t\t\tvalue: treeNode.id,\n\t\t\t\t\tlabel:\n\t\t\t\t\t\t'
|
|
5
|
-
"mappings": ";AAGA,OAAO,mBAAmB;AAK1B,SAAS,iBAAiB,oBAAoB;AAC9C,SAAS,iBAAiB;AAC1B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AAEP,SAAS,SAAS,iBAAiB;AAEnC,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAC/B,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H,QAAM,CAAE,YAAY,aAAc,IAAI,SAAoB,EAAG;AAE7D,QAAM,SAAS,KAAK;AACpB,QAAM,SAAS,KAAK;AACpB,QAAM,eAAe,KAAK;AAE1B,QAAM,EAAE,iBAAiB,WAAW,eAAe,IAAI;AAAA,IACtD,CAAE,WAAY;AACb,YAAM,EAAE,iBAAiB,kBAAkB,YAAY,IACtD,OAAQ,SAAU;AAEnB,YAAM,eAAe,YAAa,YAAa;AAE/C,YAAM,qBACL,cAAc,gBAAgB,aAAa;AAE5C,YAAM,aAAa,SAChB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACA,IACA;AAEH,YAAM,QAAQ;AAAA,QACb,UAAU;AAAA,QACV,SAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,SAAS;AAAA,QACT,OAAO;AAAA,QACP,SAAS;AAAA,QACT,GAAK,CAAC,CAAE,cAAc;AAAA;AAAA,UAErB,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,gBAAgB,CAAE,YAAa;AAAA,QAChC;AAAA,MACD;AAEA,aAAO;AAAA,QACN,gBAAgB;AAAA,QAChB,iBAAiB,aACd,yBAA0B,UAAW,IACrC;AAAA,QACH,WAAW,qBACR;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACA,IACA;AAAA,MACJ;AAAA,IACD;AAAA,IACA,CAAE,YAAY,QAAQ,QAAQ,YAAa;AAAA,EAC5C;AAKA,QAAM,gBAAgB,QAAS,MAAM;AACpC,UAAM,qBAAqB,CAC1BA,OACA,QAAQ,MAKF;AACN,YAAM,cAAcA,MAAK,IAAK,CAAE,aAAc;AAAA,QAC7C;AAAA,UACC,OAAO,SAAS;AAAA,UAChB,OACC,
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n/**\n * WordPress dependencies\n */\nimport { ComboboxControl, ExternalLink } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport {\n\tcreateInterpolateElement,\n\tuseCallback,\n\tuseMemo,\n\tuseState,\n} from '@wordpress/element';\n// @ts-ignore\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { DataFormControlProps } from '@wordpress/dataviews';\nimport { debounce } from '@wordpress/compose';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { filterURLForDisplay } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport { getTitleWithFallbackName } from './utils';\n\ntype TreeBase = {\n\tid: number;\n\tname: string;\n\t[ key: string ]: any;\n};\n\ntype TreeWithParent = TreeBase & {\n\tparent: number;\n};\n\ntype TreeWithoutParent = TreeBase & {\n\tparent: null;\n};\n\ntype Tree = TreeWithParent | TreeWithoutParent;\n\nfunction buildTermsTree( flatTerms: Tree[] ) {\n\tconst flatTermsWithParentAndChildren = flatTerms.map( ( term ) => {\n\t\treturn {\n\t\t\tchildren: [],\n\t\t\t...term,\n\t\t};\n\t} );\n\n\t// All terms should have a `parent` because we're about to index them by it.\n\tif (\n\t\tflatTermsWithParentAndChildren.some(\n\t\t\t( { parent } ) => parent === null || parent === undefined\n\t\t)\n\t) {\n\t\treturn flatTermsWithParentAndChildren as TreeWithParent[];\n\t}\n\n\tconst termsByParent = (\n\t\tflatTermsWithParentAndChildren as TreeWithParent[]\n\t ).reduce(\n\t\t( acc, term ) => {\n\t\t\tconst { parent } = term;\n\t\t\tif ( ! acc[ parent ] ) {\n\t\t\t\tacc[ parent ] = [];\n\t\t\t}\n\t\t\tacc[ parent ].push( term );\n\t\t\treturn acc;\n\t\t},\n\t\t{} as Record< string, Array< TreeWithParent > >\n\t);\n\n\tconst fillWithChildren = (\n\t\tterms: Array< TreeWithParent >\n\t): Array< TreeWithParent > => {\n\t\treturn terms.map( ( term ) => {\n\t\t\tconst children = termsByParent[ term.id ];\n\t\t\treturn {\n\t\t\t\t...term,\n\t\t\t\tchildren:\n\t\t\t\t\tchildren && children.length\n\t\t\t\t\t\t? fillWithChildren( children )\n\t\t\t\t\t\t: [],\n\t\t\t};\n\t\t} );\n\t};\n\n\treturn fillWithChildren( termsByParent[ '0' ] || [] );\n}\n\nexport const getItemPriority = ( name: string, searchValue: string ) => {\n\tconst normalizedName = removeAccents( name || '' ).toLowerCase();\n\tconst normalizedSearch = removeAccents( searchValue || '' ).toLowerCase();\n\tif ( normalizedName === normalizedSearch ) {\n\t\treturn 0;\n\t}\n\n\tif ( normalizedName.startsWith( normalizedSearch ) ) {\n\t\treturn normalizedName.length;\n\t}\n\n\treturn Infinity;\n};\n\nexport function PageAttributesParent( {\n\tdata,\n\tonChangeControl,\n}: {\n\tdata: BasePost;\n\tonChangeControl: ( newValue: number ) => void;\n} ) {\n\tconst [ fieldValue, setFieldValue ] = useState< string >( '' );\n\n\tconst pageId = data.parent;\n\tconst postId = data.id;\n\tconst postTypeSlug = data.type;\n\n\tconst { parentPostTitle, pageItems, isHierarchical } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord, getEntityRecords, getPostType } =\n\t\t\t\tselect( coreStore );\n\n\t\t\tconst postTypeInfo = getPostType( postTypeSlug );\n\n\t\t\tconst postIsHierarchical =\n\t\t\t\tpostTypeInfo?.hierarchical && postTypeInfo.viewable;\n\n\t\t\tconst parentPost = pageId\n\t\t\t\t? getEntityRecord< BasePost >(\n\t\t\t\t\t\t'postType',\n\t\t\t\t\t\tpostTypeSlug,\n\t\t\t\t\t\tpageId\n\t\t\t\t )\n\t\t\t\t: null;\n\n\t\t\tconst query = {\n\t\t\t\tper_page: 100,\n\t\t\t\texclude: postId,\n\t\t\t\tparent_exclude: postId,\n\t\t\t\torderby: 'menu_order',\n\t\t\t\torder: 'asc',\n\t\t\t\t_fields: 'id,title,parent',\n\t\t\t\t...( !! fieldValue && {\n\t\t\t\t\t// Perform a search by relevance when the field is changed.\n\t\t\t\t\tsearch: fieldValue,\n\t\t\t\t\torderby: 'relevance',\n\t\t\t\t\tsearch_columns: [ 'post_title' ],\n\t\t\t\t} ),\n\t\t\t};\n\n\t\t\treturn {\n\t\t\t\tisHierarchical: postIsHierarchical,\n\t\t\t\tparentPostTitle: parentPost\n\t\t\t\t\t? getTitleWithFallbackName( parentPost )\n\t\t\t\t\t: '',\n\t\t\t\tpageItems: postIsHierarchical\n\t\t\t\t\t? getEntityRecords< BasePost >(\n\t\t\t\t\t\t\t'postType',\n\t\t\t\t\t\t\tpostTypeSlug,\n\t\t\t\t\t\t\tquery\n\t\t\t\t\t )\n\t\t\t\t\t: null,\n\t\t\t};\n\t\t},\n\t\t[ fieldValue, pageId, postId, postTypeSlug ]\n\t);\n\n\t/**\n\t * This logic has been copied from https://github.com/WordPress/gutenberg/blob/0249771b519d5646171fb9fae422006c8ab773f2/packages/editor/src/components/page-attributes/parent.js#L106.\n\t */\n\tconst parentOptions = useMemo( () => {\n\t\tconst getOptionsFromTree = (\n\t\t\ttree: Array< Tree >,\n\t\t\tlevel = 0\n\t\t): Array< {\n\t\t\tvalue: number;\n\t\t\tlabel: string;\n\t\t\trawName: string;\n\t\t} > => {\n\t\t\tconst mappedNodes = tree.map( ( treeNode ) => [\n\t\t\t\t{\n\t\t\t\t\tvalue: treeNode.id,\n\t\t\t\t\tlabel:\n\t\t\t\t\t\t'— '.repeat( level ) + decodeEntities( treeNode.name ),\n\t\t\t\t\trawName: treeNode.name,\n\t\t\t\t},\n\t\t\t\t...getOptionsFromTree( treeNode.children || [], level + 1 ),\n\t\t\t] );\n\n\t\t\tconst sortedNodes = mappedNodes.sort( ( [ a ], [ b ] ) => {\n\t\t\t\tconst priorityA = getItemPriority( a.rawName, fieldValue );\n\t\t\t\tconst priorityB = getItemPriority( b.rawName, fieldValue );\n\t\t\t\treturn priorityA >= priorityB ? 1 : -1;\n\t\t\t} );\n\n\t\t\treturn sortedNodes.flat();\n\t\t};\n\n\t\tif ( ! pageItems ) {\n\t\t\treturn [];\n\t\t}\n\n\t\tlet tree = pageItems.map( ( item ) => ( {\n\t\t\tid: item.id as number,\n\t\t\tparent: item.parent ?? null,\n\t\t\tname: getTitleWithFallbackName( item ),\n\t\t} ) );\n\n\t\t// Only build a hierarchical tree when not searching.\n\t\tif ( ! fieldValue ) {\n\t\t\ttree = buildTermsTree( tree );\n\t\t}\n\n\t\tconst opts = getOptionsFromTree( tree );\n\n\t\t// Ensure the current parent is in the options list.\n\t\tconst optsHasParent = opts.find( ( item ) => item.value === pageId );\n\t\tif ( pageId && parentPostTitle && ! optsHasParent ) {\n\t\t\topts.unshift( {\n\t\t\t\tvalue: pageId,\n\t\t\t\tlabel: parentPostTitle,\n\t\t\t\trawName: '',\n\t\t\t} );\n\t\t}\n\t\treturn opts.map( ( option ) => ( {\n\t\t\t...option,\n\t\t\tvalue: option.value.toString(),\n\t\t} ) );\n\t}, [ pageItems, fieldValue, parentPostTitle, pageId ] );\n\n\tif ( ! isHierarchical ) {\n\t\treturn null;\n\t}\n\n\t/**\n\t * Handle user input.\n\t *\n\t * @param {string} inputValue The current value of the input field.\n\t */\n\tconst handleKeydown = ( inputValue: string ) => {\n\t\tsetFieldValue( inputValue );\n\t};\n\n\t/**\n\t * Handle author selection.\n\t *\n\t * @param {Object} selectedPostId The selected Author.\n\t */\n\tconst handleChange = ( selectedPostId: string | null | undefined ) => {\n\t\tif ( selectedPostId ) {\n\t\t\treturn onChangeControl( parseInt( selectedPostId, 10 ) ?? 0 );\n\t\t}\n\n\t\tonChangeControl( 0 );\n\t};\n\n\treturn (\n\t\t<ComboboxControl\n\t\t\t__next40pxDefaultSize\n\t\t\tlabel={ __( 'Parent' ) }\n\t\t\thelp={ __( 'Choose a parent page.' ) }\n\t\t\tvalue={ pageId?.toString() }\n\t\t\toptions={ parentOptions }\n\t\t\tonFilterValueChange={ debounce(\n\t\t\t\t( value: unknown ) => handleKeydown( value as string ),\n\t\t\t\t300\n\t\t\t) }\n\t\t\tonChange={ handleChange }\n\t\t\thideLabelFromVision\n\t\t/>\n\t);\n}\n\nexport const ParentEdit = ( {\n\tdata,\n\tfield,\n\tonChange,\n}: DataFormControlProps< BasePost > ) => {\n\tconst { id } = field;\n\n\tconst homeUrl = useSelect( ( select ) => {\n\t\treturn select( coreStore ).getEntityRecord< {\n\t\t\thome: string;\n\t\t} >( 'root', '__unstableBase' )?.home as string;\n\t}, [] );\n\n\tconst onChangeControl = useCallback(\n\t\t( newValue?: number ) =>\n\t\t\tonChange( {\n\t\t\t\t[ id ]: newValue,\n\t\t\t} ),\n\t\t[ id, onChange ]\n\t);\n\n\treturn (\n\t\t<fieldset className=\"fields-controls__parent\">\n\t\t\t<div>\n\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\tsprintf(\n\t\t\t\t\t\t/* translators: %1$s The home URL of the WordPress installation without the scheme. */\n\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t'Child pages inherit characteristics from their parent, such as URL structure. For instance, if \"Pricing\" is a child of \"Services\", its URL would be %1$s<wbr />/services<wbr />/pricing.'\n\t\t\t\t\t\t),\n\t\t\t\t\t\tfilterURLForDisplay( homeUrl ).replace(\n\t\t\t\t\t\t\t/([/.])/g,\n\t\t\t\t\t\t\t'<wbr />$1'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t{\n\t\t\t\t\t\twbr: <wbr />,\n\t\t\t\t\t}\n\t\t\t\t) }\n\t\t\t\t<p>\n\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t'They also show up as sub-items in the default navigation menu. <a>Learn more.</a>'\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta: (\n\t\t\t\t\t\t\t\t<ExternalLink\n\t\t\t\t\t\t\t\t\thref={ __(\n\t\t\t\t\t\t\t\t\t\t'https://wordpress.org/documentation/article/page-post-settings-sidebar/#page-attributes'\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\tchildren={ undefined }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t}\n\t\t\t\t\t) }\n\t\t\t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A,MACD;AAAA,QACC;AAAA,MACD;AAAA,MACA;AAAA,QACC,GACC;AAAA,UAAC;AAAA;AAAA,YACA,MAAO;AAAA,cACN;AAAA,YACD;AAAA,YACA,UAAW;AAAA;AAAA,QACZ;AAAA,MAEF;AAAA,IACD,GACD;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACD;AAAA,KACD,GACD;AAEF;",
|
|
6
6
|
"names": ["tree"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/fields/pattern-title/view.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Icon, lockSmall } from '@wordpress/icons';\n// @ts-ignore\nimport { privateApis as patternPrivateApis } from '@wordpress/patterns';\
|
|
5
|
-
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,MAAM,iBAAiB;AAEhC,SAAS,eAAe,0BAA0B;
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Icon, lockSmall } from '@wordpress/icons';\n// @ts-ignore\nimport { privateApis as patternPrivateApis } from '@wordpress/patterns';\nimport { Tooltip, VisuallyHidden } from '@wordpress/ui';\n\n/**\n * Internal dependencies\n */\nimport type { CommonPost } from '../../types';\n\nimport { BaseTitleView } from '../title/view';\nimport { unlock } from '../../lock-unlock';\n\nexport const { PATTERN_TYPES } = unlock( patternPrivateApis );\n\nexport default function PatternTitleView( { item }: { item: CommonPost } ) {\n\tconst lockMessage = __( 'This pattern cannot be edited.' );\n\treturn (\n\t\t<BaseTitleView item={ item } className=\"fields-field__pattern-title\">\n\t\t\t{ item.type === PATTERN_TYPES.theme && (\n\t\t\t\t<>\n\t\t\t\t\t<VisuallyHidden>{ lockMessage }</VisuallyHidden>\n\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t<Tooltip.Trigger\n\t\t\t\t\t\t\trender={ <Icon icon={ lockSmall } size={ 24 } /> }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Tooltip.Popup>{ lockMessage }</Tooltip.Popup>\n\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t</>\n\t\t\t) }\n\t\t</BaseTitleView>\n\t);\n}\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,MAAM,iBAAiB;AAEhC,SAAS,eAAe,0BAA0B;AAClD,SAAS,SAAS,sBAAsB;AAOxC,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AASnB,mBACC,KACA,YAFD;AAPG,IAAM,EAAE,cAAc,IAAI,OAAQ,kBAAmB;AAE7C,SAAR,iBAAmC,EAAE,KAAK,GAA0B;AAC1E,QAAM,cAAc,GAAI,gCAAiC;AACzD,SACC,oBAAC,iBAAc,MAAc,WAAU,+BACpC,eAAK,SAAS,cAAc,SAC7B,iCACC;AAAA,wBAAC,kBAAiB,uBAAa;AAAA,IAC/B,qBAAC,QAAQ,MAAR,EACA;AAAA;AAAA,QAAC,QAAQ;AAAA,QAAR;AAAA,UACA,QAAS,oBAAC,QAAK,MAAO,WAAY,MAAO,IAAK;AAAA;AAAA,MAC/C;AAAA,MACA,oBAAC,QAAQ,OAAR,EAAgB,uBAAa;AAAA,OAC/B;AAAA,KACD,GAEF;AAEF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// packages/fields/src/fields/posts-page-title/index.ts
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
var postsPageTitleField = {
|
|
4
|
+
id: "posts_page_title",
|
|
5
|
+
type: "text",
|
|
6
|
+
label: __("Blog title"),
|
|
7
|
+
description: __(
|
|
8
|
+
"Set the Posts Page title. Appears in search results, and when the page is shared on social media."
|
|
9
|
+
),
|
|
10
|
+
getValue: ({ item }) => {
|
|
11
|
+
const title = item.title;
|
|
12
|
+
if (typeof title === "string") {
|
|
13
|
+
return title;
|
|
14
|
+
}
|
|
15
|
+
return title?.raw ?? "";
|
|
16
|
+
},
|
|
17
|
+
setValue: ({ value }) => ({ title: value }),
|
|
18
|
+
enableSorting: false,
|
|
19
|
+
enableHiding: false,
|
|
20
|
+
filterBy: false
|
|
21
|
+
};
|
|
22
|
+
var posts_page_title_default = postsPageTitleField;
|
|
23
|
+
export {
|
|
24
|
+
posts_page_title_default as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/posts-page-title/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { PostsPage } from '../../types';\n\nconst postsPageTitleField: Field< PostsPage > = {\n\tid: 'posts_page_title',\n\ttype: 'text',\n\tlabel: __( 'Blog title' ),\n\tdescription: __(\n\t\t'Set the Posts Page title. Appears in search results, and when the page is shared on social media.'\n\t),\n\tgetValue: ( { item } ) => {\n\t\tconst title = item.title;\n\t\tif ( typeof title === 'string' ) {\n\t\t\treturn title;\n\t\t}\n\t\treturn title?.raw ?? '';\n\t},\n\tsetValue: ( { value } ) => ( { title: value } ),\n\tenableSorting: false,\n\tenableHiding: false,\n\tfilterBy: false,\n};\n\n/**\n * Title field for the posts page (the `page` assigned as `page_for_posts`).\n */\nexport default postsPageTitleField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAOnB,IAAM,sBAA0C;AAAA,EAC/C,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,YAAa;AAAA,EACxB,aAAa;AAAA,IACZ;AAAA,EACD;AAAA,EACA,UAAU,CAAE,EAAE,KAAK,MAAO;AACzB,UAAM,QAAQ,KAAK;AACnB,QAAK,OAAO,UAAU,UAAW;AAChC,aAAO;AAAA,IACR;AACA,WAAO,OAAO,OAAO;AAAA,EACtB;AAAA,EACA,UAAU,CAAE,EAAE,MAAM,OAAS,EAAE,OAAO,MAAM;AAAA,EAC5C,eAAe;AAAA,EACf,cAAc;AAAA,EACd,UAAU;AACX;AAKA,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// packages/fields/src/fields/posts-per-page/index.ts
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
var postsPerPageField = {
|
|
4
|
+
id: "posts_per_page",
|
|
5
|
+
type: "integer",
|
|
6
|
+
label: __("Posts per page"),
|
|
7
|
+
description: __(
|
|
8
|
+
"Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting."
|
|
9
|
+
),
|
|
10
|
+
getValue: ({ item }) => item.posts_per_page ?? 1,
|
|
11
|
+
setValue: ({ value }) => ({ posts_per_page: value }),
|
|
12
|
+
isValid: { min: 1 },
|
|
13
|
+
enableSorting: false,
|
|
14
|
+
enableHiding: false,
|
|
15
|
+
filterBy: false
|
|
16
|
+
};
|
|
17
|
+
var posts_per_page_default = postsPerPageField;
|
|
18
|
+
export {
|
|
19
|
+
posts_per_page_default as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/posts-per-page/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { SiteSettings } from '../../types';\n\nconst postsPerPageField: Field< SiteSettings > = {\n\tid: 'posts_per_page',\n\ttype: 'integer',\n\tlabel: __( 'Posts per page' ),\n\tdescription: __(\n\t\t'Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.'\n\t),\n\tgetValue: ( { item } ) => item.posts_per_page ?? 1,\n\tsetValue: ( { value } ) => ( { posts_per_page: value } ),\n\tisValid: { min: 1 },\n\tenableSorting: false,\n\tenableHiding: false,\n\tfilterBy: false,\n};\n\n/**\n * Posts per page field for the `root/site` entity.\n */\nexport default postsPerPageField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAOnB,IAAM,oBAA2C;AAAA,EAChD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,gBAAiB;AAAA,EAC5B,aAAa;AAAA,IACZ;AAAA,EACD;AAAA,EACA,UAAU,CAAE,EAAE,KAAK,MAAO,KAAK,kBAAkB;AAAA,EACjD,UAAU,CAAE,EAAE,MAAM,OAAS,EAAE,gBAAgB,MAAM;AAAA,EACrD,SAAS,EAAE,KAAK,EAAE;AAAA,EAClB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,UAAU;AACX;AAKA,IAAO,yBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// packages/fields/src/fields/date/
|
|
1
|
+
// packages/fields/src/fields/scheduled-date/index.tsx
|
|
2
2
|
import { __ } from "@wordpress/i18n";
|
|
3
3
|
var scheduledDateField = {
|
|
4
4
|
id: "scheduled_date",
|
|
@@ -15,8 +15,8 @@ var scheduledDateField = {
|
|
|
15
15
|
enableSorting: false,
|
|
16
16
|
filterBy: false
|
|
17
17
|
};
|
|
18
|
-
var
|
|
18
|
+
var scheduled_date_default = scheduledDateField;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
scheduled_date_default as default
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/scheduled-date/index.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst scheduledDateField: Field< BasePost > = {\n\tid: 'scheduled_date',\n\ttype: 'datetime',\n\tlabel: __( 'Scheduled Date' ),\n\tgetValue: ( { item } ) => item.date,\n\tsetValue: ( { value } ) => ( { date: value } ),\n\tisVisible: ( item ) => item.status === 'future',\n\tEdit: {\n\t\tcontrol: 'datetime',\n\t\tcompact: true,\n\t},\n\tenableHiding: false,\n\tenableSorting: false,\n\tfilterBy: false,\n};\n\n/**\n * ScheduledDate Field.\n */\nexport default scheduledDateField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAOnB,IAAM,qBAAwC;AAAA,EAC7C,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,gBAAiB;AAAA,EAC5B,UAAU,CAAE,EAAE,KAAK,MAAO,KAAK;AAAA,EAC/B,UAAU,CAAE,EAAE,MAAM,OAAS,EAAE,MAAM,MAAM;AAAA,EAC3C,WAAW,CAAE,SAAU,KAAK,WAAW;AAAA,EACvC,MAAM;AAAA,IACL,SAAS;AAAA,IACT,SAAS;AAAA,EACV;AAAA,EACA,cAAc;AAAA,EACd,eAAe;AAAA,EACf,UAAU;AACX;AAKA,IAAO,yBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// packages/fields/src/fields/site-discussion/index.ts
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
var siteDiscussionField = {
|
|
4
|
+
id: "default_comment_status",
|
|
5
|
+
type: "text",
|
|
6
|
+
label: __("Discussion"),
|
|
7
|
+
Edit: "radio",
|
|
8
|
+
getValue: ({ item }) => item.default_comment_status || "",
|
|
9
|
+
setValue: ({ value }) => ({
|
|
10
|
+
default_comment_status: value || null
|
|
11
|
+
}),
|
|
12
|
+
render: ({ item }) => {
|
|
13
|
+
return item.default_comment_status === "open" ? __("Comments open") : __("Comments closed");
|
|
14
|
+
},
|
|
15
|
+
elements: [
|
|
16
|
+
{
|
|
17
|
+
value: "open",
|
|
18
|
+
label: __("Open"),
|
|
19
|
+
description: __("Visitors can add new comments and replies.")
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: "",
|
|
23
|
+
label: __("Closed"),
|
|
24
|
+
description: __(
|
|
25
|
+
"Visitors cannot add new comments or replies. Existing comments remain visible."
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
enableSorting: false,
|
|
30
|
+
enableHiding: false,
|
|
31
|
+
filterBy: false
|
|
32
|
+
};
|
|
33
|
+
var site_discussion_default = siteDiscussionField;
|
|
34
|
+
export {
|
|
35
|
+
site_discussion_default as default
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/fields/site-discussion/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { SiteSettings } from '../../types';\n\nconst siteDiscussionField: Field< SiteSettings > = {\n\tid: 'default_comment_status',\n\ttype: 'text',\n\tlabel: __( 'Discussion' ),\n\tEdit: 'radio',\n\tgetValue: ( { item } ) => item.default_comment_status || '',\n\tsetValue: ( { value } ) => ( {\n\t\tdefault_comment_status: value || null,\n\t} ),\n\trender: ( { item } ) => {\n\t\treturn item.default_comment_status === 'open'\n\t\t\t? __( 'Comments open' )\n\t\t\t: __( 'Comments closed' );\n\t},\n\telements: [\n\t\t{\n\t\t\tvalue: 'open',\n\t\t\tlabel: __( 'Open' ),\n\t\t\tdescription: __( 'Visitors can add new comments and replies.' ),\n\t\t},\n\t\t{\n\t\t\tvalue: '',\n\t\t\tlabel: __( 'Closed' ),\n\t\t\tdescription: __(\n\t\t\t\t'Visitors cannot add new comments or replies. Existing comments remain visible.'\n\t\t\t),\n\t\t},\n\t],\n\tenableSorting: false,\n\tenableHiding: false,\n\tfilterBy: false,\n};\n\n/**\n * Discussion field for the `root/site` entity.\n */\nexport default siteDiscussionField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAOnB,IAAM,sBAA6C;AAAA,EAClD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,YAAa;AAAA,EACxB,MAAM;AAAA,EACN,UAAU,CAAE,EAAE,KAAK,MAAO,KAAK,0BAA0B;AAAA,EACzD,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,IAC5B,wBAAwB,SAAS;AAAA,EAClC;AAAA,EACA,QAAQ,CAAE,EAAE,KAAK,MAAO;AACvB,WAAO,KAAK,2BAA2B,SACpC,GAAI,eAAgB,IACpB,GAAI,iBAAkB;AAAA,EAC1B;AAAA,EACA,UAAU;AAAA,IACT;AAAA,MACC,OAAO;AAAA,MACP,OAAO,GAAI,MAAO;AAAA,MAClB,aAAa,GAAI,4CAA6C;AAAA,IAC/D;AAAA,IACA;AAAA,MACC,OAAO;AAAA,MACP,OAAO,GAAI,QAAS;AAAA,MACpB,aAAa;AAAA,QACZ;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,eAAe;AAAA,EACf,cAAc;AAAA,EACd,UAAU;AACX;AAKA,IAAO,0BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,10 +3,10 @@ import { __ } from "@wordpress/i18n";
|
|
|
3
3
|
import { getItemTitle } from "../../actions/utils.mjs";
|
|
4
4
|
import TitleView from "../title/view.mjs";
|
|
5
5
|
var templateTitleField = {
|
|
6
|
+
id: "title",
|
|
6
7
|
type: "text",
|
|
7
8
|
label: __("Template"),
|
|
8
9
|
placeholder: __("No title"),
|
|
9
|
-
id: "title",
|
|
10
10
|
getValue: ({ item }) => getItemTitle(item),
|
|
11
11
|
render: TitleView,
|
|
12
12
|
enableHiding: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/fields/template-title/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { Template } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from '../title/view';\n\nconst templateTitleField: Field< Template > = {\n\ttype: 'text',\n\tlabel: __( 'Template' ),\n\tplaceholder: __( 'No title' ),\n\
|
|
5
|
-
"mappings": ";AAIA,SAAS,UAAU;AAMnB,SAAS,oBAAoB;AAC7B,OAAO,eAAe;AAEtB,IAAM,qBAAwC;AAAA,EAC7C,MAAM;AAAA,EACN,OAAO,GAAI,UAAW;AAAA,EACtB,aAAa,GAAI,UAAW;AAAA,EAC5B,
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { Template } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from '../title/view';\n\nconst templateTitleField: Field< Template > = {\n\tid: 'title',\n\ttype: 'text',\n\tlabel: __( 'Template' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the template entity.\n */\nexport default templateTitleField;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAAS,UAAU;AAMnB,SAAS,oBAAoB;AAC7B,OAAO,eAAe;AAEtB,IAAM,qBAAwC;AAAA,EAC7C,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO,GAAI,UAAW;AAAA,EACtB,aAAa,GAAI,UAAW;AAAA,EAC5B,UAAU,CAAE,EAAE,KAAK,MAAO,aAAc,IAAK;AAAA,EAC7C,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,UAAU;AACX;AAKA,IAAO,yBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-edit/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-edit/index.tsx"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAqflD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,IAAI,EAAI,EAC1C,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,YAA0B,EAC1B,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,EAAE,cAAc,CAAE,IAAI,CAAE,+BA8XxB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Field } from '@wordpress/dataviews';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import type { Template } from '../../types';
|
|
9
|
+
declare const descriptionField: Field<Template>;
|
|
10
|
+
/**
|
|
11
|
+
* Read-only description field for theme-provided templates, which can't be
|
|
12
|
+
* edited. Shares the display config with `descriptionField` but renders as
|
|
13
|
+
* read-only and is only visible when a description exists.
|
|
14
|
+
*/
|
|
15
|
+
export declare const readOnlyDescriptionField: Field<Template>;
|
|
16
|
+
/**
|
|
17
|
+
* Description field for templates.
|
|
18
|
+
*/
|
|
19
|
+
export default descriptionField;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/description/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKlD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAe5C,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAE,QAAQ,CAetC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAE,QAAQ,CAUrD,CAAC;AAEF;;GAEG;eACY,gBAAgB"}
|
|
@@ -13,11 +13,16 @@ export { default as commentStatusField } from './comment-status';
|
|
|
13
13
|
export { default as pingStatusField } from './ping-status';
|
|
14
14
|
export { default as discussionField } from './discussion';
|
|
15
15
|
export { default as dateField } from './date';
|
|
16
|
-
export { default as scheduledDateField } from './date
|
|
16
|
+
export { default as scheduledDateField } from './scheduled-date';
|
|
17
|
+
export { default as lastEditedDateField } from './last-edited';
|
|
17
18
|
export { default as authorField } from './author';
|
|
18
19
|
export { default as notesField } from './notes';
|
|
19
20
|
export { default as excerptField } from './excerpt';
|
|
21
|
+
export { default as descriptionField, readOnlyDescriptionField, } from './description';
|
|
20
22
|
export { default as formatField } from './format';
|
|
21
23
|
export { default as postContentInfoField } from './post-content-info';
|
|
22
24
|
export { default as stickyField } from './sticky';
|
|
25
|
+
export { default as postsPerPageField } from './posts-per-page';
|
|
26
|
+
export { default as siteDiscussionField } from './site-discussion';
|
|
27
|
+
export { default as postsPageTitleField } from './posts-page-title';
|
|
23
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,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U,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EACN,OAAO,IAAI,gBAAgB,EAC3B,wBAAwB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Field } from '@wordpress/dataviews';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import type { BasePost } from '../../types';
|
|
9
|
+
declare const lastEditedDateField: Field<BasePost>;
|
|
10
|
+
/**
|
|
11
|
+
* Last edited date field for BasePost.
|
|
12
|
+
*/
|
|
13
|
+
export default lastEditedDateField;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/last-edited/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAE,QAAQ,CAWzC,CAAC;AAEF;;GAEG;eACY,mBAAmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-edited-date-view.d.ts","sourceRoot":"","sources":["../../../src/fields/last-edited/last-edited-date-view.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,sCAavE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/fields/pattern-title/view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/fields/pattern-title/view.tsx"],"names":[],"mappings":"AASA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,eAAO,MAAQ,aAAa,KAAiC,CAAC;AAE9D,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,+BAiBvE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Field } from '@wordpress/dataviews';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import type { PostsPage } from '../../types';
|
|
9
|
+
declare const postsPageTitleField: Field<PostsPage>;
|
|
10
|
+
/**
|
|
11
|
+
* Title field for the posts page (the `page` assigned as `page_for_posts`).
|
|
12
|
+
*/
|
|
13
|
+
export default postsPageTitleField;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/posts-page-title/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAE,SAAS,CAkB1C,CAAC;AAEF;;GAEG;eACY,mBAAmB"}
|