You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/06/27 01:14:44 UTC
(superset) branch feat/csp-runtime-allowlist-iframe updated (fa9816bb435 -> 5ed6b674f30)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch feat/csp-runtime-allowlist-iframe
in repository https://gitbox.apache.org/repos/asf/superset.git
from fa9816bb435 docs(sip): add dashboard component contribution-point SIP
add 5ed6b674f30 feat(dashboard): dashboardComponents Extensions contribution point
No new revisions were added by this update.
Summary of changes:
SIP-DASHBOARD-COMPONENT-CONTRIBUTION-POINT.md | 44 +++--
.../packages/superset-core/package.json | 4 +
.../superset-core/src/contributions/index.ts | 6 +
.../superset-core/src/dashboardComponents/index.ts | 129 ++++++++++++++
.../packages/superset-core/src/index.ts | 1 +
.../DashboardComponentsProvider.ts | 106 +++++++++++
.../src/core/dashboardComponents/index.test.ts | 88 ++++++++++
.../src/core/dashboardComponents/index.ts | 49 ++++++
superset-frontend/src/core/index.ts | 1 +
.../components/BuilderComponentPane/index.tsx | 19 +-
.../DashboardExtensionComponent.test.tsx | 106 +++++++++++
.../gridComponents/DashboardExtensionComponent.tsx | 193 +++++++++++++++++++++
.../components/gridComponents/Iframe/index.ts | 21 ---
.../dashboard/components/gridComponents/index.ts | 6 +-
.../gridComponents/new/NewExtensionComponent.tsx | 53 ++++++
.../components/gridComponents/new/NewIframe.tsx | 35 ----
.../iframe/IframeContent.test.tsx} | 99 ++++-------
.../iframe/IframeContent.tsx} | 138 +++------------
.../extensions/iframe/index.ts} | 36 ++--
.../dashboard/util/componentIsResizable.test.ts | 4 +-
.../src/dashboard/util/componentIsResizable.ts | 4 +-
.../src/dashboard/util/componentTypes.ts | 10 +-
superset-frontend/src/dashboard/util/constants.ts | 2 +-
.../dashboard/util/getDetailedComponentWidth.ts | 4 +-
.../src/dashboard/util/isDashboardEmpty.ts | 4 +-
.../src/dashboard/util/isValidChild.ts | 12 +-
.../src/dashboard/util/newComponentFactory.ts | 4 +-
.../src/dashboard/util/shouldWrapChildInRow.ts | 8 +-
.../src/extensions/ExtensionsStartup.tsx | 2 +
superset-frontend/src/extensions/Namespaces.ts | 2 +
.../src/setup/setupDashboardComponents.ts | 15 +-
.../DashboardComponentsRegistry.ts | 9 +
32 files changed, 911 insertions(+), 303 deletions(-)
create mode 100644 superset-frontend/packages/superset-core/src/dashboardComponents/index.ts
create mode 100644 superset-frontend/src/core/dashboardComponents/DashboardComponentsProvider.ts
create mode 100644 superset-frontend/src/core/dashboardComponents/index.test.ts
create mode 100644 superset-frontend/src/core/dashboardComponents/index.ts
create mode 100644 superset-frontend/src/dashboard/components/gridComponents/DashboardExtensionComponent.test.tsx
create mode 100644 superset-frontend/src/dashboard/components/gridComponents/DashboardExtensionComponent.tsx
delete mode 100644 superset-frontend/src/dashboard/components/gridComponents/Iframe/index.ts
create mode 100644 superset-frontend/src/dashboard/components/gridComponents/new/NewExtensionComponent.tsx
delete mode 100644 superset-frontend/src/dashboard/components/gridComponents/new/NewIframe.tsx
rename superset-frontend/src/dashboard/{components/gridComponents/Iframe/Iframe.test.tsx => extensions/iframe/IframeContent.test.tsx} (59%)
rename superset-frontend/src/dashboard/{components/gridComponents/Iframe/Iframe.tsx => extensions/iframe/IframeContent.tsx} (60%)
copy superset-frontend/src/{features/home/commonMenuData.ts => dashboard/extensions/iframe/index.ts} (54%)