@launchdarkly/toolbar 2.2.0-beta.1 → 2.3.0-beta.1
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.
- package/cdn/toolbar.min.js +9 -9
- package/dist/core/ui/Toolbar/components/new/Monitoring/EventsContent.module.css.d.ts +1 -0
- package/dist/core/ui/Toolbar/context/api/ApiProvider.d.ts +1 -2
- package/dist/core/ui/Toolbar/context/telemetry/InternalClientProvider.d.ts +4 -0
- package/dist/index.cjs +3 -3
- package/dist/js/index.js +1 -1
- package/package.json +12 -12
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { FlagsPaginationParams, FlagsResponse,
|
|
1
|
+
import { FlagsPaginationParams, FlagsResponse, ProjectsResponse } from '../../types/ldApi';
|
|
2
2
|
interface ApiProviderContextValue {
|
|
3
3
|
apiReady: boolean;
|
|
4
|
-
getFlag: (flagKey: string) => Promise<ApiFlag>;
|
|
5
4
|
getProjects: () => Promise<ProjectsResponse>;
|
|
6
5
|
getFlags: (projectKey: string, params?: FlagsPaginationParams) => Promise<FlagsResponse>;
|
|
7
6
|
}
|
|
@@ -20,6 +20,10 @@ export interface InternalClientContextValue {
|
|
|
20
20
|
* Error during initialization, if any.
|
|
21
21
|
*/
|
|
22
22
|
error: Error | null;
|
|
23
|
+
/**
|
|
24
|
+
* Update the client context with new member/account information.
|
|
25
|
+
*/
|
|
26
|
+
updateContext: (accountId: string, memberId: string) => Promise<void>;
|
|
23
27
|
}
|
|
24
28
|
export interface InternalClientProviderProps {
|
|
25
29
|
children: ReactNode;
|
package/dist/index.cjs
CHANGED
|
@@ -552,7 +552,7 @@ async function lazyLoad(signal, url) {
|
|
|
552
552
|
throw new Error(`Could not load LaunchDarkly developer toolbar bundle from ${url}`);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
var package_namespaceObject = JSON.parse('{"rE":"2.
|
|
555
|
+
var package_namespaceObject = JSON.parse('{"rE":"2.3.0-beta.1"}');
|
|
556
556
|
function useLaunchDarklyToolbar(args) {
|
|
557
557
|
const { toolbarBundleUrl, enabled, ...initConfig } = args;
|
|
558
558
|
const configRef = (0, external_react_namespaceObject.useRef)(null);
|
|
@@ -591,7 +591,7 @@ exports.TOOLBAR_POSITIONS = __webpack_exports__.TOOLBAR_POSITIONS;
|
|
|
591
591
|
exports.isValidEventCategory = __webpack_exports__.isValidEventCategory;
|
|
592
592
|
exports.isValidEventKind = __webpack_exports__.isValidEventKind;
|
|
593
593
|
exports.useLaunchDarklyToolbar = __webpack_exports__.useLaunchDarklyToolbar;
|
|
594
|
-
for(var
|
|
594
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
595
595
|
"ANALYTICS_EVENT_PREFIX",
|
|
596
596
|
"EventInterceptionPlugin",
|
|
597
597
|
"FlagOverridePlugin",
|
|
@@ -599,7 +599,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
599
599
|
"isValidEventCategory",
|
|
600
600
|
"isValidEventKind",
|
|
601
601
|
"useLaunchDarklyToolbar"
|
|
602
|
-
].indexOf(
|
|
602
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
603
603
|
Object.defineProperty(exports, '__esModule', {
|
|
604
604
|
value: true
|
|
605
605
|
});
|
package/dist/js/index.js
CHANGED
|
@@ -518,7 +518,7 @@ async function lazyLoad(signal, url) {
|
|
|
518
518
|
throw new Error(`Could not load LaunchDarkly developer toolbar bundle from ${url}`);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
var package_namespaceObject = JSON.parse('{"rE":"2.
|
|
521
|
+
var package_namespaceObject = JSON.parse('{"rE":"2.3.0-beta.1"}');
|
|
522
522
|
function useLaunchDarklyToolbar(args) {
|
|
523
523
|
const { toolbarBundleUrl, enabled, ...initConfig } = args;
|
|
524
524
|
const configRef = useRef(null);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@launchdarkly/toolbar",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0-beta.1",
|
|
5
5
|
"description": "A framework-agnostic developer toolbar for interacting with LaunchDarkly during development",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"launchdarkly",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"@react-stately/flags": "^3.1.2",
|
|
62
62
|
"@rsbuild/core": "^1.6.9",
|
|
63
63
|
"@rsbuild/plugin-react": "^1.4.2",
|
|
64
|
-
"@rslib/core": "^0.18.
|
|
65
|
-
"@storybook/addon-docs": "^10.
|
|
64
|
+
"@rslib/core": "^0.18.3",
|
|
65
|
+
"@storybook/addon-docs": "^10.1.5",
|
|
66
66
|
"@storybook/addon-essentials": "^9.0.0-alpha.12",
|
|
67
67
|
"@storybook/addon-interactions": "^9.0.0-alpha.10",
|
|
68
68
|
"@storybook/addon-links": "^10.0.8",
|
|
69
|
-
"@storybook/addon-onboarding": "^10.
|
|
69
|
+
"@storybook/addon-onboarding": "^10.1.5",
|
|
70
70
|
"@storybook/blocks": "^9.0.0-alpha.17",
|
|
71
71
|
"@storybook/react": "^10.0.8",
|
|
72
|
-
"@storybook/react-vite": "^10.
|
|
72
|
+
"@storybook/react-vite": "^10.1.4",
|
|
73
73
|
"@storybook/test": "^9.0.0-alpha.2",
|
|
74
74
|
"@tanstack/react-virtual": "^3.13.12",
|
|
75
75
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -77,20 +77,20 @@
|
|
|
77
77
|
"@types/node": "^24.10.1",
|
|
78
78
|
"@types/react": "19.2.6",
|
|
79
79
|
"@types/react-dom": "19.2.3",
|
|
80
|
-
"@vanilla-extract/css": "^1.17.
|
|
81
|
-
"@vanilla-extract/vite-plugin": "^5.1.
|
|
80
|
+
"@vanilla-extract/css": "^1.17.5",
|
|
81
|
+
"@vanilla-extract/vite-plugin": "^5.1.3",
|
|
82
82
|
"@vanilla-extract/webpack-plugin": "^2.3.24",
|
|
83
83
|
"@vitest/coverage-v8": "4.0.15",
|
|
84
84
|
"css-loader": "^7.1.2",
|
|
85
85
|
"jsdom": "^27.2.0",
|
|
86
86
|
"launchdarkly-js-client-sdk": "^3.9.0",
|
|
87
87
|
"motion": "^12.23.25",
|
|
88
|
-
"oxlint": "^1.
|
|
89
|
-
"react": "^19.2.
|
|
90
|
-
"react-dom": "^19.2.
|
|
88
|
+
"oxlint": "^1.32.0",
|
|
89
|
+
"react": "^19.2.1",
|
|
90
|
+
"react-dom": "^19.2.1",
|
|
91
91
|
"storybook": "^10.1.4",
|
|
92
|
-
"storybook-addon-rslib": "^
|
|
93
|
-
"storybook-react-rsbuild": "^
|
|
92
|
+
"storybook-addon-rslib": "^3.1.0",
|
|
93
|
+
"storybook-react-rsbuild": "^3.1.0",
|
|
94
94
|
"typescript": "^5.9.3",
|
|
95
95
|
"vitest": "^4.0.15"
|
|
96
96
|
},
|