@redneckz/wildless-cms-uni-blocks 0.8.8 → 0.8.9

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 (197) hide show
  1. package/bundle/EventBus/EventBus.d.ts +1 -4
  2. package/bundle/EventBus/defaultEventBus.d.ts +7 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +31 -66
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +5 -1
  7. package/bundle/hooks/useRouter.d.ts +6 -2
  8. package/bundle/services/BlockRouter/BlockRouter.d.ts +3 -22
  9. package/bundle/services/BlockRouter/blockRouterEventBus.d.ts +11 -0
  10. package/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +1 -2
  11. package/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +1 -2
  12. package/dist/EventBus/EventBus.d.ts +1 -4
  13. package/dist/EventBus/EventBus.js +0 -1
  14. package/dist/EventBus/EventBus.js.map +1 -1
  15. package/dist/EventBus/defaultEventBus.d.ts +7 -0
  16. package/dist/EventBus/defaultEventBus.js +5 -0
  17. package/dist/EventBus/defaultEventBus.js.map +1 -0
  18. package/dist/components/ButtonBlock/ButtonBlock.js +2 -1
  19. package/dist/components/ButtonBlock/ButtonBlock.js.map +1 -1
  20. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +5 -1
  21. package/dist/components/Tabs/Tabs.js +4 -4
  22. package/dist/components/Tabs/Tabs.js.map +1 -1
  23. package/dist/hooks/useLink.js +2 -3
  24. package/dist/hooks/useLink.js.map +1 -1
  25. package/dist/hooks/useRouter.d.ts +6 -2
  26. package/dist/hooks/useRouter.js.map +1 -1
  27. package/dist/services/BlockRouter/BlockRouter.d.ts +3 -22
  28. package/dist/services/BlockRouter/BlockRouter.js +11 -30
  29. package/dist/services/BlockRouter/BlockRouter.js.map +1 -1
  30. package/dist/services/BlockRouter/blockRouterEventBus.d.ts +11 -0
  31. package/dist/services/BlockRouter/blockRouterEventBus.js +5 -0
  32. package/dist/services/BlockRouter/blockRouterEventBus.js.map +1 -0
  33. package/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +1 -2
  34. package/dist/services/BlockRouter/useBlockIntersectionObserver.js +5 -16
  35. package/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -1
  36. package/dist/services/BlockRouter/useBlockRouterProvider.d.ts +1 -2
  37. package/dist/services/BlockRouter/useBlockRouterProvider.js +11 -12
  38. package/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -1
  39. package/dist/ui-kit/BlockWrapper.js +2 -2
  40. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  41. package/lib/EventBus/EventBus.d.ts +1 -4
  42. package/lib/EventBus/EventBus.js +0 -1
  43. package/lib/EventBus/EventBus.js.map +1 -1
  44. package/lib/EventBus/defaultEventBus.d.ts +7 -0
  45. package/lib/EventBus/defaultEventBus.js +3 -0
  46. package/lib/EventBus/defaultEventBus.js.map +1 -0
  47. package/lib/common.css +1 -1
  48. package/lib/components/ButtonBlock/ButtonBlock.js +2 -1
  49. package/lib/components/ButtonBlock/ButtonBlock.js.map +1 -1
  50. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +5 -1
  51. package/lib/components/Tabs/Tabs.js +4 -4
  52. package/lib/components/Tabs/Tabs.js.map +1 -1
  53. package/lib/hooks/useLink.js +2 -3
  54. package/lib/hooks/useLink.js.map +1 -1
  55. package/lib/hooks/useRouter.d.ts +6 -2
  56. package/lib/hooks/useRouter.js.map +1 -1
  57. package/lib/services/BlockRouter/BlockRouter.d.ts +3 -22
  58. package/lib/services/BlockRouter/BlockRouter.js +8 -28
  59. package/lib/services/BlockRouter/BlockRouter.js.map +1 -1
  60. package/lib/services/BlockRouter/blockRouterEventBus.d.ts +11 -0
  61. package/lib/services/BlockRouter/blockRouterEventBus.js +3 -0
  62. package/lib/services/BlockRouter/blockRouterEventBus.js.map +1 -0
  63. package/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +1 -2
  64. package/lib/services/BlockRouter/useBlockIntersectionObserver.js +6 -17
  65. package/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -1
  66. package/lib/services/BlockRouter/useBlockRouterProvider.d.ts +1 -2
  67. package/lib/services/BlockRouter/useBlockRouterProvider.js +12 -13
  68. package/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -1
  69. package/lib/ui-kit/BlockWrapper.js +2 -2
  70. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  71. package/mobile/bundle/EventBus/EventBus.d.ts +1 -4
  72. package/mobile/bundle/EventBus/defaultEventBus.d.ts +7 -0
  73. package/mobile/bundle/bundle.umd.js +27 -62
  74. package/mobile/bundle/bundle.umd.min.js +1 -1
  75. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +5 -1
  76. package/mobile/bundle/hooks/useRouter.d.ts +6 -2
  77. package/mobile/bundle/services/BlockRouter/BlockRouter.d.ts +3 -22
  78. package/mobile/bundle/services/BlockRouter/blockRouterEventBus.d.ts +11 -0
  79. package/mobile/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +1 -2
  80. package/mobile/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +1 -2
  81. package/mobile/dist/EventBus/EventBus.d.ts +1 -4
  82. package/mobile/dist/EventBus/EventBus.js +0 -1
  83. package/mobile/dist/EventBus/EventBus.js.map +1 -1
  84. package/mobile/dist/EventBus/defaultEventBus.d.ts +7 -0
  85. package/mobile/dist/EventBus/defaultEventBus.js +5 -0
  86. package/mobile/dist/EventBus/defaultEventBus.js.map +1 -0
  87. package/mobile/dist/components/ButtonBlock/ButtonBlock.js +2 -1
  88. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +1 -1
  89. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +5 -1
  90. package/mobile/dist/components/Tabs/Tabs.js +4 -4
  91. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  92. package/mobile/dist/hooks/useLink.js +2 -3
  93. package/mobile/dist/hooks/useLink.js.map +1 -1
  94. package/mobile/dist/hooks/useRouter.d.ts +6 -2
  95. package/mobile/dist/hooks/useRouter.js.map +1 -1
  96. package/mobile/dist/services/BlockRouter/BlockRouter.d.ts +3 -22
  97. package/mobile/dist/services/BlockRouter/BlockRouter.js +11 -30
  98. package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -1
  99. package/mobile/dist/services/BlockRouter/blockRouterEventBus.d.ts +11 -0
  100. package/mobile/dist/services/BlockRouter/blockRouterEventBus.js +5 -0
  101. package/mobile/dist/services/BlockRouter/blockRouterEventBus.js.map +1 -0
  102. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +1 -2
  103. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js +5 -16
  104. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -1
  105. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.d.ts +1 -2
  106. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js +11 -12
  107. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -1
  108. package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
  109. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  110. package/mobile/lib/EventBus/EventBus.d.ts +1 -4
  111. package/mobile/lib/EventBus/EventBus.js +0 -1
  112. package/mobile/lib/EventBus/EventBus.js.map +1 -1
  113. package/mobile/lib/EventBus/defaultEventBus.d.ts +7 -0
  114. package/mobile/lib/EventBus/defaultEventBus.js +3 -0
  115. package/mobile/lib/EventBus/defaultEventBus.js.map +1 -0
  116. package/mobile/lib/components/ButtonBlock/ButtonBlock.js +2 -1
  117. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +1 -1
  118. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +5 -1
  119. package/mobile/lib/components/Tabs/Tabs.js +4 -4
  120. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  121. package/mobile/lib/hooks/useLink.js +2 -3
  122. package/mobile/lib/hooks/useLink.js.map +1 -1
  123. package/mobile/lib/hooks/useRouter.d.ts +6 -2
  124. package/mobile/lib/hooks/useRouter.js.map +1 -1
  125. package/mobile/lib/services/BlockRouter/BlockRouter.d.ts +3 -22
  126. package/mobile/lib/services/BlockRouter/BlockRouter.js +8 -28
  127. package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -1
  128. package/mobile/lib/services/BlockRouter/blockRouterEventBus.d.ts +11 -0
  129. package/mobile/lib/services/BlockRouter/blockRouterEventBus.js +3 -0
  130. package/mobile/lib/services/BlockRouter/blockRouterEventBus.js.map +1 -0
  131. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +1 -2
  132. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js +6 -17
  133. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -1
  134. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.d.ts +1 -2
  135. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js +12 -13
  136. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -1
  137. package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
  138. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  139. package/mobile/src/EventBus/EventBus.ts +1 -7
  140. package/mobile/src/EventBus/defaultEventBus.ts +8 -0
  141. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +2 -2
  142. package/mobile/src/components/ButtonBlock/ButtonBlock.tsx +5 -2
  143. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +5 -1
  144. package/mobile/src/components/Tabs/Tabs.tsx +4 -4
  145. package/mobile/src/hooks/useLink.ts +2 -3
  146. package/mobile/src/hooks/useRouter.ts +6 -2
  147. package/mobile/src/services/BlockRouter/BlockRouter.ts +8 -47
  148. package/mobile/src/services/BlockRouter/blockRouterEventBus.ts +13 -0
  149. package/mobile/src/services/BlockRouter/useBlockIntersectionObserver.ts +6 -23
  150. package/mobile/src/services/BlockRouter/useBlockRouterProvider.ts +13 -19
  151. package/mobile/src/ui-kit/BlockWrapper.tsx +2 -2
  152. package/package.json +1 -1
  153. package/src/EventBus/EventBus.ts +1 -7
  154. package/src/EventBus/defaultEventBus.ts +8 -0
  155. package/src/components/ButtonBlock/ButtonBlock.example.json +2 -2
  156. package/src/components/ButtonBlock/ButtonBlock.tsx +5 -2
  157. package/src/components/ButtonBlock/ButtonBlockContent.ts +5 -1
  158. package/src/components/Tabs/Tabs.tsx +4 -4
  159. package/src/hooks/useLink.ts +2 -3
  160. package/src/hooks/useRouter.ts +6 -2
  161. package/src/services/BlockRouter/BlockRouter.ts +8 -47
  162. package/src/services/BlockRouter/blockRouterEventBus.ts +13 -0
  163. package/src/services/BlockRouter/useBlockIntersectionObserver.ts +6 -23
  164. package/src/services/BlockRouter/useBlockRouterProvider.ts +13 -19
  165. package/src/ui-kit/BlockWrapper.tsx +2 -2
  166. package/bundle/EventBus/EventMap.d.ts +0 -4
  167. package/bundle/services/BlockRouter/useBlockRouter.d.ts +0 -2
  168. package/dist/EventBus/EventMap.d.ts +0 -4
  169. package/dist/EventBus/EventMap.js +0 -2
  170. package/dist/EventBus/EventMap.js.map +0 -1
  171. package/dist/services/BlockRouter/useBlockRouter.d.ts +0 -2
  172. package/dist/services/BlockRouter/useBlockRouter.js +0 -8
  173. package/dist/services/BlockRouter/useBlockRouter.js.map +0 -1
  174. package/lib/EventBus/EventMap.d.ts +0 -4
  175. package/lib/EventBus/EventMap.js +0 -2
  176. package/lib/EventBus/EventMap.js.map +0 -1
  177. package/lib/services/BlockRouter/useBlockRouter.d.ts +0 -2
  178. package/lib/services/BlockRouter/useBlockRouter.js +0 -5
  179. package/lib/services/BlockRouter/useBlockRouter.js.map +0 -1
  180. package/mobile/bundle/EventBus/EventMap.d.ts +0 -4
  181. package/mobile/bundle/services/BlockRouter/useBlockRouter.d.ts +0 -2
  182. package/mobile/dist/EventBus/EventMap.d.ts +0 -4
  183. package/mobile/dist/EventBus/EventMap.js +0 -2
  184. package/mobile/dist/EventBus/EventMap.js.map +0 -1
  185. package/mobile/dist/services/BlockRouter/useBlockRouter.d.ts +0 -2
  186. package/mobile/dist/services/BlockRouter/useBlockRouter.js +0 -8
  187. package/mobile/dist/services/BlockRouter/useBlockRouter.js.map +0 -1
  188. package/mobile/lib/EventBus/EventMap.d.ts +0 -4
  189. package/mobile/lib/EventBus/EventMap.js +0 -2
  190. package/mobile/lib/EventBus/EventMap.js.map +0 -1
  191. package/mobile/lib/services/BlockRouter/useBlockRouter.d.ts +0 -2
  192. package/mobile/lib/services/BlockRouter/useBlockRouter.js +0 -5
  193. package/mobile/lib/services/BlockRouter/useBlockRouter.js.map +0 -1
  194. package/mobile/src/EventBus/EventMap.ts +0 -5
  195. package/mobile/src/services/BlockRouter/useBlockRouter.ts +0 -5
  196. package/src/EventBus/EventMap.ts +0 -5
  197. package/src/services/BlockRouter/useBlockRouter.ts +0 -5
