Full Site Editing - Version 3.10516

Version Description

Download this release

Release Info

Developer automattic
Plugin Icon wp plugin Full Site Editing
Version 3.10516
Comparing to
See all releases

Code changes from version 3.10498 to 3.10516

dotcom-fse/class-full-site-editing.php CHANGED
@@ -61,6 +61,7 @@ class Full_Site_Editing {
61
  add_action( 'pre_delete_term', array( $this, 'restrict_template_taxonomy_deletion' ), 10, 2 );
62
  add_action( 'transition_post_status', array( $this, 'restrict_template_drafting' ), 10, 3 );
63
  add_action( 'admin_menu', array( $this, 'remove_wp_admin_menu_items' ) );
 
64
 
65
  $this->theme_slug = normalize_theme_slug( get_stylesheet() );
66
  $this->wp_template_inserter = new WP_Template_Inserter( $this->theme_slug );
@@ -625,4 +626,20 @@ class Full_Site_Editing {
625
  )
626
  );
627
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
628
  }
61
  add_action( 'pre_delete_term', array( $this, 'restrict_template_taxonomy_deletion' ), 10, 2 );
62
  add_action( 'transition_post_status', array( $this, 'restrict_template_drafting' ), 10, 3 );
63
  add_action( 'admin_menu', array( $this, 'remove_wp_admin_menu_items' ) );
64
+ add_filter( 'block_editor_rest_api_preload_paths', array( $this, 'preload_template_parts' ), 10, 2 );
65
 
66
  $this->theme_slug = normalize_theme_slug( get_stylesheet() );
67
  $this->wp_template_inserter = new WP_Template_Inserter( $this->theme_slug );
626
  )
627
  );
628
  }
629
+
630
+ /**
631
+ * Preload the path used to request a template part post when editing it in the block editor.
632
+ *
633
+ * @param array $paths Preload paths.
634
+ * @param WP_Block_Editor_Context $context Current editor context.
635
+ * @return $paths Filtered preload paths.
636
+ */
637
+ public function preload_template_parts( $paths, $context ) {
638
+ $post = $context->post;
639
+
640
+ if ( $post && 'wp_template_part' === $post->post_type ) {
641
+ $paths[] = sprintf( '/wp/v2/template_parts?wp_id=%s&context=edit', $post->ID );
642
+ }
643
+ return $paths;
644
+ }
645
  }
