@customviews-js/customviews 1.4.1-beta.1 → 1.4.1-beta.3
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/custom-views.cjs.js +12520 -0
- package/dist/custom-views.cjs.js.map +1 -0
- package/dist/custom-views.esm.js +12041 -4923
- package/dist/custom-views.esm.js.map +1 -1
- package/dist/custom-views.min.js +3 -3
- package/dist/custom-views.min.js.map +1 -1
- package/dist/types/{lib/custom-views.d.ts → CustomViews.d.ts} +4 -3
- package/dist/types/CustomViews.d.ts.map +1 -0
- package/dist/types/browser.d.ts +21 -0
- package/dist/types/browser.d.ts.map +1 -0
- package/dist/types/core/{config.d.ts → constants.d.ts} +1 -1
- package/dist/types/core/constants.d.ts.map +1 -0
- package/dist/types/core/core.svelte.d.ts +40 -0
- package/dist/types/core/core.svelte.d.ts.map +1 -0
- package/dist/types/core/{assets-manager.d.ts → managers/assets-manager.d.ts} +1 -1
- package/dist/types/core/managers/assets-manager.d.ts.map +1 -0
- package/dist/types/core/render.d.ts +1 -1
- package/dist/types/core/render.d.ts.map +1 -1
- package/dist/types/core/services/focus-service.d.ts +33 -0
- package/dist/types/core/services/focus-service.d.ts.map +1 -0
- package/dist/types/core/settings.d.ts +79 -0
- package/dist/types/core/settings.d.ts.map +1 -0
- package/dist/types/core/{persistence.d.ts → state/persistence.d.ts} +1 -1
- package/dist/types/core/state/persistence.d.ts.map +1 -0
- package/dist/types/core/{url-state-manager.d.ts → state/url-state-manager.d.ts} +1 -1
- package/dist/types/core/state/url-state-manager.d.ts.map +1 -0
- package/dist/types/core/stores/focus-store.d.ts +10 -0
- package/dist/types/core/stores/focus-store.d.ts.map +1 -0
- package/dist/types/core/stores/main-store.svelte.d.ts +93 -0
- package/dist/types/core/stores/main-store.svelte.d.ts.map +1 -0
- package/dist/types/core/stores/share-store.d.ts +21 -0
- package/dist/types/core/stores/share-store.d.ts.map +1 -0
- package/dist/types/core/stores/toast-store.d.ts +13 -0
- package/dist/types/core/stores/toast-store.d.ts.map +1 -0
- package/dist/types/core/utils/dom-element-locator.d.ts +27 -0
- package/dist/types/core/utils/dom-element-locator.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/registry.d.ts +6 -0
- package/dist/types/registry.d.ts.map +1 -0
- package/dist/types/types/assets.d.ts +19 -0
- package/dist/types/types/assets.d.ts.map +1 -0
- package/dist/types/types/config.d.ts +117 -0
- package/dist/types/types/config.d.ts.map +1 -0
- package/dist/types/types/elements.d.ts +12 -0
- package/dist/types/types/elements.d.ts.map +1 -0
- package/dist/types/types/state.d.ts +16 -0
- package/dist/types/types/state.d.ts.map +1 -0
- package/dist/types/types/types.d.ts +5 -129
- package/dist/types/types/types.d.ts.map +1 -1
- package/dist/types/utils/icons.d.ts +1 -1
- package/dist/types/utils/init-utils.d.ts +24 -0
- package/dist/types/utils/init-utils.d.ts.map +1 -0
- package/dist/types/utils/scroll-utils.d.ts +26 -0
- package/dist/types/utils/scroll-utils.d.ts.map +1 -0
- package/package.json +10 -5
- package/dist/custom-views.core.cjs.js +0 -5402
- package/dist/custom-views.core.cjs.js.map +0 -1
- package/dist/custom-views.core.esm.js +0 -5395
- package/dist/custom-views.core.esm.js.map +0 -1
- package/dist/custom-views.js +0 -5408
- package/dist/custom-views.js.map +0 -1
- package/dist/types/core/anchor-engine.d.ts +0 -55
- package/dist/types/core/anchor-engine.d.ts.map +0 -1
- package/dist/types/core/assets-manager.d.ts.map +0 -1
- package/dist/types/core/config.d.ts.map +0 -1
- package/dist/types/core/core.d.ts +0 -122
- package/dist/types/core/core.d.ts.map +0 -1
- package/dist/types/core/custom-elements.d.ts +0 -8
- package/dist/types/core/custom-elements.d.ts.map +0 -1
- package/dist/types/core/focus-manager.d.ts +0 -38
- package/dist/types/core/focus-manager.d.ts.map +0 -1
- package/dist/types/core/persistence.d.ts.map +0 -1
- package/dist/types/core/share-manager.d.ts +0 -70
- package/dist/types/core/share-manager.d.ts.map +0 -1
- package/dist/types/core/tab-manager.d.ts +0 -73
- package/dist/types/core/tab-manager.d.ts.map +0 -1
- package/dist/types/core/toast-manager.d.ts +0 -12
- package/dist/types/core/toast-manager.d.ts.map +0 -1
- package/dist/types/core/toggle-manager.d.ts +0 -43
- package/dist/types/core/toggle-manager.d.ts.map +0 -1
- package/dist/types/core/url-state-manager.d.ts.map +0 -1
- package/dist/types/core/visibility-manager.d.ts +0 -28
- package/dist/types/core/visibility-manager.d.ts.map +0 -1
- package/dist/types/core/widget.d.ts +0 -104
- package/dist/types/core/widget.d.ts.map +0 -1
- package/dist/types/entry/browser-entry.d.ts +0 -13
- package/dist/types/entry/browser-entry.d.ts.map +0 -1
- package/dist/types/lib/custom-views.d.ts.map +0 -1
- package/dist/types/styles/focus-mode-styles.d.ts +0 -8
- package/dist/types/styles/focus-mode-styles.d.ts.map +0 -1
- package/dist/types/styles/share-mode-styles.d.ts +0 -10
- package/dist/types/styles/share-mode-styles.d.ts.map +0 -1
- package/dist/types/styles/styles.d.ts +0 -7
- package/dist/types/styles/styles.d.ts.map +0 -1
- package/dist/types/styles/tab-styles.d.ts +0 -5
- package/dist/types/styles/tab-styles.d.ts.map +0 -1
- package/dist/types/styles/toast-styles.d.ts +0 -4
- package/dist/types/styles/toast-styles.d.ts.map +0 -1
- package/dist/types/styles/toggle-styles.d.ts +0 -5
- package/dist/types/styles/toggle-styles.d.ts.map +0 -1
- package/dist/types/styles/widget-styles.d.ts +0 -13
- package/dist/types/styles/widget-styles.d.ts.map +0 -1
- package/dist/types/utils/scroll-manager.d.ts +0 -26
- package/dist/types/utils/scroll-manager.d.ts.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CustomViewsCore } from "
|
|
2
|
-
import type { Config } from "
|
|
1
|
+
import { CustomViewsCore } from "./core/core.svelte";
|
|
2
|
+
import type { Config } from "./types/types";
|
|
3
|
+
import './registry';
|
|
3
4
|
/**
|
|
4
5
|
* Options for initializing CustomViews from JSON
|
|
5
6
|
*/
|
|
@@ -26,4 +27,4 @@ export declare class CustomViews {
|
|
|
26
27
|
*/
|
|
27
28
|
static init(opts: initOptions): Promise<CustomViewsCore | null>;
|
|
28
29
|
}
|
|
29
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=CustomViews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomViews.d.ts","sourceRoot":"","sources":["../../src/CustomViews.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA2B,MAAM,oBAAoB,CAAC;AAE9E,OAAO,KAAK,EAAmB,MAAM,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB;;;;OAIG;WACU,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;CAuCtE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomViews } from "./CustomViews";
|
|
2
|
+
export { CustomViewsCore } from "./core/core.svelte";
|
|
3
|
+
export type { CustomViewsOptions } from "./core/core.svelte";
|
|
4
|
+
export { CustomViewsSettings } from "./core/settings";
|
|
5
|
+
export type { SettingsOptions } from "./core/settings";
|
|
6
|
+
export { PersistenceManager } from "./core/state/persistence";
|
|
7
|
+
export { URLStateManager } from "./core/state/url-state-manager";
|
|
8
|
+
export { AssetsManager } from "./core/managers/assets-manager";
|
|
9
|
+
export type { Config, ConfigFile } from "./types/types";
|
|
10
|
+
export { CustomViews };
|
|
11
|
+
/**
|
|
12
|
+
* Main initialization function.
|
|
13
|
+
* This is aliased as `CustomViews.init` in the global namespace because it's a named export.
|
|
14
|
+
*/
|
|
15
|
+
export declare const init: typeof CustomViews.init;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize CustomViews from script tag attributes and config file
|
|
18
|
+
* This runs automatically when the script is loaded.
|
|
19
|
+
*/
|
|
20
|
+
export declare function initializeFromScript(): void;
|
|
21
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQ5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB;;;GAGG;AACH,eAAO,MAAM,IAAI,yBAAmB,CAAC;AAErC;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAkE3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAAiD,CAAC;AACpF,eAAO,MAAM,oBAAoB,UAAyE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Config } from "../types/types";
|
|
2
|
+
import type { AssetsManager } from "./managers/assets-manager";
|
|
3
|
+
import { DataStore } from "./stores/main-store.svelte";
|
|
4
|
+
export interface CustomViewsOptions {
|
|
5
|
+
assetsManager: AssetsManager;
|
|
6
|
+
config: Config;
|
|
7
|
+
rootEl?: HTMLElement | undefined;
|
|
8
|
+
showUrl?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Reactive Binder for CustomViews, coordinates interaction between DataStore and other components.
|
|
12
|
+
* Uses Svelte 5 Effects ($effect) to automatically apply state changes from the store to URL and persistence.
|
|
13
|
+
* Components (Toggle, TabGroup) are self-contained and self-managing via the global store.
|
|
14
|
+
*/
|
|
15
|
+
export declare class CustomViewsCore {
|
|
16
|
+
/**
|
|
17
|
+
* The single source of truth for application state.
|
|
18
|
+
*/
|
|
19
|
+
store: DataStore;
|
|
20
|
+
private rootEl;
|
|
21
|
+
private persistenceManager;
|
|
22
|
+
private focusService;
|
|
23
|
+
private showUrlEnabled;
|
|
24
|
+
private destroyEffectRoot?;
|
|
25
|
+
constructor(opt: CustomViewsOptions);
|
|
26
|
+
private resolveInitialState;
|
|
27
|
+
getConfig(): Config;
|
|
28
|
+
getTabGroups(): import("../types/config").TabGroupConfig[] | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Initializes the CustomViews core.
|
|
31
|
+
*
|
|
32
|
+
* Components (Toggle, TabGroup) self-register during their mount lifecycle.
|
|
33
|
+
* Core only manages global reactivity for URL state and persistence.
|
|
34
|
+
*/
|
|
35
|
+
init(): Promise<void>;
|
|
36
|
+
hasActiveComponents(): boolean;
|
|
37
|
+
resetToDefault(): void;
|
|
38
|
+
destroy(): void;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=core.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.svelte.d.ts","sourceRoot":"","sources":["../../../src/core/core.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAM/D,OAAO,EAAE,SAAS,EAAa,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IACI,KAAK,EAAE,SAAS,CAAC;IAExB,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,YAAY,CAAe;IAEnC,OAAO,CAAC,cAAc,CAAU;IAChC,OAAO,CAAC,iBAAiB,CAAC,CAAa;gBAE3B,GAAG,EAAE,kBAAkB;IAoBnC,OAAO,CAAC,mBAAmB;IAoBpB,SAAS,IAAI,MAAM;IAInB,YAAY;IAInB;;;;;OAKG;IACU,IAAI;IAuCV,mBAAmB,IAAI,OAAO;IAI9B,cAAc;IAOd,OAAO;CAIf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/managers/assets-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,qBAAa,aAAa;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACxC,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,GAAE,MAAW;IASzE,QAAQ,IAAI,OAAO;IAInB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAgBjD,OAAO,CAAC,cAAc;IAatB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAIlD,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;CAIvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/core/render.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/core/render.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAoE/D,wBAAgB,eAAe,CAC7B,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,aAAa,QAqB7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ShareExclusions } from '../../types/config';
|
|
2
|
+
export interface FocusServiceOptions {
|
|
3
|
+
shareExclusions?: ShareExclusions;
|
|
4
|
+
}
|
|
5
|
+
export declare class FocusService {
|
|
6
|
+
private rootEl;
|
|
7
|
+
private hiddenElements;
|
|
8
|
+
private dividers;
|
|
9
|
+
private excludedTags;
|
|
10
|
+
private excludedIds;
|
|
11
|
+
private unsubscribe;
|
|
12
|
+
constructor(rootEl: HTMLElement, options: FocusServiceOptions);
|
|
13
|
+
init(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Checks URL for focus param and applies focus mode if found.
|
|
16
|
+
* If no focus param is found, exits focus mode if active.
|
|
17
|
+
*/
|
|
18
|
+
handleUrlChange(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Applies focus mode to the specified descriptors.
|
|
21
|
+
* @param encodedDescriptors - The encoded descriptors to apply.
|
|
22
|
+
*/
|
|
23
|
+
applyFocusMode(encodedDescriptors: string): void;
|
|
24
|
+
private injectGlobalStyles;
|
|
25
|
+
private renderFocusedView;
|
|
26
|
+
private hideElement;
|
|
27
|
+
private insertDividersForContainer;
|
|
28
|
+
private createDivider;
|
|
29
|
+
private expandContext;
|
|
30
|
+
exitFocusMode(): void;
|
|
31
|
+
destroy(): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=focus-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-service.d.ts","sourceRoot":"","sources":["../../../../src/core/services/focus-service.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAChC,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,qBAAa,YAAY;IAOT,OAAO,CAAC,MAAM;IAN1B,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,WAAW,CAAa;gBAEZ,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB;IAiB9D,IAAI,IAAI,IAAI;IAInB;;;OAGG;IACI,eAAe,IAAI,IAAI;IAa9B;;;OAGG;IACI,cAAc,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI;IAuCvD,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,iBAAiB;IA4CzB,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,0BAA0B;IAuBlC,OAAO,CAAC,aAAa;IAsBrB,OAAO,CAAC,aAAa;IA0Bd,aAAa,IAAI,IAAI;IA2BrB,OAAO;CAIjB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { CustomViewsCore } from "./core.svelte";
|
|
2
|
+
export interface SettingsOptions {
|
|
3
|
+
/** The CustomViews core instance to control */
|
|
4
|
+
core: CustomViewsCore;
|
|
5
|
+
/** Container element where the settings widget should be rendered */
|
|
6
|
+
container?: HTMLElement;
|
|
7
|
+
/** Settings panel configuration */
|
|
8
|
+
panel?: {
|
|
9
|
+
/** Title displayed in the settings modal */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Description text displayed in the settings modal */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Whether to show tab groups section in widget (default: true) */
|
|
14
|
+
showTabGroups?: boolean;
|
|
15
|
+
/** Whether to show the reset button (default: true) */
|
|
16
|
+
showReset?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** Widget theme: 'light' | 'dark' */
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
20
|
+
/** Callout configuration options */
|
|
21
|
+
callout?: {
|
|
22
|
+
/** Whether to show the callout */
|
|
23
|
+
show?: boolean;
|
|
24
|
+
/** Message to display in the callout */
|
|
25
|
+
message?: string;
|
|
26
|
+
/** Whether to enable pulse animation */
|
|
27
|
+
enablePulse?: boolean;
|
|
28
|
+
/** Custom background color */
|
|
29
|
+
backgroundColor?: string | undefined;
|
|
30
|
+
/** Custom text color */
|
|
31
|
+
textColor?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
/** Custom icon styling options */
|
|
34
|
+
icon?: {
|
|
35
|
+
/** Widget position (default: middle-left) */
|
|
36
|
+
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'middle-left' | 'middle-right';
|
|
37
|
+
/** Custom icon color (e.g. #000, rgba(0,0,0,1)) */
|
|
38
|
+
color?: string | undefined;
|
|
39
|
+
/** Custom background color (e.g. #fff, rgba(255,255,255,1)) */
|
|
40
|
+
backgroundColor?: string | undefined;
|
|
41
|
+
/** Custom opacity (0-1) */
|
|
42
|
+
opacity?: number | undefined;
|
|
43
|
+
/** Custom scale factor (default 1) */
|
|
44
|
+
scale?: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export type ResolvedSettingsOptions = Omit<SettingsOptions, 'container' | 'theme' | 'panel' | 'callout' | 'icon'> & {
|
|
48
|
+
container: HTMLElement;
|
|
49
|
+
theme: NonNullable<SettingsOptions['theme']>;
|
|
50
|
+
panel: Required<NonNullable<SettingsOptions['panel']>>;
|
|
51
|
+
callout: {
|
|
52
|
+
show: boolean;
|
|
53
|
+
message: string;
|
|
54
|
+
enablePulse: boolean;
|
|
55
|
+
backgroundColor?: string | undefined;
|
|
56
|
+
textColor?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
icon: {
|
|
59
|
+
position: NonNullable<NonNullable<SettingsOptions['icon']>['position']>;
|
|
60
|
+
color?: string | undefined;
|
|
61
|
+
backgroundColor?: string | undefined;
|
|
62
|
+
opacity?: number | undefined;
|
|
63
|
+
scale: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare class CustomViewsSettings {
|
|
67
|
+
private app;
|
|
68
|
+
private options;
|
|
69
|
+
constructor(options: SettingsOptions);
|
|
70
|
+
/**
|
|
71
|
+
* Render the settings widget
|
|
72
|
+
*/
|
|
73
|
+
renderModalIcon(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Remove the settings widget from DOM
|
|
76
|
+
*/
|
|
77
|
+
destroy(): void;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,IAAI,EAAE,eAAe,CAAC;IAEtB,qEAAqE;IACrE,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB,mCAAmC;IACnC,KAAK,CAAC,EAAE;QACN,4CAA4C;QAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uDAAuD;QACvD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,mEAAmE;QACnE,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,uDAAuD;QACvD,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IAEF,qCAAqC;IACrC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEzB,oCAAoC;IACpC,OAAO,CAAC,EAAE;QACR,kCAAkC;QAClC,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,wCAAwC;QACxC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,wCAAwC;QACxC,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,8BAA8B;QAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACrC,wBAAwB;QACxB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAChC,CAAC;IAEF,kCAAkC;IAClC,IAAI,CAAC,EAAE;QACL,6CAA6C;QAC7C,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;QACtG,mDAAmD;QACnD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAE3B,+DAA+D;QAC/D,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAErC,2BAA2B;QAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAE7B,sCAAsC;QACtC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG;IAClH,SAAS,EAAE,WAAW,CAAC;IACvB,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACvD,OAAO,EAAE;QACP,IAAI,EAAE,OAAO,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC;QACrB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACrC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAChC,CAAC;IACF,IAAI,EAAE;QACJ,QAAQ,EAAE,WAAW,CAAC,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACxE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACrC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,GAAG,CAAyC;IACpD,OAAO,CAAC,OAAO,CAA0B;gBAE7B,OAAO,EAAE,eAAe;IA6BpC;;OAEG;IACI,eAAe,IAAI,IAAI;IAe9B;;OAEG;IACI,OAAO,IAAI,IAAI;CAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../../src/core/state/persistence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,qBAAa,kBAAkB;IAE7B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAGzB;IAEX;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAKnB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAWhC,iBAAiB,IAAI,KAAK,GAAG,IAAI;IAYxC;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;OAEG;IACI,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAUtD;;OAEG;IACI,4BAA4B,IAAI,OAAO,GAAG,IAAI;IAWrD;;OAEG;IACI,gBAAgB,IAAI,OAAO;CAOnC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* URL State Manager for CustomViews
|
|
3
3
|
* Handles encoding/decoding of states in URL parameters
|
|
4
4
|
*/
|
|
5
|
-
import type { State } from "
|
|
5
|
+
import type { State } from "../../types/types";
|
|
6
6
|
export declare class URLStateManager {
|
|
7
7
|
/**
|
|
8
8
|
* Parse current URL parameters into state object
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-state-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/state/url-state-manager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,qBAAa,eAAe;IAC1B;;OAEG;WACW,QAAQ,IAAI,KAAK,GAAG,IAAI;IAiBtC;;OAEG;WACW,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAqB9D;;OAEG;WACW,QAAQ,IAAI,IAAI;IAI9B;;OAEG;WACW,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM;IAiB3E;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IA6C1B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;CAyD3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface FocusState {
|
|
2
|
+
isActive: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const focusStore: {
|
|
5
|
+
subscribe: (this: void, run: import("svelte/store").Subscriber<FocusState>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
6
|
+
setIsActive: (isActive: boolean) => void;
|
|
7
|
+
exit: () => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=focus-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-store.d.ts","sourceRoot":"","sources":["../../../../src/core/stores/focus-store.ts"],"names":[],"mappings":"AAEA,UAAU,UAAU;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAqBD,eAAO,MAAM,UAAU;;4BATK,OAAO;;CASS,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { Config, State } from "../../types/types";
|
|
2
|
+
import type { AssetsManager } from "../managers/assets-manager";
|
|
3
|
+
/**
|
|
4
|
+
* Reactive Data Store for CustomViews application state.
|
|
5
|
+
*
|
|
6
|
+
* Uses Svelte 5 Runes ($state, $derived) to provide fine-grained reactivity.
|
|
7
|
+
* - Holds static Configuration (layout rules), dynamic User State (active tabs, toggles).
|
|
8
|
+
* - Maintains a registry of active components on the page and computes derived state.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DataStore {
|
|
11
|
+
/**
|
|
12
|
+
* Static configuration loaded at startup.
|
|
13
|
+
* Contains definitions for toggles, tab groups, and defaults.
|
|
14
|
+
*/
|
|
15
|
+
config: Config;
|
|
16
|
+
/**
|
|
17
|
+
* Mutable application state representing user choices.
|
|
18
|
+
* Use actions like `setPinnedTab` or `setToggles` to modify this.
|
|
19
|
+
*/
|
|
20
|
+
state: State;
|
|
21
|
+
/**
|
|
22
|
+
* Registry of toggle IDs that are currently present in the DOM.
|
|
23
|
+
* Used to filter the `visibleToggles` list.
|
|
24
|
+
*/
|
|
25
|
+
activeToggles: Set<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Registry of tab group IDs that are currently present in the DOM.
|
|
28
|
+
* Used to filter the `visibleTabGroups` list.
|
|
29
|
+
*/
|
|
30
|
+
activeTabGroups: Set<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Controls the visibility of the tab navigation headers globally.
|
|
33
|
+
*/
|
|
34
|
+
isTabGroupNavHeadingVisible: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Assets manager for rendering dynamic content into toggle elements.
|
|
37
|
+
*/
|
|
38
|
+
assetsManager: AssetsManager | undefined;
|
|
39
|
+
visibleToggles: import("../../types/config").ToggleConfig[];
|
|
40
|
+
visibleTabGroups: import("../../types/config").TabGroupConfig[];
|
|
41
|
+
hasActiveComponents: boolean;
|
|
42
|
+
constructor(initialConfig?: Config);
|
|
43
|
+
/**
|
|
44
|
+
* Set the pinned tab for a specific tab group.
|
|
45
|
+
* This syncs across all tab groups with the same ID.
|
|
46
|
+
* @param groupId The ID of the tab group.
|
|
47
|
+
* @param tabId The ID of the tab to pin.
|
|
48
|
+
*/
|
|
49
|
+
setPinnedTab(groupId: string, tabId: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Update the visibility of toggles.
|
|
52
|
+
* @param shown List of IDs for toggles in "Show" state.
|
|
53
|
+
* @param peek List of IDs for toggles in "Peek" state.
|
|
54
|
+
*/
|
|
55
|
+
setToggles(shown: string[], peek: string[]): void;
|
|
56
|
+
/**
|
|
57
|
+
* Updates the full state (e.g. from URL or Persistence).
|
|
58
|
+
* Merges the new state with computed defaults to ensure completeness.
|
|
59
|
+
* @param newState Partial state object to apply.
|
|
60
|
+
*/
|
|
61
|
+
applyState(newState: State): void;
|
|
62
|
+
/**
|
|
63
|
+
* Resets the application state to the computed defaults (defined in config).
|
|
64
|
+
*/
|
|
65
|
+
reset(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Registers a toggle as active on the current page.
|
|
68
|
+
* @param id The ID of the toggle found in the DOM.
|
|
69
|
+
*/
|
|
70
|
+
registerToggle(id: string): void;
|
|
71
|
+
/**
|
|
72
|
+
* Registers a tab group as active on the current page.
|
|
73
|
+
* @param id The ID of the tab group found in the DOM.
|
|
74
|
+
*/
|
|
75
|
+
registerTabGroup(id: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Clears the component registry.
|
|
78
|
+
* Should be called when scanning a fresh part of the DOM or resetting.
|
|
79
|
+
*/
|
|
80
|
+
clearRegistry(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Sets the assets manager for dynamic content rendering.
|
|
83
|
+
*/
|
|
84
|
+
setAssetsManager(manager: AssetsManager): void;
|
|
85
|
+
computeDefaultState(): State;
|
|
86
|
+
}
|
|
87
|
+
export declare const store: DataStore;
|
|
88
|
+
/**
|
|
89
|
+
* Initialize the store with actual configuration.
|
|
90
|
+
* This populates the hollow singleton with real data.
|
|
91
|
+
*/
|
|
92
|
+
export declare function initStore(config: Config): DataStore;
|
|
93
|
+
//# sourceMappingURL=main-store.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-store.svelte.d.ts","sourceRoot":"","sources":["../../../../src/core/stores/main-store.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;;;;;GAMG;AACH,qBAAa,SAAS;IAClB;;;OAGG;IACH,MAAM,SAAsB;IAE5B;;;OAGG;IACH,KAAK,QAIF;IAEH;;;OAGG;IACH,aAAa,cAAkC;IAE/C;;;OAGG;IACH,eAAe,cAAkC;IAEjD;;OAEG;IACH,2BAA2B,UAAgB;IAE3C;;OAEG;IACH,aAAa,4BAAgD;IAG7D,cAAc,8CAKX;IAEH,gBAAgB,gDAKb;IAEH,mBAAmB,UAEjB;gBAEU,aAAa,GAAE,MAAW;IAOtC;;;;;OAKG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAK3C;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAK1C;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,KAAK;IAU1B;;OAEG;IACH,KAAK;IAML;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM;IAIzB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,EAAE,MAAM;IAI3B;;;OAGG;IACH,aAAa;IAKb;;OAEG;IACH,gBAAgB,CAAC,OAAO,EAAE,aAAa;IAKhC,mBAAmB,IAAI,KAAK;CA0CtC;AAID,eAAO,MAAM,KAAK,WAAoB,CAAC;AAEvC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAanD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const SELECTED_CLASS = "cv-share-selected";
|
|
2
|
+
export declare const HIGHLIGHT_TARGET_CLASS = "cv-highlight-target";
|
|
3
|
+
export declare const CV_CUSTOM_ELEMENTS = "cv-tabgroup, cv-toggle";
|
|
4
|
+
export declare const SHAREABLE_SELECTOR: string;
|
|
5
|
+
interface ShareState {
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
selectedElements: Set<HTMLElement>;
|
|
8
|
+
currentHoverTarget: HTMLElement | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const shareStore: {
|
|
11
|
+
subscribe: (this: void, run: import("svelte/store").Subscriber<ShareState>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
12
|
+
toggleActive: (active?: boolean) => void;
|
|
13
|
+
setHoverTarget: (target: HTMLElement | null) => void;
|
|
14
|
+
toggleSelection: (el: HTMLElement) => void;
|
|
15
|
+
clearSelection: () => void;
|
|
16
|
+
generateLink: () => void;
|
|
17
|
+
previewLink: () => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const shareCount: import("svelte/store").Readable<number>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=share-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share-store.d.ts","sourceRoot":"","sources":["../../../../src/core/stores/share-store.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAClD,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAC5D,eAAO,MAAM,kBAAkB,2BAA2B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,QAA6F,CAAC;AAG7H,UAAU,UAAU;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACnC,kBAAkB,EAAE,WAAW,GAAG,IAAI,CAAC;CACxC;AAoID,eAAO,MAAM,UAAU;;4BApHK,OAAO;6BAaN,WAAW,GAAG,IAAI;0BAcrB,WAAW;;;;CAyFO,CAAC;AAG7C,eAAO,MAAM,UAAU,yCAA8D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const TOAST_CLASS = "cv-toast-notification";
|
|
2
|
+
export interface ToastConfig {
|
|
3
|
+
message: string;
|
|
4
|
+
duration?: number;
|
|
5
|
+
id?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const toast: {
|
|
8
|
+
subscribe: (this: void, run: import("svelte/store").Subscriber<ToastConfig[]>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
9
|
+
show: (message: string, duration?: number) => void;
|
|
10
|
+
dismiss: (id: number) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function showToast(message: string, duration?: number): void;
|
|
13
|
+
//# sourceMappingURL=toast-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-store.d.ts","sourceRoot":"","sources":["../../../../src/core/stores/toast-store.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,0BAA0B,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AA+BD,eAAO,MAAM,KAAK;;oBAxBO,MAAM;kBAaR,MAAM;CAWU,CAAC;AAExC,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,QAE3D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Descriptor for an anchor that represents a DOM element.
|
|
3
|
+
*/
|
|
4
|
+
export interface AnchorDescriptor {
|
|
5
|
+
tag: string;
|
|
6
|
+
index: number;
|
|
7
|
+
parentId?: string;
|
|
8
|
+
textSnippet: string;
|
|
9
|
+
textHash: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates an AnchorDescriptor for a given DOM element.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createDescriptor(el: HTMLElement): AnchorDescriptor;
|
|
15
|
+
/**
|
|
16
|
+
* Serializes a list of AnchorDescriptors into a URL-safe string.
|
|
17
|
+
*/
|
|
18
|
+
export declare function serialize(descriptors: AnchorDescriptor[]): string;
|
|
19
|
+
/**
|
|
20
|
+
* Deserializes a URL-safe string back into a list of AnchorDescriptors.
|
|
21
|
+
*/
|
|
22
|
+
export declare function deserialize(encoded: string): AnchorDescriptor[];
|
|
23
|
+
/**
|
|
24
|
+
* Finds the best DOM element match for a descriptor.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolve(root: HTMLElement, descriptor: AnchorDescriptor): HTMLElement | null;
|
|
27
|
+
//# sourceMappingURL=dom-element-locator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-element-locator.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/dom-element-locator.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAuBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,GAAG,gBAAgB,CAiClE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAWjE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAgB/D;AAQD;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,GAAG,WAAW,GAAG,IAAI,CAqE3F"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { CustomViewsCore } from "./core/core";
|
|
2
|
-
export type { CustomViewsOptions } from "./core/core";
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
5
|
-
export { CustomViews } from "./
|
|
6
|
-
export type { initOptions } from "./
|
|
7
|
-
export { PersistenceManager } from "./core/persistence";
|
|
8
|
-
export { URLStateManager } from "./core/url-state-manager";
|
|
9
|
-
export { AssetsManager } from "./core/assets-manager";
|
|
1
|
+
export { CustomViewsCore } from "./core/core.svelte";
|
|
2
|
+
export type { CustomViewsOptions } from "./core/core.svelte";
|
|
3
|
+
export { CustomViewsSettings } from "./core/settings";
|
|
4
|
+
export type { SettingsOptions } from "./core/settings";
|
|
5
|
+
export { CustomViews } from "./CustomViews";
|
|
6
|
+
export type { initOptions } from "./CustomViews";
|
|
7
|
+
export { PersistenceManager } from "./core/state/persistence";
|
|
8
|
+
export { URLStateManager } from "./core/state/url-state-manager";
|
|
9
|
+
export { AssetsManager } from "./core/managers/assets-manager";
|
|
10
10
|
export type { Config } from "./types/types";
|
|
11
11
|
export type { ConfigFile } from "./types/types";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './components/elements/Toggle.svelte';
|
|
2
|
+
import './components/elements/Tab.svelte';
|
|
3
|
+
import './components/elements/TabGroup.svelte';
|
|
4
|
+
import './components/elements/TabHeader.svelte';
|
|
5
|
+
import './components/elements/TabBody.svelte';
|
|
6
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,wCAAwC,CAAC;AAChD,OAAO,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an individual asset that can be rendered in a custom view.
|
|
3
|
+
*/
|
|
4
|
+
export interface CustomViewAsset {
|
|
5
|
+
/** Optional type. If not provided, auto-detected from src/content. */
|
|
6
|
+
type?: 'image' | 'text' | 'html' | string;
|
|
7
|
+
/** Image source URL */
|
|
8
|
+
src?: string;
|
|
9
|
+
/** Alt text for images */
|
|
10
|
+
alt?: string;
|
|
11
|
+
/** Text or HTML content */
|
|
12
|
+
content?: string;
|
|
13
|
+
/** CSS class name(s) to apply */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Inline CSS styles to apply */
|
|
16
|
+
style?: string;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/types/assets.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|