@gooddata/create-pluggable-module 11.42.0-alpha.1 → 11.42.0-alpha.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-app-template-name-harness",
3
- "version": "11.42.0-alpha.1",
3
+ "version": "11.42.0-alpha.3",
4
4
  "private": true,
5
5
  "description": "Standalone harness for gdc-app-template-name module",
6
6
  "license": "UNLICENSED",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-app-template-name-module",
3
- "version": "11.42.0-alpha.1",
3
+ "version": "11.42.0-alpha.3",
4
4
  "private": true,
5
5
  "description": "{applicationTemplateTitle} pluggable application module",
6
6
  "license": "UNLICENSED",
@@ -2,21 +2,18 @@
2
2
 
3
3
  import { FormattedMessage } from "react-intl";
4
4
 
5
- import {
6
- type IPluggableAppEvent,
7
- type IPluggableAppTelemetryCallbacks,
8
- } from "@gooddata/sdk-pluggable-application-model";
5
+ import { type IPluggableAppEvent } from "@gooddata/sdk-pluggable-application-model";
9
6
  import { useWorkspace } from "@gooddata/sdk-ui";
10
- import { usePlatformContextStrict } from "@gooddata/sdk-ui-pluggable-application";
7
+ import { usePlatformContextStrict, usePluggableAppTelemetry } from "@gooddata/sdk-ui-pluggable-application";
11
8
 
12
9
  interface IAppProps {
13
10
  onEvent?: (e: IPluggableAppEvent) => void;
14
- onTelemetryEvent?: IPluggableAppTelemetryCallbacks;
15
11
  }
16
12
 
17
- export function App({ onEvent: _onEvent, onTelemetryEvent: _onTelemetryEvent }: IAppProps) {
13
+ export function App({ onEvent: _onEvent }: IAppProps) {
18
14
  const ctx = usePlatformContextStrict();
19
15
  const workspaceId = useWorkspace();
16
+ const { trackEvent: _trackEvent } = usePluggableAppTelemetry();
20
17
 
21
18
  return (
22
19
  <div style={{ display: "flex", flexDirection: "column", padding: "4rem" }}>
@@ -1,5 +1,7 @@
1
1
  // (C) 2026 GoodData Corporation
2
2
 
3
+ import { version as moduleReactVersion } from "react";
4
+
3
5
  import { type Root, createRoot } from "react-dom/client";
4
6
 
5
7
  import {
@@ -9,7 +11,9 @@ import {
9
11
  type IPluggableAppTelemetryCallbacks,
10
12
  type IPluggableApplicationMountHandle,
11
13
  type IPluggableApplicationMountOptions,
14
+ LIB_VERSION as moduleSdkVersion,
12
15
  } from "@gooddata/sdk-pluggable-application-model";
16
+ import { PluggableAppTelemetryProvider } from "@gooddata/sdk-ui-pluggable-application";
13
17
 
14
18
  import { App } from "./App.js";
15
19
  import { AppProviders } from "./AppProviders.js";
@@ -23,7 +27,13 @@ function renderApp(
23
27
  ) {
24
28
  root.render(
25
29
  <AppProviders ctx={ctx}>
26
- <App onEvent={onEvent} onTelemetryEvent={onTelemetryEvent} />
30
+ <PluggableAppTelemetryProvider
31
+ onTelemetryEvent={onTelemetryEvent}
32
+ moduleReactVersion={moduleReactVersion}
33
+ moduleSdkVersion={moduleSdkVersion}
34
+ >
35
+ <App onEvent={onEvent} />
36
+ </PluggableAppTelemetryProvider>
27
37
  </AppProviders>,
28
38
  );
29
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/create-pluggable-module",
3
- "version": "11.42.0-alpha.1",
3
+ "version": "11.42.0-alpha.3",
4
4
  "description": "Scaffolder for GoodData pluggable applications. Invoked via `npm init @gooddata/pluggable-module`.",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -50,10 +50,10 @@
50
50
  "typescript": "5.9.3",
51
51
  "vite": "8.0.16",
52
52
  "vitest": "4.1.8",
53
- "@gooddata/eslint-config": "11.42.0-alpha.1",
54
- "gdc-app-template-name-harness": "11.42.0-alpha.1",
55
- "gdc-app-template-name-module": "11.42.0-alpha.1",
56
- "@gooddata/oxlint-config": "11.42.0-alpha.1"
53
+ "@gooddata/eslint-config": "11.42.0-alpha.3",
54
+ "@gooddata/oxlint-config": "11.42.0-alpha.3",
55
+ "gdc-app-template-name-harness": "11.42.0-alpha.3",
56
+ "gdc-app-template-name-module": "11.42.0-alpha.3"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=24.12.0"