@twinmatrix/spatialverse-sdk-web 0.1.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.
Files changed (112) hide show
  1. package/README.md +4 -0
  2. package/lib/cjs/index.js +642 -0
  3. package/lib/cjs/react/index.js +642 -0
  4. package/lib/esm/index.js +642 -0
  5. package/lib/esm/react/index.js +642 -0
  6. package/lib/types/index.d.ts +17 -0
  7. package/lib/types/index.d.ts.map +1 -0
  8. package/lib/types/index.spec.d.ts +1 -0
  9. package/lib/types/index.spec.d.ts.map +1 -0
  10. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts +32 -0
  11. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts.map +1 -0
  12. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts +30 -0
  13. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts.map +1 -0
  14. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts +5 -0
  15. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts.map +1 -0
  16. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts +21 -0
  17. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts.map +1 -0
  18. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts +27 -0
  19. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts.map +1 -0
  20. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.d.ts +13 -0
  21. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.d.ts.map +1 -0
  22. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts +28 -0
  23. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts.map +1 -0
  24. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.d.ts +26 -0
  25. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.d.ts.map +1 -0
  26. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetchMapObjectsData.d.ts +13 -0
  27. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetchMapObjectsData.d.ts.map +1 -0
  28. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focustree.d.ts +406 -0
  29. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focustree.d.ts.map +1 -0
  30. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts +573 -0
  31. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts.map +1 -0
  32. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/index.d.ts +6 -0
  33. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/index.d.ts.map +1 -0
  34. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/interfaces.d.ts +142 -0
  35. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/interfaces.d.ts.map +1 -0
  36. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/mapObjectsHelper.d.ts +13 -0
  37. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/mapObjectsHelper.d.ts.map +1 -0
  38. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routeLayers.d.ts +171 -0
  39. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routeLayers.d.ts.map +1 -0
  40. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.d.ts +73 -0
  41. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.d.ts.map +1 -0
  42. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.d.ts +31 -0
  43. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.d.ts.map +1 -0
  44. package/lib/types/meta-atlas-sdk/MetaAtlasCore/whatTaxonomies.d.ts +59 -0
  45. package/lib/types/meta-atlas-sdk/MetaAtlasCore/whatTaxonomies.d.ts.map +1 -0
  46. package/lib/types/meta-atlas-sdk/customStyles.d.ts +243 -0
  47. package/lib/types/meta-atlas-sdk/customStyles.d.ts.map +1 -0
  48. package/lib/types/meta-atlas-sdk/customerLayer.d.ts +6385 -0
  49. package/lib/types/meta-atlas-sdk/customerLayer.d.ts.map +1 -0
  50. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts +5156 -0
  51. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts.map +1 -0
  52. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.d.ts +18 -0
  53. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.d.ts.map +1 -0
  54. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.d.ts +37 -0
  55. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.d.ts.map +1 -0
  56. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts +548 -0
  57. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts.map +1 -0
  58. package/lib/types/meta-atlas-sdk/utils/helpers.d.ts +4 -0
  59. package/lib/types/meta-atlas-sdk/utils/helpers.d.ts.map +1 -0
  60. package/lib/types/meta-atlas-sdk/utils/local-storage.d.ts +8 -0
  61. package/lib/types/meta-atlas-sdk/utils/local-storage.d.ts.map +1 -0
  62. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts +6 -0
  63. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts.map +1 -0
  64. package/lib/types/meta-atlas-sdk/utils/routing-store.d.ts +6 -0
  65. package/lib/types/meta-atlas-sdk/utils/routing-store.d.ts.map +1 -0
  66. package/lib/types/meta-atlas-sdk/utils/routing-visualizer/index.d.ts +42 -0
  67. package/lib/types/meta-atlas-sdk/utils/routing-visualizer/index.d.ts.map +1 -0
  68. package/lib/types/react/MetaAtlasMap.d.ts +4 -0
  69. package/lib/types/react/MetaAtlasMap.d.ts.map +1 -0
  70. package/lib/types/react/hooks/useDrawing/index.d.ts +3 -0
  71. package/lib/types/react/hooks/useDrawing/index.d.ts.map +1 -0
  72. package/lib/types/react/hooks/useDrawing/types.d.ts +5 -0
  73. package/lib/types/react/hooks/useDrawing/types.d.ts.map +1 -0
  74. package/lib/types/react/hooks/useFocus/index.d.ts +3 -0
  75. package/lib/types/react/hooks/useFocus/index.d.ts.map +1 -0
  76. package/lib/types/react/hooks/useFocus/types.d.ts +28 -0
  77. package/lib/types/react/hooks/useFocus/types.d.ts.map +1 -0
  78. package/lib/types/react/hooks/useMapEvents/index.d.ts +3 -0
  79. package/lib/types/react/hooks/useMapEvents/index.d.ts.map +1 -0
  80. package/lib/types/react/hooks/useMapEvents/types.d.ts +28 -0
  81. package/lib/types/react/hooks/useMapEvents/types.d.ts.map +1 -0
  82. package/lib/types/react/hooks/useMapOverlays/index.d.ts +8 -0
  83. package/lib/types/react/hooks/useMapOverlays/index.d.ts.map +1 -0
  84. package/lib/types/react/hooks/useMapOverlays/types.d.ts +80 -0
  85. package/lib/types/react/hooks/useMapOverlays/types.d.ts.map +1 -0
  86. package/lib/types/react/hooks/useMetaAtlas/index.d.ts +3 -0
  87. package/lib/types/react/hooks/useMetaAtlas/index.d.ts.map +1 -0
  88. package/lib/types/react/hooks/useMetaAtlas/types.d.ts +2 -0
  89. package/lib/types/react/hooks/useMetaAtlas/types.d.ts.map +1 -0
  90. package/lib/types/react/hooks/useRouting/index.d.ts +3 -0
  91. package/lib/types/react/hooks/useRouting/index.d.ts.map +1 -0
  92. package/lib/types/react/hooks/useRouting/types.d.ts +5 -0
  93. package/lib/types/react/hooks/useRouting/types.d.ts.map +1 -0
  94. package/lib/types/react/hooks/useSearch/index.d.ts +3 -0
  95. package/lib/types/react/hooks/useSearch/index.d.ts.map +1 -0
  96. package/lib/types/react/hooks/useSearch/types.d.ts +7 -0
  97. package/lib/types/react/hooks/useSearch/types.d.ts.map +1 -0
  98. package/lib/types/react/hooks/useStampRally/index.d.ts +3 -0
  99. package/lib/types/react/hooks/useStampRally/index.d.ts.map +1 -0
  100. package/lib/types/react/hooks/useStampRally/types.d.ts +24 -0
  101. package/lib/types/react/hooks/useStampRally/types.d.ts.map +1 -0
  102. package/lib/types/react/hooks/useStampRally/utils.d.ts +3 -0
  103. package/lib/types/react/hooks/useStampRally/utils.d.ts.map +1 -0
  104. package/lib/types/react/index.d.ts +21 -0
  105. package/lib/types/react/index.d.ts.map +1 -0
  106. package/lib/types/react/stores/useMapDataStore.d.ts +35 -0
  107. package/lib/types/react/stores/useMapDataStore.d.ts.map +1 -0
  108. package/lib/types/react/stores/useMetaAtlasStore.d.ts +25 -0
  109. package/lib/types/react/stores/useMetaAtlasStore.d.ts.map +1 -0
  110. package/lib/types/react/types/index.d.ts +80 -0
  111. package/lib/types/react/types/index.d.ts.map +1 -0
  112. package/package.json +121 -0
