@prose-reader/core 0.0.39 → 0.0.43

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.
@@ -117,7 +117,7 @@ export declare const createLocationResolver: ({ spineItemManager, context, spine
117
117
  computedWidthScale: number;
118
118
  viewportDimensions?: undefined;
119
119
  };
120
- isImageType: () => boolean | undefined;
120
+ isImageType: () => boolean;
121
121
  isReady: () => boolean;
122
122
  destroy: () => void;
123
123
  isUsingVerticalWriting: () => boolean | undefined;
@@ -286,7 +286,7 @@ export declare const createLocationResolver: ({ spineItemManager, context, spine
286
286
  computedWidthScale: number;
287
287
  viewportDimensions?: undefined;
288
288
  };
289
- isImageType: () => boolean | undefined;
289
+ isImageType: () => boolean;
290
290
  isReady: () => boolean;
291
291
  destroy: () => void;
292
292
  isUsingVerticalWriting: () => boolean | undefined;
@@ -92,7 +92,7 @@ export declare const createCommonSpineItem: ({ item, context, parentElement, ifr
92
92
  computedWidthScale: number;
93
93
  viewportDimensions?: undefined;
94
94
  };
95
- isImageType: () => boolean | undefined;
95
+ isImageType: () => boolean;
96
96
  isReady: () => boolean;
97
97
  destroy: () => void;
98
98
  isUsingVerticalWriting: () => boolean | undefined;
@@ -100,7 +100,7 @@ export declare const createSpineItem: ({ item, context, containerElement, iframe
100
100
  computedWidthScale: number;
101
101
  viewportDimensions?: undefined;
102
102
  };
103
- isImageType: () => boolean | undefined;
103
+ isImageType: () => boolean;
104
104
  isReady: () => boolean;
105
105
  destroy: () => void;
106
106
  isUsingVerticalWriting: () => boolean | undefined;
@@ -267,7 +267,7 @@ export declare const createSpineItem: ({ item, context, containerElement, iframe
267
267
  computedWidthScale: number;
268
268
  viewportDimensions?: undefined;
269
269
  };
270
- isImageType: () => boolean | undefined;
270
+ isImageType: () => boolean;
271
271
  isReady: () => boolean;
272
272
  destroy: () => void;
273
273
  isUsingVerticalWriting: () => boolean | undefined;
@@ -95,7 +95,7 @@ export declare const createPrePaginatedSpineItem: ({ item, context, containerEle
95
95
  computedWidthScale: number;
96
96
  viewportDimensions?: undefined;
97
97
  };
98
- isImageType: () => boolean | undefined;
98
+ isImageType: () => boolean;
99
99
  isReady: () => boolean;
100
100
  destroy: () => void;
101
101
  isUsingVerticalWriting: () => boolean | undefined;
@@ -94,7 +94,7 @@ export declare const createReflowableSpineItem: ({ item, context, containerEleme
94
94
  computedWidthScale: number;
95
95
  viewportDimensions?: undefined;
96
96
  };
97
- isImageType: () => boolean | undefined;
97
+ isImageType: () => boolean;
98
98
  isReady: () => boolean;
99
99
  destroy: () => void;
100
100
  isUsingVerticalWriting: () => boolean | undefined;
@@ -126,7 +126,7 @@ export declare const createSpineItemManager: ({ context }: {
126
126
  computedWidthScale: number;
127
127
  viewportDimensions?: undefined;
128
128
  };
129
- isImageType: () => boolean | undefined;
129
+ isImageType: () => boolean;
130
130
  isReady: () => boolean;
131
131
  destroy: () => void;
132
132
  isUsingVerticalWriting: () => boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prose-reader/core",
3
- "version": "0.0.39",
3
+ "version": "0.0.43",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -9,7 +9,7 @@
9
9
  "scripts": {
10
10
  "start": "concurrently -n src,types \"yarn start-src\" \"yarn start-types\"",
11
11
  "start-src": "NODE_ENV=development webpack build --config ./webpack.config.js --watch",
12
- "start-types": "yarn tsc -w --declaration --noEmit false --emitDeclarationOnly",
12
+ "start-types": "yarn tsc -w --preserveWatchOutput --declaration --noEmit false --emitDeclarationOnly",
13
13
  "build": "NODE_ENV=development webpack build --config ./webpack.config.js && yarn build-types",
14
14
  "build-types": "yarn tsc --declaration --noEmit false --emitDeclarationOnly",
15
15
  "build:prod": "NODE_ENV=production webpack build --config ./webpack.config.js",
@@ -18,7 +18,7 @@
18
18
  "tsc": "tsc"
19
19
  },
20
20
  "dependencies": {
21
- "@prose-reader/shared": "^0.0.5"
21
+ "@prose-reader/shared": "^0.0.6"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "rxjs": "*"
@@ -26,18 +26,18 @@
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.0.0",
28
28
  "@typescript-eslint/parser": "^5.0.0",
29
- "concurrently": "^6.3.0",
29
+ "concurrently": "^6.5.1",
30
30
  "eslint": "^7.32.0",
31
31
  "eslint-config-standard": "^16.0.3",
32
32
  "eslint-plugin-import": "^2.25.2",
33
- "eslint-plugin-jest": "^25.3.0",
33
+ "eslint-plugin-jest": "^25.3.2",
34
34
  "html-webpack-plugin": "^5.5.0",
35
- "terser-webpack-plugin": "^5.2.5",
35
+ "terser-webpack-plugin": "^5.3.0",
36
36
  "ts-loader": "^9.2.6",
37
37
  "typescript": "*",
38
- "webpack": "^5.64.3",
38
+ "webpack": "^5.65.0",
39
39
  "webpack-bundle-analyzer": "^4.5.0",
40
40
  "webpack-cli": "^4.9.1"
41
41
  },
42
- "gitHead": "09308ddf45d3232af6b0b90007272d1d4f1699c3"
42
+ "gitHead": "21ca4ff1a57ca4959bf81d65541294fc425873c1"
43
43
  }
@@ -1,2 +0,0 @@
1
- export declare const detectContentType: (name: string) => "image/png" | "image/jpg" | "image/jpeg" | "text/plain" | "image/webp" | undefined;
2
- export declare const parseContentType: (str: string) => string | undefined;
@@ -1 +0,0 @@
1
- export declare const getUrlExtension: (url: string) => string;