@c15t/dev-tools 2.0.0-rc.1 → 2.0.0-rc.10
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 +16 -5
- package/dist/0~rslib-runtime.js +42 -0
- package/dist/379.js +7056 -0
- package/dist/index.cjs +3298 -1012
- package/dist/index.js +1 -4803
- package/dist/react.cjs +3212 -916
- package/dist/react.js +3 -4649
- package/dist/tanstack.cjs +3032 -742
- package/dist/tanstack.js +1 -3777
- package/{dist → dist-types}/components/dropdown-menu.d.ts +1 -2
- package/{dist → dist-types}/components/index.d.ts +0 -1
- package/{dist → dist-types}/components/panel.d.ts +1 -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-types/core/override-storage.d.ts +6 -0
- package/{dist → dist-types}/core/panel-renderer.d.ts +5 -1
- package/{dist → dist-types}/core/renderer.d.ts +0 -1
- package/{dist → dist-types}/core/reset-consents.d.ts +0 -1
- package/{dist → dist-types}/core/state-manager.d.ts +2 -3
- package/{dist → dist-types}/core/store-connector.d.ts +20 -1
- 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 +1 -1
- package/{dist → dist-types}/panels/consents.d.ts +0 -1
- package/{dist → dist-types}/panels/dom-scanner.d.ts +0 -1
- package/{dist → dist-types}/panels/events.d.ts +0 -1
- package/{dist → dist-types}/panels/iab.d.ts +6 -1
- package/{dist → dist-types}/panels/index.d.ts +1 -1
- package/{dist → dist-types}/panels/location.d.ts +9 -7
- package/dist-types/panels/policy.d.ts +12 -0
- package/{dist → dist-types}/panels/scripts.d.ts +2 -1
- package/{dist → dist-types}/react.d.ts +9 -9
- 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 +2 -3
- package/dist-types/version.d.ts +1 -0
- package/package.json +37 -33
- package/CHANGELOG.md +0 -129
- 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/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__/panels/dom-scanner.test.d.ts +0 -2
- package/dist/__tests__/panels/dom-scanner.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/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/tsconfig.json +0 -12
|
@@ -42,5 +42,4 @@ export interface DropdownMenuInstance {
|
|
|
42
42
|
*/
|
|
43
43
|
export declare function createDropdownMenu(options: DropdownMenuOptions): DropdownMenuInstance;
|
|
44
44
|
export { detectPreferenceTrigger as detectPreferenceCenterTrigger, getPreferenceCenterOpener, } from '../utils/preference-trigger';
|
|
45
|
-
export { DEVTOOLS_ICON,
|
|
46
|
-
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
45
|
+
export { DEVTOOLS_ICON, EYE_ICON, PREFERENCES_ICON };
|
|
@@ -9,6 +9,7 @@ export interface PanelOptions {
|
|
|
9
9
|
stateManager: StateManager;
|
|
10
10
|
storeConnector: StoreConnector;
|
|
11
11
|
onRenderContent: (container: HTMLElement) => void;
|
|
12
|
+
namespace?: string;
|
|
12
13
|
/**
|
|
13
14
|
* Enable unified mode with dropdown menu when PreferenceCenterTrigger is detected
|
|
14
15
|
* @default true
|
|
@@ -25,4 +26,3 @@ export interface PanelInstance {
|
|
|
25
26
|
* Creates the main panel component
|
|
26
27
|
*/
|
|
27
28
|
export declare function createPanel(options: PanelOptions): PanelInstance;
|
|
28
|
-
//# sourceMappingURL=panel.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 'c15t';
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConsentStoreState } from 'c15t';
|
|
2
|
+
export type PersistedDevToolsOverrides = Pick<NonNullable<ConsentStoreState['overrides']>, 'country' | 'region' | 'language' | 'gpc'>;
|
|
3
|
+
export declare function hasPersistedOverrides(overrides: PersistedDevToolsOverrides): boolean;
|
|
4
|
+
export declare function loadPersistedOverrides(storageKey?: string): PersistedDevToolsOverrides | null;
|
|
5
|
+
export declare function persistOverrides(overrides: PersistedDevToolsOverrides, storageKey?: string): void;
|
|
6
|
+
export declare function clearPersistedOverrides(storageKey?: string): void;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Shared logic for rendering DevTools panels
|
|
4
4
|
*/
|
|
5
5
|
import type { ConsentStoreState } from 'c15t';
|
|
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
|
|
@@ -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,13 +9,13 @@ 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
|
*/
|
|
16
16
|
export interface EventLogEntry {
|
|
17
17
|
id: string;
|
|
18
|
-
type: 'consent_set' | 'consent_save' | 'consent_reset' | 'error' | 'info';
|
|
18
|
+
type: 'consent_set' | 'consent_save' | 'consent_reset' | 'error' | 'info' | 'network' | 'iab' | 'script';
|
|
19
19
|
message: string;
|
|
20
20
|
timestamp: number;
|
|
21
21
|
data?: Record<string, unknown>;
|
|
@@ -70,4 +70,3 @@ export interface StateManager {
|
|
|
70
70
|
/** Cleanup */
|
|
71
71
|
destroy: () => void;
|
|
72
72
|
}
|
|
73
|
-
//# sourceMappingURL=state-manager.d.ts.map
|
|
@@ -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,18 @@ 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;
|
|
68
|
+
/**
|
|
69
|
+
* Triggers an immediate reconnect attempt when disconnected.
|
|
70
|
+
*/
|
|
71
|
+
retryConnection: () => void;
|
|
52
72
|
/**
|
|
53
73
|
* Disconnect from the store and cleanup
|
|
54
74
|
*/
|
|
@@ -66,4 +86,3 @@ export declare function getC15tStore(namespace?: string): StoreApi<ConsentStoreS
|
|
|
66
86
|
* Check if the c15t store is available
|
|
67
87
|
*/
|
|
68
88
|
export declare function isC15tStoreAvailable(namespace?: string): boolean;
|
|
69
|
-
//# sourceMappingURL=store-connector.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ConsentStoreState } from 'c15t';
|
|
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
|
|
@@ -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
|
|
@@ -5,10 +5,15 @@
|
|
|
5
5
|
import type { ConsentStoreState } from 'c15t';
|
|
6
6
|
export interface IabPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
|
+
onSetPurposeConsent: (purposeId: number, value: boolean) => void;
|
|
9
|
+
onSetVendorConsent: (vendorId: number | string, value: boolean) => void;
|
|
10
|
+
onSetSpecialFeatureOptIn: (featureId: number, value: boolean) => void;
|
|
11
|
+
onAcceptAll: () => void;
|
|
12
|
+
onRejectAll: () => void;
|
|
13
|
+
onSave: () => void;
|
|
8
14
|
onReset: () => void;
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* Renders the IAB panel content
|
|
12
18
|
*/
|
|
13
19
|
export declare function renderIabPanel(container: HTMLElement, options: IabPanelOptions): void;
|
|
14
|
-
//# sourceMappingURL=iab.d.ts.map
|
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
* Displays and manages location/language overrides
|
|
4
4
|
*/
|
|
5
5
|
import type { ConsentStoreState } from 'c15t';
|
|
6
|
+
interface OverridePayload {
|
|
7
|
+
country?: string;
|
|
8
|
+
region?: string;
|
|
9
|
+
language?: string;
|
|
10
|
+
gpc?: boolean;
|
|
11
|
+
}
|
|
6
12
|
export interface LocationPanelOptions {
|
|
7
13
|
getState: () => ConsentStoreState | null;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
region?: string;
|
|
11
|
-
language?: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
onClearOverrides: () => void;
|
|
14
|
+
onApplyOverrides: (overrides: OverridePayload) => void | Promise<void>;
|
|
15
|
+
onClearOverrides: () => void | Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Renders the location panel content
|
|
17
19
|
*/
|
|
18
20
|
export declare function renderLocationPanel(container: HTMLElement, options: LocationPanelOptions): void;
|
|
19
|
-
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policy Panel
|
|
3
|
+
* Displays detailed runtime policy-pack diagnostics from /init
|
|
4
|
+
*/
|
|
5
|
+
import type { ConsentStoreState } from 'c15t';
|
|
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;
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* Displays script loading status and configuration
|
|
4
4
|
*/
|
|
5
5
|
import type { ConsentStoreState } from 'c15t';
|
|
6
|
+
import type { EventLogEntry } from '../core/state-manager';
|
|
6
7
|
export interface ScriptsPanelOptions {
|
|
7
8
|
getState: () => ConsentStoreState | null;
|
|
9
|
+
getEvents?: () => EventLogEntry[];
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Renders the scripts panel content
|
|
11
13
|
*/
|
|
12
14
|
export declare function renderScriptsPanel(container: HTMLElement, options: ScriptsPanelOptions): void;
|
|
13
|
-
//# sourceMappingURL=scripts.d.ts.map
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```tsx
|
|
8
|
-
* import {
|
|
8
|
+
* import { DevTools } from '@c15t/dev-tools/react';
|
|
9
9
|
*
|
|
10
10
|
* function App() {
|
|
11
11
|
* return (
|
|
12
12
|
* <>
|
|
13
13
|
* <YourApp />
|
|
14
|
-
* <
|
|
14
|
+
* <DevTools position="bottom-right" />
|
|
15
15
|
* </>
|
|
16
16
|
* );
|
|
17
17
|
* }
|
|
@@ -40,13 +40,13 @@ export interface C15TDevToolsProps extends Partial<DevToolsOptions> {
|
|
|
40
40
|
* @example
|
|
41
41
|
* Basic usage:
|
|
42
42
|
* ```tsx
|
|
43
|
-
* import {
|
|
43
|
+
* import { DevTools } from '@c15t/dev-tools/react';
|
|
44
44
|
*
|
|
45
45
|
* function App() {
|
|
46
46
|
* return (
|
|
47
47
|
* <>
|
|
48
48
|
* <YourApp />
|
|
49
|
-
* <
|
|
49
|
+
* <DevTools />
|
|
50
50
|
* </>
|
|
51
51
|
* );
|
|
52
52
|
* }
|
|
@@ -55,22 +55,22 @@ export interface C15TDevToolsProps extends Partial<DevToolsOptions> {
|
|
|
55
55
|
* @example
|
|
56
56
|
* With custom position:
|
|
57
57
|
* ```tsx
|
|
58
|
-
* <
|
|
58
|
+
* <DevTools position="top-left" />
|
|
59
59
|
* ```
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* Disabled in production:
|
|
63
63
|
* ```tsx
|
|
64
|
-
* <
|
|
64
|
+
* <DevTools disabled={process.env.NODE_ENV === 'production'} />
|
|
65
65
|
* ```
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* Default open state:
|
|
69
69
|
* ```tsx
|
|
70
|
-
* <
|
|
70
|
+
* <DevTools defaultOpen />
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
73
|
export declare function C15TDevTools({ namespace, position, defaultOpen, disabled, }: C15TDevToolsProps): null;
|
|
74
|
-
export type { DevToolsOptions, DevToolsInstance };
|
|
75
74
|
export type { DevToolsPosition, DevToolsTab } from './core/state-manager';
|
|
76
|
-
|
|
75
|
+
export type { DevToolsInstance, DevToolsOptions };
|
|
76
|
+
export { C15TDevTools as DevTools };
|
|
@@ -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
|
|
@@ -18,10 +18,9 @@ export declare function setPreferenceTriggerVisibility(visible: boolean): void;
|
|
|
18
18
|
* Gets the preference center opener function from the c15t store
|
|
19
19
|
* Returns null if the store is not available or doesn't have the required method
|
|
20
20
|
*/
|
|
21
|
-
export declare function getPreferenceCenterOpener(): (() => void) | null;
|
|
21
|
+
export declare function getPreferenceCenterOpener(namespace?: string): (() => void) | null;
|
|
22
22
|
/**
|
|
23
23
|
* Opens the preference center if available
|
|
24
24
|
* @returns true if the preference center was opened, false otherwise
|
|
25
25
|
*/
|
|
26
|
-
export declare function openPreferenceCenter(): boolean;
|
|
27
|
-
//# sourceMappingURL=preference-trigger.d.ts.map
|
|
26
|
+
export declare function openPreferenceCenter(namespace?: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "2.0.0-rc.10";
|
package/package.json
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/dev-tools",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
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",
|
|
8
8
|
"url": "https://github.com/c15t/c15t.git",
|
|
9
9
|
"directory": "packages/dev-tools"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "Apache-2.0",
|
|
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
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
38
|
+
"prebuild": "bunx genversion --esm --semi src/version.ts",
|
|
39
|
+
"build": "bun prebuild && rslib build && bun ../../scripts/normalize-dist-types.mjs",
|
|
40
|
+
"check-types": "bun prebuild && tsc --noEmit",
|
|
41
|
+
"dev": "bun prebuild && rslib build --watch",
|
|
37
42
|
"fmt": "bun biome format --write . && bun biome check --formatter-enabled=false --linter-enabled=false --write",
|
|
38
|
-
"lint": "bun biome lint ./src"
|
|
39
|
-
"test": "vitest run",
|
|
40
|
-
"test:watch": "vitest"
|
|
43
|
+
"lint": "bun biome lint ./src"
|
|
41
44
|
},
|
|
42
45
|
"browserslist": [
|
|
43
46
|
">0.2%",
|
|
@@ -45,29 +48,30 @@
|
|
|
45
48
|
"not op_mini all"
|
|
46
49
|
],
|
|
47
50
|
"dependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"
|
|
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.2.6",
|
|
55
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
56
|
+
"c15t": "2.0.0-rc.10",
|
|
57
|
+
"class-variance-authority": "^0.7.1",
|
|
58
|
+
"lucide-react": "^1.7.0",
|
|
59
|
+
"motion": "^12.38.0",
|
|
60
|
+
"react-draggable": "^4.5.0",
|
|
61
|
+
"tailwind-merge": "3.5.0",
|
|
62
|
+
"tsc-alias": "^1.8.16",
|
|
63
|
+
"usehooks-ts": "^3.1.1",
|
|
64
|
+
"zustand": "^5.0.12"
|
|
51
65
|
},
|
|
52
66
|
"devDependencies": {
|
|
53
67
|
"@c15t/typescript-config": "0.0.1-beta.1",
|
|
54
|
-
"@types/react": "19.2.
|
|
68
|
+
"@types/react": "19.2.14",
|
|
55
69
|
"@types/react-dom": "19.2.3",
|
|
56
|
-
"
|
|
57
|
-
"postcss": "8.5.6",
|
|
58
|
-
"vitest": "4.0.15"
|
|
70
|
+
"postcss": "^8.5.8"
|
|
59
71
|
},
|
|
60
72
|
"peerDependencies": {
|
|
61
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
62
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
63
|
-
},
|
|
64
|
-
"peerDependenciesMeta": {
|
|
65
|
-
"react": {
|
|
66
|
-
"optional": true
|
|
67
|
-
},
|
|
68
|
-
"react-dom": {
|
|
69
|
-
"optional": true
|
|
70
|
-
}
|
|
73
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
74
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
71
75
|
},
|
|
72
76
|
"publishConfig": {
|
|
73
77
|
"access": "public"
|