@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.
@@ -1,5 +1,4 @@
1
1
  import { InitializationConfig } from '../types';
2
- import './globals.css';
3
2
  export type Cleanup = () => void;
4
3
  export declare function init(config: InitializationConfig): Cleanup;
5
4
  declare const LaunchDarklyToolbar: {
@@ -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 MOVED to Shadow DOM
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, LAUNCHPAD_TOKEN_PREFIXES, isToolbarStyleContent, shouldCopyToShadowDom, } from './constants';
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
@@ -553,7 +553,7 @@ async function lazyLoad(signal, url) {
553
553
  }
554
554
  }
555
555
  var package_namespaceObject = {
556
- rE: "2.1.3"
556
+ rE: "2.1.4"
557
557
  };
558
558
  function useLaunchDarklyToolbar(args) {
559
559
  const { toolbarBundleUrl, enabled, ...initConfig } = args;
package/dist/js/96.js CHANGED
@@ -50,7 +50,7 @@ async function lazyLoad(signal, url) {
50
50
  }
51
51
  }
52
52
  var package_namespaceObject = {
53
- rE: "2.1.3"
53
+ rE: "2.1.4"
54
54
  };
55
55
  function useLaunchDarklyToolbar(args) {
56
56
  const { toolbarBundleUrl, enabled, ...initConfig } = args;
package/dist/react.cjs CHANGED
@@ -79,7 +79,7 @@ async function lazyLoad(signal, url) {
79
79
  }
80
80
  }
81
81
  var package_namespaceObject = {
82
- rE: "2.1.3"
82
+ rE: "2.1.4"
83
83
  };
84
84
  function useLaunchDarklyToolbar(args) {
85
85
  const { toolbarBundleUrl, enabled, ...initConfig } = args;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@launchdarkly/toolbar",
4
- "version": "2.1.3",
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.9",
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.1.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.3",
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.9",
134
- "@types/react": "19.2.7",
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",