Files
superset2/superset-frontend/plugins/plugin-chart-pivot-table
Claude Code e763ef86fd chore(deps): upgrade Babel to 8.x across the frontend
Upgrades all @babel/* packages from 7.x to 8.0.x in one coordinated change,
replacing the ~17 individual Dependabot PRs (Babel 8 must be adopted atomically
because @babel/core and its plugins/presets share peer ranges).

Includes the workarounds the surrounding ecosystem still requires for Babel 8:

- babel.config.js migrated for Babel 8 removals:
  - loose/spec options -> `assumptions` (setPublicClassFields,
    privateFieldsAsProperties, noDocumentAll)
  - preset-env `useBuiltIns`/`corejs` -> babel-plugin-polyfill-corejs3
  - dropped @babel/plugin-syntax-dynamic-import (removed in v8) and the
    standalone class/optional-chaining/nullish transforms (now in preset-env)
  - preset-typescript `onlyRemoveTypeImports: false` to keep eliding
    value-syntax type-only imports (the v8 default flipped to true)
  - preset-react and @emotion/babel-plugin scoped to .jsx/.tsx via `overrides`
    so their JSX syntax plugin no longer makes TS generic arrows in .ts files
    parse as JSX
  - test env uses preset-env `modules: 'commonjs'` instead of the standalone
    transform-modules-commonjs plugin (plugin/preset ordering changed in v8)

- Removed babel-plugin-lodash: it calls the removed `path.hoist`/
  `isModuleDeclaration` APIs and is unmaintained (bundle-size note in the PR).

- patch-package introduced (postinstall) to patch @emotion/babel-plugin, whose
  latest release still calls the removed NodePath#hoist. Remove once Emotion
  ships Babel 8 support.

- package.json `overrides` relax @babel/core peer ranges for ts-jest and the
  @babel/plugin-syntax-* no-op packages (via babel-preset-current-node-syntax)
  that have not yet declared Babel 8 compatibility.

Validated with `npm ci`, the production webpack build, and the Jest unit suite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 13:50:33 -07:00
..

@superset-ui/plugin-chart-pivot-table

Version Libraries.io

This plugin provides Pivot Table for Superset.

If you change the logic of this plugin, please update pivot_table.

Usage

Configure key, which can be any string, and register the plugin. This key will be used to lookup this chart throughout the app.

import PivotTableChartPlugin from '@superset-ui/plugin-chart-pivot-table';

new PivotTableChartPlugin().configure({ key: 'pivot-table-v2' }).register();

Then use it via SuperChart. See storybook for more details.

<SuperChart
  chartType="pivot-table-v2"
  width={600}
  height={600}
  formData={...}
  queriesData={[{
    data: {...},
  }]}
/>

File structure generated

├── package.json
├── README.md
├── tsconfig.json
├── src
│   ├── PivotTableChart.tsx
│   ├── images
│   │   └── thumbnail.png
│   ├── index.ts
│   ├── plugin
│   │   ├── buildQuery.ts
│   │   ├── controlPanel.ts
│   │   ├── index.ts
│   │   └── transformProps.ts
│   └── types.ts
├── test
│   └── index.test.ts
└── types
    └── external.d.ts