@customviews-js/customviews 1.4.1-beta.0 → 1.4.1-beta.2

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.
Files changed (104) hide show
  1. package/dist/custom-views.cjs.js +12180 -0
  2. package/dist/custom-views.cjs.js.map +1 -0
  3. package/dist/custom-views.esm.js +11698 -4828
  4. package/dist/custom-views.esm.js.map +1 -1
  5. package/dist/custom-views.min.js +3 -3
  6. package/dist/custom-views.min.js.map +1 -1
  7. package/dist/types/{lib/custom-views.d.ts → CustomViews.d.ts} +4 -3
  8. package/dist/types/CustomViews.d.ts.map +1 -0
  9. package/dist/types/browser.d.ts +21 -0
  10. package/dist/types/browser.d.ts.map +1 -0
  11. package/dist/types/core/{config.d.ts → constants.d.ts} +1 -1
  12. package/dist/types/core/constants.d.ts.map +1 -0
  13. package/dist/types/core/core.svelte.d.ts +40 -0
  14. package/dist/types/core/core.svelte.d.ts.map +1 -0
  15. package/dist/types/core/{assets-manager.d.ts → managers/assets-manager.d.ts} +1 -1
  16. package/dist/types/core/managers/assets-manager.d.ts.map +1 -0
  17. package/dist/types/core/render.d.ts +1 -1
  18. package/dist/types/core/render.d.ts.map +1 -1
  19. package/dist/types/core/services/focus-service.d.ts +33 -0
  20. package/dist/types/core/services/focus-service.d.ts.map +1 -0
  21. package/dist/types/core/{persistence.d.ts → state/persistence.d.ts} +1 -1
  22. package/dist/types/core/state/persistence.d.ts.map +1 -0
  23. package/dist/types/core/{url-state-manager.d.ts → state/url-state-manager.d.ts} +1 -1
  24. package/dist/types/core/state/url-state-manager.d.ts.map +1 -0
  25. package/dist/types/core/stores/focus-store.d.ts +10 -0
  26. package/dist/types/core/stores/focus-store.d.ts.map +1 -0
  27. package/dist/types/core/stores/main-store.svelte.d.ts +93 -0
  28. package/dist/types/core/stores/main-store.svelte.d.ts.map +1 -0
  29. package/dist/types/core/stores/share-store.d.ts +21 -0
  30. package/dist/types/core/stores/share-store.d.ts.map +1 -0
  31. package/dist/types/core/stores/toast-store.d.ts +13 -0
  32. package/dist/types/core/stores/toast-store.d.ts.map +1 -0
  33. package/dist/types/core/utils/dom-element-locator.d.ts +27 -0
  34. package/dist/types/core/utils/dom-element-locator.d.ts.map +1 -0
  35. package/dist/types/core/widget.d.ts +7 -75
  36. package/dist/types/core/widget.d.ts.map +1 -1
  37. package/dist/types/index.d.ts +7 -7
  38. package/dist/types/index.d.ts.map +1 -1
  39. package/dist/types/registry.d.ts +6 -0
  40. package/dist/types/registry.d.ts.map +1 -0
  41. package/dist/types/types/assets.d.ts +19 -0
  42. package/dist/types/types/assets.d.ts.map +1 -0
  43. package/dist/types/types/config.d.ts +94 -0
  44. package/dist/types/types/config.d.ts.map +1 -0
  45. package/dist/types/types/elements.d.ts +12 -0
  46. package/dist/types/types/elements.d.ts.map +1 -0
  47. package/dist/types/types/global.d.ts +17 -0
  48. package/dist/types/types/global.d.ts.map +1 -0
  49. package/dist/types/types/state.d.ts +16 -0
  50. package/dist/types/types/state.d.ts.map +1 -0
  51. package/dist/types/types/types.d.ts +5 -131
  52. package/dist/types/types/types.d.ts.map +1 -1
  53. package/dist/types/utils/init-utils.d.ts +24 -0
  54. package/dist/types/utils/init-utils.d.ts.map +1 -0
  55. package/dist/types/utils/scroll-utils.d.ts +26 -0
  56. package/dist/types/utils/scroll-utils.d.ts.map +1 -0
  57. package/package.json +10 -5
  58. package/dist/custom-views.core.cjs.js +0 -5310
  59. package/dist/custom-views.core.cjs.js.map +0 -1
  60. package/dist/custom-views.core.esm.js +0 -5303
  61. package/dist/custom-views.core.esm.js.map +0 -1
  62. package/dist/custom-views.js +0 -5316
  63. package/dist/custom-views.js.map +0 -1
  64. package/dist/types/core/anchor-engine.d.ts +0 -55
  65. package/dist/types/core/anchor-engine.d.ts.map +0 -1
  66. package/dist/types/core/assets-manager.d.ts.map +0 -1
  67. package/dist/types/core/config.d.ts.map +0 -1
  68. package/dist/types/core/core.d.ts +0 -118
  69. package/dist/types/core/core.d.ts.map +0 -1
  70. package/dist/types/core/custom-elements.d.ts +0 -8
  71. package/dist/types/core/custom-elements.d.ts.map +0 -1
  72. package/dist/types/core/focus-manager.d.ts +0 -38
  73. package/dist/types/core/focus-manager.d.ts.map +0 -1
  74. package/dist/types/core/persistence.d.ts.map +0 -1
  75. package/dist/types/core/share-manager.d.ts +0 -70
  76. package/dist/types/core/share-manager.d.ts.map +0 -1
  77. package/dist/types/core/tab-manager.d.ts +0 -73
  78. package/dist/types/core/tab-manager.d.ts.map +0 -1
  79. package/dist/types/core/toast-manager.d.ts +0 -12
  80. package/dist/types/core/toast-manager.d.ts.map +0 -1
  81. package/dist/types/core/toggle-manager.d.ts +0 -43
  82. package/dist/types/core/toggle-manager.d.ts.map +0 -1
  83. package/dist/types/core/url-state-manager.d.ts.map +0 -1
  84. package/dist/types/core/visibility-manager.d.ts +0 -28
  85. package/dist/types/core/visibility-manager.d.ts.map +0 -1
  86. package/dist/types/entry/browser-entry.d.ts +0 -13
  87. package/dist/types/entry/browser-entry.d.ts.map +0 -1
  88. package/dist/types/lib/custom-views.d.ts.map +0 -1
  89. package/dist/types/styles/focus-mode-styles.d.ts +0 -8
  90. package/dist/types/styles/focus-mode-styles.d.ts.map +0 -1
  91. package/dist/types/styles/share-mode-styles.d.ts +0 -10
  92. package/dist/types/styles/share-mode-styles.d.ts.map +0 -1
  93. package/dist/types/styles/styles.d.ts +0 -7
  94. package/dist/types/styles/styles.d.ts.map +0 -1
  95. package/dist/types/styles/tab-styles.d.ts +0 -5
  96. package/dist/types/styles/tab-styles.d.ts.map +0 -1
  97. package/dist/types/styles/toast-styles.d.ts +0 -4
  98. package/dist/types/styles/toast-styles.d.ts.map +0 -1
  99. package/dist/types/styles/toggle-styles.d.ts +0 -5
  100. package/dist/types/styles/toggle-styles.d.ts.map +0 -1
  101. package/dist/types/styles/widget-styles.d.ts +0 -13
  102. package/dist/types/styles/widget-styles.d.ts.map +0 -1
  103. package/dist/types/utils/scroll-manager.d.ts +0 -26
  104. package/dist/types/utils/scroll-manager.d.ts.map +0 -1
