Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .changeset/tabbed-posts-category-fix-scoped.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/dvz-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @devgateway/dvz-ui-react

## 1.9.15

### Patch Changes

- [#298](https://github.com/devgateway/data-viz-ui/pull/298) [`dc8a212`](https://github.com/devgateway/data-viz-ui/commit/dc8a212c4e56fae08ad9cb697dd91d9cbe8c209d) Thanks [@claude](https://github.com/apps/claude)! - Revert the PR #296 fix for TCDICORE-601, which comma-joined all array/object
attributes in `PreviewComponent.tsx` before postMessage'ing them to the
block-editor preview iframe. That change was a shared choke point used by
every embeddable block, and it broke any block whose attribute is an array of
objects (e.g. `filters`, map `legendBreaks`) by turning it into an
unparseable `"[object Object],[object Object]"` string.

`PreviewComponent.tsx` now always JSON-stringifies object/array attributes
again, restoring pre-PR-296 behavior for every block except Tabbed Posts.

The original TCDICORE-601 problem — the Tabbed Posts editor preview sending
`categories` as `"[5,7]"` instead of the front-end's comma-separated `"5,7"`
— is now fixed locally inside the Tabbed Posts embeddable component
(`tabbedposts/index.jsx`), which detects a JSON-array-shaped `categories`
string and normalizes it to the comma-separated format the REST API expects,
without changing how any other block's attributes are serialized.

## 1.9.14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dvz-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devgateway/dvz-ui-react",
"version": "1.9.14",
"version": "1.9.15",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
Expand Down