@datawheel/bespoke 0.3.9 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7277,7 +7277,8 @@ function DataTab(props) {
7277
7277
  return blockIds.reduce((acc, blockId) => {
7278
7278
  const entity = state.records.entities.block[blockId];
7279
7279
  const variables = state.variables.variables[blockId];
7280
- if (BLOCK_TYPES.GENERATOR === entity.type && variables._downloadEnabled === true || BLOCK_TYPES.VIZ === entity.type) {
7280
+ const status = state.variables.status[blockId];
7281
+ if (BLOCK_TYPES.GENERATOR === entity.type && variables._downloadEnabled === true && status.allowed || BLOCK_TYPES.VIZ === entity.type && status.allowed) {
7281
7282
  acc[blockId] = {
7282
7283
  entity,
7283
7284
  variables: state.variables.variables[blockId],
@@ -8841,7 +8842,6 @@ function Section({ section }) {
8841
8842
  let sectionColumns = [];
8842
8843
  if (comparison.active && !settings.comparisonMerge) {
8843
8844
  const blocks = sectionBlocks.filter((d) => d.type !== BLOCK_TYPES.GENERATOR).reduce((blocks2, block) => ({ ...blocks2, [block.id]: block }), {});
8844
- console.log(blocks);
8845
8845
  sectionColumns = [
8846
8846
  /* @__PURE__ */ jsx(SectionColumn, { column: blocks, basis: "50%", children: getBlockRenderers(Object.values(sectionBlocks.filter((d) => d.type !== BLOCK_TYPES.GENERATOR))) }, "original"),
8847
8847
  /* @__PURE__ */ jsx(SectionColumn, { column: blocks, basis: "50%", children: getBlockRenderers(Object.values(sectionBlocks.filter((d) => d.type !== BLOCK_TYPES.GENERATOR)), true) }, "comparison")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/bespoke",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Content management system for creating automated data reports",
5
5
  "exports": {
6
6
  ".": {