Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@a3473cd from refs/heads/release/5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Feb 15, 2024
1 parent 3185944 commit 5c15ccd
Show file tree
Hide file tree
Showing 40 changed files with 2,389 additions and 52,914 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions includes/embeds/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { useSelect, useDispatch } from '@wordpress/data';
/**
* Internal Dependencies
*/
import Controls from './Controls';
import Icon from './Icon';
import Controls from './controls';
import Icon from './icon';

const { prcEmbeds } = window;
const { allowedBlocks = [] } = prcEmbeds;
Expand Down
3 changes: 2 additions & 1 deletion includes/facets/blocks/facet-template/build/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@
"textdomain": "facet-template",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
"style": "file:./style-index.css",
"viewScriptModule": "file:./view.js"
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('prc-block-utils', 'prc-components', 'prc-icons', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75d6ae357693f5a325d1');
<?php return array('dependencies' => array('prc-block-utils', 'prc-components', 'prc-icons', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1e2f6b7cb478bcf8a27d');
2 changes: 1 addition & 1 deletion includes/facets/blocks/facet-template/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/facets/blocks/facet-template/build/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions includes/facets/blocks/facet-template/build/view.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill'), 'version' => 'd6f0bf58ef2cda3d41ec', 'type' => 'module');
2 changes: 2 additions & 0 deletions includes/facets/blocks/facet-template/build/view.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions includes/facets/blocks/facet-template/build/view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion includes/facets/blocks/facet-template/facet-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,13 @@ public function render_block_callback($attributes, $content, $block) {
$expanded_content .= $checkbox_facet['expanded_content'];
}

$facet_id = 'facet-template-'.md5(wp_json_encode($attributes));

$block_wrapper_attrs = get_block_wrapper_attributes(array(
'data-wp-interactive' => wp_json_encode(array(
'namespace' => 'prc-platform/facet-template'
)),
'data-wp-navigation-id' => 'facet-template-'.md5(wp_json_encode($attributes)),
'data-wp-router-region' => $facet_slug,
'data-wp-key' => $facet_slug,
'data-wp-context' => wp_json_encode(array(
'expanded' => false,
Expand Down
Loading

0 comments on commit 5c15ccd

Please sign in to comment.