@vertexvis/doc-viewer-react 0.24.5-canary.8 → 1.0.0-testing.6

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.
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('@stencil/react-output-target/runtime');
6
+ var React = require('react');
7
+ var vertexDocumentViewer_js = require('@vertexvis/doc-viewer/dist/components/vertex-document-viewer.js');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
+
13
+ const VertexDocumentViewer = /*@__PURE__*/ runtime.createComponent({
14
+ tagName: 'vertex-document-viewer',
15
+ elementClass: vertexDocumentViewer_js.VertexDocumentViewer,
16
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
17
+ react: React__default["default"],
18
+ events: {
19
+ onDocumentReady: 'documentReady',
20
+ onDocumentStateChanged: 'documentStateChanged',
21
+ onPageLoaded: 'pageLoaded',
22
+ onPageDrawn: 'pageDrawn'
23
+ },
24
+ defineCustomElement: vertexDocumentViewer_js.defineCustomElement
25
+ });
26
+
27
+ exports.VertexDocumentViewer = VertexDocumentViewer;
28
+ //# sourceMappingURL=bundle.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.cjs","sources":["../src/generated/components.ts"],"sourcesContent":["'use client';\n\n/**\n * This file was automatically generated by the Stencil React Output Target.\n * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/* eslint-disable */\n\nimport type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';\nimport { createComponent } from '@stencil/react-output-target/runtime';\nimport React from 'react';\n\nimport { type DocumentApiState, type VertexDocumentViewerCustomEvent } from \"@vertexvis/doc-viewer\";\nimport type { Components } from \"@vertexvis/doc-viewer/dist/components\";\nimport { VertexDocumentViewer as VertexDocumentViewerElement, defineCustomElement as defineVertexDocumentViewer } from \"@vertexvis/doc-viewer/dist/components/vertex-document-viewer.js\";\n\nexport type VertexDocumentViewerEvents = {\n onDocumentReady: EventName<VertexDocumentViewerCustomEvent<void>>,\n onDocumentStateChanged: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>,\n onPageLoaded: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>,\n onPageDrawn: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>\n};\n\nexport const VertexDocumentViewer: StencilReactComponent<VertexDocumentViewerElement, VertexDocumentViewerEvents, Components.VertexDocumentViewer> = /*@__PURE__*/ createComponent<VertexDocumentViewerElement, VertexDocumentViewerEvents, Components.VertexDocumentViewer>({\n tagName: 'vertex-document-viewer',\n elementClass: VertexDocumentViewerElement,\n // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.\n react: React,\n events: {\n onDocumentReady: 'documentReady',\n onDocumentStateChanged: 'documentStateChanged',\n onPageLoaded: 'pageLoaded',\n onPageDrawn: 'pageDrawn'\n } as VertexDocumentViewerEvents,\n defineCustomElement: defineVertexDocumentViewer\n});\n"],"names":["createComponent","VertexDocumentViewerElement","React","defineVertexDocumentViewer"],"mappings":";;;;;;;;;;;;AAwBa,MAAA,oBAAoB,iBAAkIA,uBAAe,CAA2F;AACzQ,IAAA,OAAO,EAAE,wBAAwB;AACjC,IAAA,YAAY,EAAEC,4CAA2B;;AAEzC,IAAA,KAAK,EAAEC,yBAAK;AACZ,IAAA,MAAM,EAAE;AACJ,QAAA,eAAe,EAAE,eAAe;AAChC,QAAA,sBAAsB,EAAE,sBAAsB;AAC9C,QAAA,YAAY,EAAE,YAAY;AAC1B,QAAA,WAAW,EAAE,WAAW;AACG,KAAA;AAC/B,IAAA,mBAAmB,EAAEC,2CAA0B;AAClD,CAAA;;;;"}
package/dist/bundle.js ADDED
@@ -0,0 +1,20 @@
1
+ import { createComponent } from '@stencil/react-output-target/runtime';
2
+ import React from 'react';
3
+ import { VertexDocumentViewer as VertexDocumentViewer$1, defineCustomElement } from '@vertexvis/doc-viewer/dist/components/vertex-document-viewer.js';
4
+
5
+ const VertexDocumentViewer = /*@__PURE__*/ createComponent({
6
+ tagName: 'vertex-document-viewer',
7
+ elementClass: VertexDocumentViewer$1,
8
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
9
+ react: React,
10
+ events: {
11
+ onDocumentReady: 'documentReady',
12
+ onDocumentStateChanged: 'documentStateChanged',
13
+ onPageLoaded: 'pageLoaded',
14
+ onPageDrawn: 'pageDrawn'
15
+ },
16
+ defineCustomElement: defineCustomElement
17
+ });
18
+
19
+ export { VertexDocumentViewer };
20
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.js","sources":["../src/generated/components.ts"],"sourcesContent":["'use client';\n\n/**\n * This file was automatically generated by the Stencil React Output Target.\n * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/* eslint-disable */\n\nimport type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';\nimport { createComponent } from '@stencil/react-output-target/runtime';\nimport React from 'react';\n\nimport { type DocumentApiState, type VertexDocumentViewerCustomEvent } from \"@vertexvis/doc-viewer\";\nimport type { Components } from \"@vertexvis/doc-viewer/dist/components\";\nimport { VertexDocumentViewer as VertexDocumentViewerElement, defineCustomElement as defineVertexDocumentViewer } from \"@vertexvis/doc-viewer/dist/components/vertex-document-viewer.js\";\n\nexport type VertexDocumentViewerEvents = {\n onDocumentReady: EventName<VertexDocumentViewerCustomEvent<void>>,\n onDocumentStateChanged: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>,\n onPageLoaded: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>,\n onPageDrawn: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>\n};\n\nexport const VertexDocumentViewer: StencilReactComponent<VertexDocumentViewerElement, VertexDocumentViewerEvents, Components.VertexDocumentViewer> = /*@__PURE__*/ createComponent<VertexDocumentViewerElement, VertexDocumentViewerEvents, Components.VertexDocumentViewer>({\n tagName: 'vertex-document-viewer',\n elementClass: VertexDocumentViewerElement,\n // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.\n react: React,\n events: {\n onDocumentReady: 'documentReady',\n onDocumentStateChanged: 'documentStateChanged',\n onPageLoaded: 'pageLoaded',\n onPageDrawn: 'pageDrawn'\n } as VertexDocumentViewerEvents,\n defineCustomElement: defineVertexDocumentViewer\n});\n"],"names":["VertexDocumentViewerElement","defineVertexDocumentViewer"],"mappings":";;;;AAwBa,MAAA,oBAAoB,iBAAkI,eAAe,CAA2F;AACzQ,IAAA,OAAO,EAAE,wBAAwB;AACjC,IAAA,YAAY,EAAEA,sBAA2B;;AAEzC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACJ,QAAA,eAAe,EAAE,eAAe;AAChC,QAAA,sBAAsB,EAAE,sBAAsB;AAC9C,QAAA,YAAY,EAAE,YAAY;AAC1B,QAAA,WAAW,EAAE,WAAW;AACG,KAAA;AAC/B,IAAA,mBAAmB,EAAEC,mBAA0B;AAClD,CAAA;;;;"}
@@ -1,14 +1,15 @@
1
- /**
2
- * This file was automatically generated by the Stencil React Output Target.
3
- * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
- */
5
- import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
- import { type DocumentApiState, type VertexDocumentViewerCustomEvent } from "@vertexvis/doc-viewer";
7
- import { VertexDocumentViewer as VertexDocumentViewerElement } from "@vertexvis/doc-viewer/dist/components/vertex-document-viewer.js";
8
- export declare type VertexDocumentViewerEvents = {
9
- onDocumentReady: EventName<VertexDocumentViewerCustomEvent<void>>;
10
- onDocumentStateChanged: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>;
11
- onPageLoaded: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>;
12
- onPageDrawn: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>;
13
- };
14
- export declare const VertexDocumentViewer: StencilReactComponent<VertexDocumentViewerElement, VertexDocumentViewerEvents>;
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
+ import { type DocumentApiState, type VertexDocumentViewerCustomEvent } from "@vertexvis/doc-viewer";
7
+ import type { Components } from "@vertexvis/doc-viewer/dist/components";
8
+ import { VertexDocumentViewer as VertexDocumentViewerElement } from "@vertexvis/doc-viewer/dist/components/vertex-document-viewer.js";
9
+ export type VertexDocumentViewerEvents = {
10
+ onDocumentReady: EventName<VertexDocumentViewerCustomEvent<void>>;
11
+ onDocumentStateChanged: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>;
12
+ onPageLoaded: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>;
13
+ onPageDrawn: EventName<VertexDocumentViewerCustomEvent<DocumentApiState>>;
14
+ };
15
+ export declare const VertexDocumentViewer: StencilReactComponent<VertexDocumentViewerElement, VertexDocumentViewerEvents, Components.VertexDocumentViewer>;
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './generated/components';
1
+ export * from './generated/components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/doc-viewer-react",
3
- "version": "0.24.5-canary.8",
3
+ "version": "1.0.0-testing.6",
4
4
  "description": "React bindings for the Vertex Document Viewer SDK.",
