diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index 6af437a..df3de72 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -4,7 +4,7 @@ API Explorer preserves schema discovery, resource links, collection and action f Visible product naming and package ownership use PastureStack. Historical API resource names, schema fields, enum values, response links, and compatibility CSS hooks remain unchanged where supplied by or coupled to the remote API. -Version `1.1.20` preserves the static archive layout, including `ui.min.js`, +Version `1.1.21` preserves the static archive layout, including `ui.min.js`, `ui.min.css`, fonts, licenses and `version.json`, consumed by Server below `/api-ui/`. Server pins its own reviewed component version; changing that pin requires a coordinated embedded-server test. @@ -22,3 +22,8 @@ compiler. Official CVE regressions, precompiled partials, escaped API text and both locales are checked without changing remote field or error values. Before release, validate read-only and mutating resources, actions, pagination, filters, authentication failures, HTML embedding, escaping, cross-origin behavior, and `en-US`/`zh-TW` selection against an isolated compatible server. + +Request dialogs support narrow viewports down to 320 CSS pixels. Text, password, +reference, expanded text, map and array inputs remain inside their field. The +footer stays accessible when a long form scrolls. Resizing preserves request +preview, nullable controls, serialization and cancellation semantics. diff --git a/README.md b/README.md index 198f4e8..b5d5712 100644 --- a/README.md +++ b/README.md @@ -10,25 +10,16 @@ PastureStack is an independent community effort to preserve, audit, and moderniz This maintained compatibility release is based on the latest reviewed upstream `master`, including current Node and dependency maintenance. Package metadata, visible branding, and repository links use PastureStack naming. Existing API schema fields and discovery behavior remain compatible. -The current release is [`v1.1.20`](https://github.com/PastureStack/api-explorer/releases/tag/v1.1.20), -built with the official Node.js `24.22.1` -security release. The browser dependency graph and embedded API contract -remain unchanged. CI verification uses Python `3.14.9`, the internal pip -`26.2.2+pasturestack.1` rebuild with patched urllib3 `2.8.0`, and certifi -`2026.10.19`. The frozen upstream-vendoring helper verifies all input and wheel -hashes and runs streaming/TLS regressions in an isolated CI environment. -This CI-only correction does not replace the existing release artifact. -The original CI archive has SHA-256 -`c989ee12a518f6d9d2b23b1f17f48d781aacf6ec31fb65291dd7de9b1661badb` -and its public download reports signed producer `a586f0d` in `version.json`. -[Exact-producer validation](https://github.com/PastureStack/api-explorer/actions/runs/39949986302) -passed product/security tests, npm audit, two deterministic builds, SBOM, and -source/product scans with zero Critical/High findings in their scanned scope. -The explorer is supported only as a Server-embedded compatibility interface; -this repository does not publish a standalone CDN or npm package. Use the -[Server release documentation](https://github.com/PastureStack/server#readme) -for the current installation and its pinned component artifacts. Dependency -maintenance on `main` does not replace an existing immutable release. +The current public release is [`v1.1.20`](https://github.com/PastureStack/api-explorer/releases/tag/v1.1.20). +Version `1.1.21` is the responsive request-form candidate on this branch. +Inputs follow the available column width, narrow dialogs stack values below +their labels, and long forms scroll inside the dialog while actions remain +reachable. Password fields preserve their exact values and remain masked. + +The explorer is supported as a Server-embedded compatibility interface. Use the +[Server installation documentation](https://github.com/PastureStack/server#readme) +for the released Server and its exact component pins. Source changes do not +replace an existing immutable release. ## Build locally @@ -39,7 +30,7 @@ npm ci --no-audit --no-fund npm run ci ``` -The tracked npm lockfile is the executable dependency contract. The CI command runs security and product tests and compares two complete builds byte for byte. The build emits a deterministic `dist/1.1.20.tar.gz`: file order, modes, ownership, timestamps, and the gzip header are normalized from the source commit. Source maps are excluded from the embedded release artifact. The security release gate retains the tested archive, SBOM, scans and SHA256SUMS for publication without rebuilding. +The tracked npm lockfile is the executable dependency contract. The CI command runs security and product tests and compares two complete builds byte for byte. The build emits a deterministic `dist/1.1.21.tar.gz`: file order, modes, ownership, timestamps, and the gzip header are normalized from the source commit. Source maps are excluded from the embedded release artifact. The security release gate retains the tested archive, SBOM, scans and SHA256SUMS for publication without rebuilding. Handlebars 4.7.10 supplies the official fixes for CVE-2026-106444, CVE-2026-106445 and CVE-2026-106446. Templates and partials are compiled from diff --git a/package-lock.json b/package-lock.json index dc369c9..40c8db2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pasturestack/api-explorer", - "version": "1.1.20", + "version": "1.1.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@pasturestack/api-explorer", - "version": "1.1.20", + "version": "1.1.21", "license": "Apache-2.0", "dependencies": { "handlebars": "4.7.10", diff --git a/package.json b/package.json index f411e2e..66bae0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pasturestack/api-explorer", - "version": "1.1.20", + "version": "1.1.21", "private": true, "description": "Embedded PastureStack explorer for compatible API services", "author": "Original contributors and PastureStack maintainers", diff --git a/partials/field.hbs b/partials/field.hbs index 3533318..8486553 100644 --- a/partials/field.hbs +++ b/partials/field.hbs @@ -26,7 +26,7 @@ {{/ifEqual}} {{#ifInList type 'password,masked'}} - + {{/ifInList}} {{#ifInList type 'number,int,float'}} diff --git a/scripts/ci b/scripts/ci index e2ce25d..fe0b2bd 100644 --- a/scripts/ci +++ b/scripts/ci @@ -35,7 +35,7 @@ for (const section of ['dependencies', 'optionalDependencies']) { } } } -if (pkg.version !== '1.1.20') { +if (pkg.version !== '1.1.21') { fail('PACKAGE_RELEASE_VERSION_UNEXPECTED', `actual=${pkg.version}`); } if (!pkg.engines || pkg.engines.node !== '24.22.3') { diff --git a/src/HTMLApi.js b/src/HTMLApi.js index 3e9ceaa..5496007 100644 --- a/src/HTMLApi.js +++ b/src/HTMLApi.js @@ -128,7 +128,9 @@ HTMLApi.prototype.showModal = function(body,opt,cb) var modalHtml = Handlebars.templates['modal.hbs'](opt); var modal = $(modalHtml); this._reqModal = modal; - $('.modal-dialog',modal).css('width',opt.width||'750px'); + if ( opt.width ) { + $('.modal-dialog',modal).css('max-width',opt.width); + } this.setModalActions(opt.actions); modal.on('keydown', this.onKeys); if ( cb ) @@ -1863,7 +1865,7 @@ HTMLApi.prototype.switchToTextarea = function(button) var val = $input.val(); - var $textarea = $('