@launchdarkly/toolbar 2.1.3 → 2.1.4
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/index.d.ts +0 -1
- package/dist/core/styles/constants.d.ts +1 -21
- package/dist/core/styles/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/js/96.js +1 -1
- package/dist/react.cjs +1 -1
- package/package.json +6 -6
package/dist/core/index.d.ts
CHANGED
|
@@ -14,31 +14,11 @@ export declare const TOOLBAR_CLASS_PREFIX = "ldtb_";
|
|
|
14
14
|
* Used to identify toolbar styles during runtime interception.
|
|
15
15
|
*/
|
|
16
16
|
export declare const TOOLBAR_STYLE_MARKER = "/* LD_TOOLBAR_STYLES */";
|
|
17
|
-
/**
|
|
18
|
-
* CSS variable prefixes used by LaunchDarkly design systems.
|
|
19
|
-
* NOTE: This is used only for copying tokens INTO the Shadow DOM (not for interception).
|
|
20
|
-
* We intentionally do NOT intercept styles just because they contain --lp- tokens,
|
|
21
|
-
* as host applications may also use LaunchPad and their styles must not be affected.
|
|
22
|
-
*/
|
|
23
|
-
export declare const LAUNCHPAD_TOKEN_PREFIXES: readonly ["--lp-"];
|
|
24
17
|
/**
|
|
25
18
|
* Checks if CSS content belongs to the toolbar based on known markers.
|
|
26
19
|
* This is used for reliable style interception without false positives.
|
|
27
20
|
*
|
|
28
|
-
* IMPORTANT: This function intentionally does NOT check for --lp- tokens.
|
|
29
|
-
* Host applications that also use LaunchPad would have their styles incorrectly
|
|
30
|
-
* intercepted if we matched on --lp- prefix, breaking components like react-select.
|
|
31
|
-
*
|
|
32
21
|
* @param content - CSS content to check
|
|
33
|
-
* @returns true if the content is toolbar CSS that should be
|
|
22
|
+
* @returns true if the content is toolbar CSS that should be moved to Shadow DOM
|
|
34
23
|
*/
|
|
35
24
|
export declare function isToolbarStyleContent(content: string): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Checks if CSS content contains LaunchPad design tokens that the toolbar needs.
|
|
38
|
-
* These styles should be COPIED to Shadow DOM but NOT removed from document.head,
|
|
39
|
-
* because host applications may also use these tokens.
|
|
40
|
-
*
|
|
41
|
-
* @param content - CSS content to check
|
|
42
|
-
* @returns true if the content should be copied (but not moved) to Shadow DOM
|
|
43
|
-
*/
|
|
44
|
-
export declare function shouldCopyToShadowDom(content: string): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TOOLBAR_CLASS_PREFIX, TOOLBAR_STYLE_MARKER,
|
|
1
|
+
export { TOOLBAR_CLASS_PREFIX, TOOLBAR_STYLE_MARKER, isToolbarStyleContent } from './constants';
|
|
2
2
|
export { injectStylesIntoShadowRoot, createStyleInterceptor, cacheToolbarStyle, getCachedToolbarStyles, clearToolbarStyleCache, } from './shadowDomStyles';
|
package/dist/index.cjs
CHANGED
package/dist/js/96.js
CHANGED
package/dist/react.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@launchdarkly/toolbar",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"description": "A framework-agnostic developer toolbar for interacting with LaunchDarkly during development",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"launchdarkly",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@codemirror/view": "^6.39.11",
|
|
111
111
|
"@launchdarkly/observability": "^1.0.0",
|
|
112
112
|
"@launchdarkly/session-replay": "^1.0.0",
|
|
113
|
-
"@launchpad-ui/components": "^0.17.
|
|
113
|
+
"@launchpad-ui/components": "^0.17.12",
|
|
114
114
|
"@launchpad-ui/tokens": "^0.15.1",
|
|
115
115
|
"@lezer/highlight": "1.2.1",
|
|
116
116
|
"@react-aria/focus": "^3.21.3",
|
|
@@ -122,16 +122,16 @@
|
|
|
122
122
|
"@storybook/addon-essentials": "^9.0.0-alpha.12",
|
|
123
123
|
"@storybook/addon-interactions": "^9.0.0-alpha.10",
|
|
124
124
|
"@storybook/addon-links": "^10.2.1",
|
|
125
|
-
"@storybook/addon-onboarding": "^10.
|
|
125
|
+
"@storybook/addon-onboarding": "^10.2.8",
|
|
126
126
|
"@storybook/blocks": "^9.0.0-alpha.17",
|
|
127
127
|
"@storybook/react": "^10.2.4",
|
|
128
|
-
"@storybook/react-vite": "^10.2.
|
|
128
|
+
"@storybook/react-vite": "^10.2.10",
|
|
129
129
|
"@storybook/test": "^9.0.0-alpha.2",
|
|
130
130
|
"@tanstack/react-virtual": "^3.13.18",
|
|
131
131
|
"@testing-library/jest-dom": "^6.9.1",
|
|
132
132
|
"@testing-library/react": "^16.3.2",
|
|
133
|
-
"@types/node": "^25.0
|
|
134
|
-
"@types/react": "19.2.
|
|
133
|
+
"@types/node": "^25.3.0",
|
|
134
|
+
"@types/react": "19.2.14",
|
|
135
135
|
"@types/react-dom": "19.2.3",
|
|
136
136
|
"@vanilla-extract/css": "^1.18.0",
|
|
137
137
|
"@vanilla-extract/vite-plugin": "^5.1.4",
|