5
5
  "license": "MIT",
6
6
  "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
@@ -33,8 +33,8 @@
33
33
  "test:coverage": "echo 'No unit tests defined'"
34
34
  },
35
35
  "dependencies": {
36
- "@stencil/react-output-target": "^1.4.2",
37
- "@vertexvis/doc-viewer": "0.24.5-canary.8"
36
+ "@stencil/react-output-target": "^1.5.2",
37
+ "@vertexvis/doc-viewer": "1.0.0-testing.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/react": "^18.2.48",
@@ -43,12 +43,12 @@
43
43
  "eslint": "^8.57.1",
44
44
  "react": "^18.2.0",
45
45
  "react-dom": "^18.2.0",
46
- "tslib": "^2.1.0"
46
+ "tslib": "^2.4.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "react": ">=16.3.0 <19.0.0",
50
- "react-dom": ">=16.3.0 <19.0.0",
51
- "tslib": ">=2.1.0"
49
+ "react": ">=17.0.1 <20.0.0",
50
+ "react-dom": ">=17.0.1 <20.0.0",
51
+ "tslib": ">=2.4.0"
52
52
  },
53
- "gitHead": "7441ddc2aa6f5d4a2afb43b4c54300d64c3ac5fe"
53
+ "gitHead": "a8329ea263dfc2c983da1b50655e3cf05c28e7d9"
54
54
  }