@globalpayments-private/gpds-pattern-web 0.1.0-pr.6.g07fbefe → 0.1.0-pr.7.gdcb74cd

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
@@ -60,13 +60,21 @@ An event panel shows everything a host application would receive. Validation
60
60
  failures never appear there, which is the visible proof that `vega-form` gates
61
61
  submission before the adapter is called.
62
62
 
63
- The demo shows *behaviour*, not the code a host would write. Putting an
64
- editable copy of that code beside it — with
63
+ The demo shows *behaviour*, not the code a host would write. Beside it,
64
+ **Open as editable source** launches
65
65
  [`vega-sandbox`](https://github.com/heartlandpayments/vega-sandbox), which runs
66
- a real `npm install` and dev server in the page — needs no fork and no Nx
67
- migration, only a library that can actually be installed from a browser. That
68
- is what [publishing](#publishing) unblocked; the wiring itself is still to
69
- come. See [ADR 0007](docs/adr/0007-code-and-preview-in-the-demo.md).
66
+ a real `npm install` and Vite dev server in the browser — the integration code
67
+ on the left, the same card rendering on the right. It needed no fork and no Nx
68
+ migration, only a library that can actually be installed from a browser, which
69
+ is what [publishing](#publishing) unblocked.
70
+
71
+ The project it opens is generated at build time by `npm run build:sandbox` and
72
+ pinned to the exact version that build published, so the source shown is the
73
+ source running. It opens in a new tab rather than an iframe because
74
+ WebContainers need cross-origin isolation, which an iframe can only inherit
75
+ from its top-level page. On `main` the link is replaced by a note until a
76
+ release is cut — the sandbox can only install versions that exist. See
77
+ [ADR 0007](docs/adr/0007-code-and-preview-in-the-demo.md).
70
78
 
71
79
  ### Per-PR previews
72
80
 
@@ -173,6 +181,16 @@ else — install, pack, verify, publish — lives once in
173
181
  composite action both call, so a guard cannot be fixed in one path and
174
182
  forgotten in the other.
175
183
 
184
+ One of those guards exists because it was missed: npm assigns `latest`
185
+ implicitly when a package has no `latest` tag yet, regardless of the `--tag`
186
+ given, so the first preview publish left `npm install` returning a PR build.
187
+ The action now checks `latest` after publishing a prerelease and moves it back
188
+ to the newest real release, warning when there is not one to move it to.
189
+
190
+ > **Until a release tag is cut, there is no stable version.** `latest`
191
+ > currently resolves to a preview. Cutting `v0.1.0` fixes that and is also
192
+ > what enables the sandbox link on the `main` demo.
193
+
176
194
  > **The scope is `@globalpayments-private`, but the package is public.** An npm
177
195
  > scope is an organisation and a token grants write to specific organisations;
178
196
  > ours is for the `globalpayments-private` org, so that is the scope. Package
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-11-06T00:43:12",
2
+ "timestamp": "2026-11-06T18:32:43",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.45.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalpayments-private/gpds-pattern-web",
3
- "version": "0.1.0-pr.6.g07fbefe",
3
+ "version": "0.1.0-pr.7.gdcb74cd",
4
4
  "description": "GPDS pattern library for Web — domain-neutral application patterns composed from UDS components.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -49,6 +49,7 @@
49
49
  },
50
50
  "scripts": {
51
51
  "build": "stencil build --docs",
52
+ "build:sandbox": "node scripts/build-sandbox.mjs",
52
53
  "prepack": "npm run build",
53
54
  "start": "stencil build --dev --watch --serve",
54
55
  "test": "stencil test --spec",
@@ -61,12 +62,14 @@
61
62
  "cypress:run": "cypress run --e2e --config baseUrl=http://localhost:4210",
62
63
  "e2e": "npm run e2e-app:build && start-server-and-test serve:e2e-app http-get://localhost:4210 cypress:run",
63
64
  "generate": "stencil generate",
64
- "postinstall": "patch-package"
65
+ "prepare": "patch-package"
65
66
  },
66
67
  "dependencies": {
67
68
  "@stencil/core": "^4.45.2"
68
69
  },
69
70
  "devDependencies": {
71
+ "@globalpayments/vega-sandbox-app": "^0.1.0-alpha.4",
72
+ "@globalpayments/vega-sandbox-url-codec": "^0.1.0-alpha.6",
70
73
  "@types/jest": "^29.5.12",
71
74
  "cypress": "^13.6.5",
72
75
  "jest": "^29.7.0",