@@ -1,5 +1,6 @@
1
- import { CustomViewsCore } from "../core/core";
2
- import type { Config } from "../types/types";
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=custom-views.d.ts.map
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 { CustomViewsWidget } from "./core/widget";
5
+ export type { WidgetOptions } from "./core/widget";
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,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,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"}
@@ -1,3 +1,3 @@
1
1
  export declare const DEFAULT_EXCLUDED_TAGS: string[];
2
2
  export declare const DEFAULT_EXCLUDED_IDS: string[];
3
- //# sourceMappingURL=config.d.ts.map
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -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"}
@@ -1,4 +1,4 @@
1
- import type { CustomViewAsset } from "../types/types";
1
+ import type { CustomViewAsset } from "../../types/types";
2
2
  export declare class AssetsManager {
3
3
  assets: Record<string, CustomViewAsset>;
4
4
  private baseURL;
@@ -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,3 +1,3 @@
1
- import type { AssetsManager } from "./assets-manager";
1
+ import type { AssetsManager } from "./managers/assets-manager";
2
2
  export declare function renderAssetInto(el: HTMLElement, assetId: string, assetsManager: AssetsManager): void;
3
3
  //# sourceMappingURL=render.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/core/render.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAoEtD,wBAAgB,eAAe,CAC7B,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,aAAa,QAqB7B"}
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"}
@@ -1,4 +1,4 @@
1
- import type { State } from "../types/types";
1
+ import type { State } from "../../types/types";
2
2
  /**
3
3
  * Manages persistence of custom views state using browser localStorage
4
4
  */
@@ -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 "../types/types";
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"}
@@ -1,4 +1,4 @@
1
- import type { CustomViewsCore } from "./core";
1
+ import type { CustomViewsCore } from "./core.svelte";
2
2
  export interface WidgetOptions {
3
3
  /** The CustomViews core instance to control */
4
4
  core: CustomViewsCore;
@@ -6,7 +6,7 @@ export interface WidgetOptions {
6
6
  container?: HTMLElement;
7
7
  /** Widget position: 'top-right', 'top-left', 'bottom-right', 'bottom-left', 'middle-left', 'middle-right' */
8
8
  position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'middle-left' | 'middle-right';
9
- /** Widget theme: 'light' or 'dark' */
9
+ /** Widget theme: 'light' | 'dark' */
10
10
  theme?: 'light' | 'dark';
11
11
  /** Whether to show reset button */
12
12
  showReset?: boolean;
@@ -14,92 +14,24 @@ export interface WidgetOptions {
14
14
  title?: string;
15
15
  /** Widget description text */
16
16
  description?: string;
17
- /** Whether to show welcome modal on first visit */
17
+ /** Whether to show welcome callout on first visit */
18
18
  showWelcome?: boolean;
19
- /** Welcome modal title (only used if showWelcome is true) */
20
- welcomeTitle?: string;
21
- /** Welcome modal message (only used if showWelcome is true) */
19
+ /** Welcome callout message (only used if showWelcome is true) */
22
20
  welcomeMessage?: string;
23
21
  /** Whether to show tab groups section in widget (default: true) */
24
22
  showTabGroups?: boolean;
25
23
  }
26
24
  export declare class CustomViewsWidget {
27
- private core;
28
- private container;
29
- private widgetIcon;
25
+ private app;
30
26
  private options;
31
- private _hasVisibleConfig;
32
- private pageToggleIds;
33
- private pageTabIds;
34
- private currentTab;
35
- private stateModal;
36
27
  constructor(options: WidgetOptions);
37
28
  /**
38
- * Render the widget modal icon
39
- *
40
- * Does not render if there are no visible toggles or tab groups.
29
+ * Render the widget
41
30
  */
42
- renderModalIcon(): HTMLElement | undefined;
43
- /**
44
- * Create the simple widget icon
45
- */
46
- private createWidgetIcon;
31
+ renderModalIcon(): void;
47
32
  /**
48
33
  * Remove the widget from DOM
49
34
  */
50
35
  destroy(): void;
51
- private attachEventListeners;
52
- /**
53
- * Close the modal
54
- */
55
- private closeModal;
56
- /**
57
- * Open the custom state creator
58
- */
59
- private openStateModal;
60
- /**
61
- * Create the custom state creator modal shell and attach listeners
62
- */
63
- private _createStateModal;
64
- /**
65
- * Update the content of the state modal
66
- */
67
- private _updateStateModalContent;
68
- /**
69
- * Attach event listeners for the modal frame (delegated events)
70
- */
71
- private _attachStateModalFrameEventListeners;
72
- /**
73
- * Attach event listeners for custom state creator's dynamic content
74
- */
75
- private _attachStateModalContentEventListeners;
76
- /**
77
- * Apply theme class to the modal overlay based on options
78
- */
79
- private applyThemeToModal;
80
- /**
81
- * Get current state from form values
82
- */
83
- private getCurrentCustomStateFromModal;
84
- /**
85
- * Copy shareable URL to clipboard
86
- */
87
- private copyShareableURL;
88
- /**
89
- * Load current state into form based on currently active toggles
90
- */
91
- private loadCurrentStateIntoForm;
92
- /**
93
- * Check if this is the first visit and show welcome modal
94
- */
95
- private showWelcomeModalIfFirstVisit;
96
- /**
97
- * Create and show the welcome modal
98
- */
99
- private createWelcomeModal;
100
- /**
101
- * Attach event listeners for welcome modal
102
- */
103
- private attachWelcomeModalEventListeners;
104
36
  }
105
37
  //# sourceMappingURL=widget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../src/core/widget.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAO9C,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,IAAI,EAAE,eAAe,CAAC;IAEtB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;IAEtG,sCAAsC;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEzB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,mEAAmE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,IAAI,CAAkB;IAC9B,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,aAAa,CAA0B;IAC/C,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,UAAU,CAAsC;IAGxD,OAAO,CAAC,UAAU,CAA4B;gBAGlC,OAAO,EAAE,aAAa;IAmDlC;;;;OAIG;IACI,eAAe,IAAI,WAAW,GAAG,SAAS;IAmBjD;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAaxB;;OAEG;IACI,OAAO,IAAI,IAAI;IAatB,OAAO,CAAC,oBAAoB;IAO5B;;OAEG;IACH,OAAO,CAAC,UAAU;IAMlB;;OAEG;IACH,OAAO,CAAC,cAAc;IAQtB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IASzB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA2KhC;;OAEG;IACH,OAAO,CAAC,oCAAoC;IAwD5C;;OAEG;IACH,OAAO,CAAC,sCAAsC;IAgH9C;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;OAEG;IACH,OAAO,CAAC,8BAA8B;IAyCtC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA+DhC;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAmBpC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAuC1B;;OAEG;IACH,OAAO,CAAC,gCAAgC;CA6BzC"}
1
+ {"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../src/core/widget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,IAAI,EAAE,eAAe,CAAC;IAEtB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;IAEtG,qCAAqC;IACrC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEzB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qDAAqD;IACrD,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,mEAAmE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,GAAG,CAAyC;IACpD,OAAO,CAAC,OAAO,CAA0B;gBAE7B,OAAO,EAAE,aAAa;IAgBlC;;OAEG;IACI,eAAe,IAAI,IAAI;IAe9B;;OAEG;IACI,OAAO,IAAI,IAAI;CAMvB"}
@@ -1,12 +1,12 @@
1
- export { CustomViewsCore } from "./core/core";
2
- export type { CustomViewsOptions } from "./core/core";
1
+ export { CustomViewsCore } from "./core/core.svelte";
2
+ export type { CustomViewsOptions } from "./core/core.svelte";
3
3
  export { CustomViewsWidget } from "./core/widget";
4
4
  export type { WidgetOptions } from "./core/widget";
5
- export { CustomViews } from "./lib/custom-views";
6
- export type { initOptions } from "./lib/custom-views";
7
- export { PersistenceManager } from "./core/persistence";
8
- export { URLStateManager } from "./core/url-state-manager";
9
- export { AssetsManager } from "./core/assets-manager";
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":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
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,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,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"}