package/package.json ADDED
@@ -0,0 +1,121 @@
1
+ {
2
+ "name": "@twinmatrix/spatialverse-sdk-web",
3
+ "version": "0.1.0",
4
+ "description": "Spatialverse SDK for Web",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/esm/index.js",
7
+ "types": "lib/types/index.d.ts",
8
+ "files": [
9
+ "lib",
10
+ "README.md"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "require": "./lib/cjs/index.js",
18
+ "import": "./lib/esm/index.js",
19
+ "types": "./lib/types/index.d.ts"
20
+ },
21
+ "./react": {
22
+ "require": "./lib/cjs/react/index.js",
23
+ "import": "./lib/esm/react/index.js",
24
+ "types": "./lib/types/react/index.d.ts"
25
+ }
26
+ },
27
+ "scripts": {
28
+ "clean": "rimraf lib",
29
+ "declarations": "tsc -p tsconfig.json",
30
+ "build:esm": "rollup -c rollup.config.single.js",
31
+ "build:cjs": "rollup -c rollup.config.single.js",
32
+ "build:bundles": "cross-env BABEL_ENV=esmBundled rollup -c",
33
+ "build": "npm-run-all -l clean -p build:esm build:cjs declarations",
34
+ "test": "jest"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/TwinMatrixOrg/twinmatrix-atoms-legacy-sdk"
39
+ },
40
+ "keywords": [
41
+ "node"
42
+ ],
43
+ "author": {
44
+ "name": "TwinMatrix",
45
+ "email": "info@twinmatrix.net",
46
+ "url": "https://www.twinmatrix.net"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/TwinMatrixOrg/twinmatrix-atoms-legacy-sdk/issues"
50
+ },
51
+ "homepage": "https://github.com/TwinMatrixOrg/twinmatrix-atoms-legacy-sdk#readme",
52
+ "devDependencies": {
53
+ "@babel/cli": "^7.12.10",
54
+ "@babel/core": "^7.28.6",
55
+ "@babel/preset-env": "^7.28.6",
56
+ "@babel/preset-react": "^7.28.5",
57
+ "@babel/preset-typescript": "^7.28.5",
58
+ "@rollup/plugin-babel": "^5.2.3",
59
+ "@rollup/plugin-commonjs": "^23.0.4",
60
+ "@rollup/plugin-json": "^6.0.0",
61
+ "@rollup/plugin-node-resolve": "^13.3.0",
62
+ "@rollup/plugin-typescript": "^12.3.0",
63
+ "@types/jest": "^27.4.1",
64
+ "babel-plugin-add-import-extension": "^1.6.0",
65
+ "cross-env": "^7.0.3",
66
+ "glob": "^13.0.0",
67
+ "javascript-obfuscator": "^4.1.0",
68
+ "jest": "^27.5.1",
69
+ "npm-run-all": "^4.1.5",
70
+ "prettier": "^2.2.1",
71
+ "rimraf": "^3.0.2",
72
+ "rollup": "^2.38.4",
73
+ "rollup-obfuscator": "^3.0.1",
74
+ "rollup-plugin-import-css": "^4.1.2",
75
+ "rollup-plugin-terser": "^7.0.2",
76
+ "typescript": "^4.1.3"
77
+ },
78
+ "dependencies": {
79
+ "@dagrejs/graphlib": "^2.2.4",
80
+ "@mapbox/mapbox-gl-draw": "github:hamzzam/mapbox-gl-draw#v1.4.1-touch-events-hotfix",
81
+ "@turf/area": "6.5.0",
82
+ "@turf/boolean-point-in-polygon": "6.5.0",
83
+ "@turf/boolean-disjoint": "6.5.0",
84
+ "@turf/line-intersect": "6.5.0",
85
+ "@turf/meta": "6.5.0",
86
+ "@turf/bbox": "6.5.0",
87
+ "@turf/center": "6.5.0",
88
+ "@turf/distance": "6.5.0",
89
+ "@turf/helpers": "6.5.0",
90
+ "@turf/invariant": "6.5.0",
91
+ "@turf/length": "6.5.0",
92
+ "@turf/line-slice-along": "6.5.0",
93
+ "@turf/line-slice": "6.5.0",
94
+ "@turf/nearest-point-on-line": "^7.0.0",
95
+ "@turf/transform-translate": "^7.0.0",
96
+ "@turf/centroid": "6.5.0",
97
+ "@turf/clean-coords": "6.5.0",
98
+ "@types/mapbox__mapbox-gl-draw": "^1.3.3",
99
+ "axios": "^1.3.4",
100
+ "firebase": "^10.12.2",
101
+ "geojson-rbush": "^3.2.0",
102
+ "gsap": "^3.13.0",
103
+ "jquery": "^3.6.1",
104
+ "lodash": "^4.17.21",
105
+ "maplibre-gl": "^3.6.2",
106
+ "ngraph.graph": "^20.0.1",
107
+ "ngraph.path": "^1.3.1",
108
+ "three": "^0.180.0",
109
+ "three-spritetext": "^1.9.4",
110
+ "troika-three-text": "^0.52.4"
111
+ },
112
+ "peerDependencies": {
113
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
114
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
115
+ "react-map-gl": "^7.0.0 || ^8.0.0",
116
+ "three": "^0.180.0",
117
+ "gsap": "^3.13.0",
118
+ "three-spritetext": "^1.9.4",
119
+ "troika-three-text": "^0.52.4"
120
+ }
121
+ }