@prose-reader/core 1.194.0 → 1.195.0

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.
@@ -1,4 +1,4 @@
1
- export declare const isHtmlElement: (element?: Element | Node | null | EventTarget) => element is HTMLElement;
1
+ export declare const isHtmlElement: (element?: unknown) => element is HTMLElement;
2
2
  type ViewPort = {
3
3
  left: number;
4
4
  right: number;
@@ -19,4 +19,5 @@ export declare const isTouchEvent: (event: Event) => event is TouchEvent;
19
19
  export declare const noopElement: () => HTMLDivElement;
20
20
  export declare const getElementsWithAssets: (_document: Document | null | undefined) => Element[];
21
21
  export declare const revokeDocumentBlobs: (_document: Document | null | undefined) => void;
22
+ export declare function isHtmlTagElement<K extends keyof HTMLElementTagNameMap>(element: unknown, tagName: K): element is HTMLElementTagNameMap[K];
22
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prose-reader/core",
3
- "version": "1.194.0",
3
+ "version": "1.195.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "tsc": "tsc"
24
24
  },
25
25
  "dependencies": {
26
- "@prose-reader/shared": "^1.194.0"
26
+ "@prose-reader/shared": "^1.195.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "rxjs": "*"
@@ -31,5 +31,5 @@
31
31
  "devDependencies": {
32
32
  "happy-dom": "^17.1.0"
33
33
  },
34
- "gitHead": "dc135bf96a3e9f6bc08a072cdc2a906f8482a3b6"
34
+ "gitHead": "25b15357887d35277e9fdfe13893ee52ae960d84"
35
35
  }
@@ -1,14 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { EnhancerOptions, EnhancerOutput, RootEnhancer } from './types/enhancer';
3
- import { NavigationEnhancerOutput } from './navigation/types';
4
- type SubjectData = {
5
- event: `linkClicked`;
6
- data: HTMLAnchorElement;
7
- isNavigable: boolean;
8
- };
9
- export declare const linksEnhancer: <InheritOptions extends EnhancerOptions<RootEnhancer>, InheritOutput extends EnhancerOutput<RootEnhancer> & NavigationEnhancerOutput>(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => InheritOutput & {
10
- $: {
11
- links$: Observable<SubjectData>;
12
- };
13
- };
14
- export {};