@geosynk/vertigis-web-sdk 1.0.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +210 -0
  3. package/bin/vertigis-web-sdk.js +17 -0
  4. package/config/eslint.config.js +201 -0
  5. package/config/eslint.config.js.template +11 -0
  6. package/config/tsconfig.json +3 -0
  7. package/config/tsconfig.json.template +9 -0
  8. package/config/webpack.config.js +54 -0
  9. package/lib/index.ejs +133 -0
  10. package/package.json +72 -0
  11. package/scripts/build.js +48 -0
  12. package/scripts/create.js +113 -0
  13. package/scripts/start.js +41 -0
  14. package/scripts/upgrade.js +12 -0
  15. package/template/.prettierignore +1 -0
  16. package/template/.prettierrc +6 -0
  17. package/template/.vscode/extensions.json +3 -0
  18. package/template/README.md +51 -0
  19. package/template/app/app.json +1067 -0
  20. package/template/app/layout.xml +22 -0
  21. package/template/gitignore +2 -0
  22. package/template/package.json +27 -0
  23. package/template/src/components/PointsOfInterest/PointOfInterest.css +6 -0
  24. package/template/src/components/PointsOfInterest/PointOfInterest.tsx +50 -0
  25. package/template/src/components/PointsOfInterest/PointOfInterestModel.ts +13 -0
  26. package/template/src/components/PointsOfInterest/PointsOfInterest.css +4 -0
  27. package/template/src/components/PointsOfInterest/PointsOfInterest.tsx +44 -0
  28. package/template/src/components/PointsOfInterest/PointsOfInterestModel.ts +127 -0
  29. package/template/src/components/PointsOfInterest/index.ts +4 -0
  30. package/template/src/index.ts +26 -0
  31. package/template/webpack.config.js +5 -0
  32. package/template-custom/AGENTS.md +47 -0
  33. package/template-custom/app/app.json +1067 -0
  34. package/template-custom/app/layout.xml +22 -0
  35. package/template-custom/build.bat +11 -0
  36. package/template-custom/build.sh +15 -0
  37. package/template-custom/certs/generate-cert.bat +14 -0
  38. package/template-custom/certs/generate-cert.sh +14 -0
  39. package/template-custom/src/components/CustomWidget/CustomWidget.tsx +70 -0
  40. package/template-custom/src/components/CustomWidget/CustomWidgetModel.ts +15 -0
  41. package/template-custom/src/components/CustomWidget/components/CustomWidgetErrorBoundary.tsx +57 -0
  42. package/template-custom/src/components/CustomWidget/index.ts +3 -0
  43. package/template-custom/src/hooks/index.ts +1 -0
  44. package/template-custom/src/hooks/useIsDarkTheme.ts +56 -0
  45. package/template-custom/src/index.ts +20 -0
  46. package/template-custom/src/tokens/index.ts +24 -0
  47. package/template-custom/src/tokens/typography.ts +33 -0
  48. package/template-custom/src/tokens/ui.ts +60 -0
  49. package/template-custom/src/utils/index.ts +1 -0
  50. package/template-custom/src/utils/themeDetection.ts +56 -0
  51. package/template-custom/start.bat +17 -0
  52. package/template-custom/start.sh +23 -0
  53. package/template-custom/webpack.config.js +121 -0
  54. package/test/index.js +22 -0
package/test/index.js ADDED
@@ -0,0 +1,22 @@
1
+ // @ts-check
2
+ "use strict";
3
+
4
+ import path from "path";
5
+ import { fileURLToPath } from "url";
6
+
7
+ import { $ } from "execa";
8
+
9
+ // Will be set on child processes (via execa).
10
+ process.env.OPEN_BROWSER = "false";
11
+ process.env.SDK_LOCAL_DEV = "true";
12
+ process.env.ROOT_DIRECTORY = path.join(path.dirname(fileURLToPath(import.meta.url)), "..");
13
+ process.env.TEST_PROJECT_PATH = path.join(process.env.ROOT_DIRECTORY, "test-lib");
14
+ process.env.UPGRADE_PROJECTS_PATH = "node_modules/@vertigis/sdk-library/test/e2e/upgradeProjects";
15
+ process.env.SMOKE_TEST = "true";
16
+ process.env.SDK_PLATFORM = "web";
17
+
18
+ await $({
19
+ node: true,
20
+ stderr: "inherit",
21
+ stdout: "inherit",
22
+ })`node_modules/@vertigis/sdk-library/test/e2e/tests.js`;