dotcom-fse/dist/dotcom-fse.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => 'b20a1e2eb29cb9cd18cdeadcdf1ef896');
1
+ <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => 'b61c55e3a8fd407116c529a02b013d41');
dotcom-fse/dist/dotcom-fse.css CHANGED
@@ -1 +1 @@
1
- .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-left:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-left:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"],.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;left:0;margin:0;opacity:0;padding:0;position:absolute;right:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-right:10px;border:none;border-right:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-left:-7px}@media(max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-2px}}@media(max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-right:24px}@media(max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media(max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle,.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}.post-type-wp_template_part .edit-post-visual-editor{margin-top:20px;padding-top:0}.post-type-wp_template_part .editor-post-switch-to-draft{display:none}@media(min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-left:0;padding-right:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-left:0;margin-right:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-right:14px;margin-left:14px}@media(max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media(max-width:600px){.components-dropdown.table-of-contents{display:none}}
1
+ .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-left:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-left:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"],.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;left:0;margin:0;opacity:0;padding:0;position:absolute;right:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-right:10px;border:none;border-right:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-left:-7px}@media(max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-2px}}@media(max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-right:24px}@media(max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media(max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle,.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-switch-to-draft,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}@media(min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-left:0;padding-right:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-left:0;margin-right:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-right:14px;margin-left:14px}@media(max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media(max-width:600px){.components-dropdown.table-of-contents{display:none}}
dotcom-fse/dist/dotcom-fse.js CHANGED
@@ -3,4 +3,4 @@
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&t.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6959:function(){},7148:function(){},3920:function(){},9861:function(){},6913:function(){},7252:function(){},784:function(){},6254:function(){},1428:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(9314);function o(){for(var t=(0,r.getCategories)(),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=function(){var e=c[l];if(t.some((function(t){return t.slug===e})))return{v:e}},l=0,c=n;l<c.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}},49:function(t,e,n){"use strict";var r=n(3027),o=n(9775),i=n.n(o),l=n(1417),c=n(3163),s=n(6399),a=n(7997),u=n(5707),__=c.__;e.Z=(0,l.compose)([(0,s.withColors)("backgroundColor",{textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,u.withSelect)((function(t){return{isPublished:t("core/editor").isCurrentPostPublished()}}))])((function(t){var e=t.attributes,n=t.backgroundColor,o=t.fontSize,l=t.setAttributes,c=t.setBackgroundColor,u=t.setFontSize,d=t.setTextColor,f=t.textColor,p=t.isPublished,m=e.customFontSize,g=e.textAlign,v=m||o.size;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(s.AlignmentToolbar,{value:g,onChange:function(t){l({textAlign:t})}})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(a.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,r.createElement)(s.FontSizePicker,{onChange:u,value:v})),(0,r.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:c,label:__("Background Color","full-site-editing")},{value:f.color,onChange:d,label:__("Text Color","full-site-editing")}]},(0,r.createElement)(s.ContrastChecker,{textColor:f.color,backgroundColor:n.color,fontSize:v}))),(0,r.createElement)(i(),{isPublished:p,block:"a8c/navigation-menu",attributes:e}))}))},4018:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(49),c=n(1428),__=(n(6959),i.__),s=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,o.registerBlockType)("a8c/navigation-menu",{title:__("Navigation Menu","full-site-editing"),description:__("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:s,category:(0,c.R)("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:l.Z,save:function(){return null}})},966:function(t,e,n){"use strict";var r=n(1119),o=n(4659),i=n(4730),l=n(5663),c=n(9049),s=n(3027),a=n(2779),u=n.n(a),d=n(1417),f=n(5707),p=n(8885),m=n(6399),g=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n,[{key:"toggleEditing",value:function(){var t=this.props,e=t.isEditing;(0,t.setState)({isEditing:!e})}},{key:"onSelectPost",value:function(t){var e=t.id,n=t.type;this.props.setState({isEditing:!1,selectedPostId:e,selectedPostType:n})}},{key:"render",value:function(){var t=this.props.attributes.align;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:u()("post-content-block",(0,r.Z)({},"align".concat(t),t))},(0,s.createElement)(p.PostTitle,null),(0,s.createElement)(m.InnerBlocks,{templateLock:!1})))}}]),n}(s.Component);e.Z=(0,d.compose)([(0,d.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,f.withSelect)((function(t,e){var n=e.selectedPostId,r=e.selectedPostType;return{selectedPost:(0,t("core").getEntityRecord)("postType",r,n)}}))])(g)},7308:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(9314),c=n(3163),s=n(5799),a=n(966),u=n(3175),d=n(1428),__=(n(7148),c.__);(0,l.registerBlockType)("a8c/post-content",{title:__("Content","full-site-editing"),description:__("The page content.","full-site-editing"),icon:"layout",category:(0,d.R)("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:a.Z,save:u.Z});var f=(0,i.createHigherOrderComponent)((function(t){return function(e){return"a8c/post-content"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",f,9)},3175:function(t,e,n){"use strict";var r=n(3027),o=n(6399);e.Z=function(){return(0,r.createElement)(o.InnerBlocks.Content,null)}},1097:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(7997),a=n(1417),u=n(3163),d=n(6284),f=n(8558),__=u.__,p=fullSiteEditing,m=p.footerCreditOptions,g=p.defaultCreditOption;e.Z=(0,a.compose)([(0,d.g)({siteTitleOption:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:__("Footer credit loading…","full-site-editing")}})])((function(t){var e=t.attributes.textAlign,n=void 0===e?"center":e,i=t.isSelected,a=t.setAttributes,u=t.footerCreditOption,d=u.value,p=u.updateValue,v=t.siteTitleOption.value,b=d||g;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:n,onChange:function(t){a({textAlign:t})}})),(0,o.createElement)("div",{className:l()("site-info","site-credit__block",(0,r.Z)({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},v),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},i?(0,o.createElement)(s.SelectControl,{onChange:p,value:b,options:m}):(0,o.createElement)(f.U,{choice:b}))))}))},8558:function(t,e,n){"use strict";n.d(e,{U:function(){return c}});var r=n(9394),o=n(3027),i=n(7997),l=fullSiteEditing.footerCreditOptions,c=function(t){var e=t.choice,n=l.find((function(t){return t.value===e}));if(!n)return null;var c=n.renderType,s=n.renderProps,a=n.label,u=(0,r.Z)({label:a},s);return"icon"===c?(0,o.createElement)(i.Icon,u):(0,o.createElement)("span",null," ",u.label," ")}},6367:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1097),l=n(1428),__=(n(3920),o.__);(0,r.registerBlockType)("a8c/site-credit",{title:__("WordPress.com Credit","full-site-editing"),description:__("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:i.Z,save:function(){return null}})},942:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(1417),a=n(5707),u=n(3163),d=n(7997),f=n(6284),__=u.__,p=function(){};e.Z=(0,s.compose)([(0,c.withColors)("backgroundColor",{textColor:"color"}),(0,c.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteDescription:{optionName:"description",defaultValue:__("Site description loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.backgroundColor,s=t.className,a=t.fontSize,u=t.insertDefaultBlock,f=t.setAttributes,m=t.setBackgroundColor,g=t.setFontSize,v=t.setTextColor,b=t.siteDescription,y=t.textColor,h=n.customFontSize,w=n.textAlign,S=h||a.size,E=b.value,k=b.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:w,onChange:function(t){f({textAlign:t})}})),(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(c.FontSizePicker,{onChange:g,value:S})),(0,o.createElement)(c.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:i.color,onChange:m,label:__("Background Color","full-site-editing")},{value:y.color,onChange:v,label:__("Text Color","full-site-editing")}]},(0,o.createElement)(c.ContrastChecker,{textColor:y.color,backgroundColor:i.color,fontSize:S}))),(0,o.createElement)(c.RichText,{allowedFormats:[],"aria-label":__("Site Description","full-site-editing"),className:l()("site-description",s,(e={"has-text-color":y.color,"has-background":i.color},(0,r.Z)(e,"has-text-align-".concat(w),w),(0,r.Z)(e,i.class,i.class),(0,r.Z)(e,y.class,y.class),(0,r.Z)(e,a.class,!h&&a.class),e)),identifier:"content",onChange:k,onReplace:u,onSplit:p,placeholder:__("Add a Site Description","full-site-editing"),style:{backgroundColor:i.color,color:y.color,fontSize:S?S+"px":void 0},tagName:"p",value:E}))}))},5129:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(942),c=n(1428),__=(n(9861),i.__);(0,o.registerBlockType)("a8c/site-description",{title:__("Site Description","full-site-editing"),description:__("Site description, also known as the tagline.","full-site-editing"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:(0,c.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:l.Z,save:function(){return null}})},512:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(3163),s=n(6399),a=n(5707),u=n(1417),d=n(7997),f=n(6284),__=c.__,p=function(){};e.Z=(0,u.compose)([(0,s.withColors)({textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteTitle:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.className,c=t.fontSize,a=t.insertDefaultBlock,u=t.setAttributes,f=t.setFontSize,m=t.setTextColor,g=t.siteTitle,v=t.textColor,b=n.customFontSize,y=n.textAlign,h=b||c.size,w=g.value,S=g.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(s.AlignmentToolbar,{value:y,onChange:function(t){u({textAlign:t})}})),(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(s.FontSizePicker,{onChange:f,value:h})),(0,o.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:v.color,onChange:m,label:__("Text Color","full-site-editing")}]})),(0,o.createElement)(s.RichText,{allowedFormats:[],"aria-label":__("Site Title","full-site-editing"),className:l()("site-title",i,(e={"has-text-color":v.color},(0,r.Z)(e,"has-text-align-".concat(y),y),(0,r.Z)(e,v.class,v.class),(0,r.Z)(e,c.class,!b&&c.class),e)),identifier:"content",onChange:S,onReplace:a,onSplit:p,placeholder:__("Add a Site Title","full-site-editing"),style:{color:v.color,fontSize:h?h+"px":void 0},tagName:"h1",value:w}))}))},5725:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(512),l=n(1428),__=(n(6913),o.__);(0,r.registerBlockType)("a8c/site-title",{title:__("Site Title","full-site-editing"),description:__("Your site title.","full-site-editing"),icon:"layout",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:i.Z,save:function(){return null}})},6594:function(t,e,n){"use strict";var r=n(1119),o=n(3258),i=n(3027),l=n(2779),c=n.n(l),s=n(3804),a=n(9314),u=n(6399),d=n(7997),f=n(1417),p=n(5707),m=n(3163),g=n(791),__=(n(7252),m.__),v=function(){},b=(0,f.compose)((0,f.withState)({templateClientId:null}),(0,p.withSelect)((function(t,e){var n=e.attributes,r=e.templateClientId,o=t("core").getEntityRecord,i=t("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,a=t("core/block-editor"),u=a.getBlock,d=a.getSelectedBlock,f=t("core/edit-post").isEditorSidebarOpened,p=n.templateId,m=l(),v=p&&o("postType","wp_template_part",p),b=(0,g.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:m}),y=d();return{currentPostId:m,editTemplateUrl:b,template:v,templateBlock:u(r),templateTitle:(0,s.get)(v,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!f(),isAnyTemplateBlockSelected:y&&"a8c/template"===y.name}})),(0,p.withDispatch)((function(t,e){var n=t("core/block-editor").receiveBlocks,r=t("core/edit-post").openGeneralSidebar,o=e.template,i=e.templateClientId,l=e.setState;return{savePost:t("core/editor").savePost,receiveTemplateBlocks:function(){if(o&&!i){var t=(0,a.parse)((0,s.get)(o,["content","raw"],"")),e=(0,a.createBlock)("core/group",{},t);n([e]),l({templateClientId:e.clientId})}},openGeneralSidebar:r}})))((function(t){var e,n=t.attributes,l=t.editTemplateUrl,s=t.receiveTemplateBlocks,a=t.template,f=t.templateBlock,p=t.templateTitle,g=t.isDirty,b=t.savePost,y=t.isEditorSidebarOpened,h=t.openGeneralSidebar,w=t.isAnyTemplateBlockSelected;if(!a)return(0,i.createElement)(d.Placeholder,{className:"template-block__placeholder"},(0,i.createElement)(d.Spinner,null));var S=(0,i.createRef)(),E=(0,i.useState)(!1),k=(0,o.Z)(E,2),C=k[0],Z=k[1];(0,i.useEffect)((function(){C&&!g&&S.current.click(),s()})),(0,i.useEffect)((function(){var t=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(y&&t){if(w)return h("edit-post/document"),void t.classList.add("hidden");t.classList.remove("hidden")}}),[w,y,h]);var _=n.align,P=n.className,x=function(t){t.stopPropagation(),Z(!0),g&&(t.preventDefault(),b())};return(0,i.createElement)("div",{className:c()("template-block",(e={},(0,r.Z)(e,"align".concat(_),_),(0,r.Z)(e,"is-navigating-to-template",C),e))},f&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.Disabled,null,(0,i.createElement)("div",{className:P},(0,i.createElement)(u.BlockEdit,{attributes:f.attributes,block:f,clientId:f.clientId,isSelected:!1,name:f.name,setAttributes:v}))),(0,i.createElement)(d.Placeholder,{className:"template-block__overlay",onClick:x},C&&(0,i.createElement)("div",{className:"template-block__loading"},(0,i.createElement)(d.Spinner,null)," ",(0,m.sprintf)(__("Loading editor for: %s","full-site-editing"),p)),(0,i.createElement)(d.Button,{className:C?"hidden":null,href:l,onClick:x,isDefault:!0,isLarge:!0,ref:S},(0,m.sprintf)(__("Edit %s","full-site-editing"),p)))))}));e.Z=b},4987:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(3163),c=n(1417),s=n(5799),a=n(6594),u=n(1428),__=(n(7252),n(4498),l.__);"wp_template_part"!==fullSiteEditing.editorPostType&&(0,i.registerBlockType)("a8c/template",{title:__("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:__("Display a Template Part.","full-site-editing"),icon:"layout",category:(0,u.R)("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:a.Z,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var d=(0,c.createHigherOrderComponent)((function(t){return function(e){return"a8c/template"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",d,9)},4498:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(5799),c=(0,i.createHigherOrderComponent)((function(t){return function(e){return"fse-site-logo"!==e.attributes.className?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,l.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",c)},9987:function(t,e,n){"use strict";var r=n(3027),o=n(7531),i=n.n(o),l=n(8259),c="fse-post-content-block-inserter";function s(){if(!document.getElementById(c)){var t=document.querySelector(".edit-post-header-toolbar");if(t){var e=document.createElement("div");e.className="fse-post-content-block-inserter",e.id=c,t.insertBefore(e,t.firstChild),(0,r.render)((0,r.createElement)(l.Z,null),e)}}}i()((function(){if("page"===fullSiteEditing.editorPostType)var t=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(t),s(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(s).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}))},8259:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(1417),l=n(5707),c=(0,i.compose)((0,l.withSelect)((function(t){var e=t("core/editor").getEditorSettings,n=t("core/block-editor").getBlocks,r=t("core/edit-post").getEditorMode,o=n().find((function(t){return"a8c/post-content"===t.name}));return{rootClientId:o?o.clientId:"",showInserter:"visual"===r()&&e().richEditingEnabled}})))((function(t){var e=t.rootClientId,n=t.showInserter;return(0,r.createElement)(o.Inserter,{rootClientId:e,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));e.Z=c},6970:function(t,e,n){"use strict";var r=n(9394),o=n(5799),i=["logo","brand","emblem","hallmark"];(0,o.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(t,e){return"core/image"!==e?t:t=(0,r.Z)((0,r.Z)({},t),{},{keywords:t.keywords.concat(i)})}))},7111:function(t,e,n){"use strict";n(9987),n(1860),n(6970),n(784),n(3644),n(711),n(1321)},1321:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){var t=(0,r.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&t("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&t("post-status"),o()}))},711:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;if("core/editor"===e&&n.editPost&&"wp_template_part"===o){var i=n.editPost;n.editPost=function(t){"draft"!==t.status&&i(t)}}return n}}}))},3644:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;return"core/editor"===e&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}}))},1860:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return o();!1===(0,r.select)("core/block-editor").isValidTemplate()&&(0,r.dispatch)("core/block-editor").setTemplateValidity(!0)}))},6284:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});var r=n(4825)},4825:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(4351);var r=n(29)},5333:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(3027);function o(t){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=t}),[t]),e.current}},4351:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var r=n(1119),o=n(9394),i=n(3258),l=n(3163),c=n(3027),s=n(7606),a=n.n(s),u=n(1424),d=n(5333),__=l.__;function f(t,e,n,s,f,p){var m=(0,c.useState)({option:e,previousOption:"",loaded:!1,error:!1}),g=(0,i.Z)(m,2),v=g[0],b=g[1],y=(0,d.D)(s),h=(0,d.D)(f);function w(){b((0,o.Z)((0,o.Z)({},v),{},{option:v.previousOption,isSaving:!1}))}return(0,c.useEffect)((function(){v.loaded||v.error?function(){var e=v.option,i=v.previousOption,c=!i&&!e||e&&i&&e.trim()===i.trim(),u=!e||0===e.trim().length;!s&&y&&u&&w();if(!f||c)return;!h&&f&&function(e){b((0,o.Z)((0,o.Z)({},v),{},{isSaving:!0})),a()({path:"/wp/v2/settings",method:"POST",data:(0,r.Z)({},t,e)}).then((function(){return function(t){b((0,o.Z)((0,o.Z)({},v),{},{previousOption:t,isDirty:!1,isSaving:!1}))}(e)})).catch((function(){n((0,l.sprintf)(__("Unable to save site %s","full-site-editing"),t)),w()}))}(e)}():a()({path:"/wp/v2/settings"}).then((function(e){return b((0,o.Z)((0,o.Z)({},v),{},{option:(0,u.decodeEntities)(e[t]),previousOption:(0,u.decodeEntities)(e[t]),loaded:!0,error:!1}))})).catch((function(){n((0,l.sprintf)(__("Unable to load site %s","full-site-editing"),t)),b((0,o.Z)((0,o.Z)({},v),{},{option:(0,l.sprintf)(__("Error loading site %s","full-site-editing"),t),error:!0}))}))})),{siteOptions:v,handleChange:function(t){p({updated:Date.now()}),b((0,o.Z)((0,o.Z)({},v),{},{option:t}))}}}},29:function(t,e,n){"use strict";n.d(e,{g:function(){return s}});var r=n(7560),o=n(3027),i=n(1417),l=n(5707),c=n(4351),s=function(t){return(0,i.createHigherOrderComponent)((function(e){return(0,i.pure)((function(n){var i=(0,l.useSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isPublishingPost,o=e.isAutosavingPost,i=e.isCurrentPostPublished;return(n()&&i()||r())&&!o()})),s=(0,l.useDispatch)((function(t){return t("core/notices").createErrorNotice})),a=n.isSelected,u=n.setAttributes,d=Object.keys(t).reduce((function(e,n){var r=t[n],o=r.optionName,l=r.defaultValue,d=(0,c.s)(o,l,s,a,i,u),f=d.siteOptions,p=d.handleChange;return e[n]={value:f.option,updateValue:p,loaded:f.loaded},e}),{});return(0,o.createElement)(e,(0,r.Z)({},n,d))}))}),"withSiteOptions")}},3427:function(t,e,n){"use strict";var r=n(3258),o=n(3027),i=n(7531),l=n.n(i),c=n(7196),s=n.n(c),a=n(3163),u=n(7997),__=(n(6254),a.__);function d(t){var e=t.defaultLabel,n=t.defaultUrl,i=(0,o.useState)(e),l=(0,r.Z)(i,2),c=l[0],s=l[1],a=(0,o.useState)(n),d=(0,r.Z)(a,2),f=d[0],p=d[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(t){s(t.label),p(t.closeUrl)})),(0,o.createElement)("a",{href:f,"aria-label":c},(0,o.createElement)(u.Button,{className:"components-button components-icon-button"},(0,o.createElement)(u.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},c)))}l()((function(){var t=fullSiteEditing.editorPostType;if("wp_template_part"===t||"page"===t||"post"===t)var e=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(e);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var i=fullSiteEditing,l=i.closeButtonLabel,c=i.closeButtonUrl,a=window.calypsoifyGutenberg;a&&a.closeUrl&&(c=a.closeUrl),a&&a.closeButtonLabel&&(l=a.closeButtonLabel);var u=c||"edit.php?post_type=".concat(t),f=l||"Back";"page"!==t||l?"post"!==t||l?"wp_template_part"!==t||l||(f=__("Template Parts","full-site-editing")):f=__("Posts","full-site-editing"):f=__("Pages","full-site-editing"),s().render((0,o.createElement)(d,{defaultLabel:f,defaultUrl:u}),r)}}))}))},601:function(t,e,n){"use strict";var r=n(1766),o=n(2779),i=n.n(o),l=n(3804),c=n(5707),s=n(1200),a=(0,c.withSelect)((function(t){var e=t("core").getEntityRecord,n=t("core/editor").getEditedPostAttribute;return{templateClasses:(0,l.map)(n("template_part_types"),(function(t){var n=(0,l.get)(e("taxonomy","wp_template_part_type",t),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(t){var e=t.templateClasses,n=setInterval((function(){var t=document.querySelector(".block-editor__typewriter > div");t&&(clearInterval(n),t.className=i().apply(void 0,["a8c-template-editor fse-template-part"].concat((0,r.Z)(e))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,s.registerPlugin)("fse-editor-template-classes",{render:a})},5052:function(t,e,n){"use strict";var r=n(7531),o=n.n(r),i=n(5707),l=n(3163),__=l.__;o()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,i.dispatch)("core/notices").createNotice("info",__("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}))},7196:function(t){"use strict";t.exports=window.ReactDOM},3804:function(t){"use strict";t.exports=window.lodash},7606:function(t){"use strict";t.exports=window.wp.apiFetch},6399:function(t){"use strict";t.exports=window.wp.blockEditor},9314:function(t){"use strict";t.exports=window.wp.blocks},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},7531:function(t){"use strict";t.exports=window.wp.domReady},8885:function(t){"use strict";t.exports=window.wp.editor},3027:function(t){"use strict";t.exports=window.wp.element},5799:function(t){"use strict";t.exports=window.wp.hooks},1424:function(t){"use strict";t.exports=window.wp.htmlEntities},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},9775:function(t){"use strict";t.exports=window.wp.serverSideRender},791:function(t){"use strict";t.exports=window.wp.url}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(4018),n(7308),n(6367),n(5129),n(5725),n(4987),n(3427),n(601),n(5052),n(7111)}(),window.EditingToolkit=r}();
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&t.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6959:function(){},7148:function(){},3920:function(){},9861:function(){},6913:function(){},7252:function(){},784:function(){},6254:function(){},1428:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(9314);function o(){for(var t=(0,r.getCategories)(),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=function(){var e=c[l];if(t.some((function(t){return t.slug===e})))return{v:e}},l=0,c=n;l<c.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}},49:function(t,e,n){"use strict";var r=n(3027),o=n(9775),i=n.n(o),l=n(1417),c=n(3163),s=n(6399),a=n(7997),u=n(5707),__=c.__;e.Z=(0,l.compose)([(0,s.withColors)("backgroundColor",{textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,u.withSelect)((function(t){return{isPublished:t("core/editor").isCurrentPostPublished()}}))])((function(t){var e=t.attributes,n=t.backgroundColor,o=t.fontSize,l=t.setAttributes,c=t.setBackgroundColor,u=t.setFontSize,d=t.setTextColor,f=t.textColor,p=t.isPublished,m=e.customFontSize,g=e.textAlign,v=m||o.size;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(s.AlignmentToolbar,{value:g,onChange:function(t){l({textAlign:t})}})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(a.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,r.createElement)(s.FontSizePicker,{onChange:u,value:v})),(0,r.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:c,label:__("Background Color","full-site-editing")},{value:f.color,onChange:d,label:__("Text Color","full-site-editing")}]},(0,r.createElement)(s.ContrastChecker,{textColor:f.color,backgroundColor:n.color,fontSize:v}))),(0,r.createElement)(i(),{isPublished:p,block:"a8c/navigation-menu",attributes:e}))}))},4018:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(49),c=n(1428),__=(n(6959),i.__),s=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,o.registerBlockType)("a8c/navigation-menu",{title:__("Navigation Menu","full-site-editing"),description:__("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:s,category:(0,c.R)("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:l.Z,save:function(){return null}})},966:function(t,e,n){"use strict";var r=n(1119),o=n(4659),i=n(4730),l=n(5663),c=n(9049),s=n(3027),a=n(2779),u=n.n(a),d=n(1417),f=n(5707),p=n(8885),m=n(6399),g=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n,[{key:"toggleEditing",value:function(){var t=this.props,e=t.isEditing;(0,t.setState)({isEditing:!e})}},{key:"onSelectPost",value:function(t){var e=t.id,n=t.type;this.props.setState({isEditing:!1,selectedPostId:e,selectedPostType:n})}},{key:"render",value:function(){var t=this.props.attributes.align;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:u()("post-content-block",(0,r.Z)({},"align".concat(t),t))},(0,s.createElement)(p.PostTitle,null),(0,s.createElement)(m.InnerBlocks,{templateLock:!1})))}}]),n}(s.Component);e.Z=(0,d.compose)([(0,d.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,f.withSelect)((function(t,e){var n=e.selectedPostId,r=e.selectedPostType;return{selectedPost:(0,t("core").getEntityRecord)("postType",r,n)}}))])(g)},7308:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(9314),c=n(3163),s=n(5799),a=n(966),u=n(3175),d=n(1428),__=(n(7148),c.__);(0,l.registerBlockType)("a8c/post-content",{title:__("Content","full-site-editing"),description:__("The page content.","full-site-editing"),icon:"layout",category:(0,d.R)("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:a.Z,save:u.Z});var f=(0,i.createHigherOrderComponent)((function(t){return function(e){return"a8c/post-content"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",f,9)},3175:function(t,e,n){"use strict";var r=n(3027),o=n(6399);e.Z=function(){return(0,r.createElement)(o.InnerBlocks.Content,null)}},1097:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(7997),a=n(1417),u=n(3163),d=n(6284),f=n(8558),__=u.__,p=fullSiteEditing,m=p.footerCreditOptions,g=p.defaultCreditOption;e.Z=(0,a.compose)([(0,d.g)({siteTitleOption:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:__("Footer credit loading…","full-site-editing")}})])((function(t){var e=t.attributes.textAlign,n=void 0===e?"center":e,i=t.isSelected,a=t.setAttributes,u=t.footerCreditOption,d=u.value,p=u.updateValue,v=t.siteTitleOption.value,b=d||g;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:n,onChange:function(t){a({textAlign:t})}})),(0,o.createElement)("div",{className:l()("site-info","site-credit__block",(0,r.Z)({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},v),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},i?(0,o.createElement)(s.SelectControl,{onChange:p,value:b,options:m}):(0,o.createElement)(f.U,{choice:b}))))}))},8558:function(t,e,n){"use strict";n.d(e,{U:function(){return c}});var r=n(9394),o=n(3027),i=n(7997),l=fullSiteEditing.footerCreditOptions,c=function(t){var e=t.choice,n=l.find((function(t){return t.value===e}));if(!n)return null;var c=n.renderType,s=n.renderProps,a=n.label,u=(0,r.Z)({label:a},s);return"icon"===c?(0,o.createElement)(i.Icon,u):(0,o.createElement)("span",null," ",u.label," ")}},6367:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1097),l=n(1428),__=(n(3920),o.__);(0,r.registerBlockType)("a8c/site-credit",{title:__("WordPress.com Credit","full-site-editing"),description:__("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:i.Z,save:function(){return null}})},942:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(1417),a=n(5707),u=n(3163),d=n(7997),f=n(6284),__=u.__,p=function(){};e.Z=(0,s.compose)([(0,c.withColors)("backgroundColor",{textColor:"color"}),(0,c.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteDescription:{optionName:"description",defaultValue:__("Site description loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.backgroundColor,s=t.className,a=t.fontSize,u=t.insertDefaultBlock,f=t.setAttributes,m=t.setBackgroundColor,g=t.setFontSize,v=t.setTextColor,b=t.siteDescription,y=t.textColor,h=n.customFontSize,w=n.textAlign,S=h||a.size,E=b.value,k=b.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:w,onChange:function(t){f({textAlign:t})}})),(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(c.FontSizePicker,{onChange:g,value:S})),(0,o.createElement)(c.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:i.color,onChange:m,label:__("Background Color","full-site-editing")},{value:y.color,onChange:v,label:__("Text Color","full-site-editing")}]},(0,o.createElement)(c.ContrastChecker,{textColor:y.color,backgroundColor:i.color,fontSize:S}))),(0,o.createElement)(c.RichText,{allowedFormats:[],"aria-label":__("Site Description","full-site-editing"),className:l()("site-description",s,(e={"has-text-color":y.color,"has-background":i.color},(0,r.Z)(e,"has-text-align-".concat(w),w),(0,r.Z)(e,i.class,i.class),(0,r.Z)(e,y.class,y.class),(0,r.Z)(e,a.class,!h&&a.class),e)),identifier:"content",onChange:k,onReplace:u,onSplit:p,placeholder:__("Add a Site Description","full-site-editing"),style:{backgroundColor:i.color,color:y.color,fontSize:S?S+"px":void 0},tagName:"p",value:E}))}))},5129:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(942),c=n(1428),__=(n(9861),i.__);(0,o.registerBlockType)("a8c/site-description",{title:__("Site Description","full-site-editing"),description:__("Site description, also known as the tagline.","full-site-editing"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:(0,c.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:l.Z,save:function(){return null}})},512:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(3163),s=n(6399),a=n(5707),u=n(1417),d=n(7997),f=n(6284),__=c.__,p=function(){};e.Z=(0,u.compose)([(0,s.withColors)({textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteTitle:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.className,c=t.fontSize,a=t.insertDefaultBlock,u=t.setAttributes,f=t.setFontSize,m=t.setTextColor,g=t.siteTitle,v=t.textColor,b=n.customFontSize,y=n.textAlign,h=b||c.size,w=g.value,S=g.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(s.AlignmentToolbar,{value:y,onChange:function(t){u({textAlign:t})}})),(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(s.FontSizePicker,{onChange:f,value:h})),(0,o.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:v.color,onChange:m,label:__("Text Color","full-site-editing")}]})),(0,o.createElement)(s.RichText,{allowedFormats:[],"aria-label":__("Site Title","full-site-editing"),className:l()("site-title",i,(e={"has-text-color":v.color},(0,r.Z)(e,"has-text-align-".concat(y),y),(0,r.Z)(e,v.class,v.class),(0,r.Z)(e,c.class,!b&&c.class),e)),identifier:"content",onChange:S,onReplace:a,onSplit:p,placeholder:__("Add a Site Title","full-site-editing"),style:{color:v.color,fontSize:h?h+"px":void 0},tagName:"h1",value:w}))}))},5725:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(512),l=n(1428),__=(n(6913),o.__);(0,r.registerBlockType)("a8c/site-title",{title:__("Site Title","full-site-editing"),description:__("Your site title.","full-site-editing"),icon:"layout",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:i.Z,save:function(){return null}})},6594:function(t,e,n){"use strict";var r=n(1119),o=n(3258),i=n(3027),l=n(2779),c=n.n(l),s=n(3804),a=n(9314),u=n(6399),d=n(7997),f=n(1417),p=n(5707),m=n(3163),g=n(791),__=(n(7252),m.__),v=function(){},b=(0,f.compose)((0,f.withState)({templateClientId:null}),(0,p.withSelect)((function(t,e){var n=e.attributes,r=e.templateClientId,o=t("core").getEntityRecord,i=t("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,a=t("core/block-editor"),u=a.getBlock,d=a.getSelectedBlock,f=t("core/edit-post").isEditorSidebarOpened,p=n.templateId,m=l(),v=p&&o("postType","wp_template_part",p),b=(0,g.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:m}),y=d();return{currentPostId:m,editTemplateUrl:b,template:v,templateBlock:u(r),templateTitle:(0,s.get)(v,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!f(),isAnyTemplateBlockSelected:y&&"a8c/template"===y.name}})),(0,p.withDispatch)((function(t,e){var n=t("core/block-editor").receiveBlocks,r=t("core/edit-post").openGeneralSidebar,o=e.template,i=e.templateClientId,l=e.setState;return{savePost:t("core/editor").savePost,receiveTemplateBlocks:function(){if(o&&!i){var t=(0,a.parse)((0,s.get)(o,["content","raw"],"")),e=(0,a.createBlock)("core/group",{},t);n([e]),l({templateClientId:e.clientId})}},openGeneralSidebar:r}})))((function(t){var e,n=t.attributes,l=t.editTemplateUrl,s=t.receiveTemplateBlocks,a=t.template,f=t.templateBlock,p=t.templateTitle,g=t.isDirty,b=t.savePost,y=t.isEditorSidebarOpened,h=t.openGeneralSidebar,w=t.isAnyTemplateBlockSelected;if(!a)return(0,i.createElement)(d.Placeholder,{className:"template-block__placeholder"},(0,i.createElement)(d.Spinner,null));var S=(0,i.createRef)(),E=(0,i.useState)(!1),k=(0,o.Z)(E,2),C=k[0],Z=k[1];(0,i.useEffect)((function(){C&&!g&&S.current.click(),s()})),(0,i.useEffect)((function(){var t=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(y&&t){if(w)return h("edit-post/document"),void t.classList.add("hidden");t.classList.remove("hidden")}}),[w,y,h]);var _=n.align,P=n.className,x=function(t){t.stopPropagation(),Z(!0),g&&(t.preventDefault(),b())};return(0,i.createElement)("div",{className:c()("template-block",(e={},(0,r.Z)(e,"align".concat(_),_),(0,r.Z)(e,"is-navigating-to-template",C),e))},f&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.Disabled,null,(0,i.createElement)("div",{className:P},(0,i.createElement)(u.BlockEdit,{attributes:f.attributes,block:f,clientId:f.clientId,isSelected:!1,name:f.name,setAttributes:v}))),(0,i.createElement)(d.Placeholder,{className:"template-block__overlay",onClick:x},C&&(0,i.createElement)("div",{className:"template-block__loading"},(0,i.createElement)(d.Spinner,null)," ",(0,m.sprintf)(__("Loading editor for: %s","full-site-editing"),p)),(0,i.createElement)(d.Button,{className:C?"hidden":null,href:l,onClick:x,isDefault:!0,isLarge:!0,ref:S},(0,m.sprintf)(__("Edit %s","full-site-editing"),p)))))}));e.Z=b},4987:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(3163),c=n(1417),s=n(5799),a=n(6594),u=n(1428),__=(n(7252),n(4498),l.__);"wp_template_part"!==fullSiteEditing.editorPostType&&(0,i.registerBlockType)("a8c/template",{title:__("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:__("Display a Template Part.","full-site-editing"),icon:"layout",category:(0,u.R)("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:a.Z,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var d=(0,c.createHigherOrderComponent)((function(t){return function(e){return"a8c/template"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",d,9)},4498:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(5799),c=(0,i.createHigherOrderComponent)((function(t){return function(e){return"fse-site-logo"!==e.attributes.className?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,l.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",c)},9987:function(t,e,n){"use strict";var r=n(3027),o=n(7531),i=n.n(o),l=n(8259),c="fse-post-content-block-inserter";function s(){if(!document.getElementById(c)){var t=document.querySelector(".edit-post-header-toolbar");if(t){var e=document.createElement("div");e.className="fse-post-content-block-inserter",e.id=c,t.insertBefore(e,t.firstChild),(0,r.render)((0,r.createElement)(l.Z,null),e)}}}i()((function(){if("page"===fullSiteEditing.editorPostType)var t=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(t),s(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(s).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}))},8259:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(1417),l=n(5707),c=(0,i.compose)((0,l.withSelect)((function(t){var e=t("core/editor").getEditorSettings,n=t("core/block-editor").getBlocks,r=t("core/edit-post").getEditorMode,o=n().find((function(t){return"a8c/post-content"===t.name}));return{rootClientId:o?o.clientId:"",showInserter:"visual"===r()&&e().richEditingEnabled}})))((function(t){var e=t.rootClientId,n=t.showInserter;return(0,r.createElement)(o.Inserter,{rootClientId:e,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));e.Z=c},6970:function(t,e,n){"use strict";var r=n(9394),o=n(5799),i=["logo","brand","emblem","hallmark"];(0,o.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(t,e){return"core/image"!==e?t:t=(0,r.Z)((0,r.Z)({},t),{},{keywords:t.keywords.concat(i)})}))},7111:function(t,e,n){"use strict";n(9987),n(1860),n(6970),n(784),n(3644),n(711),n(1321)},1321:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){var t=(0,r.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&t("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&t("post-status"),o()}))},711:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;if("core/editor"===e&&n.editPost&&"wp_template_part"===o){var i=n.editPost;n.editPost=function(t){"draft"!==t.status&&i(t)}}return n}}}))},3644:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;return"core/editor"===e&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}}))},1860:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return o();!1===(0,r.select)("core/block-editor").isValidTemplate()&&(0,r.dispatch)("core/block-editor").setTemplateValidity(!0)}))},6284:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});var r=n(4825)},4825:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(4351);var r=n(29)},5333:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(3027);function o(t){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=t}),[t]),e.current}},4351:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var r=n(1119),o=n(9394),i=n(3258),l=n(3163),c=n(3027),s=n(7606),a=n.n(s),u=n(1424),d=n(5333),__=l.__;function f(t,e,n,s,f,p){var m=(0,c.useState)({option:e,previousOption:"",loaded:!1,error:!1}),g=(0,i.Z)(m,2),v=g[0],b=g[1],y=(0,d.D)(s),h=(0,d.D)(f);function w(){b((0,o.Z)((0,o.Z)({},v),{},{option:v.previousOption,isSaving:!1}))}return(0,c.useEffect)((function(){v.loaded||v.error?function(){var e=v.option,i=v.previousOption,c=!i&&!e||e&&i&&e.trim()===i.trim(),u=!e||0===e.trim().length;!s&&y&&u&&w();if(!f||c)return;!h&&f&&function(e){b((0,o.Z)((0,o.Z)({},v),{},{isSaving:!0})),a()({path:"/wp/v2/settings",method:"POST",data:(0,r.Z)({},t,e)}).then((function(){return function(t){b((0,o.Z)((0,o.Z)({},v),{},{previousOption:t,isDirty:!1,isSaving:!1}))}(e)})).catch((function(){n((0,l.sprintf)(__("Unable to save site %s","full-site-editing"),t)),w()}))}(e)}():a()({path:"/wp/v2/settings"}).then((function(e){return b((0,o.Z)((0,o.Z)({},v),{},{option:(0,u.decodeEntities)(e[t]),previousOption:(0,u.decodeEntities)(e[t]),loaded:!0,error:!1}))})).catch((function(){n((0,l.sprintf)(__("Unable to load site %s","full-site-editing"),t)),b((0,o.Z)((0,o.Z)({},v),{},{option:(0,l.sprintf)(__("Error loading site %s","full-site-editing"),t),error:!0}))}))})),{siteOptions:v,handleChange:function(t){p({updated:Date.now()}),b((0,o.Z)((0,o.Z)({},v),{},{option:t}))}}}},29:function(t,e,n){"use strict";n.d(e,{g:function(){return s}});var r=n(7560),o=n(3027),i=n(1417),l=n(5707),c=n(4351),s=function(t){return(0,i.createHigherOrderComponent)((function(e){return(0,i.pure)((function(n){var i=(0,l.useSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isPublishingPost,o=e.isAutosavingPost,i=e.isCurrentPostPublished;return(n()&&i()||r())&&!o()})),s=(0,l.useDispatch)((function(t){return t("core/notices").createErrorNotice})),a=n.isSelected,u=n.setAttributes,d=Object.keys(t).reduce((function(e,n){var r=t[n],o=r.optionName,l=r.defaultValue,d=(0,c.s)(o,l,s,a,i,u),f=d.siteOptions,p=d.handleChange;return e[n]={value:f.option,updateValue:p,loaded:f.loaded},e}),{});return(0,o.createElement)(e,(0,r.Z)({},n,d))}))}),"withSiteOptions")}},3427:function(t,e,n){"use strict";var r=n(3258),o=n(3027),i=n(7531),l=n.n(i),c=n(7196),s=n.n(c),a=n(3163),u=n(7997),__=(n(6254),a.__);function d(t){var e=t.defaultLabel,n=t.defaultUrl,i=(0,o.useState)(e),l=(0,r.Z)(i,2),c=l[0],s=l[1],a=(0,o.useState)(n),d=(0,r.Z)(a,2),f=d[0],p=d[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(t){s(t.label),p(t.closeUrl)})),(0,o.createElement)("a",{href:f,"aria-label":c},(0,o.createElement)(u.Button,{className:"components-button components-icon-button"},(0,o.createElement)(u.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},c)))}l()((function(){var t=fullSiteEditing.editorPostType;if("wp_template_part"===t||"page"===t||"post"===t)var e=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(e);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var i=fullSiteEditing,l=i.closeButtonLabel,c=i.closeButtonUrl,a=window.calypsoifyGutenberg;a&&a.closeUrl&&(c=a.closeUrl),a&&a.closeButtonLabel&&(l=a.closeButtonLabel);var u=c||"edit.php?post_type=".concat(t),f=l||"Back";"page"!==t||l?"post"!==t||l?"wp_template_part"!==t||l||(f=__("Template Parts","full-site-editing")):f=__("Posts","full-site-editing"):f=__("Pages","full-site-editing"),s().render((0,o.createElement)(d,{defaultLabel:f,defaultUrl:u}),r)}}))}))},601:function(t,e,n){"use strict";var r=n(1766),o=n(2779),i=n.n(o),l=n(3804),c=n(5707),s=n(1200),a=(0,c.withSelect)((function(t){var e=t("core").getEntityRecord,n=t("core/editor").getEditedPostAttribute;return{templateClasses:(0,l.map)(n("template_part_types"),(function(t){var n=(0,l.get)(e("taxonomy","wp_template_part_type",t),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(t){var e=t.templateClasses,n=setInterval((function(){var t=document.querySelector(".editor-styles-wrapper");t&&(clearInterval(n),t.className=i().apply(void 0,["editor-styles-wrapper","a8c-template-editor fse-template-part"].concat((0,r.Z)(e))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,s.registerPlugin)("fse-editor-template-classes",{render:a})},5052:function(t,e,n){"use strict";var r=n(7531),o=n.n(r),i=n(5707),l=n(3163),__=l.__;o()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,i.dispatch)("core/notices").createNotice("info",__("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}))},7196:function(t){"use strict";t.exports=window.ReactDOM},3804:function(t){"use strict";t.exports=window.lodash},7606:function(t){"use strict";t.exports=window.wp.apiFetch},6399:function(t){"use strict";t.exports=window.wp.blockEditor},9314:function(t){"use strict";t.exports=window.wp.blocks},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},7531:function(t){"use strict";t.exports=window.wp.domReady},8885:function(t){"use strict";t.exports=window.wp.editor},3027:function(t){"use strict";t.exports=window.wp.element},5799:function(t){"use strict";t.exports=window.wp.hooks},1424:function(t){"use strict";t.exports=window.wp.htmlEntities},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},9775:function(t){"use strict";t.exports=window.wp.serverSideRender},791:function(t){"use strict";t.exports=window.wp.url}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(4018),n(7308),n(6367),n(5129),n(5725),n(4987),n(3427),n(601),n(5052),n(7111)}(),window.EditingToolkit=r}();
dotcom-fse/dist/dotcom-fse.rtl.css CHANGED
@@ -1 +1 @@
1
- .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-right:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-right:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"],.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;right:0;margin:0;opacity:0;padding:0;position:absolute;left:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-left:10px;border:none;border-left:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-right:-7px}@media(max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-2px}}@media(max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-left:24px}@media(max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media(max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle,.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}.post-type-wp_template_part .edit-post-visual-editor{margin-top:20px;padding-top:0}.post-type-wp_template_part .editor-post-switch-to-draft{display:none}@media(min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-right:0;padding-left:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-right:0;margin-left:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-left:14px;margin-right:14px}@media(max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media(max-width:600px){.components-dropdown.table-of-contents{display:none}}
1
+ .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-right:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-right:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"],.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;right:0;margin:0;opacity:0;padding:0;position:absolute;left:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-left:10px;border:none;border-left:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-right:-7px}@media(max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-2px}}@media(max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-left:24px}@media(max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media(max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle,.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-switch-to-draft,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}@media(min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-right:0;padding-left:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-right:0;margin-left:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-left:14px;margin-right:14px}@media(max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media(max-width:600px){.components-dropdown.table-of-contents{display:none}}
dotcom-fse/editor/style.scss CHANGED
@@ -1,4 +1,4 @@
1
- .post-type-page .edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle {
2
  display: none;
3
  }
4
 
@@ -14,11 +14,6 @@
14
  display: none;
15
  }
16
 
17
- .edit-post-visual-editor {
18
- margin-top: 20px;
19
- padding-top: 0;
20
- }
21
-
22
  .editor-post-switch-to-draft {
23
  display: none;
24
  }
1
+ .post-type-page .edit-post-header-toolbar__left > .edit-post-header-toolbar__inserter-toggle {
2
  display: none;
3
  }
4
 
14
  display: none;
15
  }
16
 
 
 
 
 
 
17
  .editor-post-switch-to-draft {
18
  display: none;
19
  }
dotcom-fse/plugins/editor-template-classes/index.js CHANGED
@@ -30,7 +30,7 @@ const EditorTemplateClasses = withSelect( ( select ) => {
30
  return { templateClasses };
31
  } )( ( { templateClasses } ) => {
32
  const blockListInception = setInterval( () => {
33
- const blockListParent = document.querySelector( '.block-editor__typewriter > div' );
34
 
35
  if ( ! blockListParent ) {
36
  return;
@@ -38,6 +38,7 @@ const EditorTemplateClasses = withSelect( ( select ) => {
38
  clearInterval( blockListInception );
39
 
40
  blockListParent.className = classNames(
 
41
  'a8c-template-editor fse-template-part',
42
  ...templateClasses
43
  );
30
  return { templateClasses };
31
  } )( ( { templateClasses } ) => {
32
  const blockListInception = setInterval( () => {
33
+ const blockListParent = document.querySelector( '.editor-styles-wrapper' );
34
 
35
  if ( ! blockListParent ) {
36
  return;
38
  clearInterval( blockListInception );
39
 
40
  blockListParent.className = classNames(
41
+ 'editor-styles-wrapper',
42
  'a8c-template-editor fse-template-part',
43
  ...templateClasses
44
  );
dotcom-fse/templates/class-rest-templates-controller.php CHANGED
@@ -11,6 +11,26 @@ namespace A8C\FSE;
11
  * Based on `WP_REST_Blocks_Controller` from core
12
  */
13
  class REST_Templates_Controller extends \WP_REST_Posts_Controller {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  /**
16
  * Checks if a template can be read.
11
  * Based on `WP_REST_Blocks_Controller` from core
12
  */
13
  class REST_Templates_Controller extends \WP_REST_Posts_Controller {
14
+ /**
15
+ * Override the get_items method.
16
+ *
17
+ * Gutenberg uses the route `/wp/v2/template_parts?wp_id=%s&context=edit` to retrieve the current post data when editing
18
+ * a template or template part, so we handle that here.
19
+ *
20
+ * @see https://github.com/WordPress/gutenberg/blob/6c94fb7a233e849e0fff51deffba6ab2866c60f4/packages/edit-post/src/editor.js#L71
21
+ *
22
+ * @param WP_REST_Request $request API request for template parts.
23
+ * @return WP_REST_Response
24
+ */
25
+ public function get_items( $request ) {
26
+ $template_id = $request['wp_id'];
27
+
28
+ if ( $template_id ) {
29
+ $request->set_param( 'include', array( $template_id ) );
30
+ }
31
+
32
+ return parent::get_items( $request );
33
+ }
34
 
35
  /**
36
  * Checks if a template can be read.
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.10498
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.10498' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.10516
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.10516' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.10498
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.10516
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html