@c15t/dev-tools 2.0.0-rc.5 → 2.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/0~rslib-runtime.js +42 -0
- package/dist/379.js +7056 -0
- package/dist/index.cjs +483 -131
- package/dist/index.js +1 -6737
- package/dist/react.cjs +474 -131
- package/dist/react.js +2 -6598
- package/dist/tanstack.cjs +466 -123
- package/dist/tanstack.js +1 -5724
- package/dist-types/components/dropdown-menu.d.ts +1 -1
- package/dist-types/core/debug-bundle.d.ts +1 -1
- package/dist-types/core/override-storage.d.ts +1 -1
- package/dist-types/core/panel-renderer.d.ts +1 -1
- package/dist-types/core/reset-consents.d.ts +1 -1
- package/dist-types/core/state-manager.d.ts +1 -1
- package/dist-types/core/store-connector.d.ts +1 -1
- package/dist-types/core/store-instrumentation.d.ts +1 -1
- package/dist-types/panels/actions.d.ts +1 -1
- package/dist-types/panels/consents.d.ts +1 -1
- package/dist-types/panels/dom-scanner.d.ts +1 -1
- package/dist-types/panels/iab.d.ts +1 -1
- package/dist-types/panels/location.d.ts +1 -1
- package/dist-types/panels/policy.d.ts +1 -1
- package/dist-types/panels/scripts.d.ts +1 -1
- package/dist-types/react.d.ts +2 -2
- package/dist-types/utils/init-source.d.ts +1 -1
- package/dist-types/version.d.ts +1 -1
- package/package.json +11 -11
|
@@ -42,4 +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,
|
|
45
|
+
export { DEVTOOLS_ICON, EYE_ICON, PREFERENCES_ICON };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConsentStoreState } from '
|
|
1
|
+
import type { ConsentStoreState } from 'c15t';
|
|
2
2
|
import type { DevToolsState, EventLogEntry } from './state-manager';
|
|
3
3
|
import type { ConnectionDiagnostics } from './store-connector';
|
|
4
4
|
export interface DebugBundlePayload {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConsentStoreState } from '
|
|
1
|
+
import type { ConsentStoreState } from 'c15t';
|
|
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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Panel Renderer
|
|
3
3
|
* Shared logic for rendering DevTools panels
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from 'c15t';
|
|
6
6
|
import type { PersistedDevToolsOverrides } from './override-storage';
|
|
7
7
|
import type { DevToolsTab, StateManager } from './state-manager';
|
|
8
8
|
import type { StoreConnector } from './store-connector';
|
|
@@ -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 'c15t';
|
|
6
6
|
import type { StoreApi } from 'zustand/vanilla';
|
|
7
7
|
import type { StateManager } from './state-manager';
|
|
8
8
|
/**
|
|
@@ -15,7 +15,7 @@ export type DevToolsTab = 'consents' | 'location' | 'policy' | 'scripts' | 'iab'
|
|
|
15
15
|
*/
|
|
16
16
|
export interface EventLogEntry {
|
|
17
17
|
id: string;
|
|
18
|
-
type: 'consent_set' | 'consent_save' | 'consent_reset' | 'error' | 'info' | 'network' | 'iab';
|
|
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>;
|
|
@@ -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 'c15t';
|
|
6
6
|
import type { StoreApi } from 'zustand/vanilla';
|
|
7
7
|
/**
|
|
8
8
|
* Options for creating a store connector
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConsentStoreState } from '
|
|
1
|
+
import type { ConsentStoreState } from 'c15t';
|
|
2
2
|
import type { StoreApi } from 'zustand/vanilla';
|
|
3
3
|
import type { EventLogEntry } from './state-manager';
|
|
4
4
|
type InstrumentationEvent = Omit<EventLogEntry, 'id' | 'timestamp'>;
|
|
@@ -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 'c15t';
|
|
6
6
|
export interface ActionsPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
onResetConsents: () => void;
|
|
@@ -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 'c15t';
|
|
6
6
|
export interface ConsentsPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
onConsentChange: (name: string, value: boolean) => void;
|
|
@@ -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 'c15t';
|
|
6
6
|
/**
|
|
7
7
|
* Represents a scanned external resource
|
|
8
8
|
*/
|
|
@@ -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 'c15t';
|
|
6
6
|
export interface IabPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
onSetPurposeConsent: (purposeId: number, value: boolean) => void;
|
|
@@ -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 'c15t';
|
|
6
6
|
interface OverridePayload {
|
|
7
7
|
country?: string;
|
|
8
8
|
region?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Policy Panel
|
|
3
3
|
* Displays detailed runtime policy-pack diagnostics from /init
|
|
4
4
|
*/
|
|
5
|
-
import type { ConsentStoreState } from '
|
|
5
|
+
import type { ConsentStoreState } from 'c15t';
|
|
6
6
|
export interface PolicyPanelOptions {
|
|
7
7
|
getState: () => ConsentStoreState | null;
|
|
8
8
|
}
|
|
@@ -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 'c15t';
|
|
6
6
|
import type { EventLogEntry } from '../core/state-manager';
|
|
7
7
|
export interface ScriptsPanelOptions {
|
|
8
8
|
getState: () => ConsentStoreState | null;
|
package/dist-types/react.d.ts
CHANGED
|
@@ -71,6 +71,6 @@ export interface C15TDevToolsProps extends Partial<DevToolsOptions> {
|
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
73
|
export declare function C15TDevTools({ namespace, position, defaultOpen, disabled, }: C15TDevToolsProps): null;
|
|
74
|
-
export { C15TDevTools as DevTools };
|
|
75
|
-
export type { DevToolsOptions, DevToolsInstance };
|
|
76
74
|
export type { DevToolsPosition, DevToolsTab } from './core/state-manager';
|
|
75
|
+
export type { DevToolsInstance, DevToolsOptions };
|
|
76
|
+
export { C15TDevTools as DevTools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ConsentStoreState } from '
|
|
1
|
+
import type { ConsentStoreState } from 'c15t';
|
|
2
2
|
export declare function formatInitSource(source: ConsentStoreState['initDataSource'], detail: string | null | undefined): string;
|
package/dist-types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.0.0-rc.
|
|
1
|
+
export declare const version = "2.0.0-rc.8";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/dev-tools",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
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": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"prebuild": "bunx genversion --esm --semi src/version.ts",
|
|
39
|
-
"build": "bun prebuild && rslib build",
|
|
39
|
+
"build": "bun prebuild && rslib build && bun ../../scripts/normalize-dist-types.mjs",
|
|
40
40
|
"check-types": "bun prebuild && tsc --noEmit",
|
|
41
41
|
"dev": "bun prebuild && rslib build --watch",
|
|
42
42
|
"fmt": "bun biome format --write . && bun biome check --formatter-enabled=false --linter-enabled=false --write",
|
|
@@ -51,23 +51,23 @@
|
|
|
51
51
|
"@radix-ui/react-accordion": "1.2.12",
|
|
52
52
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
53
53
|
"@radix-ui/react-slot": "1.2.4",
|
|
54
|
-
"@radix-ui/react-switch": "1.
|
|
54
|
+
"@radix-ui/react-switch": "1.2.6",
|
|
55
55
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
56
|
-
"c15t": "2.0.0-rc.
|
|
56
|
+
"c15t": "2.0.0-rc.8",
|
|
57
57
|
"class-variance-authority": "^0.7.1",
|
|
58
58
|
"clsx": "2.1.1",
|
|
59
|
-
"lucide-react": "^
|
|
60
|
-
"motion": "^12.
|
|
61
|
-
"react-draggable": "^4.
|
|
62
|
-
"tailwind-merge": "3.
|
|
59
|
+
"lucide-react": "^1.7.0",
|
|
60
|
+
"motion": "^12.38.0",
|
|
61
|
+
"react-draggable": "^4.5.0",
|
|
62
|
+
"tailwind-merge": "3.5.0",
|
|
63
63
|
"tsc-alias": "^1.8.16",
|
|
64
64
|
"usehooks-ts": "^3.1.1",
|
|
65
|
-
"zustand": "^5.0.
|
|
65
|
+
"zustand": "^5.0.12"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@c15t/typescript-config": "0.0.1-beta.1",
|
|
69
|
-
"@types/react": "19.2.
|
|
70
|
-
"@types/react-dom": "19.2.
|
|
69
|
+
"@types/react": "19.2.14",
|
|
70
|
+
"@types/react-dom": "19.2.3",
|
|
71
71
|
"postcss": "^8.5.8"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|