@c15t/dev-tools 2.0.0-rc.3 → 2.0.0-rc.5
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 +12 -1
- package/dist/index.cjs +2039 -953
- package/dist/index.js +2042 -956
- package/dist/react.cjs +1975 -803
- package/dist/react.js +1978 -806
- package/dist/tanstack.cjs +1862 -524
- package/dist/tanstack.js +1865 -527
- package/{dist → dist-types}/components/dropdown-menu.d.ts +0 -1
- package/{dist → dist-types}/components/index.d.ts +0 -1
- package/{dist → dist-types}/components/panel.d.ts +0 -1
- package/{dist → dist-types}/components/tabs.d.ts +0 -1
- package/{dist → dist-types}/components/ui.d.ts +8 -1
- package/dist-types/core/debug-bundle.d.ts +13 -0
- package/{dist → dist-types}/core/devtools.d.ts +0 -1
- package/{dist → dist-types}/core/draggable.d.ts +0 -1
- package/{dist → dist-types}/core/index.d.ts +0 -1
- package/{dist → dist-types}/core/override-storage.d.ts +1 -2
- package/{dist → dist-types}/core/panel-renderer.d.ts +6 -2
- package/{dist → dist-types}/core/renderer.d.ts +0 -1
- package/{dist → dist-types}/core/reset-consents.d.ts +1 -2
- package/{dist → dist-types}/core/state-manager.d.ts +1 -2
- package/{dist → dist-types}/core/store-connector.d.ts +17 -2
- package/dist-types/core/store-instrumentation.d.ts +12 -0
- package/{dist → dist-types}/index.d.ts +0 -1
- package/{dist → dist-types}/panels/actions.d.ts +2 -2
- package/{dist → dist-types}/panels/consents.d.ts +1 -2
- package/{dist → dist-types}/panels/dom-scanner.d.ts +1 -2
- package/{dist → dist-types}/panels/events.d.ts +0 -1
- package/{dist → dist-types}/panels/iab.d.ts +1 -2
- package/{dist → dist-types}/panels/index.d.ts +1 -1
- package/{dist → dist-types}/panels/location.d.ts +1 -2
- package/dist-types/panels/policy.d.ts +12 -0
- package/{dist → dist-types}/panels/scripts.d.ts +1 -2
- package/{dist → dist-types}/react.d.ts +0 -1
- package/{dist → dist-types}/styles/index.d.ts +0 -1
- package/{dist → dist-types}/tanstack.d.ts +0 -1
- package/{dist → dist-types}/utils/index.d.ts +1 -1
- package/dist-types/utils/init-source.d.ts +2 -0
- package/{dist → dist-types}/utils/preference-trigger.d.ts +0 -1
- package/dist-types/version.d.ts +1 -0
- package/package.json +35 -32
- package/CHANGELOG.md +0 -154
- package/dist/__tests__/components/ui.test.d.ts +0 -2
- package/dist/__tests__/components/ui.test.d.ts.map +0 -1
- package/dist/__tests__/core/override-storage.test.d.ts +0 -2
- package/dist/__tests__/core/override-storage.test.d.ts.map +0 -1
- package/dist/__tests__/core/renderer.test.d.ts +0 -2
- package/dist/__tests__/core/renderer.test.d.ts.map +0 -1
- package/dist/__tests__/core/reset-consents.test.d.ts +0 -2
- package/dist/__tests__/core/reset-consents.test.d.ts.map +0 -1
- package/dist/__tests__/core/state-manager.test.d.ts +0 -2
- package/dist/__tests__/core/state-manager.test.d.ts.map +0 -1
- package/dist/__tests__/core/store-connector.test.d.ts +0 -2
- package/dist/__tests__/core/store-connector.test.d.ts.map +0 -1
- package/dist/__tests__/panels/dom-scanner.test.d.ts +0 -2
- package/dist/__tests__/panels/dom-scanner.test.d.ts.map +0 -1
- package/dist/__tests__/panels/events.test.d.ts +0 -2
- package/dist/__tests__/panels/events.test.d.ts.map +0 -1
- package/dist/__tests__/panels/iab.test.d.ts +0 -2
- package/dist/__tests__/panels/iab.test.d.ts.map +0 -1
- package/dist/__tests__/panels/scripts.test.d.ts +0 -2
- package/dist/__tests__/panels/scripts.test.d.ts.map +0 -1
- package/dist/__tests__/utils/preference-trigger.test.d.ts +0 -2
- package/dist/__tests__/utils/preference-trigger.test.d.ts.map +0 -1
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/panel.d.ts.map +0 -1
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/ui.d.ts.map +0 -1
- package/dist/core/devtools.d.ts.map +0 -1
- package/dist/core/draggable.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/override-storage.d.ts.map +0 -1
- package/dist/core/panel-renderer.d.ts.map +0 -1
- package/dist/core/renderer.d.ts.map +0 -1
- package/dist/core/reset-consents.d.ts.map +0 -1
- package/dist/core/state-manager.d.ts.map +0 -1
- package/dist/core/store-connector.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/panels/actions.d.ts.map +0 -1
- package/dist/panels/consents.d.ts.map +0 -1
- package/dist/panels/dom-scanner.d.ts.map +0 -1
- package/dist/panels/events.d.ts.map +0 -1
- package/dist/panels/iab.d.ts.map +0 -1
- package/dist/panels/index.d.ts.map +0 -1
- package/dist/panels/location.d.ts.map +0 -1
- package/dist/panels/scripts.d.ts.map +0 -1
- package/dist/react.d.ts.map +0 -1
- package/dist/styles/index.d.ts.map +0 -1
- package/dist/tanstack.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/preference-trigger.d.ts.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/tsconfig.json +0 -12
|
@@ -43,4 +43,3 @@ export interface DropdownMenuInstance {
|
|
|
43
43
|
export declare function createDropdownMenu(options: DropdownMenuOptions): DropdownMenuInstance;
|
|
44
44
|
export { detectPreferenceTrigger as detectPreferenceCenterTrigger, getPreferenceCenterOpener, } from '../utils/preference-trigger';
|
|
45
45
|
export { DEVTOOLS_ICON, PREFERENCES_ICON, EYE_ICON };
|
|
46
|
-
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -25,6 +25,14 @@ export interface ButtonOptions {
|
|
|
25
25
|
onClick: () => void;
|
|
26
26
|
}
|
|
27
27
|
export declare function createButton(options: ButtonOptions): HTMLButtonElement;
|
|
28
|
+
export interface InputOptions {
|
|
29
|
+
value?: string;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
small?: boolean;
|
|
33
|
+
onInput?: (value: string) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare function createInput(options: InputOptions): HTMLInputElement;
|
|
28
36
|
export interface ListItemOptions {
|
|
29
37
|
title: string;
|
|
30
38
|
description?: string;
|
|
@@ -62,4 +70,3 @@ export declare function createGridCard(options: GridCardOptions): HTMLElement;
|
|
|
62
70
|
* Used when the c15t store is not available
|
|
63
71
|
*/
|
|
64
72
|
export declare function createDisconnectedState(message?: string): HTMLElement;
|
|
65
|
-
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
2
|
+
import type { DevToolsState, EventLogEntry } from './state-manager';
|
|
3
|
+
import type { ConnectionDiagnostics } from './store-connector';
|
|
4
|
+
export interface DebugBundlePayload {
|
|
5
|
+
namespace: string;
|
|
6
|
+
devToolsState: Pick<DevToolsState, 'isOpen' | 'activeTab' | 'isConnected' | 'position'>;
|
|
7
|
+
connection: ConnectionDiagnostics;
|
|
8
|
+
recentEvents: EventLogEntry[];
|
|
9
|
+
storeState: Record<string, unknown> | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function createDebugBundle(payload: DebugBundlePayload): string;
|
|
12
|
+
export declare function sanitizeStoreState(state: ConsentStoreState | null): Record<string, unknown> | null;
|
|
13
|
+
export declare function downloadDebugBundle(content: string): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { ConsentStoreState } from '
|
|
1
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
2
2
|
export type PersistedDevToolsOverrides = Pick<NonNullable<ConsentStoreState['overrides']>, 'country' | 'region' | 'language' | 'gpc'>;
|
|
3
3
|
export declare function hasPersistedOverrides(overrides: PersistedDevToolsOverrides): boolean;
|
|
4
4
|
export declare function loadPersistedOverrides(storageKey?: string): PersistedDevToolsOverrides | null;
|
|
5
5
|
export declare function persistOverrides(overrides: PersistedDevToolsOverrides, storageKey?: string): void;
|
|
6
6
|
export declare function clearPersistedOverrides(storageKey?: string): void;
|
|
7
|
-
//# sourceMappingURL=override-storage.d.ts.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Panel Renderer
|
|
3
3
|
* Shared logic for rendering DevTools panels
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
|
+
import type { PersistedDevToolsOverrides } from './override-storage';
|
|
6
7
|
import type { DevToolsTab, StateManager } from './state-manager';
|
|
7
8
|
import type { StoreConnector } from './store-connector';
|
|
8
9
|
/**
|
|
@@ -16,6 +17,10 @@ export interface PanelRendererConfig {
|
|
|
16
17
|
* @default true
|
|
17
18
|
*/
|
|
18
19
|
enableEventLogging?: boolean;
|
|
20
|
+
onPersistOverrides?: (overrides: PersistedDevToolsOverrides) => void;
|
|
21
|
+
onClearPersistedOverrides?: () => void;
|
|
22
|
+
onCopyState?: (state: ConsentStoreState) => boolean | Promise<boolean>;
|
|
23
|
+
onExportDebugBundle?: () => void;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Panel renderer instance with methods for rendering panels
|
|
@@ -38,4 +43,3 @@ export interface PanelRenderer {
|
|
|
38
43
|
* Creates a panel renderer with shared logic for rendering DevTools panels
|
|
39
44
|
*/
|
|
40
45
|
export declare function createPanelRenderer(config: PanelRendererConfig): PanelRenderer;
|
|
41
|
-
//# sourceMappingURL=panel-renderer.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reset Consents Utility
|
|
3
3
|
* Centralized logic for resetting all consent data
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
import type { StoreApi } from 'zustand/vanilla';
|
|
7
7
|
import type { StateManager } from './state-manager';
|
|
8
8
|
/**
|
|
@@ -21,4 +21,3 @@ export declare function resetAllConsents(store: StoreApi<ConsentStoreState>, sta
|
|
|
21
21
|
* This is a convenience wrapper for use in panel callbacks
|
|
22
22
|
*/
|
|
23
23
|
export declare function createResetHandler(getStore: () => StoreApi<ConsentStoreState> | null, stateManager?: StateManager): () => Promise<void>;
|
|
24
|
-
//# sourceMappingURL=reset-consents.d.ts.map
|
|
@@ -9,7 +9,7 @@ export type DevToolsPosition = 'bottom-right' | 'bottom-left' | 'top-right' | 't
|
|
|
9
9
|
/**
|
|
10
10
|
* Available tabs in the DevTools
|
|
11
11
|
*/
|
|
12
|
-
export type DevToolsTab = 'consents' | 'location' | 'scripts' | 'iab' | 'events' | 'actions';
|
|
12
|
+
export type DevToolsTab = 'consents' | 'location' | 'policy' | 'scripts' | 'iab' | 'events' | 'actions';
|
|
13
13
|
/**
|
|
14
14
|
* Event log entry for debugging
|
|
15
15
|
*/
|
|
@@ -70,4 +70,3 @@ export interface StateManager {
|
|
|
70
70
|
/** Cleanup */
|
|
71
71
|
destroy: () => void;
|
|
72
72
|
}
|
|
73
|
-
//# sourceMappingURL=state-manager.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Store Connector
|
|
3
3
|
* Connects to the c15tStore exposed on the window object
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
import type { StoreApi } from 'zustand/vanilla';
|
|
7
7
|
/**
|
|
8
8
|
* Options for creating a store connector
|
|
@@ -26,6 +26,14 @@ export interface StoreConnectorOptions {
|
|
|
26
26
|
*/
|
|
27
27
|
onDisconnect?: () => void;
|
|
28
28
|
}
|
|
29
|
+
export interface ConnectionDiagnostics {
|
|
30
|
+
namespace: string;
|
|
31
|
+
reconnectAttempts: number;
|
|
32
|
+
nextRetryInMs: number | null;
|
|
33
|
+
lastError: string | null;
|
|
34
|
+
isPolling: boolean;
|
|
35
|
+
disconnectNotified: boolean;
|
|
36
|
+
}
|
|
29
37
|
/**
|
|
30
38
|
* Store connector instance interface
|
|
31
39
|
*/
|
|
@@ -49,6 +57,14 @@ export interface StoreConnector {
|
|
|
49
57
|
* Returns unsubscribe function
|
|
50
58
|
*/
|
|
51
59
|
subscribe: (listener: (state: ConsentStoreState) => void) => () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Gets connection diagnostics for disconnected-state troubleshooting.
|
|
62
|
+
*/
|
|
63
|
+
getDiagnostics: () => ConnectionDiagnostics;
|
|
64
|
+
/**
|
|
65
|
+
* Subscribe to diagnostics changes.
|
|
66
|
+
*/
|
|
67
|
+
subscribeDiagnostics: (listener: (diagnostics: ConnectionDiagnostics) => void) => () => void;
|
|
52
68
|
/**
|
|
53
69
|
* Triggers an immediate reconnect attempt when disconnected.
|
|
54
70
|
*/
|
|
@@ -70,4 +86,3 @@ export declare function getC15tStore(namespace?: string): StoreApi<ConsentStoreS
|
|
|
70
86
|
* Check if the c15t store is available
|
|
71
87
|
*/
|
|
72
88
|
export declare function isC15tStoreAvailable(namespace?: string): boolean;
|
|
73
|
-
//# sourceMappingURL=store-connector.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
2
|
+
import type { StoreApi } from 'zustand/vanilla';
|
|
3
|
+
import type { EventLogEntry } from './state-manager';
|
|
4
|
+
type InstrumentationEvent = Omit<EventLogEntry, 'id' | 'timestamp'>;
|
|
5
|
+
type InstrumentationListener = (event: InstrumentationEvent) => void;
|
|
6
|
+
interface InstrumentationOptions {
|
|
7
|
+
namespace: string;
|
|
8
|
+
store: StoreApi<ConsentStoreState>;
|
|
9
|
+
onEvent: InstrumentationListener;
|
|
10
|
+
}
|
|
11
|
+
export declare function registerStoreInstrumentation(options: InstrumentationOptions): () => void;
|
|
12
|
+
export {};
|
|
@@ -8,4 +8,3 @@
|
|
|
8
8
|
export { createDevTools, createDevToolsPanel, type DevToolsInstance, type DevToolsOptions, } from './core/devtools';
|
|
9
9
|
export type { DevToolsPosition, DevToolsState, DevToolsTab, } from './core/state-manager';
|
|
10
10
|
export { createStoreConnector, getC15tStore, isC15tStoreAvailable, type StoreConnector, type StoreConnectorOptions, } from './core/store-connector';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Actions Panel
|
|
3
3
|
* Quick actions for developers
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
export interface ActionsPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
onResetConsents: () => void;
|
|
@@ -10,9 +10,9 @@ export interface ActionsPanelOptions {
|
|
|
10
10
|
onShowBanner: () => void;
|
|
11
11
|
onOpenPreferences: () => void;
|
|
12
12
|
onCopyState: () => void;
|
|
13
|
+
onExportDebugBundle?: () => void;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Renders the actions panel content
|
|
16
17
|
*/
|
|
17
18
|
export declare function renderActionsPanel(container: HTMLElement, options: ActionsPanelOptions): void;
|
|
18
|
-
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Consents Panel
|
|
3
3
|
* Displays and manages consent state
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
export interface ConsentsPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
onConsentChange: (name: string, value: boolean) => void;
|
|
@@ -15,4 +15,3 @@ export interface ConsentsPanelOptions {
|
|
|
15
15
|
* Renders the consents panel content
|
|
16
16
|
*/
|
|
17
17
|
export declare function renderConsentsPanel(container: HTMLElement, options: ConsentsPanelOptions): void;
|
|
18
|
-
//# sourceMappingURL=consents.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* DOM Scanner
|
|
3
3
|
* Scans the DOM for external scripts and iframes, cross-referencing with c15t config
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
/**
|
|
7
7
|
* Represents a scanned external resource
|
|
8
8
|
*/
|
|
@@ -26,4 +26,3 @@ export declare function createDomScannerSection(state: ConsentStoreState | null)
|
|
|
26
26
|
* Clears dismissed resources (for testing or reset)
|
|
27
27
|
*/
|
|
28
28
|
export declare function clearDismissedResources(): void;
|
|
29
|
-
//# sourceMappingURL=dom-scanner.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* IAB Panel
|
|
3
3
|
* Displays IAB TCF information including TC String, purposes, and vendors
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
export interface IabPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
onSetPurposeConsent: (purposeId: number, value: boolean) => void;
|
|
@@ -17,4 +17,3 @@ export interface IabPanelOptions {
|
|
|
17
17
|
* Renders the IAB panel content
|
|
18
18
|
*/
|
|
19
19
|
export declare function renderIabPanel(container: HTMLElement, options: IabPanelOptions): void;
|
|
20
|
-
//# sourceMappingURL=iab.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Location Panel
|
|
3
3
|
* Displays and manages location/language overrides
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
interface OverridePayload {
|
|
7
7
|
country?: string;
|
|
8
8
|
region?: string;
|
|
@@ -19,4 +19,3 @@ export interface LocationPanelOptions {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function renderLocationPanel(container: HTMLElement, options: LocationPanelOptions): void;
|
|
21
21
|
export {};
|
|
22
|
-
//# sourceMappingURL=location.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policy Panel
|
|
3
|
+
* Displays detailed runtime policy-pack diagnostics from /init
|
|
4
|
+
*/
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
|
+
export interface PolicyPanelOptions {
|
|
7
|
+
getState: () => ConsentStoreState | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders the policy panel content
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderPolicyPanel(container: HTMLElement, options: PolicyPanelOptions): void;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Scripts Panel
|
|
3
3
|
* Displays script loading status and configuration
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from '../../../core/dist-types/index.d.ts';
|
|
6
6
|
import type { EventLogEntry } from '../core/state-manager';
|
|
7
7
|
export interface ScriptsPanelOptions {
|
|
8
8
|
getState: () => ConsentStoreState | null;
|
|
@@ -12,4 +12,3 @@ export interface ScriptsPanelOptions {
|
|
|
12
12
|
* Renders the scripts panel content
|
|
13
13
|
*/
|
|
14
14
|
export declare function renderScriptsPanel(container: HTMLElement, options: ScriptsPanelOptions): void;
|
|
15
|
-
//# sourceMappingURL=scripts.d.ts.map
|
|
@@ -74,4 +74,3 @@ export declare function C15TDevTools({ namespace, position, defaultOpen, disable
|
|
|
74
74
|
export { C15TDevTools as DevTools };
|
|
75
75
|
export type { DevToolsOptions, DevToolsInstance };
|
|
76
76
|
export type { DevToolsPosition, DevToolsTab } from './core/state-manager';
|
|
77
|
-
//# sourceMappingURL=react.d.ts.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Utilities
|
|
3
3
|
* Shared utility functions
|
|
4
4
|
*/
|
|
5
|
+
export { formatInitSource } from './init-source';
|
|
5
6
|
export { detectPreferenceTrigger, getPreferenceCenterOpener, getPreferenceTriggerElements, openPreferenceCenter, setPreferenceTriggerVisibility, } from './preference-trigger';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -24,4 +24,3 @@ export declare function getPreferenceCenterOpener(namespace?: string): (() => vo
|
|
|
24
24
|
* @returns true if the preference center was opened, false otherwise
|
|
25
25
|
*/
|
|
26
26
|
export declare function openPreferenceCenter(namespace?: string): boolean;
|
|
27
|
-
//# sourceMappingURL=preference-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "2.0.0-rc.5";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/dev-tools",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0-rc.5",
|
|
4
|
+
"description": "A collection of developer tools and utilities for the c15t ecosystem, currently under active development.",
|
|
5
5
|
"homepage": "https://c15t.com",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -12,33 +12,35 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
+
"types": "./dist-types/index.d.ts",
|
|
15
16
|
"import": "./dist/index.js",
|
|
16
|
-
"require": "./dist/index.cjs"
|
|
17
|
-
"types": "./dist/index.d.ts"
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
18
|
},
|
|
19
19
|
"./react": {
|
|
20
|
+
"types": "./dist-types/react.d.ts",
|
|
20
21
|
"import": "./dist/react.js",
|
|
21
|
-
"require": "./dist/react.cjs"
|
|
22
|
-
"types": "./dist/react.d.ts"
|
|
22
|
+
"require": "./dist/react.cjs"
|
|
23
23
|
},
|
|
24
24
|
"./tanstack": {
|
|
25
|
+
"types": "./dist-types/tanstack.d.ts",
|
|
25
26
|
"import": "./dist/tanstack.js",
|
|
26
|
-
"require": "./dist/tanstack.cjs"
|
|
27
|
-
"types": "./dist/tanstack.d.ts"
|
|
27
|
+
"require": "./dist/tanstack.cjs"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"main": "dist/index.cjs",
|
|
31
31
|
"module": "dist/index.js",
|
|
32
|
-
"types": "dist/index.d.ts",
|
|
32
|
+
"types": "./dist-types/index.d.ts",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"dist-types"
|
|
36
|
+
],
|
|
33
37
|
"scripts": {
|
|
34
|
-
"prebuild": "genversion --esm --semi src/version.ts",
|
|
38
|
+
"prebuild": "bunx genversion --esm --semi src/version.ts",
|
|
35
39
|
"build": "bun prebuild && rslib build",
|
|
36
40
|
"check-types": "bun prebuild && tsc --noEmit",
|
|
37
41
|
"dev": "bun prebuild && rslib build --watch",
|
|
38
42
|
"fmt": "bun biome format --write . && bun biome check --formatter-enabled=false --linter-enabled=false --write",
|
|
39
|
-
"lint": "bun biome lint ./src"
|
|
40
|
-
"test": "bun prebuild && vitest run",
|
|
41
|
-
"test:watch": "bun prebuild && vitest"
|
|
43
|
+
"lint": "bun biome lint ./src"
|
|
42
44
|
},
|
|
43
45
|
"browserslist": [
|
|
44
46
|
">0.2%",
|
|
@@ -46,30 +48,31 @@
|
|
|
46
48
|
"not op_mini all"
|
|
47
49
|
],
|
|
48
50
|
"dependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
51
|
+
"@radix-ui/react-accordion": "1.2.12",
|
|
52
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
53
|
+
"@radix-ui/react-slot": "1.2.4",
|
|
54
|
+
"@radix-ui/react-switch": "1.1.4",
|
|
55
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
56
|
+
"c15t": "2.0.0-rc.5",
|
|
57
|
+
"class-variance-authority": "^0.7.1",
|
|
58
|
+
"clsx": "2.1.1",
|
|
59
|
+
"lucide-react": "^0.487.0",
|
|
60
|
+
"motion": "^12.6.5",
|
|
61
|
+
"react-draggable": "^4.4.6",
|
|
62
|
+
"tailwind-merge": "3.2.0",
|
|
63
|
+
"tsc-alias": "^1.8.16",
|
|
64
|
+
"usehooks-ts": "^3.1.1",
|
|
65
|
+
"zustand": "^5.0.11"
|
|
52
66
|
},
|
|
53
67
|
"devDependencies": {
|
|
54
68
|
"@c15t/typescript-config": "0.0.1-beta.1",
|
|
55
|
-
"@types/react": "19.2.
|
|
56
|
-
"@types/react-dom": "19.2.
|
|
57
|
-
"
|
|
58
|
-
"jsdom": "27.2.0",
|
|
59
|
-
"postcss": "8.5.6",
|
|
60
|
-
"vitest": "4.0.15"
|
|
69
|
+
"@types/react": "19.2.0",
|
|
70
|
+
"@types/react-dom": "19.2.0",
|
|
71
|
+
"postcss": "^8.5.8"
|
|
61
72
|
},
|
|
62
73
|
"peerDependencies": {
|
|
63
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
64
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
65
|
-
},
|
|
66
|
-
"peerDependenciesMeta": {
|
|
67
|
-
"react": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"react-dom": {
|
|
71
|
-
"optional": true
|
|
72
|
-
}
|
|
74
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
75
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
73
76
|
},
|
|
74
77
|
"publishConfig": {
|
|
75
78
|
"access": "public"
|
package/CHANGELOG.md
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# @c15t/dev-tools
|
|
2
|
-
|
|
3
|
-
## 2.0.0-rc.3
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 1c813bc: feat(dev-tools): add GPC to dev-tools with an override
|
|
8
|
-
- 829e507: feat(dev-tools): add persisted overrides and improve debugging with resilient reconnects, richer events, interactive IAB controls, and better script/network diagnostics
|
|
9
|
-
- Updated dependencies [de6dd82]
|
|
10
|
-
- Updated dependencies [1c813bc]
|
|
11
|
-
- Updated dependencies [0f10f3e]
|
|
12
|
-
- @c15t/ui@2.0.0-rc.3
|
|
13
|
-
- c15t@2.0.0-rc.3
|
|
14
|
-
|
|
15
|
-
## 2.0.0-rc.2
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 732d44f: feat(dev-tools): add DevTools export
|
|
20
|
-
feat(cli): add support for file structures like [locale]
|
|
21
|
-
feat(cli): add c15t/skills
|
|
22
|
-
- Updated dependencies [408df0e]
|
|
23
|
-
- Updated dependencies [e6bc5db]
|
|
24
|
-
- Updated dependencies [684bf2a]
|
|
25
|
-
- c15t@2.0.0-rc.2
|
|
26
|
-
- @c15t/ui@2.0.0-rc.2
|
|
27
|
-
|
|
28
|
-
## 2.0.0-rc.1
|
|
29
|
-
|
|
30
|
-
### Patch Changes
|
|
31
|
-
|
|
32
|
-
- 0bc4f86: fixed workspace resolving
|
|
33
|
-
- Updated dependencies [0bc4f86]
|
|
34
|
-
- c15t@2.0.0-rc.1
|
|
35
|
-
- @c15t/ui@2.0.0-rc.1
|
|
36
|
-
|
|
37
|
-
## 2.0.0-rc.0
|
|
38
|
-
|
|
39
|
-
### Major Changes
|
|
40
|
-
|
|
41
|
-
- 126a78b: https://v2.c15t.com/changelog/2026-02-12-v2.0.0-rc.0
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- Updated dependencies [126a78b]
|
|
46
|
-
- c15t@2.0.0-rc.0
|
|
47
|
-
- @c15t/ui@2.0.0-rc.0
|
|
48
|
-
|
|
49
|
-
## 1.8.3
|
|
50
|
-
|
|
51
|
-
### Patch Changes
|
|
52
|
-
|
|
53
|
-
- Updated dependencies [6c28663]
|
|
54
|
-
- c15t@1.8.3
|
|
55
|
-
|
|
56
|
-
## 1.8.3-canary-20260109181827
|
|
57
|
-
|
|
58
|
-
### Patch Changes
|
|
59
|
-
|
|
60
|
-
- Updated dependencies [486c46f]
|
|
61
|
-
- c15t@1.8.3-canary-20260109181827
|
|
62
|
-
|
|
63
|
-
## 1.8.3-canary-20251222100111
|
|
64
|
-
|
|
65
|
-
### Patch Changes
|
|
66
|
-
|
|
67
|
-
- Updated dependencies [3d8eb68]
|
|
68
|
-
- c15t@1.8.3-canary-20251222100111
|
|
69
|
-
|
|
70
|
-
## 1.8.3-canary-20251218133143
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- Updated dependencies [9eff7a7]
|
|
75
|
-
- Updated dependencies [b7fafe6]
|
|
76
|
-
- c15t@1.8.3-canary-20251218133143
|
|
77
|
-
|
|
78
|
-
## 1.8.2
|
|
79
|
-
|
|
80
|
-
### Patch Changes
|
|
81
|
-
|
|
82
|
-
- Updated dependencies [2ce4d5a]
|
|
83
|
-
- c15t@1.8.2
|
|
84
|
-
|
|
85
|
-
## 1.8.2-canary-20251212163241
|
|
86
|
-
|
|
87
|
-
### Patch Changes
|
|
88
|
-
|
|
89
|
-
- Updated dependencies [a368512]
|
|
90
|
-
- c15t@1.8.2-canary-20251212163241
|
|
91
|
-
|
|
92
|
-
## 1.8.2-canary-20251212112113
|
|
93
|
-
|
|
94
|
-
### Patch Changes
|
|
95
|
-
|
|
96
|
-
- Updated dependencies [7284b23]
|
|
97
|
-
- c15t@1.8.2-canary-20251212112113
|
|
98
|
-
|
|
99
|
-
## 1.8.1
|
|
100
|
-
|
|
101
|
-
### Patch Changes
|
|
102
|
-
|
|
103
|
-
- Updated dependencies [0f55bf2]
|
|
104
|
-
- c15t@1.8.1
|
|
105
|
-
|
|
106
|
-
## 1.8.0
|
|
107
|
-
|
|
108
|
-
### Patch Changes
|
|
109
|
-
|
|
110
|
-
- Updated dependencies [68a7324]
|
|
111
|
-
- c15t@1.8.0
|
|
112
|
-
|
|
113
|
-
## 1.8.0-canary-20251112105612
|
|
114
|
-
|
|
115
|
-
### Patch Changes
|
|
116
|
-
|
|
117
|
-
- 6e3034c: refactor: update rslib to latest version
|
|
118
|
-
- Updated dependencies [31953f4]
|
|
119
|
-
- Updated dependencies [7043a2e]
|
|
120
|
-
- Updated dependencies [6e3034c]
|
|
121
|
-
- Updated dependencies [bee7789]
|
|
122
|
-
- Updated dependencies [b3df4d0]
|
|
123
|
-
- Updated dependencies [69d6680]
|
|
124
|
-
- c15t@1.8.0-canary-20251112105612
|
|
125
|
-
|
|
126
|
-
## 1.8.0-canary-20251028143243
|
|
127
|
-
|
|
128
|
-
### Patch Changes
|
|
129
|
-
|
|
130
|
-
- Updated dependencies [8f3f146]
|
|
131
|
-
- Updated dependencies [a0fab48]
|
|
132
|
-
- c15t@1.8.0-canary-20251028143243
|
|
133
|
-
|
|
134
|
-
## 1.7.0
|
|
135
|
-
|
|
136
|
-
### Patch Changes
|
|
137
|
-
|
|
138
|
-
- Updated dependencies [aa16d03]
|
|
139
|
-
- c15t@1.7.0
|
|
140
|
-
|
|
141
|
-
## 1.7.0-canary-20251012181938
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- Updated dependencies [0c80bed]
|
|
146
|
-
- Updated dependencies [a58909c]
|
|
147
|
-
- c15t@1.7.0-canary-20251012181938
|
|
148
|
-
|
|
149
|
-
## 1.6.0
|
|
150
|
-
|
|
151
|
-
### Patch Changes
|
|
152
|
-
|
|
153
|
-
- Updated dependencies [84ab0c7]
|
|
154
|
-
- c15t@1.6.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/components/ui.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"override-storage.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/core/override-storage.test.ts"],"names":[],"mappings":""}
|