@launchdarkly/toolbar 0.26.0 → 1.0.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/README.md +276 -161
- package/cdn/toolbar.min.js +25 -0
- package/cdn/toolbar.min.js.LICENSE.txt +59 -0
- package/cdn/toolbar.min.js.map +1 -0
- package/dist/core/context/Providers.d.ts +9 -0
- package/dist/core/context/ReactMountContext.d.ts +2 -0
- package/dist/core/context/ShadowRootContext.d.ts +2 -0
- package/dist/core/context/defaultConfig.d.ts +3 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/mount.d.ts +2 -0
- package/dist/{ui → core/ui}/Toolbar/LaunchDarklyToolbar.d.ts +3 -1
- package/dist/{ui → core/ui}/Toolbar/TabContent/EventsTabContent.d.ts +1 -1
- package/dist/{ui → core/ui}/Toolbar/TabContent/FlagSdkOverrideTabContent.d.ts +1 -1
- package/dist/{ui → core/ui}/Toolbar/components/ExpandedToolbarContent.d.ts +1 -1
- package/dist/{ui → core/ui}/Toolbar/components/TabContentRenderer.d.ts +1 -1
- package/dist/{ui → core/ui}/Toolbar/context/FlagSdkOverrideProvider.d.ts +1 -1
- package/dist/{ui → core/ui}/Toolbar/hooks/useEvents.d.ts +1 -2
- package/dist/{ui → core/ui}/Toolbar/hooks/useToolbarState.d.ts +1 -0
- package/dist/core/utils/hydrateConfig.d.ts +2 -0
- package/dist/{js/plugins/index.js → index.cjs} +278 -133
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +9 -10
- package/dist/js/index.js +226 -7799
- package/dist/js/index.js.map +1 -0
- package/dist/react/lazyLoadToolbar.d.ts +2 -0
- package/dist/react/useLaunchDarklyToolbar.d.ts +20 -0
- package/dist/types/analytics.d.ts +1 -0
- package/dist/types/config.d.ts +54 -0
- package/dist/{hooks → types/hooks}/AfterEvaluationHook.d.ts +1 -1
- package/dist/{hooks → types/hooks}/AfterIdentifyHook.d.ts +1 -1
- package/dist/{hooks → types/hooks}/AfterTrackHook.d.ts +1 -1
- package/dist/{hooks → types/hooks}/EventStore.d.ts +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/{plugins/EventInterceptionPlugin.d.ts → types/plugins/eventInterceptionPlugin.d.ts} +2 -2
- package/dist/{plugins/FlagOverridePlugin.d.ts → types/plugins/flagOverridePlugin.d.ts} +1 -1
- package/dist/types/plugins/index.d.ts +3 -0
- package/dist/types/{plugin.d.ts → plugins/plugins.d.ts} +1 -4
- package/dist/types/position.d.ts +2 -0
- package/package.json +53 -43
- package/LICENSE +0 -13
- package/dist/plugins/index.d.ts +0 -4
- package/dist/tests/DevServerProvider.test.d.ts +0 -1
- package/dist/tests/ExpandedToolbarContent.test.d.ts +0 -1
- package/dist/tests/FlagSdkOverrideProvider.test.d.ts +0 -1
- package/dist/tests/LaunchDarklyToolbar.test.d.ts +0 -1
- package/dist/tests/Tabs.test.d.ts +0 -1
- package/dist/tests/hooks/AfterEvaluationHook.test.d.ts +0 -1
- package/dist/tests/hooks/AfterIdentifyHook.test.d.ts +0 -1
- package/dist/tests/hooks/AfterTrackHook.test.d.ts +0 -1
- package/dist/tests/hooks/EventStore.test.d.ts +0 -1
- package/dist/tests/plugins/EventInterceptionPlugin.test.d.ts +0 -1
- package/dist/vendor/launchpad/Button.d.ts +0 -19
- package/dist/vendor/launchpad/Group.d.ts +0 -11
- package/dist/vendor/launchpad/Input.d.ts +0 -15
- package/dist/vendor/launchpad/ListBox.d.ts +0 -15
- package/dist/vendor/launchpad/Popover.d.ts +0 -13
- package/dist/vendor/launchpad/SearchField.d.ts +0 -10
- package/dist/vendor/launchpad/Select.d.ts +0 -16
- package/dist/vendor/launchpad/Switch.d.ts +0 -10
- package/dist/vendor/launchpad/TextField.d.ts +0 -10
- package/dist/vendor/launchpad/index.d.ts +0 -18
- package/dist/vendor/launchpad/utils.d.ts +0 -4
- /package/dist/{services → core/services}/DevServerClient.d.ts +0 -0
- /package/dist/{services → core/services}/FlagStateManager.d.ts +0 -0
- /package/dist/{tests → core/tests}/mocks/flags.d.ts +0 -0
- /package/dist/{types → core/types}/devServer.d.ts +0 -0
- /package/dist/{ui → core/ui}/List/List.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/List/List.d.ts +0 -0
- /package/dist/{ui → core/ui}/List/ListItem.d.ts +0 -0
- /package/dist/{ui → core/ui}/Tabs/TabButton.d.ts +0 -0
- /package/dist/{ui → core/ui}/Tabs/Tabs.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Tabs/Tabs.d.ts +0 -0
- /package/dist/{ui → core/ui}/Tabs/useTabsContext.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/Header.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/Header.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/components/ActionButtons.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/components/EnvironmentLabel.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/components/LogoSection.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/components/SearchSection.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/Header/components/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/LaunchDarklyToolbar.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/TabContent/EventsTabContent.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/TabContent/FlagDevServerTabContent.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/TabContent/FlagDevServerTabContent.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/TabContent/SettingsTab.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/TabContent/SettingsTabContent.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/ActionButtonsContainer.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/ActionButtonsContainer.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/CircleLogo.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/ConnectionStatus.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/ConnectionStatus.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/DoNotTrackWarning.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/DoNotTrackWarning.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/ErrorMessage.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/ErrorMessage.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/FlagControls.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/FlagControls.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/GenericHelpText.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/GenericHelpText.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/IconButton.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/IconButton.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/IconLinkButton.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/LocalFlagControls.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/LocalFlagControls.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/OverrideIndicator.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/OverrideIndicator.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/Popover.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/StatusDot.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/StatusDot.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/AddIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/ArrowUndoIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/CancelCircleIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/CheckIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/ChevronDownIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/ChevronUpIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/DeleteIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/EditIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/GearIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/Icon.css.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/LaunchDarklyIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/LaunchDarklyLogo.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/SearchIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/SyncIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/ToggleOffIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/XIcon.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/icons/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/components/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/constants/animations.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/constants/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/constants/virtualization.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/context/AnalyticsProvider.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/context/DevServerProvider.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/context/SearchProvider.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/context/ToolbarUIProvider.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/context/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/hooks/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/hooks/useCurrentDate.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/hooks/useToolbarAnimations.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/hooks/useToolbarDrag.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/hooks/useToolbarVisibility.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/types/index.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/types/toolbar.d.ts +0 -0
- /package/dist/{ui → core/ui}/Toolbar/utils/localStorage.d.ts +0 -0
- /package/dist/{ui → core/ui}/constants/zIndex.d.ts +0 -0
- /package/dist/{utils → core/utils}/analytics.d.ts +0 -0
- /package/dist/{utils → core/utils}/browser.d.ts +0 -0
- /package/dist/{utils → core/utils}/deepEqual.d.ts +0 -0
- /package/dist/{utils → core/utils}/index.d.ts +0 -0
- /package/dist/{hooks → types/hooks}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js/index.js","sources":["webpack://@launchdarkly/toolbar/./src/types/analytics.ts","webpack://@launchdarkly/toolbar/./src/types/events.ts","webpack://@launchdarkly/toolbar/./src/types/position.ts","webpack://@launchdarkly/toolbar/./src/types/hooks/EventStore.ts","webpack://@launchdarkly/toolbar/./src/types/hooks/AfterTrackHook.ts","webpack://@launchdarkly/toolbar/./src/types/hooks/AfterIdentifyHook.ts","webpack://@launchdarkly/toolbar/./src/types/hooks/AfterEvaluationHook.ts","webpack://@launchdarkly/toolbar/./src/types/plugins/eventInterceptionPlugin.ts","webpack://@launchdarkly/toolbar/./src/types/plugins/flagOverridePlugin.ts","webpack://@launchdarkly/toolbar/./src/react/lazyLoadToolbar.ts","webpack://@launchdarkly/toolbar/./src/react/useLaunchDarklyToolbar.ts"],"sourcesContent":["export const ANALYTICS_EVENT_PREFIX = 'ld.toolbar';\n","export interface LDEvaluationReason {\n readonly kind?: string;\n readonly errorKind?: string;\n}\n\nexport interface SyntheticEventContext {\n readonly kind: EventKind;\n readonly key?: string;\n readonly context?: object;\n readonly creationDate: number;\n readonly data?: unknown;\n readonly metricValue?: number;\n readonly url?: string;\n readonly value?: any;\n readonly variation?: number | null;\n readonly default?: any;\n readonly reason?: LDEvaluationReason;\n readonly version?: number;\n readonly trackEvents?: boolean;\n readonly debugEventsUntilDate?: number;\n readonly contextKind?: string;\n}\n\n/**\n * Valid event kinds that can be emitted by the LaunchDarkly SDK\n */\nconst VALID_EVENT_KINDS = ['identify', 'feature', 'custom', 'debug', 'summary', 'diagnostic'] as const;\n\n/**\n * Valid event categories used for organizing events\n */\nconst VALID_EVENT_CATEGORIES = ['flag', 'custom', 'identify', 'debug'] as const;\n\n/**\n * Strict typing for event kinds based on LaunchDarkly's event system\n */\nexport type EventKind = (typeof VALID_EVENT_KINDS)[number];\n\n/**\n * Event categories for UI organization\n */\nexport type EventCategory = (typeof VALID_EVENT_CATEGORIES)[number];\n\n/**\n * Enhanced processed event\n */\nexport interface ProcessedEvent {\n readonly id: string;\n readonly kind: EventKind;\n readonly key?: string;\n readonly timestamp: number;\n readonly context: SyntheticEventContext;\n readonly displayName: string;\n readonly category: EventCategory;\n readonly metadata?: Readonly<Record<string, unknown>>;\n}\n\n/**\n * Event filter configuration\n */\nexport interface EventFilter {\n readonly kinds?: ReadonlyArray<EventKind>;\n readonly categories?: ReadonlyArray<EventCategory>;\n readonly flagKeys?: ReadonlyArray<string>;\n readonly timeRange?: {\n readonly start: number;\n readonly end: number;\n };\n}\n\n/**\n * Type guards for event validation\n */\nexport function isValidEventKind(kind: string): kind is EventKind {\n return VALID_EVENT_KINDS.includes(kind as EventKind);\n}\n\nexport function isValidEventCategory(category: string): category is EventCategory {\n return VALID_EVENT_CATEGORIES.includes(category as EventCategory);\n}\n","export const TOOLBAR_POSITIONS = ['top-left', 'top-right', 'bottom-left', 'bottom-right'] as const;\nexport type ToolbarPosition = (typeof TOOLBAR_POSITIONS)[number];\n","import type { ProcessedEvent } from '../events';\n\nconst DEFAULT_MAX_EVENTS = 100;\nexport interface EventStoreConfig {\n /** Maximum number of events to store */\n maxEvents?: number;\n}\n\nexport class EventStore {\n private events: ProcessedEvent[] = [];\n private listeners: Set<() => void> = new Set();\n private maxEvents: number;\n\n constructor(config: EventStoreConfig = {}) {\n this.maxEvents = config.maxEvents ?? DEFAULT_MAX_EVENTS;\n }\n\n addEvent(event: ProcessedEvent): void {\n try {\n this.events.push(event);\n if (this.events.length > this.maxEvents) {\n // Remove oldest events to maintain the limit\n this.events.splice(0, this.events.length - this.maxEvents);\n }\n this.notifyListeners();\n } catch (error) {\n console.warn('Event store error:', error);\n }\n }\n\n getEvents(): ProcessedEvent[] {\n return [...this.events];\n }\n\n subscribe(listener: () => void): () => void {\n this.listeners.add(listener);\n listener(); // Send initial notification\n return () => this.listeners.delete(listener);\n }\n\n clear(): void {\n this.events = [];\n this.notifyListeners();\n }\n\n destroy(): void {\n this.listeners.clear();\n this.events = [];\n }\n\n private notifyListeners(): void {\n this.listeners.forEach((listener) => {\n try {\n listener();\n } catch (error) {\n console.warn('Listener error:', error);\n }\n });\n }\n}\n","import type { Hook } from 'launchdarkly-js-client-sdk';\nimport type { HookMetadata, TrackSeriesContext } from 'launchdarkly-js-sdk-common';\nimport type { EventFilter, ProcessedEvent, SyntheticEventContext } from '../events';\n\nexport type AfterTrackHookConfig = {\n onNewEvent?: (event: ProcessedEvent) => void;\n filter?: EventFilter;\n};\n\nexport class AfterTrackHook implements Hook {\n private config: AfterTrackHookConfig;\n private idCounter = 0;\n\n constructor(config: AfterTrackHookConfig = {}) {\n this.config = {\n filter: config.filter,\n onNewEvent: config.onNewEvent,\n };\n }\n\n getMetadata(): HookMetadata {\n return {\n name: 'AfterTrackHook',\n };\n }\n\n afterTrack(hookContext: TrackSeriesContext): void {\n try {\n const syntheticContext: SyntheticEventContext = {\n kind: 'custom',\n key: hookContext.key,\n context: hookContext.context,\n data: hookContext.data,\n metricValue: hookContext.metricValue,\n creationDate: Date.now(),\n url: typeof window !== 'undefined' ? window.location.href : undefined,\n };\n\n if (!this.shouldProcessEvent()) {\n return;\n }\n\n const processedEvent = this.processEvent(syntheticContext);\n\n this.config.onNewEvent?.(processedEvent);\n } catch (error) {\n // Simple error handling - just log and continue\n console.warn('Event processing error in AfterTrackHook:', error);\n }\n }\n\n private shouldProcessEvent(): boolean {\n const filter = this.config.filter;\n if (!filter) return true;\n\n // AfterTrackHook only handles custom events\n return (\n !(filter.kinds && !filter.kinds.includes('custom')) &&\n !(filter.categories && !filter.categories.includes('custom'))\n );\n }\n\n private processEvent(context: SyntheticEventContext): ProcessedEvent {\n const timestamp = Date.now();\n // Create a guaranteed unique ID using timestamp + counter + random\n this.idCounter = (this.idCounter + 1) % 999999; // Reset counter at 999999\n const randomPart = Math.random().toString(36).substring(2, 8);\n const id = `${context.kind}-${timestamp}-${this.idCounter.toString().padStart(6, '0')}-${randomPart}`;\n\n return {\n id,\n kind: context.kind,\n key: context.key,\n timestamp,\n context,\n displayName: `Custom: ${context.key || 'unknown'}`,\n category: 'custom',\n metadata: this.extractMetadata(context),\n };\n }\n\n private extractMetadata(context: SyntheticEventContext): Record<string, unknown> {\n // AfterTrackHook only handles custom events\n return {\n data: context.data,\n metricValue: context.metricValue,\n url: context.url,\n };\n }\n}\n","import type { Hook } from 'launchdarkly-js-client-sdk';\nimport type {\n HookMetadata,\n IdentifySeriesContext,\n IdentifySeriesData,\n IdentifySeriesResult,\n LDContext,\n} from 'launchdarkly-js-sdk-common';\nimport type { EventFilter, ProcessedEvent, SyntheticEventContext } from '../events';\n\nexport type AfterIdentifyHookConfig = {\n onNewEvent?: (event: ProcessedEvent) => void;\n filter?: EventFilter;\n};\n\nexport class AfterIdentifyHook implements Hook {\n private config: AfterIdentifyHookConfig;\n private idCounter = 0;\n\n constructor(config: AfterIdentifyHookConfig = {}) {\n this.config = {\n filter: config.filter,\n onNewEvent: config.onNewEvent,\n };\n }\n\n getMetadata(): HookMetadata {\n return {\n name: 'AfterIdentifyHook',\n };\n }\n\n afterIdentify(\n hookContext: IdentifySeriesContext,\n data: IdentifySeriesData,\n result: IdentifySeriesResult,\n ): IdentifySeriesData {\n try {\n // Only process successful identify operations\n if (result.status !== 'completed') {\n return data;\n }\n\n const syntheticContext: SyntheticEventContext = {\n kind: 'identify',\n context: hookContext.context,\n creationDate: Date.now(),\n contextKind: this.determineContextKind(hookContext.context),\n };\n\n if (!this.shouldProcessEvent()) {\n return data;\n }\n\n const processedEvent = this.processEvent(syntheticContext);\n\n this.config.onNewEvent?.(processedEvent);\n } catch (error) {\n // Simple error handling - just log and continue\n console.warn('Event processing error in AfterIdentifyHook:', error);\n }\n\n return data;\n }\n\n private determineContextKind(context: LDContext): string {\n if (context && typeof context === 'object') {\n if ('kind' in context && context.kind) {\n return context.kind;\n }\n // Legacy user context\n if (context.anonymous) {\n return 'anonymousUser';\n }\n return 'user';\n }\n return 'user';\n }\n\n private shouldProcessEvent(): boolean {\n const filter = this.config.filter;\n if (!filter) return true;\n\n // AfterIdentifyHook only handles identify events\n return (\n !(filter.kinds && !filter.kinds.includes('identify')) &&\n !(filter.categories && !filter.categories.includes('identify'))\n );\n }\n\n private processEvent(context: SyntheticEventContext): ProcessedEvent {\n const timestamp = Date.now();\n // Create a guaranteed unique ID using timestamp + counter + random\n this.idCounter = (this.idCounter + 1) % 999999; // Reset counter at 999999\n const randomPart = Math.random().toString(36).substring(2, 8);\n const id = `${context.kind}-${timestamp}-${this.idCounter.toString().padStart(6, '0')}-${randomPart}`;\n\n return {\n id,\n kind: context.kind,\n key: context.key,\n timestamp,\n context,\n displayName: `Identify: ${(context.context as any)?.key || 'anonymous'}`,\n category: 'identify',\n metadata: this.extractMetadata(context),\n };\n }\n\n private extractMetadata(context: SyntheticEventContext): Record<string, unknown> {\n // AfterIdentifyHook only handles identify events\n return {\n contextKind: context.contextKind,\n };\n }\n}\n","import type { Hook } from 'launchdarkly-js-client-sdk';\nimport type {\n HookMetadata,\n EvaluationSeriesData,\n LDEvaluationDetail,\n EvaluationSeriesContext,\n} from 'launchdarkly-js-sdk-common';\nimport type { EventFilter, ProcessedEvent, SyntheticEventContext } from '../events';\n\nexport type AfterEvaluationHookConfig = {\n onNewEvent?: (event: ProcessedEvent) => void;\n filter?: EventFilter;\n};\n\nexport class AfterEvaluationHook implements Hook {\n private config: AfterEvaluationHookConfig;\n private idCounter = 0;\n\n constructor(config: AfterEvaluationHookConfig = {}) {\n this.config = {\n filter: config.filter,\n onNewEvent: config.onNewEvent,\n };\n }\n\n getMetadata(): HookMetadata {\n return {\n name: 'AfterEvaluationHook',\n };\n }\n\n afterEvaluation(\n hookContext: EvaluationSeriesContext,\n data: EvaluationSeriesData,\n detail: LDEvaluationDetail,\n ): EvaluationSeriesData {\n try {\n const syntheticContext: SyntheticEventContext = {\n kind: 'feature',\n key: hookContext.flagKey,\n context: hookContext.context,\n value: detail.value,\n variation: detail.variationIndex,\n default: hookContext.defaultValue,\n reason: detail.reason,\n creationDate: Date.now(),\n // Note: We don't have access to version, trackEvents, or debugEventsUntilDate\n // from the afterEvaluation hook, so these will be undefined\n };\n\n if (!this.shouldProcessEvent(syntheticContext)) {\n return data;\n }\n\n const processedEvent = this.processEvent(syntheticContext);\n\n this.config.onNewEvent?.(processedEvent);\n } catch (error) {\n // Simple error handling - just log and continue\n console.warn('Event processing error in AfterEvaluationHook:', error);\n }\n\n return data;\n }\n\n private shouldProcessEvent(context: SyntheticEventContext): boolean {\n const filter = this.config.filter;\n if (!filter) return true;\n\n // AfterEvaluationHook only handles feature events\n return (\n !(filter.kinds && !filter.kinds.includes('feature')) &&\n !(filter.categories && !filter.categories.includes('flag')) &&\n !(filter.flagKeys && context.key && !filter.flagKeys.includes(context.key))\n );\n }\n\n private processEvent(context: SyntheticEventContext): ProcessedEvent {\n const timestamp = Date.now();\n // Create a guaranteed unique ID using timestamp + counter + random\n this.idCounter = (this.idCounter + 1) % 999999; // Reset counter at 999999\n const randomPart = Math.random().toString(36).substring(2, 8);\n const id = `${context.kind}-${timestamp}-${this.idCounter.toString().padStart(6, '0')}-${randomPart}`;\n\n return {\n id,\n kind: context.kind,\n key: context.key,\n timestamp,\n context,\n displayName: `Flag: ${context.key || 'unknown'}`,\n category: 'flag',\n metadata: this.extractMetadata(context),\n };\n }\n\n private extractMetadata(context: SyntheticEventContext): Record<string, unknown> {\n // AfterEvaluationHook only handles feature events\n return {\n flagVersion: context.version,\n variation: context.variation,\n trackEvents: context.trackEvents,\n reason: context.reason,\n defaultValue: context.default,\n };\n }\n}\n","import type { Hook, LDClient, LDPluginEnvironmentMetadata, LDPluginMetadata } from 'launchdarkly-js-client-sdk';\nimport { AfterTrackHook, AfterIdentifyHook, AfterEvaluationHook, EventStore } from '../hooks';\nimport type { EventFilter, ProcessedEvent } from '../events';\nimport type { IEventInterceptionPlugin } from './plugins';\nimport { ANALYTICS_EVENT_PREFIX } from '../analytics';\n\n/**\n * Configuration options for the EventInterceptionPlugin\n */\nexport interface EventInterceptionPluginConfig {\n /** Configuration for event filtering */\n filter?: EventFilter;\n /** Enable console logging for debugging */\n enableLogging?: boolean;\n /** Maximum number of events to store. The default value is 100. */\n eventCapacity?: number;\n}\n\n/**\n * Plugin dedicated to intercepting and processing LaunchDarkly events\n */\nexport class EventInterceptionPlugin implements IEventInterceptionPlugin {\n private afterTrackHook: AfterTrackHook;\n private afterIdentifyHook: AfterIdentifyHook;\n private afterEvaluationHook: AfterEvaluationHook;\n private eventStore: EventStore;\n private config: EventInterceptionPluginConfig;\n private ldClient: LDClient | null = null;\n\n constructor(config: EventInterceptionPluginConfig = {}) {\n this.config = {\n enableLogging: false,\n eventCapacity: 100,\n ...config,\n };\n\n this.eventStore = new EventStore({ maxEvents: this.config.eventCapacity });\n\n const onNewEvent = (event: ProcessedEvent) => {\n const isToolbarEvent = this.isToolbarEvent(event);\n if (isToolbarEvent) {\n return;\n }\n\n if (this.config.enableLogging) {\n console.log('🎯 Event intercepted:', {\n kind: event.kind,\n key: event.key,\n category: event.category,\n displayName: event.displayName,\n });\n }\n\n this.eventStore.addEvent(event);\n };\n\n this.afterTrackHook = new AfterTrackHook({\n filter: config.filter,\n onNewEvent,\n });\n\n this.afterIdentifyHook = new AfterIdentifyHook({\n filter: config.filter,\n onNewEvent,\n });\n\n this.afterEvaluationHook = new AfterEvaluationHook({\n filter: config.filter,\n onNewEvent,\n });\n }\n\n isToolbarEvent(event: ProcessedEvent): boolean {\n return event.key?.startsWith(ANALYTICS_EVENT_PREFIX) ?? false;\n }\n\n getMetadata(): LDPluginMetadata {\n return {\n name: 'EventInterceptionPlugin',\n };\n }\n\n getHooks(_metadata: LDPluginEnvironmentMetadata): Hook[] {\n return [this.afterTrackHook, this.afterIdentifyHook, this.afterEvaluationHook];\n }\n\n register(ldClient: LDClient): void {\n this.ldClient = ldClient;\n }\n\n getClient(): LDClient | null {\n return this.ldClient;\n }\n\n getEvents(): ProcessedEvent[] {\n return this.eventStore.getEvents();\n }\n\n subscribe(listener: () => void): () => void {\n return this.eventStore.subscribe(listener);\n }\n\n clearEvents(): void {\n this.eventStore.clear();\n }\n\n destroy(): void {\n this.eventStore.destroy();\n }\n}\n","import type {\n LDClient,\n LDDebugOverride,\n LDPluginMetadata,\n LDFlagSet,\n Hook,\n LDPluginEnvironmentMetadata,\n} from 'launchdarkly-js-client-sdk';\nimport type { IFlagOverridePlugin } from './plugins';\n\n/**\n * Configuration options for the FlagOverridePlugin\n */\nexport type FlagOverridePluginConfig = {\n /** Namespace for localStorage keys. Defaults to 'ld-flag-override' */\n storageNamespace?: string;\n};\n\nconst DEFAULT_STORAGE_NAMESPACE = 'ld-flag-override';\n\nexport class FlagOverridePlugin implements IFlagOverridePlugin {\n private debugOverride?: LDDebugOverride;\n private config: Required<FlagOverridePluginConfig>;\n private ldClient: LDClient | null = null;\n\n constructor(config: FlagOverridePluginConfig = {}) {\n this.config = {\n storageNamespace: config.storageNamespace ?? DEFAULT_STORAGE_NAMESPACE,\n };\n }\n\n /**\n * Returns plugin metadata\n */\n getMetadata(): LDPluginMetadata {\n return {\n name: 'FlagOverridePlugin',\n };\n }\n\n /**\n * Returns the hooks for the plugin\n */\n getHooks(_metadata: LDPluginEnvironmentMetadata): Hook[] {\n return [];\n }\n\n /**\n * Called when the plugin is registered with the LaunchDarkly client\n */\n register(ldClient: LDClient): void {\n this.ldClient = ldClient;\n }\n\n /**\n * Called when the debug interface is available\n * Loads any existing overrides from localStorage\n */\n registerDebug(debugOverride: LDDebugOverride): void {\n this.debugOverride = debugOverride;\n this.loadExistingOverrides();\n }\n\n private loadExistingOverrides(): void {\n if (!this.debugOverride) return;\n\n const storage = this.getStorage();\n if (!storage) return;\n\n try {\n for (let i = 0; i < storage.length; i++) {\n const key = storage.key(i);\n if (!key?.startsWith(this.config.storageNamespace + ':')) continue;\n\n const storedValue = storage.getItem(key);\n if (storedValue) {\n try {\n const value = JSON.parse(storedValue);\n const flagKey = key.replace(this.config.storageNamespace + ':', '');\n\n this.debugOverride.setOverride(flagKey, value);\n } catch {\n console.warn('flagOverridePlugin: Invalid stored value for', key);\n storage.removeItem(key);\n }\n }\n }\n } catch (error) {\n console.error('flagOverridePlugin: Error loading existing overrides:', error);\n }\n }\n\n /**\n * Sets an override value for a feature flag and persists it to localStorage\n * @param flagKey - The key of the flag to override\n * @param value - The value to set for the flag\n */\n setOverride(flagKey: string, value: unknown): void {\n if (!this.debugOverride) {\n console.warn('flagOverridePlugin: Debug interface not available');\n return;\n }\n\n if (!flagKey || typeof flagKey !== 'string') {\n console.error('flagOverridePlugin: Invalid flag key:', flagKey);\n return;\n }\n\n if (value === undefined) {\n console.error('flagOverridePlugin: Cannot set undefined value for flag override');\n return;\n }\n\n try {\n this.persistOverride(flagKey, value);\n this.debugOverride.setOverride(flagKey, value);\n } catch (error) {\n console.error('flagOverridePlugin: Failed to set override:', error);\n }\n }\n\n /**\n * Removes an override for a specific feature flag\n * @param flagKey - The key of the flag to remove the override for\n */\n removeOverride(flagKey: string): void {\n if (!this.debugOverride) {\n console.warn('flagOverridePlugin: Debug interface not available');\n return;\n }\n\n if (!flagKey || typeof flagKey !== 'string') {\n console.error('flagOverridePlugin: Invalid flag key:', flagKey);\n return;\n }\n\n try {\n this.removePersistedOverride(flagKey);\n this.debugOverride.removeOverride(flagKey);\n } catch (error) {\n console.error('flagOverridePlugin: Failed to remove override:', error);\n }\n }\n\n /**\n * Clears all feature flag overrides from both memory and localStorage\n */\n clearAllOverrides(): void {\n if (!this.debugOverride) {\n console.warn('flagOverridePlugin: Debug interface not available');\n return;\n }\n\n try {\n this.clearPersistedOverrides();\n this.debugOverride.clearAllOverrides();\n } catch (error) {\n console.error('flagOverridePlugin: Failed to clear overrides:', error);\n }\n }\n\n /**\n * Returns all currently active feature flag overrides\n * @returns Record of flag keys to their override values\n */\n getAllOverrides(): LDFlagSet {\n if (!this.debugOverride) {\n console.warn('flagOverridePlugin: Debug interface not available');\n return {};\n }\n\n try {\n return this.debugOverride.getAllOverrides();\n } catch (error) {\n console.error('flagOverridePlugin: Failed to get overrides:', error);\n return {};\n }\n }\n\n /**\n * Returns the LaunchDarkly client instance\n * @returns The LaunchDarkly client\n */\n getClient(): LDClient | null {\n return this.ldClient;\n }\n\n private getStorage(): Storage | null {\n if (typeof window === 'undefined') return null;\n return window.localStorage;\n }\n\n private persistOverride(flagKey: string, value: unknown): void {\n const storage = this.getStorage();\n if (!storage) return;\n\n try {\n const storageKey = `${this.config.storageNamespace}:${flagKey}`;\n storage.setItem(storageKey, JSON.stringify(value));\n } catch (error) {\n console.error('flagOverridePlugin: Failed to persist override:', error);\n }\n }\n\n private removePersistedOverride(flagKey: string): void {\n const storage = this.getStorage();\n if (!storage) return;\n\n try {\n const storageKey = `${this.config.storageNamespace}:${flagKey}`;\n storage.removeItem(storageKey);\n } catch (error) {\n console.error('flagOverridePlugin: Failed to remove persisted override:', error);\n }\n }\n\n private clearPersistedOverrides(): void {\n const storage = this.getStorage();\n if (!storage) return;\n\n try {\n const keysToRemove: string[] = [];\n const prefix = this.config.storageNamespace + ':';\n\n for (let i = 0; i < storage.length; i++) {\n const key = storage.key(i);\n if (key?.startsWith(prefix)) {\n keysToRemove.push(key);\n }\n }\n\n keysToRemove.forEach((key) => storage.removeItem(key));\n } catch (error) {\n console.error('flagOverridePlugin: Failed to clear persisted overrides:', error);\n }\n }\n}\n","import type { LaunchDarklyToolbar } from '../index';\n\ninterface WindowWithMaybeToolbar extends Window {\n LaunchDarklyToolbar?: LaunchDarklyToolbar;\n}\n\nfunction getWindow(): WindowWithMaybeToolbar {\n return window;\n}\n\nexport default async function lazyLoadToolbar(signal: AbortSignal, url: string): Promise<LaunchDarklyToolbar> {\n const existing = getWindow().LaunchDarklyToolbar;\n\n if (existing) {\n return Promise.resolve(existing);\n }\n\n await lazyLoad(signal, url);\n\n const toolbarModule = getWindow().LaunchDarklyToolbar;\n if (!toolbarModule) {\n throw new Error(`Unable to detect LaunchDarklyToolbar global from ${url}`);\n }\n\n return toolbarModule;\n}\n\nasync function lazyLoad(signal: AbortSignal, url: string): Promise<void> {\n const script = document.createElement('script');\n script.src = url;\n script.crossOrigin = 'anonymous';\n script.referrerPolicy = 'origin';\n\n const waitForLoad = new Promise<void>((resolve, reject) => {\n script.addEventListener('load', () => {\n if (!signal.aborted) {\n resolve();\n }\n });\n script.addEventListener('error', (error) => {\n if (!signal.aborted) {\n reject(error);\n }\n });\n });\n\n document.body.appendChild(script);\n\n try {\n await waitForLoad;\n } catch (error) {\n console.log(error);\n throw new Error(`Could not load LaunchDarkly developer toolbar bundle from ${url}`);\n }\n}\n","import { useEffect, useRef } from 'react';\n\nimport lazyLoadToolbar from './lazyLoadToolbar';\nimport type { InitializationConfig } from '../types';\nimport packageJson from '../../package.json';\n\ninterface UseLaunchDarklyToolbarConfig extends InitializationConfig {\n /**\n * URL to load the toolbar bundle from.\n * Use this when developing the toolbar itself locally.\n *\n * Example: `'http://localhost:8080/toolbar.min.js'`\n *\n * Default: CDN URL based on package version\n */\n toolbarBundleUrl?: string;\n\n /**\n * Whether the toolbar should be loaded and displayed.\n *\n * Default: `true`\n */\n enabled?: boolean;\n}\n\nexport default function useLaunchDarklyToolbar(args: UseLaunchDarklyToolbarConfig) {\n const { toolbarBundleUrl, enabled, ...initConfig } = args;\n const configRef = useRef<InitializationConfig | null>(null);\n const url = toolbarBundleUrl ?? versionToCdn(packageJson.version);\n\n useEffect(() => {\n if (enabled === false) {\n return;\n }\n\n if (configRef.current === null) {\n configRef.current = initConfig;\n }\n }, [enabled, initConfig]);\n\n useEffect(() => {\n if (enabled === false || configRef.current === null) {\n return;\n }\n\n const controller = new AbortController();\n\n let cleanup: () => void = () => {};\n lazyLoadToolbar(controller.signal, url).then((importedToolbar) => {\n if (configRef.current === null) {\n return;\n }\n\n cleanup = importedToolbar.init(configRef.current);\n });\n\n return () => {\n controller.abort();\n cleanup();\n };\n }, [enabled, url]);\n}\n\nfunction versionToCdn(version = 'latest'): string {\n return `https://unpkg.com/@launchdarkly/toolbar@${version}/cdn/toolbar.min.js`;\n}\n"],"names":["ANALYTICS_EVENT_PREFIX","VALID_EVENT_KINDS","VALID_EVENT_CATEGORIES","isValidEventKind","kind","isValidEventCategory","category","TOOLBAR_POSITIONS","DEFAULT_MAX_EVENTS","EventStore","Set","config","event","error","console","listener","AfterTrackHook","hookContext","syntheticContext","Date","window","undefined","processedEvent","filter","context","timestamp","randomPart","Math","id","AfterIdentifyHook","data","result","AfterEvaluationHook","detail","EventInterceptionPlugin","onNewEvent","isToolbarEvent","_metadata","ldClient","DEFAULT_STORAGE_NAMESPACE","FlagOverridePlugin","debugOverride","storage","i","key","storedValue","value","JSON","flagKey","storageKey","keysToRemove","prefix","getWindow","lazyLoadToolbar","signal","url","existing","Promise","lazyLoad","toolbarModule","Error","script","document","waitForLoad","resolve","reject","useLaunchDarklyToolbar","args","toolbarBundleUrl","enabled","initConfig","configRef","useRef","versionToCdn","packageJson","useEffect","controller","AbortController","cleanup","importedToolbar","version"],"mappings":";AAAO,MAAMA,yBAAyB;AC0Bt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UC,gBAAgB,IAAI,CAACR,UAAU,OAAO;QAClD;QAEA,OAAO;YACLK,WAAW,KAAK;YAChBE;QACF;IACF,GAAG;QAACT;QAASd;KAAI;AACnB;AAEA,SAASkB,aAAaO,UAAU,QAAQ;IACtC,OAAO,CAAC,wCAAwC,EAAEA,QAAQ,mBAAmB,CAAC;AAChF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InitializationConfig } from '../types';
|
|
2
|
+
interface UseLaunchDarklyToolbarConfig extends InitializationConfig {
|
|
3
|
+
/**
|
|
4
|
+
* URL to load the toolbar bundle from.
|
|
5
|
+
* Use this when developing the toolbar itself locally.
|
|
6
|
+
*
|
|
7
|
+
* Example: `'http://localhost:8080/toolbar.min.js'`
|
|
8
|
+
*
|
|
9
|
+
* Default: CDN URL based on package version
|
|
10
|
+
*/
|
|
11
|
+
toolbarBundleUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the toolbar should be loaded and displayed.
|
|
14
|
+
*
|
|
15
|
+
* Default: `true`
|
|
16
|
+
*/
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export default function useLaunchDarklyToolbar(args: UseLaunchDarklyToolbarConfig): void;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ANALYTICS_EVENT_PREFIX = "ld.toolbar";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { IEventInterceptionPlugin, IFlagOverridePlugin } from './plugins';
|
|
2
|
+
import type { ToolbarPosition } from './position';
|
|
3
|
+
export interface ToolbarConfig {
|
|
4
|
+
/**
|
|
5
|
+
* The base LaunchDarkly URL the toolbar should use when creating deep links.
|
|
6
|
+
*
|
|
7
|
+
* Default `https://app.launchdarkly.com`
|
|
8
|
+
*/
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The Dev Server URL (if you have a local instance of LaunchDarkly running). If
|
|
12
|
+
* provided, will set the toolbar to run in Dev Server mode.
|
|
13
|
+
*
|
|
14
|
+
* Default `undefined`
|
|
15
|
+
*/
|
|
16
|
+
devServerUrl?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Dev Server Mode: The project key that the toolbar should use. If left blank, will
|
|
19
|
+
* auto-detect the first available project.
|
|
20
|
+
*
|
|
21
|
+
* Default `undefined`
|
|
22
|
+
*/
|
|
23
|
+
projectKey?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Implementation of the {@link IFlagOverridePlugin} interface. Allows the toolbar + local app to override flag
|
|
26
|
+
* values without changing the flag value/targeting in LaunchDarkly. If not provided, will default to our base
|
|
27
|
+
* default implementation/configuration.
|
|
28
|
+
*
|
|
29
|
+
* Default `undefined`
|
|
30
|
+
*/
|
|
31
|
+
flagOverridePlugin?: IFlagOverridePlugin;
|
|
32
|
+
/**
|
|
33
|
+
* Implementation of the {@link IEventInterceptionPlugin} interface. Allows the toolbar to track events. Useful
|
|
34
|
+
* for being able to see when flags are evaluated, what they evaluate to, detect missing feature flags, and
|
|
35
|
+
* seeing any custom events your app is tracking.
|
|
36
|
+
*
|
|
37
|
+
* Default `undefined`
|
|
38
|
+
*/
|
|
39
|
+
eventInterceptionPlugin?: IEventInterceptionPlugin;
|
|
40
|
+
/**
|
|
41
|
+
* Dev Server Mode: the interval (in milliseconds) determining how frequently the toolbar should poll the Dev Server.
|
|
42
|
+
*
|
|
43
|
+
* Default `undefined`
|
|
44
|
+
*/
|
|
45
|
+
pollIntervalInMs?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Toolbar position on screen.
|
|
48
|
+
*
|
|
49
|
+
* Default `'bottom-right'`
|
|
50
|
+
*/
|
|
51
|
+
position?: ToolbarPosition;
|
|
52
|
+
}
|
|
53
|
+
export interface InitializationConfig extends ToolbarConfig {
|
|
54
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hook } from 'launchdarkly-js-client-sdk';
|
|
2
2
|
import type { HookMetadata, EvaluationSeriesData, LDEvaluationDetail, EvaluationSeriesContext } from 'launchdarkly-js-sdk-common';
|
|
3
|
-
import type { EventFilter, ProcessedEvent } from '../
|
|
3
|
+
import type { EventFilter, ProcessedEvent } from '../events';
|
|
4
4
|
export type AfterEvaluationHookConfig = {
|
|
5
5
|
onNewEvent?: (event: ProcessedEvent) => void;
|
|
6
6
|
filter?: EventFilter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hook } from 'launchdarkly-js-client-sdk';
|
|
2
2
|
import type { HookMetadata, IdentifySeriesContext, IdentifySeriesData, IdentifySeriesResult } from 'launchdarkly-js-sdk-common';
|
|
3
|
-
import type { EventFilter, ProcessedEvent } from '../
|
|
3
|
+
import type { EventFilter, ProcessedEvent } from '../events';
|
|
4
4
|
export type AfterIdentifyHookConfig = {
|
|
5
5
|
onNewEvent?: (event: ProcessedEvent) => void;
|
|
6
6
|
filter?: EventFilter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hook } from 'launchdarkly-js-client-sdk';
|
|
2
2
|
import type { HookMetadata, TrackSeriesContext } from 'launchdarkly-js-sdk-common';
|
|
3
|
-
import type { EventFilter, ProcessedEvent } from '../
|
|
3
|
+
import type { EventFilter, ProcessedEvent } from '../events';
|
|
4
4
|
export type AfterTrackHookConfig = {
|
|
5
5
|
onNewEvent?: (event: ProcessedEvent) => void;
|
|
6
6
|
filter?: EventFilter;
|
package/dist/{plugins/EventInterceptionPlugin.d.ts → types/plugins/eventInterceptionPlugin.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hook, LDClient, LDPluginEnvironmentMetadata, LDPluginMetadata } from 'launchdarkly-js-client-sdk';
|
|
2
|
-
import type { EventFilter, ProcessedEvent } from '../
|
|
3
|
-
import type { IEventInterceptionPlugin } from '
|
|
2
|
+
import type { EventFilter, ProcessedEvent } from '../events';
|
|
3
|
+
import type { IEventInterceptionPlugin } from './plugins';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration options for the EventInterceptionPlugin
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LDClient, LDDebugOverride, LDPluginMetadata, LDFlagSet, Hook, LDPluginEnvironmentMetadata } from 'launchdarkly-js-client-sdk';
|
|
2
|
-
import type { IFlagOverridePlugin } from '
|
|
2
|
+
import type { IFlagOverridePlugin } from './plugins';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for the FlagOverridePlugin
|
|
5
5
|
*/
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { LDClient, LDDebugOverride, LDFlagSet, LDFlagValue, LDPlugin } from 'launchdarkly-js-client-sdk';
|
|
2
|
-
import type { ProcessedEvent } from '
|
|
3
|
-
/**
|
|
4
|
-
* Interface for flag override plugins that can be used with the LaunchDarkly Toolbar
|
|
5
|
-
*/
|
|
2
|
+
import type { ProcessedEvent } from '../events';
|
|
6
3
|
export interface IFlagOverridePlugin extends LDPlugin, LDDebugOverride {
|
|
7
4
|
/**
|
|
8
5
|
* Sets an override value for a feature flag
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"private": false,
|
|
2
3
|
"name": "@launchdarkly/toolbar",
|
|
3
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
4
5
|
"description": "A React component that provides a developer-friendly toolbar for interacting with LaunchDarkly during development",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"launchdarkly",
|
|
@@ -21,31 +22,50 @@
|
|
|
21
22
|
"url": "https://github.com/launchdarkly/launchdarkly-toolbar/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://github.com/launchdarkly/launchdarkly-toolbar#readme",
|
|
24
|
-
"main": "./dist/
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/js/index.js",
|
|
25
27
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
28
|
+
"typings": "./dist/index.d.ts",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"cdn",
|
|
33
|
+
"README.md",
|
|
34
|
+
"LICENSE"
|
|
30
35
|
],
|
|
31
36
|
"exports": {
|
|
32
37
|
".": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"default": "./dist/js/index.js"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"default": "./dist/index.cjs"
|
|
45
|
+
}
|
|
39
46
|
}
|
|
40
47
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@launchpad-ui/components": "0.16.12",
|
|
50
|
+
"@launchpad-ui/tokens": "0.15.1",
|
|
51
|
+
"@react-aria/focus": "3.21.2",
|
|
52
|
+
"@react-aria/interactions": "3.25.6",
|
|
53
|
+
"@react-aria/utils": "3.31.0",
|
|
54
|
+
"@react-stately/flags": "^3.1.2",
|
|
55
|
+
"@react-stately/utils": "^3.10.8",
|
|
56
|
+
"@react-types/shared": "3.32.1",
|
|
57
|
+
"@tanstack/react-virtual": "^3.13.12",
|
|
58
|
+
"@vanilla-extract/css": "^1.17.4",
|
|
59
|
+
"@vanilla-extract/webpack-plugin": "^2.3.22",
|
|
60
|
+
"class-variance-authority": "^0.7.1",
|
|
61
|
+
"motion": "^12.19.2",
|
|
62
|
+
"react": "19.2.0",
|
|
63
|
+
"react-aria": "3.44.0",
|
|
64
|
+
"react-aria-components": "1.13.0",
|
|
65
|
+
"react-dom": "19.2.0",
|
|
66
|
+
"react-hook-form": "7.59.0",
|
|
67
|
+
"react-router": "7.5.2"
|
|
68
|
+
},
|
|
49
69
|
"devDependencies": {
|
|
50
70
|
"@rsbuild/core": "^1.5.17",
|
|
51
71
|
"@rsbuild/plugin-react": "^1.4.1",
|
|
@@ -57,14 +77,18 @@
|
|
|
57
77
|
"@storybook/addon-onboarding": "^9.0.5",
|
|
58
78
|
"@storybook/blocks": "^9.0.0-alpha.17",
|
|
59
79
|
"@storybook/react": "^9.0.5",
|
|
80
|
+
"@storybook/react-vite": "^9.0.5",
|
|
60
81
|
"@storybook/test": "^9.0.0-alpha.2",
|
|
61
82
|
"@testing-library/jest-dom": "^6.9.1",
|
|
62
83
|
"@testing-library/react": "^16.3.0",
|
|
63
|
-
"@types/node": "^24.
|
|
64
|
-
"@types/react": "
|
|
84
|
+
"@types/node": "^24.0.4",
|
|
85
|
+
"@types/react": "19.2.2",
|
|
86
|
+
"@types/react-dom": "19.2.2",
|
|
65
87
|
"@vanilla-extract/vite-plugin": "^5.1.1",
|
|
88
|
+
"@vanilla-extract/webpack-plugin": "^2.3.22",
|
|
66
89
|
"@vitest/coverage-v8": "3.2.4",
|
|
67
|
-
"
|
|
90
|
+
"css-loader": "^7.1.2",
|
|
91
|
+
"jsdom": "^26.1.0",
|
|
68
92
|
"launchdarkly-js-client-sdk": "^3.9.0",
|
|
69
93
|
"oxlint": "^1.23.0",
|
|
70
94
|
"react": "^19.1.1",
|
|
@@ -72,35 +96,21 @@
|
|
|
72
96
|
"storybook-addon-rslib": "^2.0.0",
|
|
73
97
|
"storybook-react-rsbuild": "^2.0.0",
|
|
74
98
|
"typescript": "^5.8.3",
|
|
75
|
-
"vitest": "^3.2.2"
|
|
76
|
-
"webpack": "5.102.1"
|
|
99
|
+
"vitest": "^3.2.2"
|
|
77
100
|
},
|
|
78
101
|
"peerDependencies": {
|
|
79
102
|
"launchdarkly-js-client-sdk": "^3.9.0",
|
|
80
|
-
"react": "
|
|
103
|
+
"react": ">=18"
|
|
81
104
|
},
|
|
82
105
|
"publishConfig": {
|
|
83
106
|
"access": "public"
|
|
84
107
|
},
|
|
85
|
-
"dependencies": {
|
|
86
|
-
"@react-aria/focus": "3.21.2",
|
|
87
|
-
"@react-aria/interactions": "3.25.6",
|
|
88
|
-
"@react-aria/utils": "3.30.1",
|
|
89
|
-
"@react-stately/utils": "3.10.8",
|
|
90
|
-
"@react-types/shared": "3.32.0",
|
|
91
|
-
"@tanstack/react-virtual": "^3.13.12",
|
|
92
|
-
"@vanilla-extract/css": "^1.17.4",
|
|
93
|
-
"@vanilla-extract/webpack-plugin": "^2.3.22",
|
|
94
|
-
"class-variance-authority": "^0.7.1",
|
|
95
|
-
"motion": "^12.23.24",
|
|
96
|
-
"react-aria": "3.44.0",
|
|
97
|
-
"react-aria-components": "1.13.0",
|
|
98
|
-
"react-hook-form": "7.59.0",
|
|
99
|
-
"react-router": "7.9.4"
|
|
100
|
-
},
|
|
101
108
|
"scripts": {
|
|
102
|
-
"build": "
|
|
109
|
+
"build": "pnpm run build:lib && pnpm run build:cdn",
|
|
110
|
+
"build:lib": "rslib build",
|
|
111
|
+
"build:cdn": "rslib build --config rslib.config.cdn.ts",
|
|
103
112
|
"dev": "rslib build --watch",
|
|
113
|
+
"dev:cdn": "rslib build --config rslib.config.cdn.ts --watch",
|
|
104
114
|
"test": "vitest run",
|
|
105
115
|
"lint": "oxlint",
|
|
106
116
|
"storybook": "storybook dev -p 6006",
|
package/LICENSE
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright 2025 Catamorphic, Co.
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
package/dist/plugins/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { FlagOverridePlugin } from './FlagOverridePlugin';
|
|
2
|
-
export type { FlagOverridePluginConfig } from './FlagOverridePlugin';
|
|
3
|
-
export { EventInterceptionPlugin } from './EventInterceptionPlugin';
|
|
4
|
-
export type { EventInterceptionPluginConfig } from './EventInterceptionPlugin';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { Ref } from 'react';
|
|
3
|
-
import type { ButtonProps as AriaButtonProps, ContextValue } from 'react-aria-components';
|
|
4
|
-
declare const buttonStyles: (props?: ({
|
|
5
|
-
size?: "small" | "medium" | "large" | null | undefined;
|
|
6
|
-
variant?: "default" | "primary" | "destructive" | "minimal" | "picker" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
interface ButtonVariants extends VariantProps<typeof buttonStyles> {
|
|
9
|
-
}
|
|
10
|
-
interface ButtonProps extends AriaButtonProps, ButtonVariants {
|
|
11
|
-
ref?: Ref<HTMLButtonElement>;
|
|
12
|
-
}
|
|
13
|
-
interface ButtonContextValue extends ButtonProps {
|
|
14
|
-
isPressed?: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare const ButtonContext: import("react").Context<ContextValue<ButtonContextValue, HTMLButtonElement>>;
|
|
17
|
-
declare const Button: ({ ref, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export { Button, ButtonContext, buttonStyles };
|
|
19
|
-
export type { ButtonProps, ButtonVariants };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { GroupProps as AriaGroupProps, ContextValue } from 'react-aria-components';
|
|
3
|
-
import type { InputVariants } from './Input';
|
|
4
|
-
declare const groupStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
|
-
interface GroupProps extends AriaGroupProps, InputVariants {
|
|
6
|
-
ref?: Ref<HTMLDivElement>;
|
|
7
|
-
}
|
|
8
|
-
declare const GroupContext: import("react").Context<ContextValue<GroupProps, HTMLDivElement>>;
|
|
9
|
-
declare const Group: ({ ref, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export { Group, GroupContext, groupStyles };
|
|
11
|
-
export type { GroupProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { Ref } from 'react';
|
|
3
|
-
import type { InputProps as AriaInputProps, ContextValue } from 'react-aria-components';
|
|
4
|
-
declare const inputStyles: (props?: ({
|
|
5
|
-
variant?: "default" | "minimal" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
interface InputVariants extends VariantProps<typeof inputStyles> {
|
|
8
|
-
}
|
|
9
|
-
interface InputProps extends AriaInputProps, InputVariants {
|
|
10
|
-
ref?: Ref<HTMLInputElement>;
|
|
11
|
-
}
|
|
12
|
-
declare const InputContext: import("react").Context<ContextValue<InputProps, HTMLInputElement>>;
|
|
13
|
-
declare const Input: ({ ref, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { Input, InputContext, inputStyles };
|
|
15
|
-
export type { InputProps, InputVariants };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { ListBoxItemProps as AriaListBoxItemProps, ListBoxProps as AriaListBoxProps, ContextValue } from 'react-aria-components';
|
|
3
|
-
declare const listBoxStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
-
declare const listBoxItemStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
|
-
interface ListBoxProps<T> extends AriaListBoxProps<T> {
|
|
6
|
-
ref?: Ref<HTMLDivElement>;
|
|
7
|
-
}
|
|
8
|
-
interface ListBoxItemProps<T> extends AriaListBoxItemProps<T> {
|
|
9
|
-
ref?: Ref<T>;
|
|
10
|
-
}
|
|
11
|
-
declare const ListBoxContext: import("react").Context<ContextValue<ListBoxProps<any>, HTMLDivElement>>;
|
|
12
|
-
declare const ListBox: <T extends object>({ ref, ...props }: ListBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const ListBoxItem: <T extends object>({ ref, ...props }: ListBoxItemProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { ListBox, ListBoxContext, ListBoxItem, listBoxItemStyles, listBoxStyles };
|
|
15
|
-
export type { ListBoxProps, ListBoxItemProps };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { Ref } from 'react';
|
|
3
|
-
import type { PopoverProps as AriaPopoverProps, ContextValue } from 'react-aria-components';
|
|
4
|
-
interface PopoverProps extends AriaPopoverProps, VariantProps<typeof popoverStyles> {
|
|
5
|
-
ref?: Ref<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const PopoverContext: import("react").Context<ContextValue<PopoverProps, HTMLElement>>;
|
|
8
|
-
declare const popoverStyles: (props?: ({
|
|
9
|
-
width?: "trigger" | "default" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
-
declare const Popover: ({ ref, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export { Popover, PopoverContext, popoverStyles };
|
|
13
|
-
export type { PopoverProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { SearchFieldProps as AriaSearchFieldProps, ContextValue } from 'react-aria-components';
|
|
3
|
-
declare const searchFieldStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
-
interface SearchFieldProps extends AriaSearchFieldProps {
|
|
5
|
-
ref?: Ref<HTMLDivElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const SearchFieldContext: import("react").Context<ContextValue<SearchFieldProps, HTMLDivElement>>;
|
|
8
|
-
declare const SearchField: ({ ref, ...props }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { SearchField, SearchFieldContext, searchFieldStyles };
|
|
10
|
-
export type { SearchFieldProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { SelectProps as AriaSelectProps, SelectValueProps as AriaSelectValueProps, ContextValue } from 'react-aria-components';
|
|
3
|
-
declare const selectStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
-
declare const selectValueStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
|
-
interface SelectProps<T extends object> extends AriaSelectProps<T> {
|
|
6
|
-
ref?: Ref<HTMLDivElement>;
|
|
7
|
-
}
|
|
8
|
-
interface SelectValueProps<T extends object> extends AriaSelectValueProps<T> {
|
|
9
|
-
ref?: Ref<HTMLSpanElement>;
|
|
10
|
-
}
|
|
11
|
-
declare const SelectContext: import("react").Context<ContextValue<SelectProps<any>, HTMLDivElement>>;
|
|
12
|
-
declare const SelectValueContext: import("react").Context<ContextValue<SelectValueProps<any>, HTMLSpanElement>>;
|
|
13
|
-
declare const Select: <T extends object>({ ref, ...props }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const SelectValue: <T extends object>({ ref, ...props }: SelectValueProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export { Select, SelectContext, SelectValue, SelectValueContext, selectStyles, selectValueStyles };
|
|
16
|
-
export type { SelectProps, SelectValueProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { SwitchProps as AriaSwitchProps, ContextValue } from 'react-aria-components';
|
|
3
|
-
declare const switchStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
-
interface SwitchProps extends AriaSwitchProps {
|
|
5
|
-
ref?: Ref<HTMLLabelElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const SwitchContext: import("react").Context<ContextValue<SwitchProps, HTMLLabelElement>>;
|
|
8
|
-
declare const Switch: ({ ref, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Switch, SwitchContext, switchStyles };
|
|
10
|
-
export type { SwitchProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'react';
|
|
2
|
-
import type { TextFieldProps as AriaTextFieldProps, ContextValue } from 'react-aria-components';
|
|
3
|
-
declare const textFieldStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
-
interface TextFieldProps extends AriaTextFieldProps {
|
|
5
|
-
ref?: Ref<HTMLDivElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const TextFieldContext: import("react").Context<ContextValue<TextFieldProps, HTMLDivElement>>;
|
|
8
|
-
declare const TextField: ({ ref, ...props }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { TextField, TextFieldContext, textFieldStyles };
|
|
10
|
-
export type { TextFieldProps };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { Button, ButtonContext, buttonStyles } from './Button';
|
|
2
|
-
export type { ButtonProps, ButtonVariants } from './Button';
|
|
3
|
-
export { Group, GroupContext, groupStyles } from './Group';
|
|
4
|
-
export type { GroupProps } from './Group';
|
|
5
|
-
export { Input, InputContext, inputStyles } from './Input';
|
|
6
|
-
export type { InputProps, InputVariants } from './Input';
|
|
7
|
-
export { ListBox, ListBoxContext, ListBoxItem, listBoxItemStyles, listBoxStyles } from './ListBox';
|
|
8
|
-
export type { ListBoxProps, ListBoxItemProps } from './ListBox';
|
|
9
|
-
export { Popover, PopoverContext, popoverStyles } from './Popover';
|
|
10
|
-
export type { PopoverProps } from './Popover';
|
|
11
|
-
export { SearchField, SearchFieldContext, searchFieldStyles } from './SearchField';
|
|
12
|
-
export type { SearchFieldProps } from './SearchField';
|
|
13
|
-
export { Select, SelectContext, SelectValue, SelectValueContext, selectStyles, selectValueStyles } from './Select';
|
|
14
|
-
export type { SelectProps, SelectValueProps } from './Select';
|
|
15
|
-
export { Switch, SwitchContext, switchStyles } from './Switch';
|
|
16
|
-
export type { SwitchProps } from './Switch';
|
|
17
|
-
export { TextField, TextFieldContext, textFieldStyles } from './TextField';
|
|
18
|
-
export type { TextFieldProps } from './TextField';
|