@wordpress/edit-site 6.43.0 → 6.43.1-next.v.202604091042.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.
@@ -71,7 +71,7 @@ function SiteExport() {
71
71
  let error = {};
72
72
  try {
73
73
  error = await errorResponse.json();
74
- } catch (e) {
74
+ } catch {
75
75
  }
76
76
  const errorMessage = error.message && error.code !== "unknown_error" ? error.message : (0, import_i18n.__)("An error occurred while creating the site export.");
77
77
  createErrorNotice(errorMessage, { type: "snackbar" });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/more-menu/site-export.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport { MenuItem } from '@wordpress/components';\nimport apiFetch from '@wordpress/api-fetch';\nimport { download } from '@wordpress/icons';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { downloadBlob } from '@wordpress/blob';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as noticesStore } from '@wordpress/notices';\n\nexport default function SiteExport() {\n\tconst canExport = useSelect( ( select ) => {\n\t\tconst targetHints =\n\t\t\tselect( coreStore ).getCurrentTheme()?._links?.[\n\t\t\t\t'wp:export-theme'\n\t\t\t]?.[ 0 ]?.targetHints ?? {};\n\n\t\treturn !! targetHints.allow?.includes( 'GET' );\n\t}, [] );\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\n\tif ( ! canExport ) {\n\t\treturn null;\n\t}\n\n\tasync function handleExport() {\n\t\ttry {\n\t\t\tconst response = await apiFetch( {\n\t\t\t\tpath: '/wp-block-editor/v1/export',\n\t\t\t\tparse: false,\n\t\t\t\theaders: {\n\t\t\t\t\tAccept: 'application/zip',\n\t\t\t\t},\n\t\t\t} );\n\t\t\tconst blob = await response.blob();\n\t\t\tconst contentDisposition = response.headers.get(\n\t\t\t\t'content-disposition'\n\t\t\t);\n\t\t\tconst contentDispositionMatches =\n\t\t\t\tcontentDisposition.match( /=(.+)\\.zip/ );\n\t\t\tconst fileName = contentDispositionMatches[ 1 ]\n\t\t\t\t? contentDispositionMatches[ 1 ]\n\t\t\t\t: 'edit-site-export';\n\n\t\t\tdownloadBlob( fileName + '.zip', blob, 'application/zip' );\n\t\t} catch ( errorResponse ) {\n\t\t\tlet error = {};\n\t\t\ttry {\n\t\t\t\terror = await errorResponse.json();\n\t\t\t} catch ( e ) {}\n\t\t\tconst errorMessage =\n\t\t\t\terror.message && error.code !== 'unknown_error'\n\t\t\t\t\t? error.message\n\t\t\t\t\t: __( 'An error occurred while creating the site export.' );\n\n\t\t\tcreateErrorNotice( errorMessage, { type: 'snackbar' } );\n\t\t}\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\trole=\"menuitem\"\n\t\t\ticon={ download }\n\t\t\tonClick={ handleExport }\n\t\t\tinfo={ __(\n\t\t\t\t'Download your theme with updated templates and styles.'\n\t\t\t) }\n\t\t>\n\t\t\t{ _x( 'Export', 'site exporter menu item' ) }\n\t\t</MenuItem>\n\t);\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAuB;AACvB,wBAAyB;AACzB,uBAAqB;AACrB,mBAAyB;AACzB,kBAAuC;AACvC,kBAA6B;AAC7B,uBAAmC;AACnC,qBAAsC;AAoDpC;AAlDa,SAAR,aAA8B;AACpC,QAAM,gBAAY,uBAAW,CAAE,WAAY;AAC1C,UAAM,cACL,OAAQ,iBAAAA,KAAU,EAAE,gBAAgB,GAAG,SACtC,iBACD,IAAK,CAAE,GAAG,eAAe,CAAC;AAE3B,WAAO,CAAC,CAAE,YAAY,OAAO,SAAU,KAAM;AAAA,EAC9C,GAAG,CAAC,CAAE;AACN,QAAM,EAAE,kBAAkB,QAAI,yBAAa,eAAAC,KAAa;AAExD,MAAK,CAAE,WAAY;AAClB,WAAO;AAAA,EACR;AAEA,iBAAe,eAAe;AAC7B,QAAI;AACH,YAAM,WAAW,UAAM,iBAAAC,SAAU;AAAA,QAChC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,SAAS;AAAA,UACR,QAAQ;AAAA,QACT;AAAA,MACD,CAAE;AACF,YAAM,OAAO,MAAM,SAAS,KAAK;AACjC,YAAM,qBAAqB,SAAS,QAAQ;AAAA,QAC3C;AAAA,MACD;AACA,YAAM,4BACL,mBAAmB,MAAO,YAAa;AACxC,YAAM,WAAW,0BAA2B,CAAE,IAC3C,0BAA2B,CAAE,IAC7B;AAEH,oCAAc,WAAW,QAAQ,MAAM,iBAAkB;AAAA,IAC1D,SAAU,eAAgB;AACzB,UAAI,QAAQ,CAAC;AACb,UAAI;AACH,gBAAQ,MAAM,cAAc,KAAK;AAAA,MAClC,SAAU,GAAI;AAAA,MAAC;AACf,YAAM,eACL,MAAM,WAAW,MAAM,SAAS,kBAC7B,MAAM,cACN,gBAAI,mDAAoD;AAE5D,wBAAmB,cAAc,EAAE,MAAM,WAAW,CAAE;AAAA,IACvD;AAAA,EACD;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAK;AAAA,MACL,MAAO;AAAA,MACP,SAAU;AAAA,MACV,UAAO;AAAA,QACN;AAAA,MACD;AAAA,MAEE,8BAAI,UAAU,yBAA0B;AAAA;AAAA,EAC3C;AAEF;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport { MenuItem } from '@wordpress/components';\nimport apiFetch from '@wordpress/api-fetch';\nimport { download } from '@wordpress/icons';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { downloadBlob } from '@wordpress/blob';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as noticesStore } from '@wordpress/notices';\n\nexport default function SiteExport() {\n\tconst canExport = useSelect( ( select ) => {\n\t\tconst targetHints =\n\t\t\tselect( coreStore ).getCurrentTheme()?._links?.[\n\t\t\t\t'wp:export-theme'\n\t\t\t]?.[ 0 ]?.targetHints ?? {};\n\n\t\treturn !! targetHints.allow?.includes( 'GET' );\n\t}, [] );\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\n\tif ( ! canExport ) {\n\t\treturn null;\n\t}\n\n\tasync function handleExport() {\n\t\ttry {\n\t\t\tconst response = await apiFetch( {\n\t\t\t\tpath: '/wp-block-editor/v1/export',\n\t\t\t\tparse: false,\n\t\t\t\theaders: {\n\t\t\t\t\tAccept: 'application/zip',\n\t\t\t\t},\n\t\t\t} );\n\t\t\tconst blob = await response.blob();\n\t\t\tconst contentDisposition = response.headers.get(\n\t\t\t\t'content-disposition'\n\t\t\t);\n\t\t\tconst contentDispositionMatches =\n\t\t\t\tcontentDisposition.match( /=(.+)\\.zip/ );\n\t\t\tconst fileName = contentDispositionMatches[ 1 ]\n\t\t\t\t? contentDispositionMatches[ 1 ]\n\t\t\t\t: 'edit-site-export';\n\n\t\t\tdownloadBlob( fileName + '.zip', blob, 'application/zip' );\n\t\t} catch ( errorResponse ) {\n\t\t\tlet error = {};\n\t\t\ttry {\n\t\t\t\terror = await errorResponse.json();\n\t\t\t} catch {}\n\t\t\tconst errorMessage =\n\t\t\t\terror.message && error.code !== 'unknown_error'\n\t\t\t\t\t? error.message\n\t\t\t\t\t: __( 'An error occurred while creating the site export.' );\n\n\t\t\tcreateErrorNotice( errorMessage, { type: 'snackbar' } );\n\t\t}\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\trole=\"menuitem\"\n\t\t\ticon={ download }\n\t\t\tonClick={ handleExport }\n\t\t\tinfo={ __(\n\t\t\t\t'Download your theme with updated templates and styles.'\n\t\t\t) }\n\t\t>\n\t\t\t{ _x( 'Export', 'site exporter menu item' ) }\n\t\t</MenuItem>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAuB;AACvB,wBAAyB;AACzB,uBAAqB;AACrB,mBAAyB;AACzB,kBAAuC;AACvC,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",
6
6
  "names": ["coreStore", "noticesStore", "apiFetch"]
7
7
  }
@@ -31,6 +31,22 @@ var import_dataviews = require("@wordpress/dataviews");
31
31
  var import_fields = require("@wordpress/fields");
32
32
  var import_jsx_runtime = require("react/jsx-runtime");
33
33
  var fields = [
34
+ {
35
+ id: "title",
36
+ type: "text",
37
+ label: (0, import_i18n.__)("Site Title"),
38
+ description: (0, import_i18n.__)(
39
+ "Displays in your site's layout via the Site Title block."
40
+ )
41
+ },
42
+ {
43
+ id: "description",
44
+ type: "text",
45
+ label: (0, import_i18n.__)("Site Tagline"),
46
+ description: (0, import_i18n.__)(
47
+ "In a few words, explain what this site is about. Displays in your site's layout via the Site Tagline block."
48
+ )
49
+ },
34
50
  {
35
51
  id: "site_logo",
36
52
  type: "media",
@@ -63,7 +79,7 @@ var form = {
63
79
  type: "regular",
64
80
  labelPosition: "top"
65
81
  },
66
- fields: ["site_logo", "site_icon"]
82
+ fields: ["title", "description", "site_logo", "site_icon"]
67
83
  };
68
84
  function SidebarIdentity() {
69
85
  const data = (0, import_data.useSelect)(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/sidebar-identity/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Page } from '@wordpress/admin-ui';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { DataForm } from '@wordpress/dataviews';\nimport { MediaEdit } from '@wordpress/fields';\n\nconst fields = [\n\t{\n\t\tid: 'site_logo',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Logo' ),\n\t\tdescription: __(\n\t\t\t\"Displays in your site's layout via the Site Logo block.\"\n\t\t),\n\t\tplaceholder: __( 'Choose logo' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_logo: value ?? 0,\n\t\t} ),\n\t},\n\t{\n\t\tid: 'site_icon',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Icon' ),\n\t\tdescription: __(\n\t\t\t'Shown in browser tabs, bookmarks, and mobile apps. It should be square and at least 512 by 512 pixels.'\n\t\t),\n\t\tplaceholder: __( 'Choose icon' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_icon: value ?? 0,\n\t\t} ),\n\t},\n];\n\nconst form = {\n\tlayout: {\n\t\ttype: 'regular',\n\t\tlabelPosition: 'top',\n\t},\n\tfields: [ 'site_logo', 'site_icon' ],\n};\n\nexport default function SidebarIdentity() {\n\tconst data = useSelect(\n\t\t( select ) =>\n\t\t\tselect( coreStore ).getEditedEntityRecord( 'root', 'site' ),\n\t\t[]\n\t);\n\tconst { editEntityRecord } = useDispatch( coreStore );\n\n\tconst onChange = ( edits ) => {\n\t\teditEntityRecord( 'root', 'site', undefined, edits );\n\t};\n\n\treturn (\n\t\t<Page title={ __( 'Identity' ) } hasPadding>\n\t\t\t<DataForm\n\t\t\t\tdata={ data }\n\t\t\t\tfields={ fields }\n\t\t\t\tform={ form }\n\t\t\t\tonChange={ onChange }\n\t\t\t/>\n\t\t</Page>\n\t);\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,sBAAqB;AACrB,kBAAmB;AACnB,kBAAuC;AACvC,uBAAmC;AACnC,uBAAyB;AACzB,oBAA0B;AAqDvB;AAnDH,IAAM,SAAS;AAAA,EACd;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,WAAO,gBAAI,WAAY;AAAA,IACvB,iBAAa;AAAA,MACZ;AAAA,IACD;AAAA,IACA,iBAAa,gBAAI,aAAc;AAAA,IAC/B,MAAM;AAAA,IACN,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,MAC5B,WAAW,SAAS;AAAA,IACrB;AAAA,EACD;AAAA,EACA;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,WAAO,gBAAI,WAAY;AAAA,IACvB,iBAAa;AAAA,MACZ;AAAA,IACD;AAAA,IACA,iBAAa,gBAAI,aAAc;AAAA,IAC/B,MAAM;AAAA,IACN,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,MAC5B,WAAW,SAAS;AAAA,IACrB;AAAA,EACD;AACD;AAEA,IAAM,OAAO;AAAA,EACZ,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,eAAe;AAAA,EAChB;AAAA,EACA,QAAQ,CAAE,aAAa,WAAY;AACpC;AAEe,SAAR,kBAAmC;AACzC,QAAM,WAAO;AAAA,IACZ,CAAE,WACD,OAAQ,iBAAAA,KAAU,EAAE,sBAAuB,QAAQ,MAAO;AAAA,IAC3D,CAAC;AAAA,EACF;AACA,QAAM,EAAE,iBAAiB,QAAI,yBAAa,iBAAAA,KAAU;AAEpD,QAAM,WAAW,CAAE,UAAW;AAC7B,qBAAkB,QAAQ,QAAQ,QAAW,KAAM;AAAA,EACpD;AAEA,SACC,4CAAC,wBAAK,WAAQ,gBAAI,UAAW,GAAI,YAAU,MAC1C;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACD,GACD;AAEF;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Page } from '@wordpress/admin-ui';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { DataForm } from '@wordpress/dataviews';\nimport { MediaEdit } from '@wordpress/fields';\n\nconst fields = [\n\t{\n\t\tid: 'title',\n\t\ttype: 'text',\n\t\tlabel: __( 'Site Title' ),\n\t\tdescription: __(\n\t\t\t\"Displays in your site's layout via the Site Title block.\"\n\t\t),\n\t},\n\t{\n\t\tid: 'description',\n\t\ttype: 'text',\n\t\tlabel: __( 'Site Tagline' ),\n\t\tdescription: __(\n\t\t\t\"In a few words, explain what this site is about. Displays in your site's layout via the Site Tagline block.\"\n\t\t),\n\t},\n\t{\n\t\tid: 'site_logo',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Logo' ),\n\t\tdescription: __(\n\t\t\t\"Displays in your site's layout via the Site Logo block.\"\n\t\t),\n\t\tplaceholder: __( 'Choose logo' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_logo: value ?? 0,\n\t\t} ),\n\t},\n\t{\n\t\tid: 'site_icon',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Icon' ),\n\t\tdescription: __(\n\t\t\t'Shown in browser tabs, bookmarks, and mobile apps. It should be square and at least 512 by 512 pixels.'\n\t\t),\n\t\tplaceholder: __( 'Choose icon' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_icon: value ?? 0,\n\t\t} ),\n\t},\n];\n\nconst form = {\n\tlayout: {\n\t\ttype: 'regular',\n\t\tlabelPosition: 'top',\n\t},\n\tfields: [ 'title', 'description', 'site_logo', 'site_icon' ],\n};\n\nexport default function SidebarIdentity() {\n\tconst data = useSelect(\n\t\t( select ) =>\n\t\t\tselect( coreStore ).getEditedEntityRecord( 'root', 'site' ),\n\t\t[]\n\t);\n\tconst { editEntityRecord } = useDispatch( coreStore );\n\n\tconst onChange = ( edits ) => {\n\t\teditEntityRecord( 'root', 'site', undefined, edits );\n\t};\n\n\treturn (\n\t\t<Page title={ __( 'Identity' ) } hasPadding>\n\t\t\t<DataForm\n\t\t\t\tdata={ data }\n\t\t\t\tfields={ fields }\n\t\t\t\tform={ form }\n\t\t\t\tonChange={ onChange }\n\t\t\t/>\n\t\t</Page>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,sBAAqB;AACrB,kBAAmB;AACnB,kBAAuC;AACvC,uBAAmC;AACnC,uBAAyB;AACzB,oBAA0B;AAqEvB;AAnEH,IAAM,SAAS;AAAA,EACd;AAAA,IACC,IAAI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C;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACD,GACD;AAEF;",
6
6
  "names": ["coreStore"]
7
7
  }
@@ -37,7 +37,7 @@ function SiteExport() {
37
37
  let error = {};
38
38
  try {
39
39
  error = await errorResponse.json();
40
- } catch (e) {
40
+ } catch {
41
41
  }
42
42
  const errorMessage = error.message && error.code !== "unknown_error" ? error.message : __("An error occurred while creating the site export.");
43
43
  createErrorNotice(errorMessage, { type: "snackbar" });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/more-menu/site-export.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport { MenuItem } from '@wordpress/components';\nimport apiFetch from '@wordpress/api-fetch';\nimport { download } from '@wordpress/icons';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { downloadBlob } from '@wordpress/blob';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as noticesStore } from '@wordpress/notices';\n\nexport default function SiteExport() {\n\tconst canExport = useSelect( ( select ) => {\n\t\tconst targetHints =\n\t\t\tselect( coreStore ).getCurrentTheme()?._links?.[\n\t\t\t\t'wp:export-theme'\n\t\t\t]?.[ 0 ]?.targetHints ?? {};\n\n\t\treturn !! targetHints.allow?.includes( 'GET' );\n\t}, [] );\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\n\tif ( ! canExport ) {\n\t\treturn null;\n\t}\n\n\tasync function handleExport() {\n\t\ttry {\n\t\t\tconst response = await apiFetch( {\n\t\t\t\tpath: '/wp-block-editor/v1/export',\n\t\t\t\tparse: false,\n\t\t\t\theaders: {\n\t\t\t\t\tAccept: 'application/zip',\n\t\t\t\t},\n\t\t\t} );\n\t\t\tconst blob = await response.blob();\n\t\t\tconst contentDisposition = response.headers.get(\n\t\t\t\t'content-disposition'\n\t\t\t);\n\t\t\tconst contentDispositionMatches =\n\t\t\t\tcontentDisposition.match( /=(.+)\\.zip/ );\n\t\t\tconst fileName = contentDispositionMatches[ 1 ]\n\t\t\t\t? contentDispositionMatches[ 1 ]\n\t\t\t\t: 'edit-site-export';\n\n\t\t\tdownloadBlob( fileName + '.zip', blob, 'application/zip' );\n\t\t} catch ( errorResponse ) {\n\t\t\tlet error = {};\n\t\t\ttry {\n\t\t\t\terror = await errorResponse.json();\n\t\t\t} catch ( e ) {}\n\t\t\tconst errorMessage =\n\t\t\t\terror.message && error.code !== 'unknown_error'\n\t\t\t\t\t? error.message\n\t\t\t\t\t: __( 'An error occurred while creating the site export.' );\n\n\t\t\tcreateErrorNotice( errorMessage, { type: 'snackbar' } );\n\t\t}\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\trole=\"menuitem\"\n\t\t\ticon={ download }\n\t\t\tonClick={ handleExport }\n\t\t\tinfo={ __(\n\t\t\t\t'Download your theme with updated templates and styles.'\n\t\t\t) }\n\t\t>\n\t\t\t{ _x( 'Export', 'site exporter menu item' ) }\n\t\t</MenuItem>\n\t);\n}\n"],
5
- "mappings": ";AAGA,SAAS,IAAI,UAAU;AACvB,SAAS,gBAAgB;AACzB,OAAO,cAAc;AACrB,SAAS,gBAAgB;AACzB,SAAS,aAAa,iBAAiB;AACvC,SAAS,oBAAoB;AAC7B,SAAS,SAAS,iBAAiB;AACnC,SAAS,SAAS,oBAAoB;AAoDpC;AAlDa,SAAR,aAA8B;AACpC,QAAM,YAAY,UAAW,CAAE,WAAY;AAC1C,UAAM,cACL,OAAQ,SAAU,EAAE,gBAAgB,GAAG,SACtC,iBACD,IAAK,CAAE,GAAG,eAAe,CAAC;AAE3B,WAAO,CAAC,CAAE,YAAY,OAAO,SAAU,KAAM;AAAA,EAC9C,GAAG,CAAC,CAAE;AACN,QAAM,EAAE,kBAAkB,IAAI,YAAa,YAAa;AAExD,MAAK,CAAE,WAAY;AAClB,WAAO;AAAA,EACR;AAEA,iBAAe,eAAe;AAC7B,QAAI;AACH,YAAM,WAAW,MAAM,SAAU;AAAA,QAChC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,SAAS;AAAA,UACR,QAAQ;AAAA,QACT;AAAA,MACD,CAAE;AACF,YAAM,OAAO,MAAM,SAAS,KAAK;AACjC,YAAM,qBAAqB,SAAS,QAAQ;AAAA,QAC3C;AAAA,MACD;AACA,YAAM,4BACL,mBAAmB,MAAO,YAAa;AACxC,YAAM,WAAW,0BAA2B,CAAE,IAC3C,0BAA2B,CAAE,IAC7B;AAEH,mBAAc,WAAW,QAAQ,MAAM,iBAAkB;AAAA,IAC1D,SAAU,eAAgB;AACzB,UAAI,QAAQ,CAAC;AACb,UAAI;AACH,gBAAQ,MAAM,cAAc,KAAK;AAAA,MAClC,SAAU,GAAI;AAAA,MAAC;AACf,YAAM,eACL,MAAM,WAAW,MAAM,SAAS,kBAC7B,MAAM,UACN,GAAI,mDAAoD;AAE5D,wBAAmB,cAAc,EAAE,MAAM,WAAW,CAAE;AAAA,IACvD;AAAA,EACD;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAK;AAAA,MACL,MAAO;AAAA,MACP,SAAU;AAAA,MACV,MAAO;AAAA,QACN;AAAA,MACD;AAAA,MAEE,aAAI,UAAU,yBAA0B;AAAA;AAAA,EAC3C;AAEF;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport { MenuItem } from '@wordpress/components';\nimport apiFetch from '@wordpress/api-fetch';\nimport { download } from '@wordpress/icons';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { downloadBlob } from '@wordpress/blob';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as noticesStore } from '@wordpress/notices';\n\nexport default function SiteExport() {\n\tconst canExport = useSelect( ( select ) => {\n\t\tconst targetHints =\n\t\t\tselect( coreStore ).getCurrentTheme()?._links?.[\n\t\t\t\t'wp:export-theme'\n\t\t\t]?.[ 0 ]?.targetHints ?? {};\n\n\t\treturn !! targetHints.allow?.includes( 'GET' );\n\t}, [] );\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\n\tif ( ! canExport ) {\n\t\treturn null;\n\t}\n\n\tasync function handleExport() {\n\t\ttry {\n\t\t\tconst response = await apiFetch( {\n\t\t\t\tpath: '/wp-block-editor/v1/export',\n\t\t\t\tparse: false,\n\t\t\t\theaders: {\n\t\t\t\t\tAccept: 'application/zip',\n\t\t\t\t},\n\t\t\t} );\n\t\t\tconst blob = await response.blob();\n\t\t\tconst contentDisposition = response.headers.get(\n\t\t\t\t'content-disposition'\n\t\t\t);\n\t\t\tconst contentDispositionMatches =\n\t\t\t\tcontentDisposition.match( /=(.+)\\.zip/ );\n\t\t\tconst fileName = contentDispositionMatches[ 1 ]\n\t\t\t\t? contentDispositionMatches[ 1 ]\n\t\t\t\t: 'edit-site-export';\n\n\t\t\tdownloadBlob( fileName + '.zip', blob, 'application/zip' );\n\t\t} catch ( errorResponse ) {\n\t\t\tlet error = {};\n\t\t\ttry {\n\t\t\t\terror = await errorResponse.json();\n\t\t\t} catch {}\n\t\t\tconst errorMessage =\n\t\t\t\terror.message && error.code !== 'unknown_error'\n\t\t\t\t\t? error.message\n\t\t\t\t\t: __( 'An error occurred while creating the site export.' );\n\n\t\t\tcreateErrorNotice( errorMessage, { type: 'snackbar' } );\n\t\t}\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\trole=\"menuitem\"\n\t\t\ticon={ download }\n\t\t\tonClick={ handleExport }\n\t\t\tinfo={ __(\n\t\t\t\t'Download your theme with updated templates and styles.'\n\t\t\t) }\n\t\t>\n\t\t\t{ _x( 'Export', 'site exporter menu item' ) }\n\t\t</MenuItem>\n\t);\n}\n"],
5
+ "mappings": ";AAGA,SAAS,IAAI,UAAU;AACvB,SAAS,gBAAgB;AACzB,OAAO,cAAc;AACrB,SAAS,gBAAgB;AACzB,SAAS,aAAa,iBAAiB;AACvC,SAAS,oBAAoB;AAC7B,SAAS,SAAS,iBAAiB;AACnC,SAAS,SAAS,oBAAoB;AA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
  import { MediaEdit } from "@wordpress/fields";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  var fields = [
10
+ {
11
+ id: "title",
12
+ type: "text",
13
+ label: __("Site Title"),
14
+ description: __(
15
+ "Displays in your site's layout via the Site Title block."
16
+ )
17
+ },
18
+ {
19
+ id: "description",
20
+ type: "text",
21
+ label: __("Site Tagline"),
22
+ description: __(
23
+ "In a few words, explain what this site is about. Displays in your site's layout via the Site Tagline block."
24
+ )
25
+ },
10
26
  {
11
27
  id: "site_logo",
12
28
  type: "media",
@@ -39,7 +55,7 @@ var form = {
39
55
  type: "regular",
40
56
  labelPosition: "top"
41
57
  },
42
- fields: ["site_logo", "site_icon"]
58
+ fields: ["title", "description", "site_logo", "site_icon"]
43
59
  };
44
60
  function SidebarIdentity() {
45
61
  const data = useSelect(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/sidebar-identity/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Page } from '@wordpress/admin-ui';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { DataForm } from '@wordpress/dataviews';\nimport { MediaEdit } from '@wordpress/fields';\n\nconst fields = [\n\t{\n\t\tid: 'site_logo',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Logo' ),\n\t\tdescription: __(\n\t\t\t\"Displays in your site's layout via the Site Logo block.\"\n\t\t),\n\t\tplaceholder: __( 'Choose logo' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_logo: value ?? 0,\n\t\t} ),\n\t},\n\t{\n\t\tid: 'site_icon',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Icon' ),\n\t\tdescription: __(\n\t\t\t'Shown in browser tabs, bookmarks, and mobile apps. It should be square and at least 512 by 512 pixels.'\n\t\t),\n\t\tplaceholder: __( 'Choose icon' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_icon: value ?? 0,\n\t\t} ),\n\t},\n];\n\nconst form = {\n\tlayout: {\n\t\ttype: 'regular',\n\t\tlabelPosition: 'top',\n\t},\n\tfields: [ 'site_logo', 'site_icon' ],\n};\n\nexport default function SidebarIdentity() {\n\tconst data = useSelect(\n\t\t( select ) =>\n\t\t\tselect( coreStore ).getEditedEntityRecord( 'root', 'site' ),\n\t\t[]\n\t);\n\tconst { editEntityRecord } = useDispatch( coreStore );\n\n\tconst onChange = ( edits ) => {\n\t\teditEntityRecord( 'root', 'site', undefined, edits );\n\t};\n\n\treturn (\n\t\t<Page title={ __( 'Identity' ) } hasPadding>\n\t\t\t<DataForm\n\t\t\t\tdata={ data }\n\t\t\t\tfields={ fields }\n\t\t\t\tform={ form }\n\t\t\t\tonChange={ onChange }\n\t\t\t/>\n\t\t</Page>\n\t);\n}\n"],
5
- "mappings": ";AAGA,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,WAAW,mBAAmB;AACvC,SAAS,SAAS,iBAAiB;AACnC,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAqDvB;AAnDH,IAAM,SAAS;AAAA,EACd;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,GAAI,WAAY;AAAA,IACvB,aAAa;AAAA,MACZ;AAAA,IACD;AAAA,IACA,aAAa,GAAI,aAAc;AAAA,IAC/B,MAAM;AAAA,IACN,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,MAC5B,WAAW,SAAS;AAAA,IACrB;AAAA,EACD;AAAA,EACA;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,GAAI,WAAY;AAAA,IACvB,aAAa;AAAA,MACZ;AAAA,IACD;AAAA,IACA,aAAa,GAAI,aAAc;AAAA,IAC/B,MAAM;AAAA,IACN,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,MAC5B,WAAW,SAAS;AAAA,IACrB;AAAA,EACD;AACD;AAEA,IAAM,OAAO;AAAA,EACZ,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,eAAe;AAAA,EAChB;AAAA,EACA,QAAQ,CAAE,aAAa,WAAY;AACpC;AAEe,SAAR,kBAAmC;AACzC,QAAM,OAAO;AAAA,IACZ,CAAE,WACD,OAAQ,SAAU,EAAE,sBAAuB,QAAQ,MAAO;AAAA,IAC3D,CAAC;AAAA,EACF;AACA,QAAM,EAAE,iBAAiB,IAAI,YAAa,SAAU;AAEpD,QAAM,WAAW,CAAE,UAAW;AAC7B,qBAAkB,QAAQ,QAAQ,QAAW,KAAM;AAAA,EACpD;AAEA,SACC,oBAAC,QAAK,OAAQ,GAAI,UAAW,GAAI,YAAU,MAC1C;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACD,GACD;AAEF;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Page } from '@wordpress/admin-ui';\nimport { __ } from '@wordpress/i18n';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { DataForm } from '@wordpress/dataviews';\nimport { MediaEdit } from '@wordpress/fields';\n\nconst fields = [\n\t{\n\t\tid: 'title',\n\t\ttype: 'text',\n\t\tlabel: __( 'Site Title' ),\n\t\tdescription: __(\n\t\t\t\"Displays in your site's layout via the Site Title block.\"\n\t\t),\n\t},\n\t{\n\t\tid: 'description',\n\t\ttype: 'text',\n\t\tlabel: __( 'Site Tagline' ),\n\t\tdescription: __(\n\t\t\t\"In a few words, explain what this site is about. Displays in your site's layout via the Site Tagline block.\"\n\t\t),\n\t},\n\t{\n\t\tid: 'site_logo',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Logo' ),\n\t\tdescription: __(\n\t\t\t\"Displays in your site's layout via the Site Logo block.\"\n\t\t),\n\t\tplaceholder: __( 'Choose logo' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_logo: value ?? 0,\n\t\t} ),\n\t},\n\t{\n\t\tid: 'site_icon',\n\t\ttype: 'media',\n\t\tlabel: __( 'Site Icon' ),\n\t\tdescription: __(\n\t\t\t'Shown in browser tabs, bookmarks, and mobile apps. It should be square and at least 512 by 512 pixels.'\n\t\t),\n\t\tplaceholder: __( 'Choose icon' ),\n\t\tEdit: MediaEdit,\n\t\tsetValue: ( { value } ) => ( {\n\t\t\tsite_icon: value ?? 0,\n\t\t} ),\n\t},\n];\n\nconst form = {\n\tlayout: {\n\t\ttype: 'regular',\n\t\tlabelPosition: 'top',\n\t},\n\tfields: [ 'title', 'description', 'site_logo', 'site_icon' ],\n};\n\nexport default function SidebarIdentity() {\n\tconst data = useSelect(\n\t\t( select ) =>\n\t\t\tselect( coreStore ).getEditedEntityRecord( 'root', 'site' ),\n\t\t[]\n\t);\n\tconst { editEntityRecord } = useDispatch( coreStore );\n\n\tconst onChange = ( edits ) => {\n\t\teditEntityRecord( 'root', 'site', undefined, edits );\n\t};\n\n\treturn (\n\t\t<Page title={ __( 'Identity' ) } hasPadding>\n\t\t\t<DataForm\n\t\t\t\tdata={ data }\n\t\t\t\tfields={ fields }\n\t\t\t\tform={ form }\n\t\t\t\tonChange={ onChange }\n\t\t\t/>\n\t\t</Page>\n\t);\n}\n"],
5
+ "mappings": ";AAGA,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,WAAW,mBAAmB;AACvC,SAAS,SAAS,iBAAiB;AACnC,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAqEvB;AAnEH,IAAM,SAAS;AAAA,EACd;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,GAAI,YAAa;AAAA,IACxB,aAAa;AAAA,MACZ;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,GAAI,cAAe;AAAA,IAC1B,aAAa;AAAA,MACZ;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,GAAI,WAAY;AAAA,IACvB,aAAa;AAAA,MACZ;AAAA,IACD;AAAA,IACA,aAAa,GAAI,aAAc;AAAA,IAC/B,MAAM;AAAA,IACN,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,MAC5B,WAAW,SAAS;AAAA,IACrB;AAAA,EACD;AAAA,EACA;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,GAAI,WAAY;AAAA,IACvB,aAAa;AAAA,MACZ;AAAA,IACD;AAAA,IACA,aAAa,GAAI,aAAc;AAAA,IAC/B,MAAM;AAAA,IACN,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,MAC5B,WAAW,SAAS;AAAA,IACrB;AAAA,EACD;AACD;AAEA,IAAM,OAAO;AAAA,EACZ,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,eAAe;AAAA,EAChB;AAAA,EACA,QAAQ,CAAE,SAAS,eAAe,aAAa,WAAY;AAC5D;AAEe,SAAR,kBAAmC;AACzC,QAAM,OAAO;AAAA,IACZ,CAAE,WACD,OAAQ,SAAU,EAAE,sBAAuB,QAAQ,MAAO;AAAA,IAC3D,CAAC;AAAA,EACF;AACA,QAAM,EAAE,iBAAiB,IAAI,YAAa,SAAU;AAEpD,QAAM,WAAW,CAAE,UAAW;AAC7B,qBAAkB,QAAQ,QAAQ,QAAW,KAAM;AAAA,EACpD;AAEA,SACC,oBAAC,QAAK,OAAQ,GAAI,UAAW,GAAI,YAAU,MAC1C;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACD,GACD;AAEF;",
6
6
  "names": []
7
7
  }
@@ -2330,7 +2330,7 @@ div.dataviews-view-list {
2330
2330
 
2331
2331
  .dataviews-view-activity {
2332
2332
  margin: 0 0 auto;
2333
- padding: 8px 24px;
2333
+ padding: 0 24px;
2334
2334
  }
2335
2335
 
2336
2336
  .dataviews-view-activity .dataviews-view-activity__group-header {
@@ -2427,7 +2427,7 @@ div.dataviews-view-list {
2427
2427
  }
2428
2428
 
2429
2429
  .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type {
2430
- width: 8px;
2430
+ width: 12px;
2431
2431
  }
2432
2432
 
2433
2433
  .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before {
@@ -3025,6 +3025,11 @@ fieldset.fields__media-edit .components-base-control__label {
3025
3025
  color: #1e1e1e;
3026
3026
  }
3027
3027
 
3028
+ fieldset.fields__media-edit .fields__media-edit-description {
3029
+ font-size: 12px;
3030
+ line-height: 1.5;
3031
+ }
3032
+
3028
3033
  fieldset.fields__media-edit {
3029
3034
  /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
3030
3035
  container-type: inline-size;
@@ -3881,6 +3886,7 @@ button.font-library__upload-area {
3881
3886
  background: #fff;
3882
3887
  padding: 12px;
3883
3888
  border-top: 1px solid #ddd;
3889
+ box-sizing: border-box;
3884
3890
  }
3885
3891
 
3886
3892
  .global-styles-ui-variations_item {
@@ -2330,7 +2330,7 @@ div.dataviews-view-list {
2330
2330
 
2331
2331
  .dataviews-view-activity {
2332
2332
  margin: 0 0 auto;
2333
- padding: 8px 24px;
2333
+ padding: 0 24px;
2334
2334
  }
2335
2335
 
2336
2336
  .dataviews-view-activity .dataviews-view-activity__group-header {
@@ -2427,7 +2427,7 @@ div.dataviews-view-list {
2427
2427
  }
2428
2428
 
2429
2429
  .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type {
2430
- width: 8px;
2430
+ width: 12px;
2431
2431
  }
2432
2432
 
2433
2433
  .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before {
@@ -3025,6 +3025,11 @@ fieldset.fields__media-edit .components-base-control__label {
3025
3025
  color: #1e1e1e;
3026
3026
  }
3027
3027
 
3028
+ fieldset.fields__media-edit .fields__media-edit-description {
3029
+ font-size: 12px;
3030
+ line-height: 1.5;
3031
+ }
3032
+
3028
3033
  fieldset.fields__media-edit {
3029
3034
  /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
3030
3035
  container-type: inline-size;
@@ -3881,6 +3886,7 @@ button.font-library__upload-area {
3881
3886
  background: #fff;
3882
3887
  padding: 12px;
3883
3888
  border-top: 1px solid #ddd;
3889
+ box-sizing: border-box;
3884
3890
  }
3885
3891
 
3886
3892
  .global-styles-ui-variations_item {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.43.0",
3
+ "version": "6.43.1-next.v.202604091042.0+668146787",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -48,50 +48,50 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "@react-spring/web": "^9.4.5",
51
- "@wordpress/a11y": "^4.43.0",
52
- "@wordpress/admin-ui": "^1.11.0",
53
- "@wordpress/api-fetch": "^7.43.0",
54
- "@wordpress/base-styles": "^6.19.0",
55
- "@wordpress/blob": "^4.43.0",
56
- "@wordpress/block-editor": "^15.16.0",
57
- "@wordpress/block-library": "^9.43.0",
58
- "@wordpress/blocks": "^15.16.0",
59
- "@wordpress/commands": "^1.43.0",
60
- "@wordpress/components": "^32.5.0",
61
- "@wordpress/compose": "^7.43.0",
62
- "@wordpress/core-data": "^7.43.0",
63
- "@wordpress/data": "^10.43.0",
64
- "@wordpress/dataviews": "^14.0.0",
65
- "@wordpress/date": "^5.43.0",
66
- "@wordpress/deprecated": "^4.43.0",
67
- "@wordpress/dom": "^4.43.0",
68
- "@wordpress/editor": "^14.43.0",
69
- "@wordpress/element": "^6.43.0",
70
- "@wordpress/escape-html": "^3.43.0",
71
- "@wordpress/fields": "^0.35.0",
72
- "@wordpress/global-styles-engine": "^1.10.0",
73
- "@wordpress/global-styles-ui": "^1.10.0",
74
- "@wordpress/hooks": "^4.43.0",
75
- "@wordpress/html-entities": "^4.43.0",
76
- "@wordpress/i18n": "^6.16.0",
77
- "@wordpress/icons": "^12.1.0",
78
- "@wordpress/keyboard-shortcuts": "^5.43.0",
79
- "@wordpress/keycodes": "^4.43.0",
80
- "@wordpress/media-utils": "^5.43.0",
81
- "@wordpress/notices": "^5.43.0",
82
- "@wordpress/patterns": "^2.43.0",
83
- "@wordpress/plugins": "^7.43.0",
84
- "@wordpress/preferences": "^4.43.0",
85
- "@wordpress/primitives": "^4.43.0",
86
- "@wordpress/private-apis": "^1.43.0",
87
- "@wordpress/reusable-blocks": "^5.43.0",
88
- "@wordpress/router": "^1.43.0",
89
- "@wordpress/style-engine": "^2.43.0",
90
- "@wordpress/url": "^4.43.0",
91
- "@wordpress/viewport": "^6.43.0",
92
- "@wordpress/views": "^1.10.0",
93
- "@wordpress/widgets": "^4.43.0",
94
- "@wordpress/wordcount": "^4.43.0",
51
+ "@wordpress/a11y": "^4.43.1-next.v.202604091042.0+668146787",
52
+ "@wordpress/admin-ui": "^1.11.1-next.v.202604091042.0+668146787",
53
+ "@wordpress/api-fetch": "^7.43.1-next.v.202604091042.0+668146787",
54
+ "@wordpress/base-styles": "^6.19.1-next.v.202604091042.0+668146787",
55
+ "@wordpress/blob": "^4.43.1-next.v.202604091042.0+668146787",
56
+ "@wordpress/block-editor": "^15.16.1-next.v.202604091042.0+668146787",
57
+ "@wordpress/block-library": "^9.43.1-next.v.202604091042.0+668146787",
58
+ "@wordpress/blocks": "^15.16.1-next.v.202604091042.0+668146787",
59
+ "@wordpress/commands": "^1.43.1-next.v.202604091042.0+668146787",
60
+ "@wordpress/components": "^32.5.2-next.v.202604091042.0+668146787",
61
+ "@wordpress/compose": "^7.43.1-next.v.202604091042.0+668146787",
62
+ "@wordpress/core-data": "^7.43.2-next.v.202604091042.0+668146787",
63
+ "@wordpress/data": "^10.43.1-next.v.202604091042.0+668146787",
64
+ "@wordpress/dataviews": "^14.1.1-next.v.202604091042.0+668146787",
65
+ "@wordpress/date": "^5.43.1-next.v.202604091042.0+668146787",
66
+ "@wordpress/deprecated": "^4.43.1-next.v.202604091042.0+668146787",
67
+ "@wordpress/dom": "^4.43.1-next.v.202604091042.0+668146787",
68
+ "@wordpress/editor": "^14.43.1-next.v.202604091042.0+668146787",
69
+ "@wordpress/element": "^6.44.1-next.v.202604091042.0+668146787",
70
+ "@wordpress/escape-html": "^3.43.1-next.v.202604091042.0+668146787",
71
+ "@wordpress/fields": "^0.35.1-next.v.202604091042.0+668146787",
72
+ "@wordpress/global-styles-engine": "^1.10.1-next.v.202604091042.0+668146787",
73
+ "@wordpress/global-styles-ui": "^1.10.1-next.v.202604091042.0+668146787",
74
+ "@wordpress/hooks": "^4.43.1-next.v.202604091042.0+668146787",
75
+ "@wordpress/html-entities": "^4.43.1-next.v.202604091042.0+668146787",
76
+ "@wordpress/i18n": "^6.17.1-next.v.202604091042.0+668146787",
77
+ "@wordpress/icons": "^12.1.1-next.v.202604091042.0+668146787",
78
+ "@wordpress/keyboard-shortcuts": "^5.43.1-next.v.202604091042.0+668146787",
79
+ "@wordpress/keycodes": "^4.43.1-next.v.202604091042.0+668146787",
80
+ "@wordpress/media-utils": "^5.43.1-next.v.202604091042.0+668146787",
81
+ "@wordpress/notices": "^5.43.1-next.v.202604091042.0+668146787",
82
+ "@wordpress/patterns": "^2.43.1-next.v.202604091042.0+668146787",
83
+ "@wordpress/plugins": "^7.43.1-next.v.202604091042.0+668146787",
84
+ "@wordpress/preferences": "^4.43.1-next.v.202604091042.0+668146787",
85
+ "@wordpress/primitives": "^4.43.1-next.v.202604091042.0+668146787",
86
+ "@wordpress/private-apis": "^1.43.1-next.v.202604091042.0+668146787",
87
+ "@wordpress/reusable-blocks": "^5.43.1-next.v.202604091042.0+668146787",
88
+ "@wordpress/router": "^1.43.1-next.v.202604091042.0+668146787",
89
+ "@wordpress/style-engine": "^2.43.1-next.v.202604091042.0+668146787",
90
+ "@wordpress/url": "^4.43.1-next.v.202604091042.0+668146787",
91
+ "@wordpress/viewport": "^6.43.1-next.v.202604091042.0+668146787",
92
+ "@wordpress/views": "^1.10.1-next.v.202604091042.0+668146787",
93
+ "@wordpress/widgets": "^4.43.1-next.v.202604091042.0+668146787",
94
+ "@wordpress/wordcount": "^4.43.1-next.v.202604091042.0+668146787",
95
95
  "change-case": "^4.1.2",
96
96
  "clsx": "^2.1.1",
97
97
  "colord": "^2.9.2",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "2cea90674d11aa521ec3f71652fb3a6a4c383969"
109
+ "gitHead": "73606df74f1c38a084bfa5db97205259ef817593"
110
110
  }
@@ -49,7 +49,7 @@ export default function SiteExport() {
49
49
  let error = {};
50
50
  try {
51
51
  error = await errorResponse.json();
52
- } catch ( e ) {}
52
+ } catch {}
53
53
  const errorMessage =
54
54
  error.message && error.code !== 'unknown_error'
55
55
  ? error.message
@@ -9,6 +9,22 @@ import { DataForm } from '@wordpress/dataviews';
9
9
  import { MediaEdit } from '@wordpress/fields';
10
10
 
11
11
  const fields = [
12
+ {
13
+ id: 'title',
14
+ type: 'text',
15
+ label: __( 'Site Title' ),
16
+ description: __(
17
+ "Displays in your site's layout via the Site Title block."
18
+ ),
19
+ },
20
+ {
21
+ id: 'description',
22
+ type: 'text',
23
+ label: __( 'Site Tagline' ),
24
+ description: __(
25
+ "In a few words, explain what this site is about. Displays in your site's layout via the Site Tagline block."
26
+ ),
27
+ },
12
28
  {
13
29
  id: 'site_logo',
14
30
  type: 'media',
@@ -42,7 +58,7 @@ const form = {
42
58
  type: 'regular',
43
59
  labelPosition: 'top',
44
60
  },
45
- fields: [ 'site_logo', 'site_icon' ],
61
+ fields: [ 'title', 'description', 'site_logo', 'site_icon' ],
46
62
  };
47
63
 
48
64
  export default function SidebarIdentity() {