@@ -1,10 +1,14 @@
1
+ interface RouterOptions {
2
+ scroll?: boolean;
3
+ }
4
+
1
5
  export interface Router {
2
6
  pathname: string;
3
7
  query: Record<string, string | string[] | undefined>;
4
8
  href?: string;
5
9
  basePath?: string;
6
- push: (url: string) => void;
7
- replace: (url: string) => void;
10
+ push: (url: string, as?: string, options?: RouterOptions) => void;
11
+ replace: (url: string, as?: string, options?: RouterOptions) => void;
8
12
  }
9
13
 
10
14
  export function useRouter(): Router {
@@ -1,53 +1,14 @@
1
- import { EventBus } from '../../EventBus/EventBus';
1
+ import type { Router } from '../../hooks/useRouter';
2
2
  import type { BlockDef } from '../../model/ContentPageDef';
3
3
 
4
- export interface GotoAnchorEvent {
5
- anchor: string;
6
- }
7
-
8
- export interface BlockIntersectionEvent {
9
- block: BlockDef;
10
- intersection: IntersectionObserverEntry;
11
- }
4
+ const normalizeAnchor = (anchor?: string) => anchor?.replace('#', '') || '';
12
5
 
13
- interface EventMap {
14
- goto: GotoAnchorEvent;
15
- intersection: BlockIntersectionEvent;
6
+ export function gotoBlock(router: Router, anchor?: string) {
7
+ router.replace(`#${normalizeAnchor(anchor)}`);
16
8
  }
17
9
 
18
- const normalizeAnchor = (rawAnchor?: string) => rawAnchor?.replace('#', '') || '';
19
- const getURLWithAnchor = (rawAnchor?: string) =>
20
- `${globalThis.location?.pathname}#${normalizeAnchor(rawAnchor)}`;
21
-
22
- export class BlockRouter {
23
- public static readonly inst = new BlockRouter();
24
-
25
- readonly eventBus = new EventBus<EventMap>();
26
-
27
- constructor() {
28
- const anchor = normalizeAnchor(globalThis.location?.hash);
29
- if (anchor) {
30
- this.eventBus.subject('goto', { anchor });
31
- }
32
- }
33
-
34
- goto(rawAnchor?: string) {
35
- const anchor = normalizeAnchor(rawAnchor);
36
- if (anchor) {
37
- this.push(anchor);
38
- this.eventBus.fire('goto', { anchor });
39
- }
40
- }
41
-
42
- push(rawAnchor: string) {
43
- globalThis.history?.pushState(null, '', getURLWithAnchor(rawAnchor));
44
- }
45
-
46
- replace(rawAnchor: string) {
47
- globalThis.history?.replaceState(null, '', getURLWithAnchor(rawAnchor));
48
- }
49
-
50
- reset() {
51
- globalThis.history?.replaceState(null, '', getURLWithAnchor());
52
- }
10
+ export function trackBlock(router: Router, block?: BlockDef) {
11
+ router.replace(`#${normalizeAnchor(block?.anchor)}`, undefined, {
12
+ scroll: false,
13
+ });
53
14
  }
@@ -0,0 +1,13 @@
1
+ import { EventBus } from '../../EventBus/EventBus';
2
+ import type { BlockDef } from '../../model/ContentPageDef';
3
+
4
+ export interface BlockIntersectionEvent {
5
+ block: BlockDef;
6
+ intersection: IntersectionObserverEntry;
7
+ }
8
+
9
+ interface EventMap {
10
+ intersection: BlockIntersectionEvent;
11
+ }
12
+
13
+ export const blockRouterEventBus = new EventBus<EventMap>();
@@ -1,12 +1,9 @@
1
- import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
1
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
2
  import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
3
3
  import type { BlockDef } from '../../model/ContentPageDef';
4
- import { BlockRouter } from './BlockRouter';
4
+ import { blockRouterEventBus } from './blockRouterEventBus';
5
5
 
6
- export function useBlockIntersectionObserver(
7
- block?: BlockDef,
8
- router: BlockRouter = BlockRouter.inst,
9
- ) {
6
+ export function useBlockIntersectionObserver(block?: BlockDef) {
10
7
  const observerCallback = useCallback(
11
8
  (entries: IntersectionObserverEntry[]) => {
12
9
  if (!block || !entries?.length) {
@@ -14,24 +11,10 @@ export function useBlockIntersectionObserver(
14
11
  }
15
12
 
16
13
  const intersection = entries[entries.length - 1];
17
- router.eventBus.fire('intersection', { block, intersection });
14
+ blockRouterEventBus.fire('intersection', { block, intersection });
18
15
  },
19
- [block, router],
16
+ [block],
20
17
  );
21
18
 
22
- const ref = useIntersectionObserver(observerCallback, { sensitivity: 1 });
23
-
24
- useEffect(() => {
25
- if (!ref.current) {
26
- return undefined;
27
- }
28
-
29
- return router.eventBus.subscribe('goto', ({ anchor }) => {
30
- if (ref.current && block?.anchor === anchor) {
31
- ref.current.scrollIntoView({ behavior: 'smooth', block: 'start' });
32
- }
33
- });
34
- }, [block, router]);
35
-
36
- return ref;
19
+ return useIntersectionObserver(observerCallback, { sensitivity: 1 });
37
20
  }
@@ -1,41 +1,35 @@
1
1
  import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useRouter } from '../../hooks/useRouter';
2
3
  import type { BlockDef } from '../../model/ContentPageDef';
3
4
  import { debounce } from '../../utils/debounce';
4
- import { BlockRouter } from './BlockRouter';
5
+ import { trackBlock } from './BlockRouter';
6
+ import { blockRouterEventBus } from './blockRouterEventBus';
5
7
  import { findActiveBlock } from './findActiveBlock';
6
8
 
7
9
  const isScrolledEnough = () => globalThis.scrollY > (globalThis.innerHeight * 3) / 4;
8
10
 
9
- export function useBlockRouterProvider(
10
- router: BlockRouter = BlockRouter.inst,
11
- scrollTarget: EventTarget = globalThis,
12
- ) {
11
+ export function useBlockRouterProvider(scrollTarget: EventTarget = globalThis) {
12
+ const router = useRouter();
13
+
13
14
  const intersectionsMapRef = useRef<Map<BlockDef, IntersectionObserverEntry>>(new Map());
14
15
 
15
16
  useEffect(
16
17
  () =>
17
- router.eventBus.subscribe('intersection', ({ block, intersection }) => {
18
+ blockRouterEventBus.subscribe('intersection', ({ block, intersection }) => {
18
19
  if (intersectionsMapRef.current) {
19
20
  intersectionsMapRef.current.set(block, intersection);
20
21
  }
21
22
  }),
22
- [router],
23
+ [],
23
24
  );
24
25
 
25
26
  useEffect(() => {
26
27
  const handleScroll = debounce(() => {
27
- if (!isScrolledEnough()) {
28
- router.reset();
29
-
30
- return;
31
- }
32
-
33
- const activeBlock = findActiveBlock([...(intersectionsMapRef.current || [])]);
34
-
35
- if (activeBlock?.anchor) {
36
- router.replace(activeBlock.anchor);
37
- } else if (!activeBlock) {
38
- router.reset();
28
+ if (isScrolledEnough()) {
29
+ const activeBlock = findActiveBlock([...(intersectionsMapRef.current || [])]);
30
+ trackBlock(router, activeBlock);
31
+ } else {
32
+ trackBlock(router);
39
33
  }
40
34
  }, 100);
41
35
 
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { EventBus } from '../EventBus/EventBus';
3
+ import { defaultEventBus } from '../EventBus/defaultEventBus';
4
4
  import type { BlockVersion } from '../model/BlockVersion';
5
5
  import type { UniBlockProps } from '../model/JSXBlock';
6
6
  import { useBlockIntersectionObserver } from '../services/BlockRouter/useBlockIntersectionObserver';
@@ -28,7 +28,7 @@ export const BlockWrapper = JSX<BlockWrapperProps>(
28
28
  const [isVisible, setVisible] = useState(true);
29
29
  useEffect(
30
30
  () =>
31
- EventBus.inst.subscribe('tab', (event) => {
31
+ defaultEventBus.subscribe('tab', (event) => {
32
32
  if (event.type === 'group') {
33
33
  const hasSettings = block?.labels?.length || block?.anchor;
34
34
  setVisible(
@@ -1,4 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
- export interface EventMap {
3
- tab: TabActivationEvent;
4
- }
@@ -1,2 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
- export declare function useBlockRouter(): BlockRouter;
@@ -1,4 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
- export interface EventMap {
3
- tab: TabActivationEvent;
4
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=EventMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventMap.js","sourceRoot":"","sources":["../../src/EventBus/EventMap.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
- export declare function useBlockRouter(): BlockRouter;
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useBlockRouter = void 0;
3
- const BlockRouter_1 = require("./BlockRouter");
4
- function useBlockRouter() {
5
- return BlockRouter_1.BlockRouter.inst;
6
- }
7
- exports.useBlockRouter = useBlockRouter;
8
- //# sourceMappingURL=useBlockRouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBlockRouter.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouter.ts"],"names":[],"mappings":";;AAAA,+CAA4C;AAE5C,SAAgB,cAAc;IAC5B,OAAO,yBAAW,CAAC,IAAI,CAAC;AAC1B,CAAC;AAFD,wCAEC"}
@@ -1,4 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
- export interface EventMap {
3
- tab: TabActivationEvent;
4
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=EventMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventMap.js","sourceRoot":"","sources":["../../src/EventBus/EventMap.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
- export declare function useBlockRouter(): BlockRouter;
@@ -1,5 +0,0 @@
1
- import { BlockRouter } from './BlockRouter.js';
2
- export function useBlockRouter() {
3
- return BlockRouter.inst;
4
- }
5
- //# sourceMappingURL=useBlockRouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBlockRouter.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC,IAAI,CAAC;AAC1B,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
- export interface EventMap {
3
- tab: TabActivationEvent;
4
- }
@@ -1,2 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
- export declare function useBlockRouter(): BlockRouter;
@@ -1,4 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
- export interface EventMap {
3
- tab: TabActivationEvent;
4
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=EventMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventMap.js","sourceRoot":"","sources":["../../src/EventBus/EventMap.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
- export declare function useBlockRouter(): BlockRouter;
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useBlockRouter = void 0;
3
- const BlockRouter_1 = require("./BlockRouter");
4
- function useBlockRouter() {
5
- return BlockRouter_1.BlockRouter.inst;
6
- }
7
- exports.useBlockRouter = useBlockRouter;
8
- //# sourceMappingURL=useBlockRouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBlockRouter.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouter.ts"],"names":[],"mappings":";;AAAA,+CAA4C;AAE5C,SAAgB,cAAc;IAC5B,OAAO,yBAAW,CAAC,IAAI,CAAC;AAC1B,CAAC;AAFD,wCAEC"}
@@ -1,4 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
- export interface EventMap {
3
- tab: TabActivationEvent;
4
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=EventMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventMap.js","sourceRoot":"","sources":["../../src/EventBus/EventMap.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
- export declare function useBlockRouter(): BlockRouter;
@@ -1,5 +0,0 @@
1
- import { BlockRouter } from './BlockRouter.js';
2
- export function useBlockRouter() {
3
- return BlockRouter.inst;
4
- }
5
- //# sourceMappingURL=useBlockRouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBlockRouter.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC,IAAI,CAAC;AAC1B,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
-
3
- export interface EventMap {
4
- tab: TabActivationEvent;
5
- }
@@ -1,5 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
-
3
- export function useBlockRouter(): BlockRouter {
4
- return BlockRouter.inst;
5
- }
@@ -1,5 +0,0 @@
1
- import type { TabActivationEvent } from '../components/Tabs/Tabs';
2
-
3
- export interface EventMap {
4
- tab: TabActivationEvent;
5
- }
@@ -1,5 +0,0 @@
1
- import { BlockRouter } from './BlockRouter';
2
-
3
- export function useBlockRouter(): BlockRouter {
4
- return BlockRouter.inst;
5
- }