@edgepdf/viewer-react 0.0.11 → 0.0.13
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/{styles.css → index.css} +609 -720
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3312 -331
- package/dist/lib/use-markers.d.ts +2 -2
- package/package.json +3 -21
|
@@ -41,7 +41,7 @@ export interface UseMarkersReturn {
|
|
|
41
41
|
* x: 100,
|
|
42
42
|
* y: 200,
|
|
43
43
|
* zoom: 1,
|
|
44
|
-
*
|
|
44
|
+
* label: 'New Marker'
|
|
45
45
|
* });
|
|
46
46
|
* };
|
|
47
47
|
*
|
|
@@ -50,7 +50,7 @@ export interface UseMarkersReturn {
|
|
|
50
50
|
* <button onClick={handleAddMarker}>Add Marker</button>
|
|
51
51
|
* {markers.map(marker => (
|
|
52
52
|
* <div key={marker.id}>
|
|
53
|
-
* {marker.
|
|
53
|
+
* {marker.label}
|
|
54
54
|
* <button onClick={() => removeMarker(marker.id)}>Remove</button>
|
|
55
55
|
* </div>
|
|
56
56
|
* ))}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgepdf/viewer-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "EdgePDF Viewer - React components for viewing PDF documents with interactive markers and zoom controls",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"style": "./dist/index.css",
|
|
9
10
|
"license": "MIT",
|
|
10
11
|
"repository": {
|
|
11
12
|
"type": "git",
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"require": "./dist/index.js",
|
|
34
35
|
"default": "./dist/index.js"
|
|
35
36
|
},
|
|
36
|
-
"./
|
|
37
|
+
"./index.css": "./dist/index.css"
|
|
37
38
|
},
|
|
38
39
|
"sideEffects": [
|
|
39
40
|
"./dist/index.js",
|
|
@@ -43,25 +44,6 @@
|
|
|
43
44
|
"dist",
|
|
44
45
|
"!**/*.tsbuildinfo"
|
|
45
46
|
],
|
|
46
|
-
"nx": {
|
|
47
|
-
"targets": {
|
|
48
|
-
"build": {
|
|
49
|
-
"executor": "@nx/esbuild:esbuild",
|
|
50
|
-
"outputs": [
|
|
51
|
-
"{options.outputPath}"
|
|
52
|
-
],
|
|
53
|
-
"options": {
|
|
54
|
-
"outputPath": "packages/viewer-react/dist",
|
|
55
|
-
"main": "packages/viewer-react/src/index.ts",
|
|
56
|
-
"tsConfig": "packages/viewer-react/tsconfig.lib.json",
|
|
57
|
-
"format": [
|
|
58
|
-
"esm"
|
|
59
|
-
],
|
|
60
|
-
"declarationRootDir": "packages/viewer-react/src"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
47
|
"dependencies": {},
|
|
66
48
|
"devDependencies": {
|
|
67
49
|
"@edgepdf/viewer-js": "workspace:*",
|