@geosynk/vertigis-web-sdk 1.0.8 → 1.0.10

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/README.md CHANGED
@@ -1,13 +1,21 @@
1
1
  <p align="center">
2
- <a href="https://geosynk.com.au/" target="_blank" rel="noopener noreferrer">
3
- <img src="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg" alt="Geosynk" width="380" />
2
+ <a href="https://geosynk.com.au" target="_blank" rel="noopener noreferrer">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://geosynk.com.au/images/logo/LOGO_MAIN1_DARK.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg">
6
+ <img src="https://geosynk.com.au/images/logo/LOGO_MAIN1.svg" alt="Geosynk" width="380" />
7
+ </picture>
4
8
  </a>
5
9
  </p>
10
+ <p align="center">
11
+ <strong><em>Unifying Spatial Data with Enterprise Intelligence</em></strong>
12
+ </p>
6
13
 
7
14
  # VertiGIS Studio Web SDK (Enterprise Edition)
8
15
 
9
16
  [![Maintained by Geosynk](https://img.shields.io/badge/maintained%20by-Geosynk-f47c22.svg)](https://geosynk.com.au/)
10
17
  [![NPM Version](https://img.shields.io/npm/v/@geosynk/vertigis-web-sdk.svg?color=cb3837)](https://www.npmjs.com/package/@geosynk/vertigis-web-sdk)
18
+ [![CI](https://github.com/geosynk-lab/vertigis-web-sdk/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/geosynk-lab/vertigis-web-sdk/actions/workflows/ci-cd.yml)
11
19
  [![Upstream Sync](https://img.shields.io/badge/upstream-vertigis%2Fvertigis--web--sdk-blue.svg)](https://github.com/vertigis/vertigis-web-sdk)
12
20
  [![Enterprise Ready](https://img.shields.io/badge/architecture-enterprise--overlay-green.svg)](#enterprise-architectural-features)
13
21
  [![WCAG AA](https://img.shields.io/badge/accessibility-WCAG%20AA-success.svg)](#1-centralized-design-token-subsystem)
@@ -44,6 +52,11 @@ Every project scaffolded from this repository includes:
44
52
  6. **Coding Assistant Governance (`AGENTS.md`)**:
45
53
  - Pre-injected VertiGIS Web SDK directives ensuring AI coding assistants (such as Antigravity, Claude Code, Cursor, Copilot) strictly follow typography rules, token usage, and file size limits.
46
54
 
55
+ 7. **Monorepo & Dual Package Manager Resilience (`npm` & `pnpm`)**:
56
+ - **SheetJS (`xlsx`) Registry Mirror**: Replaces upstream external HTTP CDN tarball URLs with `npm:@e965/xlsx@^0.20.3` registry overrides. 100% immune to corporate firewall/proxy blocks, checksum mismatches, and `pnpm` `ERR_PNPM_EXOTIC_SUBDEP` errors.
57
+ - **Monorepo `--skip-install` Support**: Scaffolds full enterprise project architecture without generating duplicate nested `node_modules`.
58
+ - **Native `pnpm` v11+ Compatibility**: Bundled with pre-configured `pnpm-workspace.yaml` for instant pnpm installations.
59
+
47
60
  ---
48
61
 
49
62
  ## Creating a New Project
@@ -68,6 +81,23 @@ Then anywhere on your machine:
68
81
  vertigis-web-sdk create my-web-library
69
82
  ```
70
83
 
84
+ ### Option D: Inside a Monorepo / Workspaces (Single Shared `node_modules`)
85
+ To manage all libraries under a single `node_modules` at your workspace root:
86
+ ```bash
87
+ # 1. Scaffold into your packages/ or projects/ folder without installing duplicate dependencies
88
+ npx @geosynk/vertigis-web-sdk create my-web-library --skip-install
89
+
90
+ # 2. Run install once at your monorepo root
91
+ npm install
92
+ # or
93
+ pnpm install
94
+ ```
95
+
96
+ ### Option E: Direct with `pnpm`
97
+ ```bash
98
+ npx @geosynk/vertigis-web-sdk create my-web-library --pnpm
99
+ ```
100
+
71
101
  ---
72
102
 
73
103
  ## Scaffolded Project Structure
@@ -286,17 +316,32 @@ Or run the parent batch synchronizer:
286
316
 
287
317
  ## About Geosynk
288
318
 
289
- [Geosynk](https://geosynk.com.au/) is an Australian geospatial engineering and software consultancy founded by Davood Kazemi, delivering enterprise GIS architecture, custom VertiGIS solutions, and modern web applications.
319
+ [Geosynk](https://geosynk.com.au/) is a certified GIS technical integration consultancy founded by Davood Kazemi, engineering high-performance spatial automation pipelines, bespoke VertiGIS applications, and resilient enterprise GIS architecture.
320
+
321
+ > *"We don't just implement technology; we engineer business value. Digital transformation in infrastructure is a safeguard against project waste and operational risk."*
322
+
323
+ ### Core Philosophy
290
324
 
291
- ### Core Capabilities & Topics
325
+ | Principle | Impact | How We Deliver It |
326
+ | :--- | :--- | :--- |
327
+ | **Radically Simple** | *Reduces Overhead* | Complexity is the enemy of adoption. Clear interfaces reduce training costs and eliminate decision fatigue. |
328
+ | **Frictionless Efficiency** | *Accelerates Velocity* | Automating repetitive data flows recovers thousands of engineering hours annually. |
329
+ | **Deeply Integrated** | *Prevents Rework* | Connected systems establish a single source of truth across CAD, BIM, GIS, and ERP. |
330
+
331
+ ### Core Capabilities & Offerings
292
332
 
293
333
  - **VertiGIS Studio Engineering**: Turnkey Web SDK components, custom Workflow activities, accessible form elements, report templates, and automated printing services.
334
+ - **FME Advanced Automation**: End-to-end spatial ETL pipelines, Python SDK custom transformers, FME Form & Flow (Server), and CAD/BIM/GIS synchronization.
294
335
  - **Esri ArcGIS Enterprise**: End-to-end cloud and on-premises architecture, Enterprise Geodatabase design, Utility Network migrations, and ArcGIS Experience Builder extensions.
295
- - **Full-Stack Spatial Systems**: High-performance React, TypeScript, Node.js, WebGL, and Leaflet/Mapbox interactive web applications.
296
- - **Spatial DevOps & Automation**: Automated CI/CD pipelines, automated testing, containerized GIS deployments, and infrastructure as code across AWS and Microsoft Azure.
336
+ - **Custom Spatial Development**: High-performance React, TypeScript, and Python GIS tooling engineered for unique operational requirements.
337
+ - **Enterprise Orchestration**: Unifying Trimble, Bentley, Autodesk, and GIS into a cohesive enterprise framework.
297
338
 
298
339
  ### Connect with Geosynk
299
- - **Website**: [https://geosynk.com.au](https://geosynk.com.au/)
300
- - **Contact**: [Davood Kazemi](mailto:dave.kazemi@gmail.com)
340
+
341
+ - 🌐 **Website**: [geosynk.com.au](https://geosynk.com.au/)
342
+ - 💼 **LinkedIn**: [Geosynk Company](https://www.linkedin.com/company/ggeosynk)
343
+ - ✉️ **Email**: [info@geosynk.com.au](mailto:info@geosynk.com.au) / [Davood Kazemi](mailto:dave.kazemi@gmail.com)
344
+ - 📅 **Consultation**: [Book a 1-on-1 Session](https://geosynk.com.au#contact)
345
+
301
346
 
302
347
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geosynk/vertigis-web-sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Enterprise SDK for extending VertiGIS Studio Web",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/scripts/create.js CHANGED
@@ -7,43 +7,99 @@ import { fileURLToPath } from "node:url";
7
7
  import { execSync } from "node:child_process";
8
8
  import readline from "node:readline";
9
9
 
10
- import sdkCreate from "@vertigis/sdk-library/scripts/create.js";
11
-
12
10
  // Root of the SDK installation where the template is found.
13
11
  const dirName = path.dirname(fileURLToPath(import.meta.url));
14
12
  const rootDir = path.join(dirName, "..");
15
13
 
16
- // Target directory name.
14
+ // Target directory name and CLI options.
17
15
  const cliArgs = process.argv.slice(2);
18
- const createIdx = cliArgs.indexOf("create");
19
- const directoryName = createIdx !== -1 ? cliArgs[createIdx + 1] : cliArgs[0];
16
+ const nonFlagArgs = cliArgs.filter(arg => !arg.startsWith("-") && arg !== "create");
17
+ const directoryName = nonFlagArgs[0];
20
18
 
21
19
  if (!directoryName) {
22
- console.error("Please specify the project directory name: vertigis-web-sdk create <project-name>");
20
+ console.error(
21
+ "Please specify the project directory name: vertigis-web-sdk create <project-name> [--npm | --pnpm | --skip-install]"
22
+ );
23
23
  process.exit(1);
24
24
  }
25
25
 
26
26
  const targetPath = path.resolve(directoryName);
27
27
 
28
- // 1. Run standard VertiGIS base scaffolding
29
- const rootPkgPath = path.join(rootDir, "package.json");
30
- const originalRootPkg = fs.readFileSync(rootPkgPath, "utf-8");
31
- try {
32
- // Upstream sdkCreate expects @vertigis/web-sdk on npm to match selfVersion.
33
- // Setting version to "latest" prevents notarget 404 errors during npm install.
34
- const rootPkg = JSON.parse(originalRootPkg);
35
- rootPkg.version = "latest";
36
- fs.writeFileSync(rootPkgPath, JSON.stringify(rootPkg, null, 2), "utf-8");
28
+ // Validate project directory path
29
+ if (!/^[\w-]+$/.test(path.basename(targetPath))) {
30
+ console.error(
31
+ `Cannot create new project at ${targetPath} as the directory name is not valid. Letters, numbers, dashes and underscores are allowed.\n`
32
+ );
33
+ process.exit(1);
34
+ }
35
+ if (/[!]/.test(targetPath)) {
36
+ console.error(
37
+ `Cannot create new project at ${targetPath} as the path is not valid. Exclamation points (!) are not allowed in the file system path.\n`
38
+ );
39
+ process.exit(1);
40
+ }
41
+ if (fs.existsSync(targetPath) && fs.readdirSync(targetPath).length > 0) {
42
+ console.error(`Cannot create new project at ${targetPath} as it already exists.\n`);
43
+ process.exit(1);
44
+ }
45
+
46
+ // 0. Determine package manager (interactive prompt if no flag passed)
47
+ let packageManager = "npm";
48
+ if (cliArgs.includes("--skip-install") || cliArgs.includes("--no-install") || cliArgs.includes("--pm=none")) {
49
+ packageManager = "none";
50
+ } else if (cliArgs.includes("--pnpm") || cliArgs.includes("--pm=pnpm")) {
51
+ packageManager = "pnpm";
52
+ } else if (cliArgs.includes("--npm") || cliArgs.includes("--pm=npm")) {
53
+ packageManager = "npm";
54
+ } else if (process.stdin.isTTY) {
55
+ const rl = readline.createInterface({
56
+ input: process.stdin,
57
+ output: process.stdout,
58
+ });
37
59
 
38
- sdkCreate(rootDir, directoryName, "web");
39
- } finally {
40
- fs.writeFileSync(rootPkgPath, originalRootPkg, "utf-8");
60
+ console.log("\n? Which package manager would you like to use?");
61
+ console.log(" 1) npm (default)");
62
+ console.log(" 2) pnpm");
63
+ console.log(" 3) none (skip install — for monorepos / workspaces)\n");
64
+
65
+ const answer = await new Promise(resolve => {
66
+ rl.question("Select [1/2/3] (default: 1): ", ans => {
67
+ rl.close();
68
+ resolve(ans.trim().toLowerCase());
69
+ });
70
+ });
71
+
72
+ if (answer === "2" || answer === "pnpm" || answer === "p") {
73
+ packageManager = "pnpm";
74
+ } else if (answer === "3" || answer === "none" || answer === "skip") {
75
+ packageManager = "none";
76
+ } else {
77
+ packageManager = "npm";
78
+ }
79
+ }
80
+
81
+ console.log(`\nCreating new project at ${targetPath}`);
82
+
83
+ // 1. Scaffolding base template
84
+ fs.cpSync(path.join(rootDir, "template"), targetPath, { recursive: true });
85
+
86
+ const tsconfigTpl = path.join(rootDir, "config/tsconfig.json.template");
87
+ if (fs.existsSync(tsconfigTpl)) {
88
+ fs.copyFileSync(tsconfigTpl, path.join(targetPath, "tsconfig.json"));
89
+ }
90
+ const eslintTpl = path.join(rootDir, "config/eslint.config.js.template");
91
+ if (fs.existsSync(eslintTpl)) {
92
+ fs.copyFileSync(eslintTpl, path.join(targetPath, "eslint.config.js"));
93
+ }
94
+ const gitignorePath = path.join(targetPath, "gitignore");
95
+ if (fs.existsSync(gitignorePath)) {
96
+ fs.renameSync(gitignorePath, path.join(targetPath, ".gitignore"));
41
97
  }
42
98
 
43
99
  // 2. Apply Enterprise Template Custom Overlay
44
100
  const customTemplateDir = path.join(rootDir, "template-custom");
45
- if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
46
- console.log("\n[ENTERPRISE] Applying VertiGIS Studio Web SDK Enterprise Template Overlay...");
101
+ if (fs.existsSync(customTemplateDir)) {
102
+ console.log("[ENTERPRISE] Applying VertiGIS Studio Web SDK Enterprise Template Overlay...");
47
103
  fs.cpSync(customTemplateDir, targetPath, { recursive: true, force: true });
48
104
 
49
105
  // Ensure shell scripts are executable on POSIX systems
@@ -67,10 +123,7 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
67
123
 
68
124
  // Configure build scripts with user-selected project name
69
125
  const projectName = path.basename(targetPath);
70
- const buildScripts = [
71
- path.join(targetPath, "build.sh"),
72
- path.join(targetPath, "build.bat"),
73
- ];
126
+ const buildScripts = [path.join(targetPath, "build.sh"), path.join(targetPath, "build.bat")];
74
127
  for (const bs of buildScripts) {
75
128
  if (fs.existsSync(bs)) {
76
129
  try {
@@ -82,91 +135,187 @@ if (fs.existsSync(customTemplateDir) && fs.existsSync(targetPath)) {
82
135
  }
83
136
  }
84
137
 
85
- // 3. Merge enterprise dependencies into package.json
86
- const pkgPath = path.join(targetPath, "package.json");
87
- if (fs.existsSync(pkgPath)) {
88
- try {
89
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
90
- pkg.dependencies = pkg.dependencies || {};
91
- pkg.dependencies["@mui/material"] = "^5.15.0";
92
- pkg.dependencies["@emotion/react"] = "^11.11.0";
93
- pkg.dependencies["@emotion/styled"] = "^11.11.0";
94
-
95
- pkg.scripts = pkg.scripts || {};
96
- pkg.scripts["cert:gen"] = "bash ./certs/generate-cert.sh";
97
- pkg.scripts["auth:portal"] = "node ./scripts/configure-portal.js";
98
- pkg.scripts["skill:add"] = "npx --yes skills add geosynk-lab/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y";
99
- pkg.scripts["skills:add"] = "npx --yes skills add geosynk-lab/vertigis-sdk-skills -y";
100
-
101
- fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 4) + "\n", "utf-8");
102
- console.log("[ENTERPRISE] Added enterprise dependencies, auth:portal, and skill:add scripts to package.json");
103
- } catch (e) {
104
- console.warn("[WARN] Failed to merge enterprise package.json dependencies:", e);
138
+ // Ensure custom layout namespace matches between app/layout.xml and src/index.ts
139
+ const cryptoMod = await import("node:crypto");
140
+ const randomNamespace = `custom.${cryptoMod.randomBytes(4).toString("hex")}`;
141
+ const filesToUpdate = [path.join(targetPath, "app/layout.xml"), path.join(targetPath, "src/index.ts")];
142
+ for (const fileToUpdate of filesToUpdate) {
143
+ if (fs.existsSync(fileToUpdate)) {
144
+ try {
145
+ const contents = fs.readFileSync(fileToUpdate, { encoding: "utf8" });
146
+ const newContents = contents.replace(/custom\.foo/g, randomNamespace);
147
+ fs.writeFileSync(fileToUpdate, newContents, "utf-8");
148
+ } catch {
149
+ // Ignore replacement failure
150
+ }
105
151
  }
106
152
  }
153
+ }
107
154
 
108
- // 4. Auto-generate development SSL certificate if openssl is available
109
- const certScript = path.join(targetPath, "certs", process.platform === "win32" ? "generate-cert.bat" : "generate-cert.sh");
110
- if (fs.existsSync(certScript)) {
111
- try {
112
- console.log("[ENTERPRISE] Checking development SSL certificate...");
113
- if (process.platform === "win32") {
114
- execSync(`cmd /c "${certScript}"`, { stdio: "inherit", cwd: targetPath });
115
- } else {
116
- execSync(`bash "${certScript}"`, { stdio: "inherit", cwd: targetPath });
117
- }
118
- } catch {
119
- console.log("[INFO] Certificate generation skipped (OpenSSL will run automatically on first start).");
155
+ // 3. Configure package.json with enterprise dependencies, scripts, and SDK packages
156
+ const pkgPath = path.join(targetPath, "package.json");
157
+ if (fs.existsSync(pkgPath)) {
158
+ try {
159
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
160
+ pkg.name = path.basename(targetPath);
161
+
162
+ pkg.dependencies = pkg.dependencies || {};
163
+ pkg.dependencies["@mui/material"] = "^5.15.0";
164
+ pkg.dependencies["@emotion/react"] = "^11.11.0";
165
+ pkg.dependencies["@emotion/styled"] = "^11.11.0";
166
+
167
+ pkg.devDependencies = pkg.devDependencies || {};
168
+ pkg.devDependencies["@vertigis/web-sdk"] = "latest";
169
+ pkg.devDependencies["@vertigis/web"] = "^5.42.0";
170
+
171
+ pkg.scripts = pkg.scripts || {};
172
+ pkg.scripts["cert:gen"] = "bash ./certs/generate-cert.sh";
173
+ pkg.scripts["auth:portal"] = "node ./scripts/configure-portal.js";
174
+ pkg.scripts["skill:add"] =
175
+ "npx --yes skills add geosynk-lab/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y";
176
+ pkg.scripts["skills:add"] = "npx --yes skills add geosynk-lab/vertigis-sdk-skills -y";
177
+
178
+ fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 4) + "\n", "utf-8");
179
+ console.log("[ENTERPRISE] Configured enterprise dependencies and scripts in package.json");
180
+ } catch (e) {
181
+ console.warn("[WARN] Failed to configure enterprise package.json dependencies:", e);
182
+ }
183
+ }
184
+
185
+ // 4. Auto-generate development SSL certificate if openssl is available
186
+ const certScript = path.join(
187
+ targetPath,
188
+ "certs",
189
+ process.platform === "win32" ? "generate-cert.bat" : "generate-cert.sh"
190
+ );
191
+ if (fs.existsSync(certScript)) {
192
+ try {
193
+ console.log("[ENTERPRISE] Checking development SSL certificate...");
194
+ if (process.platform === "win32") {
195
+ execSync(`cmd /c "${certScript}"`, { stdio: "inherit", cwd: targetPath });
196
+ } else {
197
+ execSync(`bash "${certScript}"`, { stdio: "inherit", cwd: targetPath });
120
198
  }
199
+ } catch {
200
+ console.log("[INFO] Certificate generation skipped (OpenSSL will run automatically on first start).");
121
201
  }
202
+ }
122
203
 
123
- // 5. Prompt to install AI Coding Assistant Skill (https://github.com/geosynk-lab/vertigis-sdk-skills)
124
- let shouldInstallSkill = false;
125
- if (process.argv.includes("--skills") || process.argv.includes("--with-skills")) {
126
- shouldInstallSkill = true;
127
- } else if (process.argv.includes("--no-skills") || process.argv.includes("--without-skills")) {
128
- shouldInstallSkill = false;
129
- } else if (process.stdin.isTTY) {
130
- const rl = readline.createInterface({
131
- input: process.stdin,
132
- output: process.stdout,
133
- });
134
- const answer = await new Promise(resolve => {
135
- rl.question(
136
- "\n? Would you like to install AI coding assistant skills from https://github.com/geosynk-lab/vertigis-sdk-skills into this project? [Y/n] ",
137
- ans => {
138
- rl.close();
139
- resolve(ans.trim());
140
- }
141
- );
204
+ // 5. Initialize Git Repository
205
+ try {
206
+ execSync("git init -b main", { cwd: targetPath, stdio: "ignore" });
207
+ } catch {
208
+ // Ignore git init failures
209
+ }
210
+
211
+ // 6. Prompt to install AI Coding Assistant Skill (https://github.com/geosynk-lab/vertigis-sdk-skills)
212
+ let shouldInstallSkill = false;
213
+ if (process.argv.includes("--skills") || process.argv.includes("--with-skills")) {
214
+ shouldInstallSkill = true;
215
+ } else if (process.argv.includes("--no-skills") || process.argv.includes("--without-skills")) {
216
+ shouldInstallSkill = false;
217
+ } else if (process.stdin.isTTY) {
218
+ const rl = readline.createInterface({
219
+ input: process.stdin,
220
+ output: process.stdout,
221
+ });
222
+ const answer = await new Promise(resolve => {
223
+ rl.question(
224
+ "\n? Would you like to install AI coding assistant skills from https://github.com/geosynk-lab/vertigis-sdk-skills into this project? [Y/n] ",
225
+ ans => {
226
+ rl.close();
227
+ resolve(ans.trim());
228
+ }
229
+ );
230
+ });
231
+ shouldInstallSkill = !answer || answer.toLowerCase().startsWith("y");
232
+ } else {
233
+ console.log("\n[INFO] Non-interactive mode: Run 'npm run skill:add' to install AI assistant skills.");
234
+ }
235
+
236
+ if (shouldInstallSkill) {
237
+ console.log("\n[SKILLS] Installing VertiGIS Web SDK skill into project repository via npx skills add...");
238
+ try {
239
+ execSync("npx --yes skills add geosynk-lab/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y", {
240
+ stdio: "inherit",
241
+ cwd: targetPath,
142
242
  });
143
- shouldInstallSkill = !answer || answer.toLowerCase().startsWith("y");
144
- } else {
145
- console.log("\n[INFO] Non-interactive mode: Run 'npm run skill:add' to install AI assistant skills.");
243
+ console.log("✔ VertiGIS Web SDK skill installed successfully in .agents/skills/\n");
244
+ } catch (e) {
245
+ console.warn("[WARN] Automatic skill installation encountered an issue:", e.message);
246
+ console.log("[INFO] You can install it anytime by running: npm run skill:add\n");
146
247
  }
248
+ }
147
249
 
148
- if (shouldInstallSkill) {
149
- console.log("\n[SKILLS] Installing VertiGIS Web SDK skill into project repository via npx skills add...");
150
- try {
151
- execSync("npx --yes skills add geosynk-lab/vertigis-sdk-skills --skill vertigis-web-sdk-skill -y", {
152
- stdio: "inherit",
153
- cwd: targetPath,
154
- });
155
- console.log("✔ VertiGIS Web SDK skill installed successfully in .agents/skills/\n");
156
- } catch (e) {
157
- console.warn("[WARN] Automatic skill installation encountered an issue:", e.message);
158
- console.log("[INFO] You can install it anytime by running: npm run skill:add\n");
250
+ // 7. Install Dependencies
251
+ if (packageManager === "npm") {
252
+ console.log("\n[NPM] Installing packages with npm. This might take a minute...\n");
253
+ try {
254
+ execSync("npm install", { cwd: targetPath, stdio: "inherit" });
255
+ } catch (e) {
256
+ console.warn("[WARN] npm install encountered an issue:", e.message);
257
+ }
258
+ } else if (packageManager === "pnpm") {
259
+ console.log("\n[PNPM] Installing packages with pnpm...\n");
260
+ let pnpmCmd = "pnpm";
261
+ try {
262
+ execSync("pnpm --version", { stdio: "ignore" });
263
+ } catch {
264
+ pnpmCmd = "npx --yes pnpm";
265
+ }
266
+ try {
267
+ execSync(`${pnpmCmd} install`, { cwd: targetPath, stdio: "inherit" });
268
+ } catch (e) {
269
+ console.warn("[WARN] pnpm install encountered an issue:", e.message);
270
+ }
271
+ } else {
272
+ console.log("\n[INFO] Package installation was skipped (--skip-install / none).");
273
+ console.log(" No node_modules directory was created in this project folder.");
274
+ console.log(" Run 'npm install' or 'pnpm install' at your workspace root to install dependencies.\n");
275
+ }
276
+
277
+ // 8. Ensure @vertigis/web-sdk resolves in node_modules even when installed as @geosynk/vertigis-web-sdk
278
+ const nodeModulesDir = path.join(targetPath, "node_modules");
279
+ const vertigisScope = path.join(nodeModulesDir, "@vertigis");
280
+ const vertigisSdk = path.join(vertigisScope, "web-sdk");
281
+ const geosynkSdk = path.join(nodeModulesDir, "@geosynk", "vertigis-web-sdk");
282
+
283
+ if (fs.existsSync(geosynkSdk) && !fs.existsSync(vertigisSdk)) {
284
+ try {
285
+ if (!fs.existsSync(vertigisScope)) {
286
+ fs.mkdirSync(vertigisScope, { recursive: true });
159
287
  }
288
+ fs.symlinkSync(geosynkSdk, vertigisSdk, "junction");
289
+ console.log("[ENTERPRISE] Linked @vertigis/web-sdk -> @geosynk/vertigis-web-sdk");
290
+ } catch (e) {
291
+ console.warn("[WARN] Could not link @vertigis/web-sdk:", e);
160
292
  }
293
+ } else if (fs.existsSync(vertigisSdk) && !fs.existsSync(geosynkSdk)) {
294
+ try {
295
+ const geosynkScope = path.join(nodeModulesDir, "@geosynk");
296
+ if (!fs.existsSync(geosynkScope)) {
297
+ fs.mkdirSync(geosynkScope, { recursive: true });
298
+ }
299
+ fs.symlinkSync(vertigisSdk, geosynkSdk, "junction");
300
+ console.log("[ENTERPRISE] Linked @geosynk/vertigis-web-sdk -> @vertigis/web-sdk");
301
+ } catch (e) {
302
+ console.warn("[WARN] Could not link @geosynk/vertigis-web-sdk:", e);
303
+ }
304
+ }
161
305
 
162
- console.log("\n================================================================================");
163
- console.log(" [ENTERPRISE] VertiGIS Studio Web Extension successfully configured!");
164
- console.log(" - Centralized Design Tokens: src/tokens/ (100% safe fallbacks & color-mix)");
165
- console.log(" - Dynamic Dark/Light Theme: src/hooks/useIsDarkTheme.ts & src/utils/");
166
- console.log(" - Anti-God Component: src/components/CustomWidget/ (ErrorBoundary)");
167
- console.log(" - Portal Auth Config: npm run auth:portal (Enterprise Portal / AGOL OAuth)");
168
- console.log(" - AI Assistant Skill: npm run skill:add (install/update from vertigis-sdk-skills)");
169
- console.log(" - Development Scripts: start.sh / start.bat, build.sh / build.bat");
170
- console.log(" - AI Directives: AGENTS.md pre-configured for coding assistants");
171
- console.log("================================================================================\n");
306
+ const runCmd = packageManager === "pnpm" ? "pnpm" : "npm";
307
+ console.log("\n================================================================================");
308
+ console.log(" [ENTERPRISE] VertiGIS Studio Web Extension successfully configured!");
309
+ console.log(" - Centralized Design Tokens: src/tokens/ (100% safe fallbacks & color-mix)");
310
+ console.log(" - Dynamic Dark/Light Theme: src/hooks/useIsDarkTheme.ts & src/utils/");
311
+ console.log(" - Anti-God Component: src/components/CustomWidget/ (ErrorBoundary)");
312
+ console.log(" - Portal Auth Config: npm run auth:portal (Enterprise Portal / AGOL OAuth)");
313
+ console.log(" - AI Assistant Skill: npm run skill:add (install/update from vertigis-sdk-skills)");
314
+ console.log(" - Development Scripts: start.sh / start.bat, build.sh / build.bat");
315
+ console.log(" - AI Directives: AGENTS.md pre-configured for coding assistants");
316
+ if (packageManager === "none") {
317
+ console.log(" - Monorepo Mode: Run 'npm install' or 'pnpm install' at workspace root");
318
+ } else {
319
+ console.log(` - Quick Start: cd ${path.basename(targetPath)} && ${runCmd} start`);
172
320
  }
321
+ console.log("================================================================================\n");
@@ -18,7 +18,12 @@
18
18
  "prettier": "~3.5.3"
19
19
  },
20
20
  "overrides": {
21
- "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
21
+ "xlsx": "npm:@e965/xlsx@^0.20.3"
22
+ },
23
+ "pnpm": {
24
+ "overrides": {
25
+ "xlsx": "npm:@e965/xlsx@^0.20.3"
26
+ }
22
27
  },
23
28
  "allowScripts": {
24
29
  "@mui/x-telemetry": false,
@@ -0,0 +1,12 @@
1
+ nodeLinker: hoisted
2
+
3
+ overrides:
4
+ xlsx: "npm:@e965/xlsx@^0.20.3"
5
+
6
+ blockExoticSubdeps: false
7
+
8
+ allowBuilds:
9
+ "@mui/x-telemetry": false
10
+ "@vaadin/vaadin-usage-statistics": false
11
+ playwright-chromium: true
12
+ unrs-resolver: true
@@ -1,5 +1,15 @@
1
- import defaultWebpackConfig, { merge } from "@vertigis/web-sdk/config/webpack.config.js";
1
+ let defaultWebpackConfig, merge;
2
+ try {
3
+ const mod = await import("@vertigis/web-sdk/config/webpack.config.js");
4
+ defaultWebpackConfig = mod.default;
5
+ merge = mod.merge;
6
+ } catch {
7
+ const mod = await import("@geosynk/vertigis-web-sdk/config/webpack.config.js");
8
+ defaultWebpackConfig = mod.default;
9
+ merge = mod.merge;
10
+ }
2
11
 
3
12
  export default merge(defaultWebpackConfig, {
4
13
  // Add custom webpack configuration for your project here.
5
14
  });
15
+
@@ -6,16 +6,7 @@
6
6
  "id": "default",
7
7
  "basemapOptions": [
8
8
  "item://basemap-extension/56dde2e7-0047-4329-a079-106fe14c4683",
9
- "item://basemap-extension/24bb022a-9fa2-4e07-b107-4ac2e42f7602",
10
- "item://basemap-extension/04f17474-6db3-414d-9ff6-d024096a5c10",
11
- "item://basemap-extension/a10518b2-8327-4f6e-80e1-d6a5df4702be",
12
- "item://basemap-extension/9c117326-bed6-4c99-a4d5-47658751c16a",
13
- "item://basemap-extension/1e4d2dbb-0fc7-4187-a89b-a0ab3f5ea016",
14
- "item://basemap-extension/0057950b-c816-476d-9f63-f54166ffb48d",
15
- "item://basemap-extension/84f3d44e-74fd-4181-9cca-3fea5080bac7",
16
- "item://basemap-extension/fa130a15-e3ea-4e14-932c-3171b7fd07cd",
17
- "item://basemap-extension/f7b5b0bb-f066-420f-b706-3028c3f04f28",
18
- "item://basemap-extension/8962b8cc-a188-4bd0-adc2-c95ed4c34504"
9
+ "item://basemap-extension/24bb022a-9fa2-4e07-b107-4ac2e42f7602"
19
10
  ],
20
11
  "groundExtension": "item://ground-extension/7dd61cce-9f0c-4abc-9bad-84587f96080f",
21
12
  "webMap": "https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71",
@@ -71,6 +62,7 @@
71
62
  "id": "24bb022a-9fa2-4e07-b107-4ac2e42f7602",
72
63
  "iconUrl": "./static/arcgis-js-api/esri/images/basemap/streets-vector.jpg",
73
64
  "basemap": {
65
+ "title": "Streets",
74
66
  "baseMapLayers": [
75
67
  {
76
68
  "id": "streets-vector-base-layer",
@@ -78,8 +70,7 @@
78
70
  "layerType": "VectorTileLayer",
79
71
  "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json"
80
72
  }
81
- ],
82
- "title": "Streets"
73
+ ]
83
74
  },
84
75
  "baseLayerExtensions": [
85
76
  "item://layer-extension/2839cd0d-57e0-4a75-8f85-66bc9d15548c"
@@ -102,487 +93,6 @@
102
93
  },
103
94
  "$type": "layer-extension"
104
95
  },
105
- {
106
- "id": "04f17474-6db3-414d-9ff6-d024096a5c10",
107
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/streets-navigation.jpg",
108
- "basemap": {
109
- "baseMapLayers": [
110
- {
111
- "id": "streets-navigation-vector-base-layer",
112
- "title": "World Navigation Map",
113
- "layerType": "VectorTileLayer",
114
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json"
115
- }
116
- ],
117
- "title": "World Navigation Map"
118
- },
119
- "baseLayerExtensions": [
120
- "item://layer-extension/83efbbfb-ab3e-4eeb-9ef3-3d42cb35e631"
121
- ],
122
- "$type": "basemap-extension"
123
- },
124
- {
125
- "id": "83efbbfb-ab3e-4eeb-9ef3-3d42cb35e631",
126
- "layerListSettings": {
127
- "childrenIncluded": false
128
- },
129
- "layer": {
130
- "$ref": {
131
- "id": "streets-navigation-vector-base-layer",
132
- "title": "World Navigation Map",
133
- "subtype": null,
134
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json"
135
- },
136
- "layerType": "VectorTileLayer"
137
- },
138
- "$type": "layer-extension"
139
- },
140
- {
141
- "id": "a10518b2-8327-4f6e-80e1-d6a5df4702be",
142
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/streets-night.jpg",
143
- "basemap": {
144
- "baseMapLayers": [
145
- {
146
- "id": "streets-night-vector-base-layer",
147
- "title": "World Street Map (Night)",
148
- "layerType": "VectorTileLayer",
149
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json"
150
- }
151
- ],
152
- "title": "World Street Map (Night)"
153
- },
154
- "baseLayerExtensions": [
155
- "item://layer-extension/38a8e6fe-d0a3-4c9d-b06d-f0d0cf73199d"
156
- ],
157
- "$type": "basemap-extension"
158
- },
159
- {
160
- "id": "38a8e6fe-d0a3-4c9d-b06d-f0d0cf73199d",
161
- "layerListSettings": {
162
- "childrenIncluded": false
163
- },
164
- "layer": {
165
- "$ref": {
166
- "id": "streets-night-vector-base-layer",
167
- "title": "World Street Map (Night)",
168
- "subtype": null,
169
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json"
170
- },
171
- "layerType": "VectorTileLayer"
172
- },
173
- "$type": "layer-extension"
174
- },
175
- {
176
- "id": "9c117326-bed6-4c99-a4d5-47658751c16a",
177
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/dark-gray-vector.jpg",
178
- "basemap": {
179
- "baseMapLayers": [
180
- {
181
- "id": "dark-gray-base-layer",
182
- "title": "Dark Gray Base",
183
- "layerType": "VectorTileLayer",
184
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json"
185
- },
186
- {
187
- "id": "dark-gray-reference-layer",
188
- "title": "Dark Gray Reference",
189
- "layerType": "VectorTileLayer",
190
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",
191
- "isReference": true
192
- }
193
- ],
194
- "title": "Dark Gray Canvas"
195
- },
196
- "baseLayerExtensions": [
197
- "item://layer-extension/1543445c-2380-4ff6-8e47-8c900314d333"
198
- ],
199
- "referenceLayerExtensions": [
200
- "item://layer-extension/bbf20b04-e7f6-4609-82e1-ea9a2f6cc037"
201
- ],
202
- "$type": "basemap-extension"
203
- },
204
- {
205
- "id": "1543445c-2380-4ff6-8e47-8c900314d333",
206
- "layerListSettings": {
207
- "childrenIncluded": false
208
- },
209
- "layer": {
210
- "$ref": {
211
- "id": "dark-gray-base-layer",
212
- "title": "Dark Gray Base",
213
- "subtype": null,
214
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json"
215
- },
216
- "layerType": "VectorTileLayer"
217
- },
218
- "$type": "layer-extension"
219
- },
220
- {
221
- "id": "bbf20b04-e7f6-4609-82e1-ea9a2f6cc037",
222
- "layerListSettings": {
223
- "childrenIncluded": false
224
- },
225
- "layer": {
226
- "$ref": {
227
- "id": "dark-gray-reference-layer",
228
- "title": "Dark Gray Reference",
229
- "subtype": null,
230
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json"
231
- },
232
- "layerType": "VectorTileLayer"
233
- },
234
- "$type": "layer-extension"
235
- },
236
- {
237
- "id": "1e4d2dbb-0fc7-4187-a89b-a0ab3f5ea016",
238
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/gray-vector.jpg",
239
- "basemap": {
240
- "baseMapLayers": [
241
- {
242
- "id": "gray-base-layer",
243
- "title": "Light Gray Base",
244
- "layerType": "VectorTileLayer",
245
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json"
246
- },
247
- {
248
- "id": "gray-reference-layer",
249
- "title": "Light Gray Reference",
250
- "layerType": "VectorTileLayer",
251
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",
252
- "isReference": true
253
- }
254
- ],
255
- "title": "Light Gray Canvas"
256
- },
257
- "baseLayerExtensions": [
258
- "item://layer-extension/cb65ea39-32ea-4db8-a3e3-b0788e8cc543"
259
- ],
260
- "referenceLayerExtensions": [
261
- "item://layer-extension/ebbe1f42-9636-459e-b9a4-878632eb4fb5"
262
- ],
263
- "$type": "basemap-extension"
264
- },
265
- {
266
- "id": "cb65ea39-32ea-4db8-a3e3-b0788e8cc543",
267
- "layerListSettings": {
268
- "childrenIncluded": false
269
- },
270
- "layer": {
271
- "$ref": {
272
- "id": "gray-base-layer",
273
- "title": "Light Gray Base",
274
- "subtype": null,
275
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json"
276
- },
277
- "layerType": "VectorTileLayer"
278
- },
279
- "$type": "layer-extension"
280
- },
281
- {
282
- "id": "ebbe1f42-9636-459e-b9a4-878632eb4fb5",
283
- "layerListSettings": {
284
- "childrenIncluded": false
285
- },
286
- "layer": {
287
- "$ref": {
288
- "id": "gray-reference-layer",
289
- "title": "Light Gray Reference",
290
- "subtype": null,
291
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json"
292
- },
293
- "layerType": "VectorTileLayer"
294
- },
295
- "$type": "layer-extension"
296
- },
297
- {
298
- "id": "0057950b-c816-476d-9f63-f54166ffb48d",
299
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/satellite.jpg",
300
- "basemap": {
301
- "baseMapLayers": [
302
- {
303
- "id": "satellite-base-layer",
304
- "showLegend": false,
305
- "title": "World Imagery",
306
- "url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",
307
- "layerType": "ArcGISTiledMapServiceLayer"
308
- }
309
- ],
310
- "title": "Imagery"
311
- },
312
- "baseLayerExtensions": [
313
- "item://layer-extension/64a80828-9b7e-43d6-866b-edb37cbf5820"
314
- ],
315
- "$type": "basemap-extension"
316
- },
317
- {
318
- "id": "64a80828-9b7e-43d6-866b-edb37cbf5820",
319
- "layer": {
320
- "$ref": {
321
- "id": "satellite-base-layer",
322
- "title": "World Imagery",
323
- "subtype": null,
324
- "url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
325
- },
326
- "layerType": "ArcGISTiledMapServiceLayer"
327
- },
328
- "$type": "layer-extension"
329
- },
330
- {
331
- "id": "84f3d44e-74fd-4181-9cca-3fea5080bac7",
332
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/hybrid.jpg",
333
- "basemap": {
334
- "baseMapLayers": [
335
- {
336
- "id": "hybrid-base-layer",
337
- "showLegend": false,
338
- "title": "World Imagery",
339
- "url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",
340
- "layerType": "ArcGISTiledMapServiceLayer"
341
- },
342
- {
343
- "id": "hybrid-reference-layer",
344
- "title": "Hybrid Reference Layer",
345
- "layerType": "VectorTileLayer",
346
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",
347
- "isReference": true
348
- }
349
- ],
350
- "title": "Imagery with Labels"
351
- },
352
- "baseLayerExtensions": [
353
- "item://layer-extension/313a5e5e-9707-45aa-ba41-054131ea8ee4"
354
- ],
355
- "referenceLayerExtensions": [
356
- "item://layer-extension/9fc58902-8bc1-46b1-964d-ea0beeea9df3"
357
- ],
358
- "$type": "basemap-extension"
359
- },
360
- {
361
- "id": "313a5e5e-9707-45aa-ba41-054131ea8ee4",
362
- "layer": {
363
- "$ref": {
364
- "id": "hybrid-base-layer",
365
- "title": "World Imagery",
366
- "subtype": null,
367
- "url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
368
- },
369
- "layerType": "ArcGISTiledMapServiceLayer"
370
- },
371
- "$type": "layer-extension"
372
- },
373
- {
374
- "id": "9fc58902-8bc1-46b1-964d-ea0beeea9df3",
375
- "layerListSettings": {
376
- "childrenIncluded": false
377
- },
378
- "layer": {
379
- "$ref": {
380
- "id": "hybrid-reference-layer",
381
- "title": "Hybrid Reference Layer",
382
- "subtype": null,
383
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json"
384
- },
385
- "layerType": "VectorTileLayer"
386
- },
387
- "$type": "layer-extension"
388
- },
389
- {
390
- "id": "fa130a15-e3ea-4e14-932c-3171b7fd07cd",
391
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/topo-vector.jpg",
392
- "basemap": {
393
- "baseMapLayers": [
394
- {
395
- "id": "world-hillshade-layer",
396
- "showLegend": false,
397
- "title": "World Hillshade",
398
- "url": "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
399
- "layerType": "ArcGISTiledMapServiceLayer"
400
- },
401
- {
402
- "id": "topo-vector-base-layer",
403
- "title": "World Topographic Map",
404
- "layerType": "VectorTileLayer",
405
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json"
406
- }
407
- ],
408
- "title": "Topographic"
409
- },
410
- "baseLayerExtensions": [
411
- "item://layer-extension/0420d0f3-ecdb-4c7e-8ed1-a0fabac8e5fe",
412
- "item://layer-extension/3ce31ae1-0213-42c9-b65f-c2555f57e430"
413
- ],
414
- "$type": "basemap-extension"
415
- },
416
- {
417
- "id": "0420d0f3-ecdb-4c7e-8ed1-a0fabac8e5fe",
418
- "layer": {
419
- "$ref": {
420
- "id": "world-hillshade-layer",
421
- "title": "World Hillshade",
422
- "subtype": null,
423
- "url": "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"
424
- },
425
- "layerType": "ArcGISTiledMapServiceLayer"
426
- },
427
- "$type": "layer-extension"
428
- },
429
- {
430
- "id": "3ce31ae1-0213-42c9-b65f-c2555f57e430",
431
- "layerListSettings": {
432
- "childrenIncluded": false
433
- },
434
- "layer": {
435
- "$ref": {
436
- "id": "topo-vector-base-layer",
437
- "title": "World Topographic Map",
438
- "subtype": null,
439
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json"
440
- },
441
- "layerType": "VectorTileLayer"
442
- },
443
- "$type": "layer-extension"
444
- },
445
- {
446
- "id": "f7b5b0bb-f066-420f-b706-3028c3f04f28",
447
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/terrain.jpg",
448
- "basemap": {
449
- "baseMapLayers": [
450
- {
451
- "id": "world-hillshade",
452
- "showLegend": false,
453
- "title": "World Hillshade",
454
- "url": "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
455
- "layerType": "ArcGISTiledMapServiceLayer"
456
- },
457
- {
458
- "id": "terrain-base-layer",
459
- "title": "World Terrain Base",
460
- "layerType": "VectorTileLayer",
461
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/33064a20de0c48d2bb61efa8faca93a8/resources/styles/root.json"
462
- },
463
- {
464
- "id": "terrain-reference-layer",
465
- "title": "World Terrain Reference",
466
- "layerType": "VectorTileLayer",
467
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/14fbc125ccc9488888b014db09f35f67/resources/styles/root.json",
468
- "isReference": true
469
- }
470
- ],
471
- "title": "Terrain with Labels"
472
- },
473
- "baseLayerExtensions": [
474
- "item://layer-extension/955a612f-b7c7-4d28-86f0-6aa5a0d59f47",
475
- "item://layer-extension/0b83a2ae-a276-4a27-a991-9a9203036c87"
476
- ],
477
- "referenceLayerExtensions": [
478
- "item://layer-extension/48479f06-e8da-4f22-acdc-bfbf426ef3e6"
479
- ],
480
- "$type": "basemap-extension"
481
- },
482
- {
483
- "id": "955a612f-b7c7-4d28-86f0-6aa5a0d59f47",
484
- "layer": {
485
- "$ref": {
486
- "id": "world-hillshade",
487
- "title": "World Hillshade",
488
- "subtype": null,
489
- "url": "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"
490
- },
491
- "layerType": "ArcGISTiledMapServiceLayer"
492
- },
493
- "$type": "layer-extension"
494
- },
495
- {
496
- "id": "0b83a2ae-a276-4a27-a991-9a9203036c87",
497
- "layerListSettings": {
498
- "childrenIncluded": false
499
- },
500
- "layer": {
501
- "$ref": {
502
- "id": "terrain-base-layer",
503
- "title": "World Terrain Base",
504
- "subtype": null,
505
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/33064a20de0c48d2bb61efa8faca93a8/resources/styles/root.json"
506
- },
507
- "layerType": "VectorTileLayer"
508
- },
509
- "$type": "layer-extension"
510
- },
511
- {
512
- "id": "48479f06-e8da-4f22-acdc-bfbf426ef3e6",
513
- "layerListSettings": {
514
- "childrenIncluded": false
515
- },
516
- "layer": {
517
- "$ref": {
518
- "id": "terrain-reference-layer",
519
- "title": "World Terrain Reference",
520
- "subtype": null,
521
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/14fbc125ccc9488888b014db09f35f67/resources/styles/root.json"
522
- },
523
- "layerType": "VectorTileLayer"
524
- },
525
- "$type": "layer-extension"
526
- },
527
- {
528
- "id": "8962b8cc-a188-4bd0-adc2-c95ed4c34504",
529
- "iconUrl": "./static/arcgis-js-api/esri/images/basemap/oceans.jpg",
530
- "basemap": {
531
- "baseMapLayers": [
532
- {
533
- "id": "oceans-base-layer",
534
- "showLegend": false,
535
- "title": "World Ocean Base",
536
- "url": "https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",
537
- "layerType": "ArcGISTiledMapServiceLayer"
538
- },
539
- {
540
- "id": "oceans-reference-layer",
541
- "title": "World Ocean Reference",
542
- "layerType": "VectorTileLayer",
543
- "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/89860a5baf424f3ea0c655115faababe/resources/styles/root.json",
544
- "isReference": true
545
- }
546
- ],
547
- "title": "Oceans"
548
- },
549
- "baseLayerExtensions": [
550
- "item://layer-extension/3e297fe4-9a7b-4318-8c50-a7eb3200d44f"
551
- ],
552
- "referenceLayerExtensions": [
553
- "item://layer-extension/26d48d71-19f2-4a7a-ad81-a7407f7c4aeb"
554
- ],
555
- "$type": "basemap-extension"
556
- },
557
- {
558
- "id": "3e297fe4-9a7b-4318-8c50-a7eb3200d44f",
559
- "layer": {
560
- "$ref": {
561
- "id": "oceans-base-layer",
562
- "title": "World Ocean Base",
563
- "subtype": null,
564
- "url": "https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"
565
- },
566
- "layerType": "ArcGISTiledMapServiceLayer"
567
- },
568
- "$type": "layer-extension"
569
- },
570
- {
571
- "id": "26d48d71-19f2-4a7a-ad81-a7407f7c4aeb",
572
- "layerListSettings": {
573
- "childrenIncluded": false
574
- },
575
- "layer": {
576
- "$ref": {
577
- "id": "oceans-reference-layer",
578
- "title": "World Ocean Reference",
579
- "subtype": null,
580
- "url": "https://cdn.arcgis.com/sharing/rest/content/items/89860a5baf424f3ea0c655115faababe/resources/styles/root.json"
581
- },
582
- "layerType": "VectorTileLayer"
583
- },
584
- "$type": "layer-extension"
585
- },
586
96
  {
587
97
  "id": "7dd61cce-9f0c-4abc-9bad-84587f96080f",
588
98
  "$type": "ground-extension"
@@ -654,7 +164,9 @@
654
164
  "language-designer-gen-4a52c284-ccb6-4a55-a8d6-94b632d838ed-title-po3v85": "Results List",
655
165
  "language-designer-gen-d14a8d22-a132-47cf-9d50-b9c759a97ebd-title-5b6mh4": "Results List",
656
166
  "language-designer-gen-e1c66411-032e-412a-b41f-b9892dd5246d-title-7chj0o": "Legend",
657
- "language-designer-gen-589a9171-58ec-426f-8d3c-c9360652a9ba-title-lfu0rk": "Tabs"
167
+ "language-designer-gen-589a9171-58ec-426f-8d3c-c9360652a9ba-title-lfu0rk": "Tabs",
168
+ "language-designer-gen-4a24e1d3-4476-4d68-b9cd-477d07659b38-title-ajmena": "Rows",
169
+ "language-designer-gen-785ddd77-43a4-4f2d-bba8-132f9cf8ca16-title-mdb366": "Results Table"
658
170
  },
659
171
  "$type": "language-resources"
660
172
  },
@@ -984,13 +496,13 @@
984
496
  ],
985
497
  "alternate": {
986
498
  "title": "language-designer-gen-931927bb-e741-4ae8-ba08-e22b3daf8aa1-title-5khlzy",
499
+ "iconId": "theme-light",
987
500
  "action": [
988
501
  {
989
502
  "name": "ui.set-theme",
990
503
  "arguments": "light"
991
504
  }
992
- ],
993
- "iconId": "theme-light"
505
+ ]
994
506
  },
995
507
  "$type": "menu-item"
996
508
  },
@@ -1008,6 +520,7 @@
1008
520
  ],
1009
521
  "alternate": {
1010
522
  "title": "language-designer-gen-undefined-menuitemalttitle-g1abaj",
523
+ "iconId": "activate",
1011
524
  "action": [
1012
525
  {
1013
526
  "name": "ui.deactivate",
@@ -1015,8 +528,7 @@
1015
528
  "component": "item://split/root"
1016
529
  }
1017
530
  }
1018
- ],
1019
- "iconId": "activate"
531
+ ]
1020
532
  },
1021
533
  "$type": "menu-item"
1022
534
  },
@@ -1062,6 +574,22 @@
1062
574
  "id": "589a9171-58ec-426f-8d3c-c9360652a9ba",
1063
575
  "title": "language-designer-gen-589a9171-58ec-426f-8d3c-c9360652a9ba-title-lfu0rk",
1064
576
  "$type": "tabs"
577
+ },
578
+ {
579
+ "id": "4a24e1d3-4476-4d68-b9cd-477d07659b38",
580
+ "title": "language-designer-gen-4a24e1d3-4476-4d68-b9cd-477d07659b38-title-ajmena",
581
+ "$type": "stack"
582
+ },
583
+ {
584
+ "id": "785ddd77-43a4-4f2d-bba8-132f9cf8ca16",
585
+ "icon": "clipboard-table",
586
+ "title": "language-designer-gen-785ddd77-43a4-4f2d-bba8-132f9cf8ca16-title-mdb366",
587
+ "featureActions": "item://menu/96f74426-0050-4881-8d60-17e031419940",
588
+ "$type": "results"
589
+ },
590
+ {
591
+ "id": "96f74426-0050-4881-8d60-17e031419940",
592
+ "$type": "menu"
1065
593
  }
1066
594
  ]
1067
595
  }
@@ -2,21 +2,24 @@
2
2
  <split id="split-a5817a92" resizable="true" config="root">
3
3
  <tabs xmlns="https://geocortex.com/layout/web/v1" id="tabs-543112c0" config="589a9171-58ec-426f-8d3c-c9360652a9ba" grow="0" width="30.714285714285715">
4
4
  <workflow xmlns="https://geocortex.com/layout/v1" id="workflow-3581b6f4" active="false" config="workflow-config-1"/>
5
- <results-list xmlns="https://geocortex.com/layout/v1" id="results-list-b080e39e" config="d14a8d22-a132-47cf-9d50-b9c759a97ebd"/>
6
- <results-list xmlns="https://geocortex.com/layout/v1" id="results-list-3662ab43" config="4a52c284-ccb6-4a55-a8d6-94b632d838ed"/>
7
- <feature-details xmlns="https://geocortex.com/layout/v1" id="feature-details-ec4c6c29" config="333edeb8-b651-4d17-b361-46fc5603c71d"/>
5
+ <results-list xmlns="https://geocortex.com/layout/v1" id="results-list-b080e39e" config="d14a8d22-a132-47cf-9d50-b9c759a97ebd" active="false"/>
6
+ <results-list xmlns="https://geocortex.com/layout/v1" id="results-list-3662ab43" config="4a52c284-ccb6-4a55-a8d6-94b632d838ed" active="false"/>
7
+ <feature-details xmlns="https://geocortex.com/layout/v1" id="feature-details-ec4c6c29" config="333edeb8-b651-4d17-b361-46fc5603c71d" active="false"/>
8
8
  <legend xmlns="https://geocortex.com/layout/v1" id="legend-ab7f8a19" config="e1c66411-032e-412a-b41f-b9892dd5246d" models="#map-primary"/>
9
- <layer-list xmlns="https://geocortex.com/layout/v1" id="layer-list-826e9f3a" config="c1aa340a-8a4c-4034-b397-f46157b14217" models="#map-primary"/>
9
+ <layer-list xmlns="https://geocortex.com/layout/v1" id="layer-list-826e9f3a" config="c1aa340a-8a4c-4034-b397-f46157b14217" models="#map-primary" active="true"/>
10
10
  </tabs>
11
- <map id="map-primary" config="default" grow="100">
12
- <search id="search-2557a463" config="search-config-1" width="20" slot="top-end"/>
13
- <button id="button-3c133eaf" config="a4f5334d-96c3-41e9-983e-75f10fc8b1c8"/>
14
- <button id="button-9119cbb6" config="931927bb-e741-4ae8-ba08-e22b3daf8aa1"/>
15
- <map-3d-toggle xmlns="https://geocortex.com/layout/web/v1" id="map-3d-toggle-376f6dd3" config="map-3d-toggle-config-1" slot="top-end"/>
16
- <compass id="compass-b4586b9f" config="compass-config-1" slot="top-start"/>
17
- <scalebar id="scalebar-39a846f2" config="scalebar-config-1" slot="bottom-start"/>
18
- <button id="button-eb8881da" config="measure-button-config" show-title="false" slot="bottom-start"/>
19
- <button id="button-801867d1" config="get-user-coordinates-button-config" show-title="false" slot="bottom-start"/>
20
- </map>
11
+ <stack id="stack-050de4f1" config="4a24e1d3-4476-4d68-b9cd-477d07659b38">
12
+ <map id="map-primary" config="default" grow="60">
13
+ <search id="search-2557a463" config="search-config-1" width="20" slot="top-end"/>
14
+ <button id="button-3c133eaf" config="a4f5334d-96c3-41e9-983e-75f10fc8b1c8"/>
15
+ <button id="button-9119cbb6" config="931927bb-e741-4ae8-ba08-e22b3daf8aa1"/>
16
+ <map-3d-toggle xmlns="https://geocortex.com/layout/web/v1" id="map-3d-toggle-376f6dd3" config="map-3d-toggle-config-1" slot="top-end"/>
17
+ <compass id="compass-b4586b9f" config="compass-config-1" slot="top-start"/>
18
+ <scalebar id="scalebar-39a846f2" config="scalebar-config-1" slot="bottom-start"/>
19
+ <button id="button-eb8881da" config="measure-button-config" show-title="false" slot="bottom-start"/>
20
+ <button id="button-801867d1" config="get-user-coordinates-button-config" show-title="false" slot="bottom-start"/>
21
+ </map>
22
+ <results-table xmlns="https://geocortex.com/layout/web/v1" id="results-table-c2cd355a" config="785ddd77-43a4-4f2d-bba8-132f9cf8ca16" grow="40" active="false"/>
23
+ </stack>
21
24
  </split>
22
25
  </layout>
@@ -1,7 +1,18 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import https from "node:https";
4
- import defaultWebpackConfig, { merge } from "@vertigis/web-sdk/config/webpack.config.js";
4
+
5
+ let defaultWebpackConfig, merge;
6
+ try {
7
+ const mod = await import("@vertigis/web-sdk/config/webpack.config.js");
8
+ defaultWebpackConfig = mod.default;
9
+ merge = mod.merge;
10
+ } catch {
11
+ const mod = await import("@geosynk/vertigis-web-sdk/config/webpack.config.js");
12
+ defaultWebpackConfig = mod.default;
13
+ merge = mod.merge;
14
+ }
15
+
5
16
 
6
17
  /**
7
18
  * Starts a lightweight zero-dependency dual-port forwarder on port 3000 forwarding to port 3001.
@@ -94,13 +105,16 @@ function setupDualPortBridge(targetPort = 3001, bridgePort = 3000) {
94
105
  }
95
106
  }
96
107
 
108
+ const typeIndex = process.argv.indexOf("--type");
109
+ const isHttp = typeIndex !== -1 && process.argv[typeIndex + 1] === "http";
110
+
97
111
  export default merge(defaultWebpackConfig, {
98
112
  devServer: {
99
113
  allowedHosts: "all",
100
114
  host: "0.0.0.0",
101
115
  port: 3001,
102
- server: "https",
103
- open: "https://localtest.me:3001/",
116
+ server: isHttp ? "http" : "https",
117
+ open: isHttp ? "http://localhost:3001/" : "https://localtest.me:3001/",
104
118
  headers: {
105
119
  "Access-Control-Allow-Origin": "*",
106
120
  "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
@@ -109,10 +123,10 @@ export default merge(defaultWebpackConfig, {
109
123
  },
110
124
  client: {
111
125
  webSocketURL: {
112
- hostname: "localtest.me",
126
+ hostname: isHttp ? "localhost" : "localtest.me",
113
127
  pathname: "/ws",
114
128
  port: 3001,
115
- protocol: "wss",
129
+ protocol: isHttp ? "ws" : "wss",
116
130
  },
117
131
  },
118
132
  setupMiddlewares: (middlewares, devServer) => {
@@ -144,7 +158,9 @@ export default merge(defaultWebpackConfig, {
144
158
  return middlewares;
145
159
  },
146
160
  onListening: function () {
147
- setupDualPortBridge(3001, 3000);
161
+ if (!isHttp) {
162
+ setupDualPortBridge(3001, 3000);
163
+ }
148
164
  },
149
165
  },
150
166
  });