domma-cms 1.26.3 → 1.27.1

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.27.1] - 2026-10-31
4
+
5
+ - 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.
6
+
7
+ ## [1.27.0] - 2026-10-31
8
+
9
+ - Forms: a form can now make an entrance. Settings > Entrance animation plays any of the show/hide animations - Fade to Bubble pop - on the whole form as a visitor first scrolls to it, with a Speed and a Preview. It plays once (not again on each step of a multi-step form) and never for visitors who prefer reduced motion.
10
+
3
11
  ## [1.26.3] - 2026-10-31
4
12
 
5
13
  - Admin: keep grouped option cards with faint neutral headers, lighter dividers and thin muted accents. Add missing tab icons and wrap tab rows on narrow screens.
package/admin/index.html CHANGED
@@ -23,7 +23,7 @@
23
23
  <link rel="stylesheet" href="/admin/css/sections.css">
24
24
 
25
25
  <!-- Forms CSS - needed for conditional logic preview (.fb-field-hidden, etc.) -->
26
- <link rel="stylesheet" href="/public/css/forms.css?v=20261031-field-anims-css">
26
+ <link rel="stylesheet" href="/public/css/forms.css?v=20261031-forms-reduce-motion">
27
27
 
28
28
  <!-- Menu item hover / current-page effects - the admin sidebar is a menu
29
29
  like any other, so it honours the same `highlight` block. -->
@@ -90,7 +90,7 @@
90
90
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
91
91
 
92
92
  <!-- Form Logic Engine - needed for conditional logic preview -->
93
- <script src="/public/js/form-logic-engine.js?v=20261031-field-anims"></script>
93
+ <script src="/public/js/form-logic-engine.js?v=20261031-forms-reduce-motion"></script>
94
94
 
95
95
  <!-- Admin App (ES module entry) -->
96
96
  <script type="module" src="/admin/js/app.js"></script>
@@ -114,8 +114,11 @@ Subject Prefix: [Contact Form]</code></pre>
114
114
  <li><strong>Flip</strong>, <strong>Rotate</strong>, <strong>Swing</strong>, <strong>Unfold</strong></li>
115
115
  </ul>
116
116
  <p><strong>Speed</strong> sets how long it takes; <em>Default</em> uses each effect's own timing. Click
117
- <strong>Preview</strong> to play it on a sample. Visitors who ask their device to reduce motion see the
118
- field switch straight away.</p>
117
+ <strong>Preview</strong> to play it on a sample. Visitors who ask for less motion - on their device, or
118
+ with your site's Reduce motion switch - see the field switch straight away.</p>
119
+ <p>The whole form can make an entrance too: on the <strong>Settings</strong> tab, pick an
120
+ <strong>Entrance animation</strong> (the same list) and a Speed. It plays once, as the visitor scrolls to the
121
+ form, and never for visitors who asked for less motion.</p>
119
122
 
120
123
  <h3>File uploads</h3>
121
124
  <p>A <strong>File</strong> field is a drop area: visitors drop a file on it, browse for one or paste it, and
@@ -154,6 +154,28 @@
154
154
  <label class="form-label" for="setting-form-class">CSS classes <span data-help-title="CSS classes" data-help="Your own class names, separated by spaces, added to the form element so you can style it in Custom CSS. Each field has its own CSS classes box too, and the submit button has one under Submit Button."></span></label>
155
155
  <input id="setting-form-class" type="text" class="form-input" placeholder="contact-form is-compact" autocomplete="off" spellcheck="false">
156
156
  <p class="form-hint text-muted" style="margin-top:.3rem;font-size:.8rem;">Letters, digits, hyphens and underscores; no dots.</p>
157
+ </div>
158
+ <!-- settings.entrance / entranceDuration - options filled from
159
+ FormLogicEngine.FIELD_TRANSITIONS by form-editor.js. -->
160
+ <div class="row" style="align-items:flex-end">
161
+ <div class="col-6 mb-3">
162
+ <label class="form-label" for="setting-entrance">Entrance animation <span data-help-title="Entrance animation" data-help="How the whole form appears when a visitor scrolls to it - the same animations fields can use when they show and hide, from Fade to Bubble pop. None shows it straight away. Visitors who ask their device to reduce motion always see it straight away."></span></label>
163
+ <select id="setting-entrance" class="form-select"></select>
164
+ </div>
165
+ <div class="col-6 mb-3" id="setting-entrance-speed-group">
166
+ <label class="form-label" for="setting-entrance-duration">Speed <span data-help-title="Entrance speed" data-help="How long the entrance takes. Default uses the animation's own timing."></span></label>
167
+ <select id="setting-entrance-duration" class="form-select">
168
+ <option value="">Default</option>
169
+ <option value="200">Fast (200ms)</option>
170
+ <option value="350">Medium (350ms)</option>
171
+ <option value="600">Slow (600ms)</option>
172
+ <option value="1000">Very slow (1s)</option>
173
+ </select>
174
+ </div>
175
+ <div class="col-12 mb-3" id="setting-entrance-preview-group" style="display:flex;align-items:center;gap:.6rem;">
176
+ <button type="button" id="setting-entrance-preview" class="btn btn-sm btn-ghost">Preview</button>
177
+ <span id="setting-entrance-sample" style="display:inline-block;padding:.35rem .8rem;border:1px solid var(--dm-border);border-radius:var(--dm-radius);font-size:.8rem;background:var(--dm-surface);">Sample form</span>
178
+ </div>
157
179
  </div>
158
180
  </div>
159
181
  </div>