domma-cms 1.27.1 → 1.27.2
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/CHANGELOG.md +4 -0
- package/admin/js/templates/page-editor.html +24 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.27.2] - 2026-10-31
|
|
4
|
+
|
|
5
|
+
- Page Editor: move External Images into a collapsed section under Settings > Details, freeing space above the editing area while keeping image scanning and domain permissions available.
|
|
6
|
+
|
|
3
7
|
## [1.27.1] - 2026-10-31
|
|
4
8
|
|
|
5
9
|
- Forms: the site's Reduce motion switch now stops form animations, as the device setting already did. A form's entrance and fields that show and hide appear straight away for a visitor who turned motion off on the site; before, only the device's reduced-motion setting was honoured, and the fade, slide and scale field transitions ignored even that.
|
|
@@ -118,30 +118,6 @@
|
|
|
118
118
|
<div class="pe-stage" hidden data-bind-hidden="!active.value">
|
|
119
119
|
<!-- On a block's or a component's tab the Markdown tools step aside; the layout buttons and fullscreen stay. -->
|
|
120
120
|
<div class="editor-toolbar" id="editor-toolbar" data-bind-class="(blockTab.value || compTab.value) && 'pe-toolbar--block'"></div>
|
|
121
|
-
<details class="card" id="page-image-permissions" style="flex:none;max-height:30vh;overflow:auto;margin:0">
|
|
122
|
-
<summary class="p-2">External images <span data-bind-text="imagePolicyReady.value && imageScanned.value ? (imageBlocked.value ? '(' + imageBlocked.value + ' blocked)' : (imageHosts.value.length ? '(all allowed)' : '(none found)')) : ''"></span></summary>
|
|
123
|
-
<div class="card-body">
|
|
124
|
-
<p class="form-hint">Checks the current rendered page, including blocks, shortcodes and inline backgrounds. Allowing a domain lets images from it appear anywhere on this site.</p>
|
|
125
|
-
<button type="button" class="btn btn-secondary btn-sm" data-on-click="scanImages" data-bind-disabled="imageScanning.value"
|
|
126
|
-
data-bind-text="imageScanning.value ? 'Scanning...' : 'Scan images'">Scan images</button>
|
|
127
|
-
<p role="status" hidden data-bind-hidden="!imageError.value" data-bind-text="imageError.value"></p>
|
|
128
|
-
<p hidden data-bind-hidden="!imageScanned.value || imageHosts.value.length">No external images found in the rendered markup.</p>
|
|
129
|
-
<p hidden data-bind-hidden="!imagePolicyReady.value || imageCanAllow.value">Permission to update site settings is required to allow a domain.</p>
|
|
130
|
-
<div data-each="imageHosts.value key=origin">
|
|
131
|
-
<div class="mt-2" style="display:flex;flex-wrap:wrap;align-items:center;gap:.5rem">
|
|
132
|
-
<code style="overflow-wrap:anywhere" data-bind-text="origin"></code>
|
|
133
|
-
<span data-bind-text="$root.imagePolicyReady.value ? status : 'Checking permissions...'"></span>
|
|
134
|
-
<button type="button" class="btn btn-secondary btn-sm"
|
|
135
|
-
hidden data-bind-hidden="allowed || !eligible || !$root.imageCanAllow.value || !$root.imagePolicyReady.value"
|
|
136
|
-
data-bind-disabled="$root.imageAllowing.value"
|
|
137
|
-
data-on-click="$root.allowImageHost(host)">Allow images from this domain</button>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
<p hidden data-bind-hidden="!imageReload.value" role="status">The domain is allowed. Reload this editor to refresh its preview policy. Unsaved changes are kept as a draft.
|
|
141
|
-
<button type="button" class="btn btn-ghost btn-sm" data-on-click="reloadImagePolicy">Reload editor</button>
|
|
142
|
-
</p>
|
|
143
|
-
</div>
|
|
144
|
-
</details>
|
|
145
121
|
<div class="editor-body" id="editor-body" data-bind-class="'editor-mode-' + viewMode.value">
|
|
146
122
|
<div class="editor-pane editor-pane--write">
|
|
147
123
|
<!-- The body is not a data-model: the folding manager owns what the textarea shows. -->
|
|
@@ -393,6 +369,30 @@
|
|
|
393
369
|
<label class="form-check-label" title="Included in fresh installs via the seed script"><input id="field-bundled" type="checkbox" class="form-check" data-model="bundled.value"> Bundled
|
|
394
370
|
<span data-help="Included when a fresh site is seeded. Leave off for pages that belong to this site only."></span></label>
|
|
395
371
|
</div>
|
|
372
|
+
<details class="card" id="page-image-permissions">
|
|
373
|
+
<summary class="p-2">External images <span data-bind-text="imagePolicyReady.value && imageScanned.value ? (imageBlocked.value ? '(' + imageBlocked.value + ' blocked)' : (imageHosts.value.length ? '(all allowed)' : '(none found)')) : ''"></span></summary>
|
|
374
|
+
<div class="card-body">
|
|
375
|
+
<p class="form-hint">Checks the current rendered page, including blocks, shortcodes and inline backgrounds. Allowing a domain lets images from it appear anywhere on this site.</p>
|
|
376
|
+
<button type="button" class="btn btn-secondary btn-sm" data-on-click="scanImages" data-bind-disabled="imageScanning.value"
|
|
377
|
+
data-bind-text="imageScanning.value ? 'Scanning...' : 'Scan images'">Scan images</button>
|
|
378
|
+
<p role="status" hidden data-bind-hidden="!imageError.value" data-bind-text="imageError.value"></p>
|
|
379
|
+
<p hidden data-bind-hidden="!imageScanned.value || imageHosts.value.length">No external images found in the rendered markup.</p>
|
|
380
|
+
<p hidden data-bind-hidden="!imagePolicyReady.value || imageCanAllow.value">Permission to update site settings is required to allow a domain.</p>
|
|
381
|
+
<div data-each="imageHosts.value key=origin">
|
|
382
|
+
<div class="mt-2" style="display:flex;flex-wrap:wrap;align-items:center;gap:.5rem">
|
|
383
|
+
<code style="overflow-wrap:anywhere" data-bind-text="origin"></code>
|
|
384
|
+
<span data-bind-text="$root.imagePolicyReady.value ? status : 'Checking permissions...'"></span>
|
|
385
|
+
<button type="button" class="btn btn-secondary btn-sm"
|
|
386
|
+
hidden data-bind-hidden="allowed || !eligible || !$root.imageCanAllow.value || !$root.imagePolicyReady.value"
|
|
387
|
+
data-bind-disabled="$root.imageAllowing.value"
|
|
388
|
+
data-on-click="$root.allowImageHost(host)">Allow images from this domain</button>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
<p hidden data-bind-hidden="!imageReload.value" role="status">The domain is allowed. Reload this editor to refresh its preview policy. Unsaved changes are kept as a draft.
|
|
392
|
+
<button type="button" class="btn btn-ghost btn-sm" data-on-click="reloadImagePolicy">Reload editor</button>
|
|
393
|
+
</p>
|
|
394
|
+
</div>
|
|
395
|
+
</details>
|
|
396
396
|
</div>
|
|
397
397
|
|
|
398
398
|
<!-- SEO -->
|