@pageboard/html 0.15.3 → 0.15.5

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
@@ -111,7 +111,7 @@ exports.api_form = {
111
111
  title: 'Form or Fetch Name',
112
112
  nullable: true,
113
113
  type: 'string',
114
- format: 'name'
114
+ format: 'singleline'
115
115
  },
116
116
  parameters: {
117
117
  title: 'Parameters',
@@ -129,7 +129,7 @@ exports.api_form = {
129
129
  title: 'Form or Fetch Name',
130
130
  nullable: true,
131
131
  type: 'string',
132
- format: 'name'
132
+ format: 'singleline'
133
133
  },
134
134
  parameters: {
135
135
  title: 'Parameters',
@@ -147,7 +147,7 @@ exports.api_form = {
147
147
  title: 'Form or Fetch Name',
148
148
  nullable: true,
149
149
  type: 'string',
150
- format: 'name'
150
+ format: 'singleline'
151
151
  },
152
152
  parameters: {
153
153
  title: 'Parameters',
@@ -165,7 +165,7 @@ exports.api_form = {
165
165
  title: 'Form or Fetch Name',
166
166
  nullable: true,
167
167
  type: 'string',
168
- format: 'name'
168
+ format: 'singleline'
169
169
  },
170
170
  parameters: {
171
171
  title: 'Parameters',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
package/ui/image.js CHANGED
@@ -132,7 +132,6 @@ const HTMLElementImageConstructor = Superclass => class extends Superclass {
132
132
  }
133
133
 
134
134
  reveal(state) {
135
- const img = this.image;
136
135
  if (!this.options.src) {
137
136
  this.placeholder(true);
138
137
  return;
@@ -140,6 +139,7 @@ const HTMLElementImageConstructor = Superclass => class extends Superclass {
140
139
  if (this.classList.contains('loading')) {
141
140
  return;
142
141
  }
142
+ const img = this.image;
143
143
  const srcLoc = Page.parse(this.options.src);
144
144
  const reqSrc = this.requestSrc(srcLoc);
145
145
  if (!reqSrc) {
@@ -153,14 +153,14 @@ const HTMLElementImageConstructor = Superclass => class extends Superclass {
153
153
  }
154
154
  }
155
155
  captureLoad() {
156
- this.#defer?.resolve();
157
156
  this.classList.remove('loading');
157
+ this.#defer?.resolve();
158
158
  }
159
159
  captureError(e) {
160
- this.#defer?.reject(new Error(this.currentSrc));
161
160
  this.classList.remove('loading');
162
161
  this.classList.add('error');
163
162
  this.placeholder(true);
163
+ this.#defer?.reject(new Error(this.currentSrc));
164
164
  }
165
165
  placeholder(error) {
166
166
  this.image.removeAttribute('src');