@pageboard/html 0.17.1 → 0.17.3

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/elements/form.js CHANGED
@@ -115,6 +115,12 @@ exports.api_form = {
115
115
  title: 'Parameters',
116
116
  nullable: true,
117
117
  type: "object"
118
+ },
119
+ grant: {
120
+ title: 'Grant',
121
+ nullable: true,
122
+ type: 'string',
123
+ format: 'grant'
118
124
  }
119
125
  },
120
126
  nullable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
package/ui/form.js CHANGED
@@ -82,8 +82,14 @@ class HTMLElementForm extends Page.create(HTMLFormElement) {
82
82
  if (this.hidden) toggles.push(submit);
83
83
  state.vars.submit = true;
84
84
  }
85
+ // these are merged after the fact, so merge now to collect state.vars
86
+ for (const n of [200, 400, 401, 403, 404, 500]) {
87
+ const attr = this.getRedirect(n);
88
+ if (attr) Page.parse(attr).fuse({}, state.scope);
89
+ }
90
+
85
91
  const actionLoc = Page.parse(this.getAttribute('action'));
86
- Object.assign(actionLoc.query, state.templatesQuery(this));
92
+ Object.assign(actionLoc.query, state.templatesQuery(this.getAttribute('parameters')));
87
93
  this.setAttribute('action', Page.format(actionLoc));
88
94
  this.restore(state.scope);
89
95
  } else {
package/ui/layout.js CHANGED
@@ -36,7 +36,7 @@ class HTMLElementLayout extends Page.create(HTMLDivElement) {
36
36
  }
37
37
  }
38
38
 
39
- (function(HTMLElementImage) {
39
+ (function (HTMLElementImage) {
40
40
  for (const name of ['crop', 'dimensions', 'requestSrc']) {
41
41
  Object.defineProperty(
42
42
  HTMLElementLayout.prototype,