@mappedin/viewer 0.0.0-alpha

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/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@mappedin/viewer",
3
+ "version": "0.0.0-alpha",
4
+ "type": "module",
5
+ "browser": "./dist/index.js",
6
+ "license": "UNLICENSED",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "require": "./dist/index.umd.cjs",
11
+ "types": "./types/src/index.d.ts"
12
+ }
13
+ },
14
+ "volta": {
15
+ "extends": "../../package.json"
16
+ },
17
+ "dependencies": {
18
+ "@mappedin/mappedin-js": "^5.16.1-fe0354d.0",
19
+ "react": "^18.2.0",
20
+ "react-dom": "^18.2.0",
21
+ "styled-components": "^6.0.7"
22
+ },
23
+ "devDependencies": {
24
+ "@testing-library/react-hooks": "^8.0.1",
25
+ "@types/react": "^18.2.15",
26
+ "@types/react-dom": "^18.2.7",
27
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
28
+ "@typescript-eslint/parser": "^6.0.0",
29
+ "@vitejs/plugin-react": "^4.0.3",
30
+ "@vitest/coverage-istanbul": "^0.34.1",
31
+ "eslint": "^8.45.0",
32
+ "eslint-plugin-react-hooks": "^4.6.0",
33
+ "eslint-plugin-react-refresh": "^0.4.3",
34
+ "happy-dom": "^10.9.0",
35
+ "typescript": "^5.0.2",
36
+ "vite": "^4.4.5",
37
+ "vite-plugin-css-injected-by-js": "^3.3.0",
38
+ "vitest": "^0.34.1"
39
+ },
40
+ "scripts": {
41
+ "dev": "vite",
42
+ "build": "vite build && tsc",
43
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
44
+ "preview": "vite preview",
45
+ "test": "cross-env NODE_ENV=test vitest run",
46
+ "test:watch": "cross-env NODE_ENV=test vitest",
47
+ "test:cover": "cross-env NODE_ENV=test vitest run --coverage"
48
+ }
49
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TStartViewerOptions } from './types';
3
+ declare function App(options: TStartViewerOptions): import("react").JSX.Element;
4
+ export default App;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
3
+ export default GlobalStyles;
@@ -0,0 +1,4 @@
1
+ import { MapView, Mappedin } from '@mappedin/mappedin-js';
2
+ import { TMapViewOptions } from '@mappedin/mappedin-js/renderer/internal';
3
+ declare const useMapView: (el: HTMLElement | null, venue: Mappedin | undefined, options?: TMapViewOptions) => MapView | undefined;
4
+ export default useMapView;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Mappedin } from '@mappedin/mappedin-js';
2
+ import { TGetVenueBundleOptions } from '@mappedin/mappedin-js/get-venue';
3
+ declare const useVenueMVF: (options: TGetVenueBundleOptions) => Mappedin | undefined;
4
+ export default useVenueMVF;
@@ -0,0 +1,3 @@
1
+ import { TStartViewerOptions } from './types';
2
+ declare const start: (options: TStartViewerOptions) => void;
3
+ export default start;
@@ -0,0 +1,4 @@
1
+ export type TStartViewerOptions = {
2
+ dataUrl: string;
3
+ venue: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> & import("vitest/dist/config").UserConfigFnObject & import("vitest/dist/config").UserConfigExport;
2
+ export default _default;