@launchdarkly/toolbar 2.1.4 → 2.2.0

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/dist/vue.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Vue-specific exports for the LaunchDarkly Toolbar
3
+ *
4
+ * This entry point provides Vue composables and utilities for integrating
5
+ * the toolbar with Vue 3 applications.
6
+ *
7
+ * @example
8
+ * ```vue
9
+ * <script setup lang="ts">
10
+ * import { useLaunchDarklyToolbar } from '@launchdarkly/toolbar/vue';
11
+ * import { FlagOverridePlugin } from '@launchdarkly/toolbar/plugins';
12
+ *
13
+ * // Create plugins outside the component (only once)
14
+ * const flagOverridePlugin = new FlagOverridePlugin();
15
+ *
16
+ * useLaunchDarklyToolbar({
17
+ * flagOverridePlugin,
18
+ * enabled: true,
19
+ * });
20
+ * </script>
21
+ * ```
22
+ */
23
+ export { default as useLaunchDarklyToolbar } from './vue/useLaunchDarklyToolbar';
24
+ export { default as lazyLoadToolbar } from './core/lazyLoadToolbar';
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@launchdarkly/toolbar",
4
- "version": "2.1.4",
4
+ "version": "2.2.0",
5
5
  "description": "A framework-agnostic developer toolbar for interacting with LaunchDarkly during development",
6
6
  "keywords": [
7
7
  "launchdarkly",
8
8
  "feature-flags",
9
9
  "toolbar",
10
10
  "react",
11
+ "vue",
12
+ "angular",
11
13
  "development",
12
14
  "typescript",
13
15
  "javascript",
@@ -36,6 +38,12 @@
36
38
  "react": [
37
39
  "./dist/react.d.ts"
38
40
  ],
41
+ "vue": [
42
+ "./dist/vue.d.ts"
43
+ ],
44
+ "angular": [
45
+ "./dist/angular.d.ts"
46
+ ],
39
47
  "types": [
40
48
  "./dist/types-entry.d.ts"
41
49
  ]
@@ -79,6 +87,26 @@
79
87
  "default": "./dist/react.cjs"
80
88
  }
81
89
  },
90
+ "./vue": {
91
+ "import": {
92
+ "types": "./dist/vue.d.ts",
93
+ "default": "./dist/js/vue.js"
94
+ },
95
+ "require": {
96
+ "types": "./dist/vue.d.ts",
97
+ "default": "./dist/vue.cjs"
98
+ }
99
+ },
100
+ "./angular": {
101
+ "import": {
102
+ "types": "./dist/angular.d.ts",
103
+ "default": "./dist/js/angular.js"
104
+ },
105
+ "require": {
106
+ "types": "./dist/angular.d.ts",
107
+ "default": "./dist/angular.cjs"
108
+ }
109
+ },
82
110
  "./types": {
83
111
  "import": {
84
112
  "types": "./dist/types-entry.d.ts",
@@ -90,18 +118,9 @@
90
118
  }
91
119
  }
92
120
  },
93
- "scripts": {
94
- "build": "pnpm run build:lib && pnpm run build:cdn",
95
- "build:lib": "rslib build",
96
- "build:cdn": "rslib build --config rslib.config.cdn.ts",
97
- "dev": "rslib build --watch",
98
- "dev:cdn": "rslib build --config rslib.config.cdn.ts --watch",
99
- "test": "vitest run",
100
- "lint": "oxlint",
101
- "storybook": "storybook dev -p 6006",
102
- "build:storybook": "storybook build"
103
- },
104
121
  "devDependencies": {
122
+ "@angular/common": "^21.1.5",
123
+ "@angular/core": "^21.1.5",
105
124
  "@codemirror/commands": "^6.10.1",
106
125
  "@codemirror/lang-json": "^6.0.2",
107
126
  "@codemirror/language": "^6.12.1",
@@ -118,11 +137,11 @@
118
137
  "@rsbuild/core": "^1.7.3",
119
138
  "@rsbuild/plugin-react": "^1.4.3",
120
139
  "@rslib/core": "^0.19.3",
121
- "@storybook/addon-docs": "^10.2.5",
140
+ "@storybook/addon-docs": "^10.2.10",
122
141
  "@storybook/addon-essentials": "^9.0.0-alpha.12",
123
142
  "@storybook/addon-interactions": "^9.0.0-alpha.10",
124
143
  "@storybook/addon-links": "^10.2.1",
125
- "@storybook/addon-onboarding": "^10.2.8",
144
+ "@storybook/addon-onboarding": "^10.2.10",
126
145
  "@storybook/blocks": "^9.0.0-alpha.17",
127
146
  "@storybook/react": "^10.2.4",
128
147
  "@storybook/react-vite": "^10.2.10",
@@ -136,7 +155,7 @@
136
155
  "@vanilla-extract/css": "^1.18.0",
137
156
  "@vanilla-extract/vite-plugin": "^5.1.4",
138
157
  "@vanilla-extract/webpack-plugin": "^2.3.25",
139
- "@vitest/coverage-v8": "4.0.16",
158
+ "@vitest/coverage-v8": "4.0.18",
140
159
  "css-loader": "^7.1.3",
141
160
  "jsdom": "^27.4.0",
142
161
  "launchdarkly-js-client-sdk": "^3.9.0",
@@ -144,19 +163,52 @@
144
163
  "oxlint": "^1.41.0",
145
164
  "react": "^19.2.4",
146
165
  "react-dom": "^19.2.4",
166
+ "rxjs": "^7.8.2",
147
167
  "storybook": "^10.2.4",
148
168
  "storybook-addon-rslib": "^3.2.2",
149
169
  "storybook-react-rsbuild": "^3.2.2",
150
170
  "typescript": "^5.9.3",
151
- "vitest": "^4.0.18"
171
+ "vitest": "^4.0.18",
172
+ "vue": "^3.5.28"
152
173
  },
153
174
  "peerDependencies": {
175
+ "@angular/common": ">=14.0.0 <22.0.0",
176
+ "@angular/core": ">=14.0.0 <22.0.0",
154
177
  "launchdarkly-js-client-sdk": ">=3.9.0 <4.0.0",
155
178
  "react": "^18.0.0 || ^19.0.0",
156
- "react-dom": "^18.0.0 || ^19.0.0"
179
+ "react-dom": "^18.0.0 || ^19.0.0",
180
+ "vue": "^2.7.0 || ^3.0.0"
181
+ },
182
+ "peerDependenciesMeta": {
183
+ "react": {
184
+ "optional": true
185
+ },
186
+ "react-dom": {
187
+ "optional": true
188
+ },
189
+ "vue": {
190
+ "optional": true
191
+ },
192
+ "@angular/core": {
193
+ "optional": true
194
+ },
195
+ "@angular/common": {
196
+ "optional": true
197
+ }
157
198
  },
158
199
  "publishConfig": {
159
200
  "access": "public",
160
201
  "provenance": true
202
+ },
203
+ "scripts": {
204
+ "build": "pnpm run build:lib && pnpm run build:cdn",
205
+ "build:lib": "rslib build",
206
+ "build:cdn": "rslib build --config rslib.config.cdn.ts",
207
+ "dev": "rslib build --watch",
208
+ "dev:cdn": "rslib build --config rslib.config.cdn.ts --watch",
209
+ "test": "vitest run",
210
+ "lint": "oxlint",
211
+ "storybook": "storybook dev -p 6006",
212
+ "build:storybook": "storybook build"
161
213
  }
162
- }
214
+ }
File without changes