@launchdarkly/toolbar 0.7.0 → 0.9.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/js/index.js +246 -55
- package/dist/ui/Toolbar/LaunchDarklyToolbar.d.ts +4 -5
- package/dist/ui/Toolbar/context/LaunchDarklyToolbarProvider.d.ts +4 -0
- package/dist/ui/Toolbar/hooks/index.d.ts +2 -0
- package/dist/ui/Toolbar/hooks/useKeyPressed.d.ts +1 -0
- package/dist/ui/Toolbar/hooks/useToolbarDrag.d.ts +10 -0
- package/dist/ui/Toolbar/hooks/useToolbarState.d.ts +1 -0
- package/dist/ui/Toolbar/types/toolbar.d.ts +2 -0
- package/dist/ui/Toolbar/utils/localStorage.d.ts +8 -0
- package/package.json +14 -13
package/dist/js/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import react, { createContext, useCallback, useContext, useEffect, useMemo, useR
|
|
|
4
4
|
import { Button, Group, Input, ListBox, ListBoxItem, Popover, SearchField, Select, SelectValue, Switch, TextField } from "@launchpad-ui/components";
|
|
5
5
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
6
6
|
var __webpack_modules__ = {
|
|
7
|
-
"./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
7
|
+
"./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/assets/Audimat3000-Regulier.var-subset.woff2": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8
8
|
module.exports = __webpack_require__.p + "static/font/Audimat3000-Regulier.var-subset.woff2";
|
|
9
9
|
},
|
|
10
|
-
"./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
10
|
+
"./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/assets/Inter.var-subset.woff2": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11
11
|
module.exports = __webpack_require__.p + "static/font/Inter.var-subset.woff2";
|
|
12
12
|
},
|
|
13
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
13
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/fonts.css": function(module, __webpack_exports__, __webpack_require__) {
|
|
14
14
|
__webpack_require__.d(__webpack_exports__, {
|
|
15
15
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
16
16
|
});
|
|
@@ -20,8 +20,8 @@ var __webpack_modules__ = {
|
|
|
20
20
|
var _rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
21
21
|
var _rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_getUrl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/getUrl.js");
|
|
22
22
|
var _rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __webpack_require__.n(_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_getUrl_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
23
|
-
var ___CSS_LOADER_URL_IMPORT_0___ = new URL(__webpack_require__("./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
24
|
-
var ___CSS_LOADER_URL_IMPORT_1___ = new URL(__webpack_require__("./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
23
|
+
var ___CSS_LOADER_URL_IMPORT_0___ = new URL(__webpack_require__("./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/assets/Audimat3000-Regulier.var-subset.woff2"), __webpack_require__.b);
|
|
24
|
+
var ___CSS_LOADER_URL_IMPORT_1___ = new URL(__webpack_require__("./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/assets/Inter.var-subset.woff2"), __webpack_require__.b);
|
|
25
25
|
var ___CSS_LOADER_EXPORT___ = _rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
26
26
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
27
27
|
var ___CSS_LOADER_URL_REPLACEMENT_1___ = _rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_1___);
|
|
@@ -47,7 +47,7 @@ var __webpack_modules__ = {
|
|
|
47
47
|
]);
|
|
48
48
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
49
49
|
},
|
|
50
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
50
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/index.css": function(module, __webpack_exports__, __webpack_require__) {
|
|
51
51
|
__webpack_require__.d(__webpack_exports__, {
|
|
52
52
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
53
53
|
});
|
|
@@ -211,7 +211,7 @@ var __webpack_modules__ = {
|
|
|
211
211
|
]);
|
|
212
212
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
213
213
|
},
|
|
214
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.
|
|
214
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/themes.css": function(module, __webpack_exports__, __webpack_require__) {
|
|
215
215
|
__webpack_require__.d(__webpack_exports__, {
|
|
216
216
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
217
217
|
});
|
|
@@ -348,6 +348,7 @@ var __webpack_modules__ = {
|
|
|
348
348
|
--lp-color-bg-feedback-error: var(--lp-color-red-50);
|
|
349
349
|
--lp-color-bg-feedback-info: var(--lp-color-blue-50);
|
|
350
350
|
--lp-color-bg-feedback-success: var(--lp-color-green-50);
|
|
351
|
+
--lp-color-bg-feedback-warning: var(--lp-color-brand-orange-light);
|
|
351
352
|
--lp-color-bg-interactive-primary-base: var(--lp-color-blue-500);
|
|
352
353
|
--lp-color-bg-interactive-primary-active: var(--lp-color-blue-500);
|
|
353
354
|
--lp-color-bg-interactive-primary-focus: var(--lp-color-blue-600);
|
|
@@ -392,6 +393,7 @@ var __webpack_modules__ = {
|
|
|
392
393
|
--lp-color-text-feedback-error: var(--lp-color-red-600);
|
|
393
394
|
--lp-color-text-feedback-success: var(--lp-color-green-600);
|
|
394
395
|
--lp-color-text-feedback-info: var(--lp-color-blue-600);
|
|
396
|
+
--lp-color-text-feedback-warning: var(--lp-color-brand-orange-dark);
|
|
395
397
|
--lp-color-text-interactive-base: var(--lp-color-blue-600);
|
|
396
398
|
--lp-color-text-interactive-active: var(--lp-color-purple-700);
|
|
397
399
|
--lp-color-text-interactive-primary-base: var(--lp-color-white-950);
|
|
@@ -448,6 +450,7 @@ var __webpack_modules__ = {
|
|
|
448
450
|
--lp-color-bg-feedback-error: var(--lp-color-red-900);
|
|
449
451
|
--lp-color-bg-feedback-info: var(--lp-color-blue-900);
|
|
450
452
|
--lp-color-bg-feedback-success: var(--lp-color-green-900);
|
|
453
|
+
--lp-color-bg-feedback-warning: var(--lp-color-brand-orange-dark);
|
|
451
454
|
--lp-color-bg-interactive-primary-base: var(--lp-color-blue-600);
|
|
452
455
|
--lp-color-bg-interactive-primary-active: var(--lp-color-blue-600);
|
|
453
456
|
--lp-color-bg-interactive-primary-focus: var(--lp-color-blue-500);
|
|
@@ -485,6 +488,7 @@ var __webpack_modules__ = {
|
|
|
485
488
|
--lp-color-text-feedback-error: var(--lp-color-red-400);
|
|
486
489
|
--lp-color-text-feedback-success: var(--lp-color-green-400);
|
|
487
490
|
--lp-color-text-feedback-info: var(--lp-color-blue-400);
|
|
491
|
+
--lp-color-text-feedback-warning: var(--lp-color-brand-orange-light);
|
|
488
492
|
--lp-color-text-interactive-base: var(--lp-color-blue-400);
|
|
489
493
|
--lp-color-text-interactive-active: var(--lp-color-purple-400);
|
|
490
494
|
--lp-color-text-interactive-secondary: var(--lp-color-gray-400);
|
|
@@ -544,7 +548,7 @@ var __webpack_modules__ = {
|
|
|
544
548
|
]);
|
|
545
549
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
546
550
|
},
|
|
547
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Tabs/Tabs.css.ts.vanilla.css\",\"source\":\"#
|
|
551
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Tabs/Tabs.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA5VTy27jMAy85yt4WaABqkBOk2yqHPdLZIu2uatIhiTntei/LyTbiYqm2fZiSBQ5MxzSi/os7cZx+DsDUOQ7Lc8Cao2n3QygtE6hY04q6r2AbZeinVSKTCNgM9ztAV2t7VFAS0qhibEjqdAKKDj/kUqsp0DWCHCoZaAD7mZvs8VAXtwnb2R3pfgO3DLB3VJk6a3uA8bCYDsBPJ5apKYNN8hSVn8aZ3ujWGW1dQIO0j0xprvhzhonz+wn5/M7xhTLQeaFkVF4GimCk2YSobEOwBcvHqq+pIqVeCF0T3yxXD8DX6w26ZvOr6v589Dw1wuy9l9S+58IzCVJrW89qt7JGGbFms8BpU92PXBiNTlx9U0M6J10aEJ8ioMUUMTjngwbZ8hv/gkw1uC7ldp2p6vYqnc+0neWTECXIK0JrJZ70udMVhZlpfQ4v6Z6uqCAYjUAptBxHPyaJyUf1k5qagyjgHsvoMKJ+XfvA9VnVlkT0IT8KV/Ue5uZ7UWRD0q08c9J43pg9PKD0Y8WdJuyMw5FXpYa1f9oNiPNZLqxgUmt7RFVhrd6AHNsKSB7XX8m99123BAzF75as07Z4z4tx+FOP/R0r0lrEduJxb8i3G729g/Z9pEB7wQAAA==\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
548
552
|
__webpack_require__.d(__webpack_exports__, {
|
|
549
553
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
550
554
|
});
|
|
@@ -631,7 +635,7 @@ var __webpack_modules__ = {
|
|
|
631
635
|
]);
|
|
632
636
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
633
637
|
},
|
|
634
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/Header/Header.css.ts.vanilla.css\",\"source\":\"#
|
|
638
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/Header/Header.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA61V227jIBB9z1eMKq2USEuF0zRNyON+yArb2KbFgAA3zq767yuwvdiJm6ZqX5LAHOZyZubk/ve+qfb0GcPfBUDOrRb0RKA0PD8sIHwjx2otqGMoU6KppSVAG6cgKUz4cYmjhlFL4E6oUkHGpGMGaOa4kvbOo6ngpUTcsdqS3u6vNc1zLksCGHa6BQzJVrfekNLspTSqkblPQRkCr9QsERK6O6PS0BPaY7wKaGVyZlCqnFM1gUS3YJXg+eyjp+kjQ3PeWALJWrfdBwbs7TWXqGK8rByBxz6tkuoOeVi8Le57IpNAZODD00DAk3AYc1sI1l5hIXjdTZ2ug9Mjz11FYP3YhR/SGXqg0meWOVRwRyBT0lEu/XXBhWOGQGo8XDJrl3gFXL4y45bJahzmIYQplHTI8j+MQLLpQoWrYx9viwMjVzqx6UkNzwpac3EaAUe3KKWWBeix4o4hq2nGCEh1NFSPM9ucsxr5uuD1ubGOFyfkOWDSjbHvUO6b25PbNZu2wznB+Mc4kceQyG0DuZufrb598w9TQ73TE5WRm/8VpkJlL7cRWyupApuxEX1LcRdevTJTCHUkUPE8Z3KygBvddiMI4FjrUAQzIbi23L7bsxn2eieB/Eh75HR73txeKz69NXi6NU9TTfvAw7tjEx3uvtvh/myaPI2SxZmJ56wx1o+LVvxCLgeVnI5Zf/vlbAGcodJy3xLSTS3g+7UFRi37ebEK0TYplFR+hkK5VzZmPWzMJ/YrBqGdfHEhrslSxKcBP8jow3Y6PVmw9iQj04HwV5U8Hyv5sB4fSml8z26qMUbYTv8rkrMii8t0orGcy3Vmu+ek5HZVjvGqSbzZzIfSs8YYJt0vX/hh8fYPBfEjJ8YIAAA=\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
635
639
|
__webpack_require__.d(__webpack_exports__, {
|
|
636
640
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
637
641
|
});
|
|
@@ -779,7 +783,7 @@ var __webpack_modules__ = {
|
|
|
779
783
|
]);
|
|
780
784
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
781
785
|
},
|
|
782
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/LaunchDarklyToolbar.css.ts.vanilla.css\",\"source\":\"#
|
|
786
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/LaunchDarklyToolbar.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA61U227jIBB9z1fMy0rJAxVOk17Ix1QYsD0NBgQ4tbvqv6/AdhJvslJ3tQ+2NPjMzDlnGD+8FWYncBgo/FwBOBswojUMKuyVPKwAShujbRlsqetT/EnQSNUzKCilGcDFsfa2M5IIq61ncOJ+TYh2Y0xqzwfySulmLOel8gwK10OwGuVd9POEtiflK20/GDQopTLpTHQ+pC7OoonKpyOJwWk+MKi0yiS5xtoQjKoNDISace9diFgNRFgTlYmXT1+rh9mIIhvhsW7iRXT03ITK+pZYjzUaNtky4hb525yvVfWd9ARbZD/m7BuJV4jdAiFVxTsdU5OknUj0SowTFFZ3rblxI0Svomju2pFLhMj9ktT+t7vBy2B1F1WWZh2DPf1xOIuegg+UsWHwNFnQqNHROf6fI3vK/KaGj7tlwzm25bsSkVSYalgTOWZvKtQx3ccyT9KoENZ0A2hOysd1sTkbGxqP5siALsiX2orjgsvzNZeCjl7ciP3TrK4KveRCf7dc99ZlXDjiucQuMCi2rh9fNGm5aviaG7ZoyGzdbp+HdYXhGfPd2TkuJZqawYvr0/Ovf4szeQr0ImBBrMzEEh8GxWH19QulZ2na2AQAAA==\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
783
787
|
__webpack_require__.d(__webpack_exports__, {
|
|
784
788
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
785
789
|
});
|
|
@@ -876,7 +880,7 @@ var __webpack_modules__ = {
|
|
|
876
880
|
]);
|
|
877
881
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
878
882
|
},
|
|
879
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/FlagTabContent.css.ts.vanilla.css\",\"source\":\"#
|
|
883
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/FlagTabContent.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA62T0XKbMBBF3/0VeulM/CCPcJ04Vb5mgQV2LCRVEgYn03/vSGBMQpom0z7ZLLv3XF1WO2jVefgp2MuGscrowD09o2TZwQ5P11KPVDdBsnshYq0wyjjJzuDuOFeWp2deO7jwvRDb2FKStwouklUKkw4oqjWngK2XrEAd0MVyDVayxxHVkuY9laGRLGHiqGTZ0+bXZje6zJJLc0ZXKdNL1lBZoo69AYfAby9QKbKefHzVNxSQewsFSqZN78CuaTNinxAr+/GXl+SwCGS0jBF0rZ5PcA3r6nh9mBaG63MBqrjLhPjGOPsh7LBd4L+vvsN+lP4g88OUeZqqoCV1WTQuqrw12qQgUv//yHE2fkjGW3A1aa6wCpJlD6P1r+/CrHqfVJtp/Q5CjIo3g9AFEyu+cEapHBz/IKhHIbYsONDegkMdXg9OXyc0pJcOZBNpycenIMcVZKEleY/5iQKfpZLwhJ7uQQ7FqXam06X8ghAPTdfmSW4p8KccEsi4Eh13UFLnpyV+e/B/Ix0/R3qP4aA4rRjvx/GwDDFerIi0xtN4Vx0qCHTGxcQxTdxaIPdGdQHTFTB2urPjGqe/r8RvMovluNn82womSDzIBH87ycRu7xmCj45/A/2qaMCgBQAA\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
880
884
|
__webpack_require__.d(__webpack_exports__, {
|
|
881
885
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
882
886
|
});
|
|
@@ -981,7 +985,7 @@ var __webpack_modules__ = {
|
|
|
981
985
|
]);
|
|
982
986
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
983
987
|
},
|
|
984
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/SettingsTab.css.ts.vanilla.css\",\"source\":\"#
|
|
988
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/SettingsTab.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA6VUQXLbMAy8+xU4Ngd6JMVxXPrYh2RoEZLQUCSHhCy5nfw9Q9pO5NhpM+3JowWxCywAL5/KsmEb9wX8XgDsXNAYxM4xu15C6SeIzpCGvQrfhDBe1M64INqgDmJTFHfbxcti+cYhjYos6o6MvkVnncWLhDK/6lVoyUootgsAr7Qm20oo136CqvATbPyUIo2zLCL9QgllNYNGpLZjCesiE+QC5c2CV7lgAMaJBQdlY+NCL2HwHkOtIqagQWYMInpV5zqK5UMSm1Vd5aobg5OEMqVoit6og8xYApSh1gpi7KOEGi1jSPDPITI1B1E7y2hZQhJBsUMeEW160Sp/7m4meJ8Fr1TSr9AUsGZyVqbOh/6d5iPL6lj2zMXVDRdXf3Wx+jj2hyvi03i+MIqc1aiezGH2cIaK3lmXfboUXd/25BPnsyGnPbqaQvYRrb7gf/yHpu7/t6lNFh1Jc3c8gMTWnSZz/m7IGAn1EAJa/pHU35YhdoHsc76kGev34y2q+rkNbrBaQt59rxJByu3JirNouriMqemMVcUJ+4OGyhpuj6ExbpTQkdbHlc7H9h5AY8hHiik0dsSYLw3Tn8MYlN/OL+vlFZtcuVWeBAAA\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
985
989
|
__webpack_require__.d(__webpack_exports__, {
|
|
986
990
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
987
991
|
});
|
|
@@ -1074,7 +1078,7 @@ var __webpack_modules__ = {
|
|
|
1074
1078
|
]);
|
|
1075
1079
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
1076
1080
|
},
|
|
1077
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/ActionButtonsContainer.css.ts.vanilla.css\",\"source\":\"#
|
|
1081
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/ActionButtonsContainer.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA+1Ty27bMBC8+yv2aB/o0krsuszHFEuRkgjRJLGkI6lF/72grLpWHk7iFuilN2G0OzM7u1x//TK0/TBw+L4ACKiUcbWADQ898IcFgPSkNDHpU/IHAZvQQ/TWKHhEWjJmAyu99cRqwoHtOV/lJv+oqbK+Y70APCafMWVisDgIqKzuM1BjELAP4/ckzKyukoCCz1EydXMBx5K8tRLpJC1etPKZ8xUkQhcDknZp3tgZlRoBqTHuYfFjsf6VghCs07I1iZ1rx2AafbJwf3IgsWxr8kenxFzjOhVLzfEgR8JLhtfsX8RPqMwxCiiy/lsihGX7TOQVm5t3udnP3Lx1Bbup+sp2iqnkfHC70MOmmNKdz7w7oZV3iUXzTYtz4Qh102q2fLzX8kgxqwZvXNKUoXF0k4x3AtBa4Osigsao88+uMUmzGLDUApzvCMNIbXXPYkPGtSI/hIvEhDIRpdVqjM4HLE0aBPD19lLf+cTQWt9pNe9u8uMQzqflmWh1y0lcSXc7Vv4WLf4v+YNLLv5oycW/WPLdM36qJS4r8oen/ZLQKVYO6JjEqFdAUIOET8DXmxfUb+G5u3IcT9tmU7wvuptG2/6l2e6z45832tTkOQcAAA==\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
1078
1082
|
__webpack_require__.d(__webpack_exports__, {
|
|
1079
1083
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
1080
1084
|
});
|
|
@@ -1243,7 +1247,7 @@ var __webpack_modules__ = {
|
|
|
1243
1247
|
]);
|
|
1244
1248
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
1245
1249
|
},
|
|
1246
|
-
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/FlagControls.css.ts.vanilla.css\",\"source\":\"#
|
|
1250
|
+
"./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/FlagControls.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA72UzXLCIBCA73mKvXSmPeAk0fqDxz5IhwRMdorAAJrYju/eCUYTrbXqtD2ywMfut8DgdaI3az+O4SMCWGjlicN3QSFJTT2PAHIttaWwZvaREGlIGJPCsg0ZxfHTPNpGg5aRBAZHZyTbUFhIEQhMYqEIerF0FHKhvLBNuGCGwrQ5pE+QLBMycDKWvxVWrxQnbQ7eMuUMs0L5/qb0pmObacLRityjVhSsrg7ZjHYlL1GRCrkvGwtxG2P1ITaOj7Me3pRAV9d5q7NgFSDTlgtLITE1OC2Rn109OVpNLOO4chTGu6xLgUXpKQzbZma6btqLqqD7HZmu91ooJAcV7QbDOEdVELvjpPcJGgVBF7jxBV97aBw/9JnPgdlyQsG7y/S/gvsPZvTjg0lbVs9fqFyvhV1IXVEokXOhmpgXtSfdhJASjUMXjJToBXGG5YKC0pVl5qSF1/f9ulvbaR8H7Uc9OXPc5afbS7UDT77t532Oezb+QneX+PTkt/pS7K2vZRaAv3wnOjw76uDJR7EfL1BKCvnKNkW8NHbn0fYTl/8/3CwGAAA=\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js": function(module, __webpack_exports__, __webpack_require__) {
|
|
1247
1251
|
__webpack_require__.d(__webpack_exports__, {
|
|
1248
1252
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
1249
1253
|
});
|
|
@@ -1561,13 +1565,13 @@ var __webpack_modules__ = {
|
|
|
1561
1565
|
var _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
1562
1566
|
var _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
1563
1567
|
var _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
1564
|
-
var
|
|
1565
|
-
var
|
|
1566
|
-
var
|
|
1568
|
+
var _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_index_js_ruleSet_1_rules_2_use_1_builtin_lightningcss_loader_ruleSet_1_rules_2_use_2_node_modules_pnpm_launchpad_ui_tokens_0_14_0_node_modules_launchpad_ui_tokens_dist_index_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/index.css");
|
|
1569
|
+
var _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_index_js_ruleSet_1_rules_2_use_1_builtin_lightningcss_loader_ruleSet_1_rules_2_use_2_node_modules_pnpm_launchpad_ui_tokens_0_14_0_node_modules_launchpad_ui_tokens_dist_themes_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/themes.css");
|
|
1570
|
+
var _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_index_js_ruleSet_1_rules_2_use_1_builtin_lightningcss_loader_ruleSet_1_rules_2_use_2_node_modules_pnpm_launchpad_ui_tokens_0_14_0_node_modules_launchpad_ui_tokens_dist_fonts_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@launchpad-ui+tokens@0.14.0/node_modules/@launchpad-ui/tokens/dist/fonts.css");
|
|
1567
1571
|
var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
1568
|
-
___CSS_LOADER_EXPORT___.i(
|
|
1569
|
-
___CSS_LOADER_EXPORT___.i(
|
|
1570
|
-
___CSS_LOADER_EXPORT___.i(
|
|
1572
|
+
___CSS_LOADER_EXPORT___.i(_node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_index_js_ruleSet_1_rules_2_use_1_builtin_lightningcss_loader_ruleSet_1_rules_2_use_2_node_modules_pnpm_launchpad_ui_tokens_0_14_0_node_modules_launchpad_ui_tokens_dist_index_css__WEBPACK_IMPORTED_MODULE_2__.Z);
|
|
1573
|
+
___CSS_LOADER_EXPORT___.i(_node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_index_js_ruleSet_1_rules_2_use_1_builtin_lightningcss_loader_ruleSet_1_rules_2_use_2_node_modules_pnpm_launchpad_ui_tokens_0_14_0_node_modules_launchpad_ui_tokens_dist_themes_css__WEBPACK_IMPORTED_MODULE_3__.Z);
|
|
1574
|
+
___CSS_LOADER_EXPORT___.i(_node_modules_pnpm_rsbuild_core_1_4_12_node_modules_rsbuild_core_compiled_css_loader_index_js_ruleSet_1_rules_2_use_1_builtin_lightningcss_loader_ruleSet_1_rules_2_use_2_node_modules_pnpm_launchpad_ui_tokens_0_14_0_node_modules_launchpad_ui_tokens_dist_fonts_css__WEBPACK_IMPORTED_MODULE_4__.Z);
|
|
1571
1575
|
___CSS_LOADER_EXPORT___.push([
|
|
1572
1576
|
module.id,
|
|
1573
1577
|
`body {
|
|
@@ -1906,7 +1910,7 @@ function useSearchContext() {
|
|
|
1906
1910
|
if (!context) throw new Error('useSearchContext must be used within a SearchProvider');
|
|
1907
1911
|
return context;
|
|
1908
1912
|
}
|
|
1909
|
-
var extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/ActionButtonsContainer.css.ts.vanilla.css\",\"source\":\"#
|
|
1913
|
+
var extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/ActionButtonsContainer.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA+1Ty27bMBC8+yv2aB/o0krsuszHFEuRkgjRJLGkI6lF/72grLpWHk7iFuilN2G0OzM7u1x//TK0/TBw+L4ACKiUcbWADQ898IcFgPSkNDHpU/IHAZvQQ/TWKHhEWjJmAyu99cRqwoHtOV/lJv+oqbK+Y70APCafMWVisDgIqKzuM1BjELAP4/ckzKyukoCCz1EydXMBx5K8tRLpJC1etPKZ8xUkQhcDknZp3tgZlRoBqTHuYfFjsf6VghCs07I1iZ1rx2AafbJwf3IgsWxr8kenxFzjOhVLzfEgR8JLhtfsX8RPqMwxCiiy/lsihGX7TOQVm5t3udnP3Lx1Bbup+sp2iqnkfHC70MOmmNKdz7w7oZV3iUXzTYtz4Qh102q2fLzX8kgxqwZvXNKUoXF0k4x3AtBa4Osigsao88+uMUmzGLDUApzvCMNIbXXPYkPGtSI/hIvEhDIRpdVqjM4HLE0aBPD19lLf+cTQWt9pNe9u8uMQzqflmWh1y0lcSXc7Vv4WLf4v+YNLLv5oycW/WPLdM36qJS4r8oen/ZLQKVYO6JjEqFdAUIOET8DXmxfUb+G5u3IcT9tmU7wvuptG2/6l2e6z45832tTkOQcAAA==\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
1910
1914
|
var extracted_options = {};
|
|
1911
1915
|
extracted_options.styleTagTransform = styleTagTransform_default();
|
|
1912
1916
|
extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -2051,7 +2055,7 @@ function LaunchDarklyIcon({ className }) {
|
|
|
2051
2055
|
})
|
|
2052
2056
|
});
|
|
2053
2057
|
}
|
|
2054
|
-
var _vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/LaunchDarklyToolbar.css.ts.vanilla.css\",\"source\":\"#
|
|
2058
|
+
var _vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/LaunchDarklyToolbar.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA61U227jIBB9z1fMy0rJAxVOk17Ix1QYsD0NBgQ4tbvqv6/AdhJvslJ3tQ+2NPjMzDlnGD+8FWYncBgo/FwBOBswojUMKuyVPKwAShujbRlsqetT/EnQSNUzKCilGcDFsfa2M5IIq61ncOJ+TYh2Y0xqzwfySulmLOel8gwK10OwGuVd9POEtiflK20/GDQopTLpTHQ+pC7OoonKpyOJwWk+MKi0yiS5xtoQjKoNDISace9diFgNRFgTlYmXT1+rh9mIIhvhsW7iRXT03ITK+pZYjzUaNtky4hb525yvVfWd9ARbZD/m7BuJV4jdAiFVxTsdU5OknUj0SowTFFZ3rblxI0Svomju2pFLhMj9ktT+t7vBy2B1F1WWZh2DPf1xOIuegg+UsWHwNFnQqNHROf6fI3vK/KaGj7tlwzm25bsSkVSYalgTOWZvKtQx3ccyT9KoENZ0A2hOysd1sTkbGxqP5siALsiX2orjgsvzNZeCjl7ciP3TrK4KveRCf7dc99ZlXDjiucQuMCi2rh9fNGm5aviaG7ZoyGzdbp+HdYXhGfPd2TkuJZqawYvr0/Ovf4szeQr0ImBBrMzEEh8GxWH19QulZ2na2AQAAA==\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
2055
2059
|
var webpack_plugin_extracted_options = {};
|
|
2056
2060
|
webpack_plugin_extracted_options.styleTagTransform = styleTagTransform_default();
|
|
2057
2061
|
webpack_plugin_extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -2196,7 +2200,7 @@ function ConnectionStatus(props) {
|
|
|
2196
2200
|
]
|
|
2197
2201
|
});
|
|
2198
2202
|
}
|
|
2199
|
-
var hh8fYPBfEjJ8YIAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/Header/Header.css.ts.vanilla.css\",\"source\":\"#
|
|
2203
|
+
var hh8fYPBfEjJ8YIAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/Header/Header.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA61V227jIBB9z1eMKq2USEuF0zRNyON+yArb2KbFgAA3zq767yuwvdiJm6ZqX5LAHOZyZubk/ve+qfb0GcPfBUDOrRb0RKA0PD8sIHwjx2otqGMoU6KppSVAG6cgKUz4cYmjhlFL4E6oUkHGpGMGaOa4kvbOo6ngpUTcsdqS3u6vNc1zLksCGHa6BQzJVrfekNLspTSqkblPQRkCr9QsERK6O6PS0BPaY7wKaGVyZlCqnFM1gUS3YJXg+eyjp+kjQ3PeWALJWrfdBwbs7TWXqGK8rByBxz6tkuoOeVi8Le57IpNAZODD00DAk3AYc1sI1l5hIXjdTZ2ug9Mjz11FYP3YhR/SGXqg0meWOVRwRyBT0lEu/XXBhWOGQGo8XDJrl3gFXL4y45bJahzmIYQplHTI8j+MQLLpQoWrYx9viwMjVzqx6UkNzwpac3EaAUe3KKWWBeix4o4hq2nGCEh1NFSPM9ucsxr5uuD1ubGOFyfkOWDSjbHvUO6b25PbNZu2wznB+Mc4kceQyG0DuZufrb598w9TQ73TE5WRm/8VpkJlL7cRWyupApuxEX1LcRdevTJTCHUkUPE8Z3KygBvddiMI4FjrUAQzIbi23L7bsxn2eieB/Eh75HR73txeKz69NXi6NU9TTfvAw7tjEx3uvtvh/myaPI2SxZmJ56wx1o+LVvxCLgeVnI5Zf/vlbAGcodJy3xLSTS3g+7UFRi37ebEK0TYplFR+hkK5VzZmPWzMJ/YrBqGdfHEhrslSxKcBP8jow3Y6PVmw9iQj04HwV5U8Hyv5sB4fSml8z26qMUbYTv8rkrMii8t0orGcy3Vmu+ek5HZVjvGqSbzZzIfSs8YYJt0vX/hh8fYPBfEjJ8YIAAA=\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
2200
2204
|
var _vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options = {};
|
|
2201
2205
|
_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.styleTagTransform = styleTagTransform_default();
|
|
2202
2206
|
_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -2653,23 +2657,56 @@ class FlagStateManager {
|
|
|
2653
2657
|
this.listeners.clear();
|
|
2654
2658
|
}
|
|
2655
2659
|
}
|
|
2656
|
-
const
|
|
2660
|
+
const TAB_ORDER = [
|
|
2661
|
+
'flags',
|
|
2662
|
+
'settings'
|
|
2663
|
+
];
|
|
2664
|
+
const TOOLBAR_POSITIONS = [
|
|
2665
|
+
'left',
|
|
2666
|
+
'right'
|
|
2667
|
+
];
|
|
2668
|
+
const TOOLBAR_STORAGE_KEYS = {
|
|
2669
|
+
POSITION: 'ld-toolbar-position',
|
|
2670
|
+
DISABLED: 'ld-toolbar-disabled',
|
|
2671
|
+
PROJECT: 'ld-toolbar-project'
|
|
2672
|
+
};
|
|
2673
|
+
function saveToolbarPosition(position) {
|
|
2674
|
+
try {
|
|
2675
|
+
localStorage.setItem(TOOLBAR_STORAGE_KEYS.POSITION, position);
|
|
2676
|
+
} catch (error) {
|
|
2677
|
+
console.warn('Failed to save toolbar position to localStorage:', error);
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
function loadToolbarPosition() {
|
|
2681
|
+
try {
|
|
2682
|
+
const position = localStorage.getItem(TOOLBAR_STORAGE_KEYS.POSITION);
|
|
2683
|
+
return position && TOOLBAR_POSITIONS.includes(position) ? position : null;
|
|
2684
|
+
} catch (error) {
|
|
2685
|
+
console.warn('Failed to load toolbar position from localStorage:', error);
|
|
2686
|
+
return null;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
const STORAGE_KEY = TOOLBAR_STORAGE_KEYS.PROJECT;
|
|
2657
2690
|
const LaunchDarklyToolbarContext = /*#__PURE__*/ createContext(null);
|
|
2658
2691
|
const useToolbarContext = ()=>{
|
|
2659
2692
|
const context = useContext(LaunchDarklyToolbarContext);
|
|
2660
2693
|
if (!context) throw new Error('useToolbarContext must be used within LaunchDarklyToolbarProvider');
|
|
2661
2694
|
return context;
|
|
2662
2695
|
};
|
|
2663
|
-
const LaunchDarklyToolbarProvider = ({ children, config })=>{
|
|
2664
|
-
const [toolbarState, setToolbarState] = useState({
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2696
|
+
const LaunchDarklyToolbarProvider = ({ children, config, initialPosition })=>{
|
|
2697
|
+
const [toolbarState, setToolbarState] = useState(()=>{
|
|
2698
|
+
const savedPosition = loadToolbarPosition();
|
|
2699
|
+
return {
|
|
2700
|
+
flags: {},
|
|
2701
|
+
connectionStatus: 'disconnected',
|
|
2702
|
+
lastSyncTime: 0,
|
|
2703
|
+
isLoading: true,
|
|
2704
|
+
error: null,
|
|
2705
|
+
sourceEnvironmentKey: null,
|
|
2706
|
+
availableProjects: [],
|
|
2707
|
+
currentProjectKey: null,
|
|
2708
|
+
position: savedPosition || initialPosition || 'right'
|
|
2709
|
+
};
|
|
2673
2710
|
});
|
|
2674
2711
|
const devServerClient = useMemo(()=>new DevServerClient(config.devServerUrl, config.projectKey), [
|
|
2675
2712
|
config.devServerUrl,
|
|
@@ -2961,20 +2998,29 @@ const LaunchDarklyToolbarProvider = ({ children, config })=>{
|
|
|
2961
2998
|
flagStateManager,
|
|
2962
2999
|
toolbarState.availableProjects
|
|
2963
3000
|
]);
|
|
3001
|
+
const handlePositionChange = useCallback((newPosition)=>{
|
|
3002
|
+
setToolbarState((prev)=>({
|
|
3003
|
+
...prev,
|
|
3004
|
+
position: newPosition
|
|
3005
|
+
}));
|
|
3006
|
+
saveToolbarPosition(newPosition);
|
|
3007
|
+
}, []);
|
|
2964
3008
|
const value = useMemo(()=>({
|
|
2965
3009
|
state: toolbarState,
|
|
2966
3010
|
setOverride,
|
|
2967
3011
|
clearOverride,
|
|
2968
3012
|
clearAllOverrides,
|
|
2969
3013
|
refresh,
|
|
2970
|
-
switchProject
|
|
3014
|
+
switchProject,
|
|
3015
|
+
handlePositionChange
|
|
2971
3016
|
}), [
|
|
2972
3017
|
toolbarState,
|
|
2973
3018
|
setOverride,
|
|
2974
3019
|
clearOverride,
|
|
2975
3020
|
clearAllOverrides,
|
|
2976
3021
|
refresh,
|
|
2977
|
-
switchProject
|
|
3022
|
+
switchProject,
|
|
3023
|
+
handlePositionChange
|
|
2978
3024
|
]);
|
|
2979
3025
|
return /*#__PURE__*/ jsx(LaunchDarklyToolbarContext.Provider, {
|
|
2980
3026
|
value: value,
|
|
@@ -3063,7 +3109,7 @@ const useTabsContext = ()=>{
|
|
|
3063
3109
|
if (!context) throw new Error('useTabsContext must be used within a Tabs component');
|
|
3064
3110
|
return context;
|
|
3065
3111
|
};
|
|
3066
|
-
var Z9pEB7wQAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Tabs/Tabs.css.ts.vanilla.css\",\"source\":\"#
|
|
3112
|
+
var Z9pEB7wQAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Tabs/Tabs.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA5VTy27jMAy85yt4WaABqkBOk2yqHPdLZIu2uatIhiTntei/LyTbiYqm2fZiSBQ5MxzSi/os7cZx+DsDUOQ7Lc8Cao2n3QygtE6hY04q6r2AbZeinVSKTCNgM9ztAV2t7VFAS0qhibEjqdAKKDj/kUqsp0DWCHCoZaAD7mZvs8VAXtwnb2R3pfgO3DLB3VJk6a3uA8bCYDsBPJ5apKYNN8hSVn8aZ3ujWGW1dQIO0j0xprvhzhonz+wn5/M7xhTLQeaFkVF4GimCk2YSobEOwBcvHqq+pIqVeCF0T3yxXD8DX6w26ZvOr6v589Dw1wuy9l9S+58IzCVJrW89qt7JGGbFms8BpU92PXBiNTlx9U0M6J10aEJ8ioMUUMTjngwbZ8hv/gkw1uC7ldp2p6vYqnc+0neWTECXIK0JrJZ70udMVhZlpfQ4v6Z6uqCAYjUAptBxHPyaJyUf1k5qagyjgHsvoMKJ+XfvA9VnVlkT0IT8KV/Ue5uZ7UWRD0q08c9J43pg9PKD0Y8WdJuyMw5FXpYa1f9oNiPNZLqxgUmt7RFVhrd6AHNsKSB7XX8m99123BAzF75as07Z4z4tx+FOP/R0r0lrEduJxb8i3G729g/Z9pEB7wQAAA==\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
3067
3113
|
var Z9pEB7wQAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options = {};
|
|
3068
3114
|
Z9pEB7wQAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.styleTagTransform = styleTagTransform_default();
|
|
3069
3115
|
Z9pEB7wQAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -3215,7 +3261,7 @@ function GenericHelpText(props) {
|
|
|
3215
3261
|
]
|
|
3216
3262
|
});
|
|
3217
3263
|
}
|
|
3218
|
-
var _3CwGAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/FlagControls.css.ts.vanilla.css\",\"source\":\"#
|
|
3264
|
+
var _3CwGAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/components/FlagControls.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA72UzXLCIBCA73mKvXSmPeAk0fqDxz5IhwRMdorAAJrYju/eCUYTrbXqtD2ywMfut8DgdaI3az+O4SMCWGjlicN3QSFJTT2PAHIttaWwZvaREGlIGJPCsg0ZxfHTPNpGg5aRBAZHZyTbUFhIEQhMYqEIerF0FHKhvLBNuGCGwrQ5pE+QLBMycDKWvxVWrxQnbQ7eMuUMs0L5/qb0pmObacLRityjVhSsrg7ZjHYlL1GRCrkvGwtxG2P1ITaOj7Me3pRAV9d5q7NgFSDTlgtLITE1OC2Rn109OVpNLOO4chTGu6xLgUXpKQzbZma6btqLqqD7HZmu91ooJAcV7QbDOEdVELvjpPcJGgVBF7jxBV97aBw/9JnPgdlyQsG7y/S/gvsPZvTjg0lbVs9fqFyvhV1IXVEokXOhmpgXtSfdhJASjUMXjJToBXGG5YKC0pVl5qSF1/f9ulvbaR8H7Uc9OXPc5afbS7UDT77t532Oezb+QneX+PTkt/pS7K2vZRaAv3wnOjw76uDJR7EfL1BKCvnKNkW8NHbn0fYTl/8/3CwGAAA=\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
3219
3265
|
var _3CwGAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options = {};
|
|
3220
3266
|
_3CwGAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.styleTagTransform = styleTagTransform_default();
|
|
3221
3267
|
_3CwGAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -3411,7 +3457,7 @@ function OverrideIndicator(props) {
|
|
|
3411
3457
|
]
|
|
3412
3458
|
});
|
|
3413
3459
|
}
|
|
3414
|
-
var _2qaMCgBQAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/FlagTabContent.css.ts.vanilla.css\",\"source\":\"#
|
|
3460
|
+
var _2qaMCgBQAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/FlagTabContent.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA62T0XKbMBBF3/0VeulM/CCPcJ04Vb5mgQV2LCRVEgYn03/vSGBMQpom0z7ZLLv3XF1WO2jVefgp2MuGscrowD09o2TZwQ5P11KPVDdBsnshYq0wyjjJzuDuOFeWp2deO7jwvRDb2FKStwouklUKkw4oqjWngK2XrEAd0MVyDVayxxHVkuY9laGRLGHiqGTZ0+bXZje6zJJLc0ZXKdNL1lBZoo69AYfAby9QKbKefHzVNxSQewsFSqZN78CuaTNinxAr+/GXl+SwCGS0jBF0rZ5PcA3r6nh9mBaG63MBqrjLhPjGOPsh7LBd4L+vvsN+lP4g88OUeZqqoCV1WTQuqrw12qQgUv//yHE2fkjGW3A1aa6wCpJlD6P1r+/CrHqfVJtp/Q5CjIo3g9AFEyu+cEapHBz/IKhHIbYsONDegkMdXg9OXyc0pJcOZBNpycenIMcVZKEleY/5iQKfpZLwhJ7uQQ7FqXam06X8ghAPTdfmSW4p8KccEsi4Eh13UFLnpyV+e/B/Ix0/R3qP4aA4rRjvx/GwDDFerIi0xtN4Vx0qCHTGxcQxTdxaIPdGdQHTFTB2urPjGqe/r8RvMovluNn82womSDzIBH87ycRu7xmCj45/A/2qaMCgBQAA\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
3415
3461
|
var _2qaMCgBQAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options = {};
|
|
3416
3462
|
_2qaMCgBQAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.styleTagTransform = styleTagTransform_default();
|
|
3417
3463
|
_2qaMCgBQAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -3571,7 +3617,7 @@ function FlagTabContent() {
|
|
|
3571
3617
|
})
|
|
3572
3618
|
});
|
|
3573
3619
|
}
|
|
3574
|
-
var OL_vlFZtcuVWeBAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/SettingsTab.css.ts.vanilla.css\",\"source\":\"#
|
|
3620
|
+
var OL_vlFZtcuVWeBAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted = __webpack_require__("./node_modules/.pnpm/@rsbuild+core@1.4.12/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\"fileName\":\"src/ui/Toolbar/TabContent/SettingsTab.css.ts.vanilla.css\",\"source\":\"#H4sIAAAAAAAAA6VUQXLbMAy8+xU4Ngd6JMVxXPrYh2RoEZLQUCSHhCy5nfw9Q9pO5NhpM+3JowWxCywAL5/KsmEb9wX8XgDsXNAYxM4xu15C6SeIzpCGvQrfhDBe1M64INqgDmJTFHfbxcti+cYhjYos6o6MvkVnncWLhDK/6lVoyUootgsAr7Qm20oo136CqvATbPyUIo2zLCL9QgllNYNGpLZjCesiE+QC5c2CV7lgAMaJBQdlY+NCL2HwHkOtIqagQWYMInpV5zqK5UMSm1Vd5aobg5OEMqVoit6og8xYApSh1gpi7KOEGi1jSPDPITI1B1E7y2hZQhJBsUMeEW160Sp/7m4meJ8Fr1TSr9AUsGZyVqbOh/6d5iPL6lj2zMXVDRdXf3Wx+jj2hyvi03i+MIqc1aiezGH2cIaK3lmXfboUXd/25BPnsyGnPbqaQvYRrb7gf/yHpu7/t6lNFh1Jc3c8gMTWnSZz/m7IGAn1EAJa/pHU35YhdoHsc76kGev34y2q+rkNbrBaQt59rxJByu3JirNouriMqemMVcUJ+4OGyhpuj6ExbpTQkdbHlc7H9h5AY8hHiik0dsSYLw3Tn8MYlN/OL+vlFZtcuVWeBAAA\"}!./node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.22_webpack@5.99.9_esbuild@0.25.5_/node_modules/@vanilla-extract/webpack-plugin/extracted.js");
|
|
3575
3621
|
var OL_vlFZtcuVWeBAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options = {};
|
|
3576
3622
|
OL_vlFZtcuVWeBAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.styleTagTransform = styleTagTransform_default();
|
|
3577
3623
|
OL_vlFZtcuVWeBAAA_node_modules_pnpm_vanilla_extract_webpack_plugin_2_3_22_webpack_5_99_9_esbuild_0_25_5_node_modules_vanilla_extract_webpack_plugin_extracted_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -3627,6 +3673,45 @@ function ProjectSelector(props) {
|
|
|
3627
3673
|
]
|
|
3628
3674
|
});
|
|
3629
3675
|
}
|
|
3676
|
+
function PositionSelector(props) {
|
|
3677
|
+
const { currentPosition, onPositionChange } = props;
|
|
3678
|
+
function getPositionsDisplayName(position) {
|
|
3679
|
+
return position.charAt(0).toUpperCase() + position.slice(1);
|
|
3680
|
+
}
|
|
3681
|
+
const handlePositionSelect = (key)=>{
|
|
3682
|
+
if (key && 'string' == typeof key) {
|
|
3683
|
+
const position = key;
|
|
3684
|
+
if (position !== currentPosition) onPositionChange(position);
|
|
3685
|
+
}
|
|
3686
|
+
};
|
|
3687
|
+
return /*#__PURE__*/ jsxs(Select, {
|
|
3688
|
+
selectedKey: currentPosition,
|
|
3689
|
+
onSelectionChange: handlePositionSelect,
|
|
3690
|
+
"aria-label": "Select toolbar position",
|
|
3691
|
+
placeholder: "Select position",
|
|
3692
|
+
"data-theme": "dark",
|
|
3693
|
+
className: SettingsTab_css_select,
|
|
3694
|
+
children: [
|
|
3695
|
+
/*#__PURE__*/ jsxs(Button, {
|
|
3696
|
+
children: [
|
|
3697
|
+
/*#__PURE__*/ jsx(SelectValue, {}),
|
|
3698
|
+
/*#__PURE__*/ jsx(ChevronDownIcon, {
|
|
3699
|
+
className: SettingsTab_css_icon
|
|
3700
|
+
})
|
|
3701
|
+
]
|
|
3702
|
+
}),
|
|
3703
|
+
/*#__PURE__*/ jsx(Popover, {
|
|
3704
|
+
"data-theme": "dark",
|
|
3705
|
+
children: /*#__PURE__*/ jsx(ListBox, {
|
|
3706
|
+
children: TOOLBAR_POSITIONS.map((position)=>/*#__PURE__*/ jsx(ListBoxItem, {
|
|
3707
|
+
id: position,
|
|
3708
|
+
children: getPositionsDisplayName(position)
|
|
3709
|
+
}, position))
|
|
3710
|
+
})
|
|
3711
|
+
})
|
|
3712
|
+
]
|
|
3713
|
+
});
|
|
3714
|
+
}
|
|
3630
3715
|
function ConnectionStatusDisplay(props) {
|
|
3631
3716
|
const { status } = props;
|
|
3632
3717
|
const getStatusText = ()=>{
|
|
@@ -3653,8 +3738,9 @@ function ConnectionStatusDisplay(props) {
|
|
|
3653
3738
|
});
|
|
3654
3739
|
}
|
|
3655
3740
|
function SettingsTabContent() {
|
|
3656
|
-
const { state, switchProject } = useToolbarContext();
|
|
3741
|
+
const { state, switchProject, handlePositionChange } = useToolbarContext();
|
|
3657
3742
|
const { searchTerm } = useSearchContext();
|
|
3743
|
+
const position = state.position;
|
|
3658
3744
|
const handleProjectSwitch = async (projectKey)=>{
|
|
3659
3745
|
try {
|
|
3660
3746
|
await switchProject(projectKey);
|
|
@@ -3662,6 +3748,9 @@ function SettingsTabContent() {
|
|
|
3662
3748
|
console.error('Failed to switch project:', error);
|
|
3663
3749
|
}
|
|
3664
3750
|
};
|
|
3751
|
+
const handlePositionSelect = (newPosition)=>{
|
|
3752
|
+
handlePositionChange(newPosition);
|
|
3753
|
+
};
|
|
3665
3754
|
const settingsGroups = [
|
|
3666
3755
|
{
|
|
3667
3756
|
title: 'Configuration',
|
|
@@ -3672,6 +3761,12 @@ function SettingsTabContent() {
|
|
|
3672
3761
|
icon: 'folder',
|
|
3673
3762
|
isProjectSelector: true
|
|
3674
3763
|
},
|
|
3764
|
+
{
|
|
3765
|
+
id: 'position',
|
|
3766
|
+
name: 'Position',
|
|
3767
|
+
icon: 'move',
|
|
3768
|
+
isPositionSelector: true
|
|
3769
|
+
},
|
|
3675
3770
|
{
|
|
3676
3771
|
id: 'environment',
|
|
3677
3772
|
name: 'Environment',
|
|
@@ -3741,6 +3836,9 @@ function SettingsTabContent() {
|
|
|
3741
3836
|
currentProject: state.currentProjectKey,
|
|
3742
3837
|
onProjectChange: handleProjectSwitch,
|
|
3743
3838
|
isLoading: state.isLoading
|
|
3839
|
+
}) : item.isPositionSelector ? /*#__PURE__*/ jsx(PositionSelector, {
|
|
3840
|
+
currentPosition: position,
|
|
3841
|
+
onPositionChange: handlePositionSelect
|
|
3744
3842
|
}) : /*#__PURE__*/ jsx("span", {
|
|
3745
3843
|
className: settingValue,
|
|
3746
3844
|
children: item.value
|
|
@@ -3918,10 +4016,31 @@ function ExpandedToolbarContent(props) {
|
|
|
3918
4016
|
]
|
|
3919
4017
|
}, "toolbar-content");
|
|
3920
4018
|
}
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
4019
|
+
function useKeyPressed(targetKey) {
|
|
4020
|
+
const [keyPressed, setKeyPressed] = useState(false);
|
|
4021
|
+
useEffect(()=>{
|
|
4022
|
+
const downHandler = (event)=>{
|
|
4023
|
+
if (event.key === targetKey) setKeyPressed(true);
|
|
4024
|
+
};
|
|
4025
|
+
const upHandler = (event)=>{
|
|
4026
|
+
if (event.key === targetKey) setKeyPressed(false);
|
|
4027
|
+
};
|
|
4028
|
+
const blurHandler = ()=>{
|
|
4029
|
+
setKeyPressed(false);
|
|
4030
|
+
};
|
|
4031
|
+
window.addEventListener('keydown', downHandler);
|
|
4032
|
+
window.addEventListener('keyup', upHandler);
|
|
4033
|
+
window.addEventListener('blur', blurHandler);
|
|
4034
|
+
return ()=>{
|
|
4035
|
+
window.removeEventListener('keydown', downHandler);
|
|
4036
|
+
window.removeEventListener('keyup', upHandler);
|
|
4037
|
+
window.removeEventListener('blur', blurHandler);
|
|
4038
|
+
};
|
|
4039
|
+
}, [
|
|
4040
|
+
targetKey
|
|
4041
|
+
]);
|
|
4042
|
+
return keyPressed;
|
|
4043
|
+
}
|
|
3925
4044
|
function useToolbarState() {
|
|
3926
4045
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
3927
4046
|
const [isHovered, setIsHovered] = useState(false);
|
|
@@ -3931,10 +4050,14 @@ function useToolbarState() {
|
|
|
3931
4050
|
const [searchIsExpanded, setSearchIsExpanded] = useState(false);
|
|
3932
4051
|
const hasBeenExpandedRef = useRef(false);
|
|
3933
4052
|
const toolbarRef = useRef(null);
|
|
4053
|
+
const isMetaPressed = useKeyPressed('Meta');
|
|
4054
|
+
const isControlPressed = useKeyPressed('Control');
|
|
4055
|
+
const isDragModifierPressed = isMetaPressed || isControlPressed;
|
|
3934
4056
|
const { setSearchTerm } = useSearchContext();
|
|
3935
|
-
const showFullToolbar = useMemo(()=>isExpanded || isHovered && !isExpanded, [
|
|
4057
|
+
const showFullToolbar = useMemo(()=>isExpanded || isHovered && !isExpanded && !isDragModifierPressed, [
|
|
3936
4058
|
isExpanded,
|
|
3937
|
-
isHovered
|
|
4059
|
+
isHovered,
|
|
4060
|
+
isDragModifierPressed
|
|
3938
4061
|
]);
|
|
3939
4062
|
const slideDirection = useMemo(()=>{
|
|
3940
4063
|
if (!activeTab || !previousTab) return 1;
|
|
@@ -4008,6 +4131,7 @@ function useToolbarState() {
|
|
|
4008
4131
|
showFullToolbar,
|
|
4009
4132
|
slideDirection,
|
|
4010
4133
|
hasBeenExpanded: hasBeenExpandedRef.current,
|
|
4134
|
+
isDragModifierPressed,
|
|
4011
4135
|
toolbarRef,
|
|
4012
4136
|
handleTabChange,
|
|
4013
4137
|
handleMouseEnter,
|
|
@@ -4047,7 +4171,7 @@ function useToolbarAnimations(props) {
|
|
|
4047
4171
|
handleAnimationComplete
|
|
4048
4172
|
};
|
|
4049
4173
|
}
|
|
4050
|
-
const useToolbarVisibility_STORAGE_KEY =
|
|
4174
|
+
const useToolbarVisibility_STORAGE_KEY = TOOLBAR_STORAGE_KEYS.DISABLED;
|
|
4051
4175
|
function useToolbarVisibility() {
|
|
4052
4176
|
const [isDisabled, setIsDisabled] = useState(()=>{
|
|
4053
4177
|
if ('undefined' == typeof window) return true;
|
|
@@ -4093,22 +4217,90 @@ function useToolbarVisibility() {
|
|
|
4093
4217
|
}, []);
|
|
4094
4218
|
return !isDisabled;
|
|
4095
4219
|
}
|
|
4096
|
-
function
|
|
4097
|
-
const
|
|
4220
|
+
function useToolbarDrag({ enabled, onDragEnd, elementRef }) {
|
|
4221
|
+
const handleMouseDown = useCallback((event)=>{
|
|
4222
|
+
if (!enabled || !elementRef.current) return;
|
|
4223
|
+
event.preventDefault();
|
|
4224
|
+
const startPosition = {
|
|
4225
|
+
x: event.clientX,
|
|
4226
|
+
y: event.clientY
|
|
4227
|
+
};
|
|
4228
|
+
const boundingRect = elementRef.current.getBoundingClientRect();
|
|
4229
|
+
const initialPosition = {
|
|
4230
|
+
x: boundingRect.left,
|
|
4231
|
+
y: boundingRect.top
|
|
4232
|
+
};
|
|
4233
|
+
const updateElementPosition = (mouseEvent)=>{
|
|
4234
|
+
if (!elementRef.current) return;
|
|
4235
|
+
const offset = {
|
|
4236
|
+
x: mouseEvent.clientX - startPosition.x,
|
|
4237
|
+
y: mouseEvent.clientY - startPosition.y
|
|
4238
|
+
};
|
|
4239
|
+
const newPosition = {
|
|
4240
|
+
x: initialPosition.x + offset.x,
|
|
4241
|
+
y: initialPosition.y + offset.y
|
|
4242
|
+
};
|
|
4243
|
+
elementRef.current.style.left = `${newPosition.x}px`;
|
|
4244
|
+
elementRef.current.style.top = `${newPosition.y}px`;
|
|
4245
|
+
};
|
|
4246
|
+
const resetElementStyles = ()=>{
|
|
4247
|
+
if (elementRef.current) {
|
|
4248
|
+
elementRef.current.style.left = '';
|
|
4249
|
+
elementRef.current.style.top = '';
|
|
4250
|
+
elementRef.current.style.right = '';
|
|
4251
|
+
elementRef.current.style.bottom = '';
|
|
4252
|
+
elementRef.current.style.transform = '';
|
|
4253
|
+
elementRef.current.style.zIndex = '';
|
|
4254
|
+
}
|
|
4255
|
+
};
|
|
4256
|
+
const handleDragComplete = (upEvent)=>{
|
|
4257
|
+
document.removeEventListener('mousemove', updateElementPosition);
|
|
4258
|
+
document.removeEventListener('mouseup', handleDragComplete);
|
|
4259
|
+
resetElementStyles();
|
|
4260
|
+
onDragEnd(upEvent.clientX);
|
|
4261
|
+
};
|
|
4262
|
+
document.addEventListener('mousemove', updateElementPosition);
|
|
4263
|
+
document.addEventListener('mouseup', handleDragComplete);
|
|
4264
|
+
}, [
|
|
4265
|
+
enabled,
|
|
4266
|
+
onDragEnd,
|
|
4267
|
+
elementRef
|
|
4268
|
+
]);
|
|
4269
|
+
return {
|
|
4270
|
+
handleMouseDown
|
|
4271
|
+
};
|
|
4272
|
+
}
|
|
4273
|
+
function LdToolbar() {
|
|
4098
4274
|
const { searchTerm } = useSearchContext();
|
|
4275
|
+
const { state, handlePositionChange } = useToolbarContext();
|
|
4099
4276
|
const toolbarState = useToolbarState();
|
|
4100
|
-
const
|
|
4277
|
+
const position = state.position;
|
|
4278
|
+
const { isExpanded, activeTab, slideDirection, searchIsExpanded, showFullToolbar, hasBeenExpanded, toolbarRef, handleTabChange, handleMouseEnter, handleMouseLeave, handleClose, handleSearch, setSearchIsExpanded, setIsAnimating, isHovered, isDragModifierPressed } = toolbarState;
|
|
4101
4279
|
const toolbarAnimations = useToolbarAnimations({
|
|
4102
4280
|
showFullToolbar,
|
|
4103
|
-
isHovered
|
|
4281
|
+
isHovered,
|
|
4104
4282
|
setIsAnimating
|
|
4105
4283
|
});
|
|
4106
4284
|
const { containerAnimations, animationConfig, handleAnimationStart, handleAnimationComplete } = toolbarAnimations;
|
|
4285
|
+
const isDragEnabled = !showFullToolbar && isHovered && isDragModifierPressed;
|
|
4286
|
+
const handleDragEnd = useCallback((clientX)=>{
|
|
4287
|
+
const screenWidth = window.innerWidth;
|
|
4288
|
+
const newPosition = clientX < screenWidth / 2 ? 'left' : 'right';
|
|
4289
|
+
handlePositionChange(newPosition);
|
|
4290
|
+
}, [
|
|
4291
|
+
handlePositionChange
|
|
4292
|
+
]);
|
|
4293
|
+
const { handleMouseDown } = useToolbarDrag({
|
|
4294
|
+
enabled: isDragEnabled,
|
|
4295
|
+
onDragEnd: handleDragEnd,
|
|
4296
|
+
elementRef: toolbarRef
|
|
4297
|
+
});
|
|
4107
4298
|
return /*#__PURE__*/ jsxs(motion.div, {
|
|
4108
4299
|
ref: toolbarRef,
|
|
4109
4300
|
className: `${toolbarContainer} ${'left' === position ? positionLeft : positionRight} ${showFullToolbar ? toolbarExpanded : toolbarCircle}`,
|
|
4110
4301
|
onMouseEnter: handleMouseEnter,
|
|
4111
4302
|
onMouseLeave: handleMouseLeave,
|
|
4303
|
+
onMouseDown: handleMouseDown,
|
|
4112
4304
|
initial: false,
|
|
4113
4305
|
animate: containerAnimations,
|
|
4114
4306
|
transition: animationConfig,
|
|
@@ -4149,10 +4341,9 @@ function LaunchDarklyToolbar(props) {
|
|
|
4149
4341
|
devServerUrl,
|
|
4150
4342
|
pollIntervalInMs
|
|
4151
4343
|
},
|
|
4344
|
+
initialPosition: position,
|
|
4152
4345
|
children: /*#__PURE__*/ jsx(SearchProvider, {
|
|
4153
|
-
children: /*#__PURE__*/ jsx(LdToolbar, {
|
|
4154
|
-
position: position
|
|
4155
|
-
})
|
|
4346
|
+
children: /*#__PURE__*/ jsx(LdToolbar, {})
|
|
4156
4347
|
})
|
|
4157
4348
|
});
|
|
4158
4349
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare function LdToolbar(props: LdToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export interface LaunchDarklyToolbarProps extends LdToolbarProps {
|
|
1
|
+
import { ToolbarPosition } from './types/toolbar';
|
|
2
|
+
export declare function LdToolbar(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export interface LaunchDarklyToolbarProps {
|
|
6
4
|
devServerUrl?: string;
|
|
7
5
|
projectKey?: string;
|
|
8
6
|
pollIntervalInMs?: number;
|
|
7
|
+
position?: ToolbarPosition;
|
|
9
8
|
}
|
|
10
9
|
export declare function LaunchDarklyToolbar(props: LaunchDarklyToolbarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LdToolbarConfig, ToolbarState } from '../../../types/devServer';
|
|
3
|
+
import { ToolbarPosition } from '../types/toolbar';
|
|
3
4
|
interface LaunchDarklyToolbarContextValue {
|
|
4
5
|
state: ToolbarState & {
|
|
5
6
|
availableProjects: string[];
|
|
6
7
|
currentProjectKey: string | null;
|
|
8
|
+
position: ToolbarPosition;
|
|
7
9
|
};
|
|
8
10
|
setOverride: (flagKey: string, value: any) => Promise<void>;
|
|
9
11
|
clearOverride: (flagKey: string) => Promise<void>;
|
|
10
12
|
clearAllOverrides: () => Promise<void>;
|
|
11
13
|
refresh: () => Promise<void>;
|
|
12
14
|
switchProject: (projectKey: string) => Promise<void>;
|
|
15
|
+
handlePositionChange: (position: ToolbarPosition) => void;
|
|
13
16
|
}
|
|
14
17
|
export declare const useToolbarContext: () => LaunchDarklyToolbarContextValue;
|
|
15
18
|
export interface LaunchDarklyToolbarProviderProps {
|
|
16
19
|
children: React.ReactNode;
|
|
17
20
|
config: LdToolbarConfig;
|
|
21
|
+
initialPosition?: ToolbarPosition;
|
|
18
22
|
}
|
|
19
23
|
export declare const LaunchDarklyToolbarProvider: React.FC<LaunchDarklyToolbarProviderProps>;
|
|
20
24
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { useToolbarState } from './useToolbarState';
|
|
2
2
|
export { useToolbarAnimations } from './useToolbarAnimations';
|
|
3
3
|
export { useToolbarVisibility } from './useToolbarVisibility';
|
|
4
|
+
export { useToolbarDrag } from './useToolbarDrag';
|
|
5
|
+
export { useKeyPressed } from './useKeyPressed';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useKeyPressed(targetKey: string): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface UseToolbarDragOptions {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
onDragEnd: (clientX: number) => void;
|
|
4
|
+
elementRef: React.RefObject<HTMLDivElement | null>;
|
|
5
|
+
}
|
|
6
|
+
interface UseToolbarDragReturn {
|
|
7
|
+
handleMouseDown: (event: React.MouseEvent) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function useToolbarDrag({ enabled, onDragEnd, elementRef }: UseToolbarDragOptions): UseToolbarDragReturn;
|
|
10
|
+
export {};
|
|
@@ -10,6 +10,7 @@ export interface UseToolbarStateReturn {
|
|
|
10
10
|
showFullToolbar: boolean;
|
|
11
11
|
slideDirection: number;
|
|
12
12
|
hasBeenExpanded: boolean;
|
|
13
|
+
isDragModifierPressed: boolean;
|
|
13
14
|
toolbarRef: React.RefObject<HTMLDivElement | null>;
|
|
14
15
|
handleTabChange: (tabId: string) => void;
|
|
15
16
|
handleMouseEnter: () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToolbarPosition } from '../types/toolbar';
|
|
2
|
+
export declare const TOOLBAR_STORAGE_KEYS: {
|
|
3
|
+
readonly POSITION: "ld-toolbar-position";
|
|
4
|
+
readonly DISABLED: "ld-toolbar-disabled";
|
|
5
|
+
readonly PROJECT: "ld-toolbar-project";
|
|
6
|
+
};
|
|
7
|
+
export declare function saveToolbarPosition(position: ToolbarPosition): void;
|
|
8
|
+
export declare function loadToolbarPosition(): ToolbarPosition | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/toolbar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A React component that provides a developer-friendly toolbar for interacting with LaunchDarkly during development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"launchdarkly",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"author": "Catamorphic Co.",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/launchdarkly/
|
|
18
|
+
"url": "git+https://github.com/launchdarkly/launchdarkly-toolbar.git"
|
|
19
19
|
},
|
|
20
20
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/launchdarkly/
|
|
21
|
+
"url": "https://github.com/launchdarkly/launchdarkly-toolbar/issues"
|
|
22
22
|
},
|
|
23
|
-
"homepage": "https://github.com/launchdarkly/
|
|
23
|
+
"homepage": "https://github.com/launchdarkly/launchdarkly-toolbar#readme",
|
|
24
24
|
"main": "./dist/js/index.js",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"exports": {
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"test:e2e:local": "TEST_ENV=local playwright test --config=./e2e/playwright.config.ts",
|
|
53
53
|
"test:e2e:local:ui": "TEST_ENV=local playwright test --ui --config=./e2e/playwright.config.ts",
|
|
54
54
|
"test:e2e:ci:ui": "TEST_ENV=ci playwright test --ui --config=./e2e/playwright.config.ts",
|
|
55
|
-
"lint": "oxlint"
|
|
55
|
+
"lint": "oxlint",
|
|
56
|
+
"upgrade-launchpad": "pnpm up \"@launchpad-ui/*\" react-aria \"@react-aria/*\" \"@react-types/*\" \"@react-stately/*\" react-aria-components react react-dom @types/react @types/react-dom --latest -r"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@playwright/test": "^1.53.1",
|
|
@@ -70,13 +71,13 @@
|
|
|
70
71
|
"@testing-library/jest-dom": "^6.6.3",
|
|
71
72
|
"@testing-library/react": "^16.3.0",
|
|
72
73
|
"@types/node": "^24.0.4",
|
|
73
|
-
"@types/react": "^19.1.
|
|
74
|
+
"@types/react": "^19.1.10",
|
|
74
75
|
"@vanilla-extract/vite-plugin": "^5.1.1",
|
|
75
76
|
"http-server": "^14.1.1",
|
|
76
77
|
"jsdom": "^26.1.0",
|
|
77
78
|
"oxlint": "^1.0.0",
|
|
78
79
|
"prettier": "^3.5.3",
|
|
79
|
-
"react": "^19.1.
|
|
80
|
+
"react": "^19.1.1",
|
|
80
81
|
"storybook": "^9.0.5",
|
|
81
82
|
"storybook-addon-rslib": "^2.0.0",
|
|
82
83
|
"storybook-react-rsbuild": "^2.0.0",
|
|
@@ -84,20 +85,20 @@
|
|
|
84
85
|
"vitest": "^3.2.2"
|
|
85
86
|
},
|
|
86
87
|
"peerDependencies": {
|
|
87
|
-
"react": "
|
|
88
|
-
"react-dom": "
|
|
88
|
+
"react": "19.1.1",
|
|
89
|
+
"react-dom": "19.1.1"
|
|
89
90
|
},
|
|
90
91
|
"private": false,
|
|
91
92
|
"publishConfig": {
|
|
92
93
|
"access": "public"
|
|
93
94
|
},
|
|
94
95
|
"dependencies": {
|
|
95
|
-
"@launchpad-ui/components": "^0.
|
|
96
|
-
"@launchpad-ui/
|
|
97
|
-
"@launchpad-ui/tokens": "^0.12.6",
|
|
96
|
+
"@launchpad-ui/components": "^0.15.0",
|
|
97
|
+
"@launchpad-ui/tokens": "^0.14.0",
|
|
98
98
|
"@tanstack/react-virtual": "^3.13.12",
|
|
99
99
|
"@vanilla-extract/css": "^1.17.4",
|
|
100
100
|
"@vanilla-extract/webpack-plugin": "^2.3.22",
|
|
101
101
|
"motion": "^12.19.2"
|
|
102
|
-
}
|
|
102
|
+
},
|
|
103
|
+
"packageManager": "pnpm@10.14.0"
|
|
103
104
|
}
|