mosaic-headless 1.34.9 → 1.36.0

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.
Files changed (37) hide show
  1. package/SKILL.md +96 -58
  2. package/assets/templates/platforms/claude-ai.json +1 -1
  3. package/assets/templates/platforms/claude-code.json +1 -1
  4. package/assets/templates/platforms/codex-cli.json +1 -1
  5. package/assets/templates/platforms/copilot.json +1 -1
  6. package/assets/templates/platforms/gemini-cli.json +1 -1
  7. package/data/component-wall-verification.csv +2 -1
  8. package/data/data-class-hierarchy.csv +6 -1
  9. package/data/default-children.csv +2 -0
  10. package/data/form-surface-verification.csv +8 -3
  11. package/data/interaction-types.csv +1 -1
  12. package/data/interaction-verification.csv +4 -0
  13. package/data/node-properties.csv +15 -10
  14. package/data/node-types.csv +7 -2
  15. package/data/node-verification.csv +7 -2
  16. package/data/placement-rules.csv +7 -2
  17. package/data/style-properties.csv +4 -4
  18. package/data/style-state-verification.csv +16 -9
  19. package/data/style-states.csv +11 -8
  20. package/data/tutorial-recipes-verification.csv +17 -0
  21. package/package.json +1 -1
  22. package/references/design-system.md +14 -0
  23. package/references/failure-modes.md +12 -4
  24. package/references/interactions.md +91 -48
  25. package/references/placement.md +5 -5
  26. package/references/tutorials.md +57 -0
  27. package/references/upgrading.md +67 -1
  28. package/scripts/check-release.mjs +7 -6
  29. package/sites/_forms.py +53 -11
  30. package/tools/build_page.py +3 -1
  31. package/tools/interactions.py +215 -0
  32. package/tools/probe_accordion.py +1 -1
  33. package/tools/sweep_components.py +1 -1
  34. package/tools/sweep_interactions.py +28 -1
  35. package/tools/sweep_style_states.py +1 -1
  36. package/tools/verify_components.py +57 -2
  37. package/tools/verify_recipes.py +307 -0
@@ -8,7 +8,9 @@ hover-tab,global,div,&:where(.m-tab:not(.m-tab--active)):HOVER,COMPILED,._m:wher
8
8
  hover-when-link,global,div,"&:where([tabindex]:not([tabindex=""-1""]),a[href]:not([disabled]),button:not([disabled])):HOVER",COMPILED,"._n:where([tabindex]:not([tabindex=""-1""]),a[href]:not([disabled]),button:not([disabled])):"
9
9
  ____loop_pagination_number--active,node-type,loop-pagination-number,&.m-loop-pagination-number--active,NO_HOST,host loop-pagination-number is COMMIT_500 - committing it breaks the page
10
10
  ____loop_pagination_number_ellipsis,node-type,loop-pagination-number,&.m-loop-pagination-number-ellipsis,NO_HOST,host loop-pagination-number is COMMIT_500 - committing it breaks the page
11
- ___arrow_hidden,node-type,,&:where(.m-slider-arrow--hidden),SKIPPED,no node type declares Mosaic/NodeTypes/Pro/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
11
+ ___accordion-item--opened,node-type,accordion-item,"&.m-accordion-item--opened,.m-accordion-item:where(.m-accordion-item--opened) > &,.m-accordion-item:where(.m-accordion-item--opened) > .m-accordion-title &",NO_HOST,host accordion-item is BROKE_PAGE - committing it breaks the page
12
+ ___accordion-item--opening,node-type,accordion-item,"&.m-accordion-item--opening,.m-accordion-item:where(.m-accordion-item--opening) > &,.m-accordion-item:where(.m-accordion-item--opening) > .m-accordion-title &",NO_HOST,host accordion-item is BROKE_PAGE - committing it breaks the page
13
+ ___arrow_hidden,node-type,,&:where(.m-slider-arrow--hidden),SKIPPED,no node type declares Mosaic/NodeTypes/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
12
14
  ___checkbox-input--checked,node-type,checkbox-input,&:checked,NO_HOST,host checkbox-input is BROKE_PAGE - committing it breaks the page
13
15
  ___checkbox-input--checkmark,node-type,checkbox-input,&:checked::before,NO_HOST,host checkbox-input is BROKE_PAGE - committing it breaks the page
14
16
  ___choice--checked,node-type,choice,&:has(:where(input):checked),COMPILED,._h:has(:where(input):checked)
@@ -16,19 +18,21 @@ ___choice--checked-within,node-type,choice,.m-choice:where(:has(input:checked))
16
18
  ___choice--focus-visible,node-type,choice,&:has(:where(input):focus-visible),COMPILED,._j:has(:where(input):focus-visible)
17
19
  ___choice-field--invalid,node-type,choice-field,&:has(:user-invalid),COMPILED,._h:has(:user-invalid)
18
20
  ___choice-field--invalid-within,node-type,choice-field,.m-choice-field:where(:has(:user-invalid)) &,COMPILED,.m-choice-field:where(:has(:user-invalid)) ._k
21
+ ___dropdown--opened,node-type,,"&.m-dropdown:where(.dropdown--opened),.m-dropdown:where(.dropdown--opened) > &,.m-dropdown:where(.dropdown--opened) > :where( .m-dropdown-toggle) &",SKIPPED,no node type declares Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
19
22
  ___dropdown--opening,node-type,,.m-dropdown:where(.dropdown--opening) &,SKIPPED,no node type declares Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
20
23
  ___dropdown-toggle--current,node-type,dropdown-toggle,&.m-dropdown-toggle--current,COMPILED,._h.m-dropdown-toggle--current
21
24
  ___dropdown-toggle--current-within,node-type,dropdown-toggle,".m-dropdown:where(:has(.m-menu-link--current,.m-dropdown-toggle--current)) > &",COMPILED,".m-dropdown:where(:has(.m-menu-link--current,.m-dropdown-toggle--current)) > ._i"
22
- ___field--focus-visible,node-type,field,"&:has(:where(input, textarea, select):focus-visible)",COMPILED,"._h:has(:where(input, textarea, select):focus-visible)"
23
- ___field--invalid,node-type,field,&:has(:user-invalid),COMPILED,._i:has(:user-invalid)
24
- ___field--invalid-focus-visible,node-type,field,&:has(:user-invalid:focus-visible),COMPILED,._j:has(:user-invalid:focus-visible)
25
- ___field--invalid-within,node-type,field,.m-field:where(:has(:user-invalid)) &,COMPILED,.m-field:where(:has(:user-invalid)) ._k
26
- ___field-set--invalid,node-type,fieldset,&:has(:user-invalid),COMPILED,._h:has(:user-invalid)
25
+ ___field--focus-visible,node-type,field,"&:has(:where(input, textarea, select, .m-select-toggle):focus-visible)",COMPILED,"._h:has(:where(input, textarea, select, .m-select-toggle):focus-visible)"
26
+ ___field--invalid,node-type,field,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",COMPILED,"._i:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))"
27
+ ___field--invalid-focus-visible,node-type,field,"&:has(:user-invalid:focus-visible, :where(.m-select-toggle:focus-visible ~ :user-invalid, .m-select-toggle[aria-invalid=""true""]:focus-visible))",COMPILED,"._j:has(:user-invalid:focus-visible, :where(.m-select-toggle:focus-visible ~ :user-invalid"
28
+ ___field--invalid-within,node-type,field,".m-field:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",COMPILED,".m-field:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) ._k"
29
+ ___field-set--invalid,node-type,fieldset,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",COMPILED,"._h:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))"
27
30
  ___fileupload-input--selector-button,node-type,fileupload-input,&::file-selector-button,COMPILED,._h::file-selector-button
28
31
  ___fileupload-input--selector-button-hover,node-type,fileupload-input,&::file-selector-button:hover,COMPILED,._i::file-selector-button:hover
29
32
  ___form--error,node-type,form-wrapper,"&[data-form-state=""error""]",COMPILED,"._h[data-form-state=""error""]"
30
- ___form--invalid-within,node-type,form-wrapper,.m-form-wrapper:where(:has(:user-invalid)) &,COMPILED,.m-form-wrapper:where(:has(:user-invalid)) ._k
33
+ ___form--invalid-within,node-type,form-wrapper,".m-form-wrapper:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",COMPILED,".m-form-wrapper:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) ._k"
31
34
  ___input--placeholder,node-type,text-input,&.m-input::placeholder,COMPILED,._h.m-input::placeholder
35
+ ___listbox-option,node-type,listbox,&.m-listbox :where(option),COMPILED,._h.m-listbox :where(option)
32
36
  ___loop_element_no_result,node-type,loop,&.m-loop--no-result,NO_HOST,host loop is COMMIT_500 - committing it breaks the page
33
37
  ___loop_pagination_button--disabled,node-type,loop-pagination-button-next,&.m-loop-pagination-button--disabled,NO_HOST,host loop-pagination-button-next is BROKE_PAGE - committing it breaks the page
34
38
  ___menu-link--current,node-type,menu-link,&.m-menu-link--current,COMPILED,._h.m-menu-link--current
@@ -36,10 +40,13 @@ ___navbar--dropdown-mode,node-type,navbar,"&:where(.m-navbar.dropdown-mode,.m-na
36
40
  ___navbar--opened,node-type,navbar,.dropdown-mode:where(.m-navbar.dropdown--opened) &,COMPILED,.dropdown-mode:where(.m-navbar.dropdown--opened) ._i
37
41
  ___navbar--opening,node-type,navbar,.dropdown-mode:where(.m-navbar.dropdown--opening) &,COMPILED,.dropdown-mode:where(.m-navbar.dropdown--opening) ._j
38
42
  ___nested_dropdown_mode,node-type,,"&:where(.dropdown-mode .m-navbar-navigation .m-dropdown &, .m-dropdown .m-dropdown &):not(x)",SKIPPED,no node type declares Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
43
+ ___popover--flipped,node-type,popover,"&:where(.m-popover[data-mosaic-popover-flipped],.m-popover[data-mosaic-popover-flipped] &)",COMPILED,"._h:where(.m-popover[data-mosaic-popover-flipped],.m-popover[data-mosaic-popover-flipped] "
39
44
  ___radio-input--checked,node-type,radio-input,&:checked,NO_HOST,host radio-input is BROKE_PAGE - committing it breaks the page
40
45
  ___radio-input--checkmark,node-type,radio-input,&:checked::before,NO_HOST,host radio-input is BROKE_PAGE - committing it breaks the page
41
- ___select-input-option,node-type,select-input,"&.m-select:where(:has(option:not(:disabled):checked)), &.m-select :where(option)",COMPILED,"._h.m-select:where(:has(option:not(:disabled):checked)), ._h.m-select :where(option)"
42
- ___select-input-option--disabled,node-type,select-input,"&.m-select:where(:has(option:disabled:checked)), &.m-select :where(option:disabled)",COMPILED,"._i.m-select:where(:has(option:disabled:checked)), ._i.m-select :where(option:disabled)"
46
+ ___select--opened,node-type,select,"&.m-select:where(.m-select--opened),.m-select:where(.m-select--opened) > &,.m-select:where(.m-select--opened) > .m-select-toggle &,.m-select:where(.m-select--opened) > .m-select-options &",ABSENT,probe element never reached the page
47
+ ___select-option--active,node-type,select-option,"&.m-select-option--active,.m-select-option--active &",COMPILED,"._h.m-select-option--active,.m-select-option--active ._h"
48
+ ___select-option--in-toggle,node-type,select-option,"&.m-select-current-option,.m-select-current-option &",COMPILED,"._i.m-select-current-option,.m-select-current-option ._i"
49
+ ___select-option--selected,node-type,select-option,"&[aria-selected=""true""],&.m-select-option--selected,[aria-selected=""true""] &,.m-select-option--selected &",COMPILED,"._j[aria-selected=""true""],._j.m-select-option--selected,[aria-selected=""true""] ._j,.m-sele"
43
50
  ___slide--active,node-type,slider-slide,.m-slide--active > &,NO_HOST,host slider-slide is BROKE_PAGE - committing it breaks the page
44
51
  ___slider_navigation_bullet--active,node-type,slider-navigation-bullet,&.m-slider-bullet--active,NO_HOST,host slider-navigation-bullet is COMMIT_500 - committing it breaks the page
45
52
  ___slider_navigation_bullet--hover,node-type,slider-navigation-bullet,&:not(.m-slider-bullet--active):HOVER,NO_HOST,host slider-navigation-bullet is COMMIT_500 - committing it breaks the page
@@ -23,16 +23,17 @@ ___dropdown--opened,"&.m-dropdown:where(.dropdown--opened),.m-dropdown:where(.dr
23
23
  ___dropdown--opening,.m-dropdown:where(.dropdown--opening) &,600,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
24
24
  ___dropdown-toggle--current,&.m-dropdown-toggle--current,500,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownToggle/DropdownToggleElementTypeFactory.php
25
25
  ___dropdown-toggle--current-within,".m-dropdown:where(:has(.m-menu-link--current,.m-dropdown-toggle--current)) > &",500,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownToggle/DropdownToggleElementTypeFactory.php
26
- ___field--focus-visible,"&:has(:where(input, textarea, select):focus-visible)",760,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
27
- ___field--invalid,&:has(:user-invalid),700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
28
- ___field--invalid-focus-visible,&:has(:user-invalid:focus-visible),770,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
29
- ___field--invalid-within,.m-field:where(:has(:user-invalid)) &,700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
30
- ___field-set--invalid,&:has(:user-invalid),700,node-type,Mosaic/NodeTypes/Form/Form/MElements/FieldSet/FieldSetElementTypeFactory.php
26
+ ___field--focus-visible,"&:has(:where(input, textarea, select, .m-select-toggle):focus-visible)",760,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
27
+ ___field--invalid,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
28
+ ___field--invalid-focus-visible,"&:has(:user-invalid:focus-visible, :where(.m-select-toggle:focus-visible ~ :user-invalid, .m-select-toggle[aria-invalid=""true""]:focus-visible))",770,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
29
+ ___field--invalid-within,".m-field:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
30
+ ___field-set--invalid,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",700,node-type,Mosaic/NodeTypes/Form/Form/MElements/FieldSet/FieldSetElementTypeFactory.php
31
31
  ___fileupload-input--selector-button,&::file-selector-button,0,node-type,Mosaic/NodeTypes/Form/Form/MElements/FileUpload/FileUploadElementTypeFactory.php
32
32
  ___fileupload-input--selector-button-hover,&::file-selector-button:hover,100,node-type,Mosaic/NodeTypes/Form/Form/MElements/FileUpload/FileUploadElementTypeFactory.php
33
33
  ___form--error,"&[data-form-state=""error""]",700,node-type,Mosaic/NodeTypes/Form/FormWrapperElementTypeFactory.php
34
- ___form--invalid-within,.m-form-wrapper:where(:has(:user-invalid)) &,700,node-type,Mosaic/NodeTypes/Form/FormWrapperElementTypeFactory.php
34
+ ___form--invalid-within,".m-form-wrapper:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",700,node-type,Mosaic/NodeTypes/Form/FormWrapperElementTypeFactory.php
35
35
  ___input--placeholder,&.m-input::placeholder,0,node-type,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementTypeFactory.php
36
+ ___listbox-option,&.m-listbox :where(option),500,node-type,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementTypeFactory.php
36
37
  ___loop_element_no_result,&.m-loop--no-result,600,node-type,Mosaic/NodeTypes/Loop/LoopElementTypeFactory.php
37
38
  ___loop_pagination_button--disabled,&.m-loop-pagination-button--disabled,800,node-type,Mosaic/NodeTypes/Loop/LoopPagination/Button/ButtonNext/LoopPaginationButtonNextElementTypeFactory.php
38
39
  ___menu-link--current,&.m-menu-link--current,500,node-type,Mosaic/NodeTypes/Menu/MenuLink/MenuLinkElementTypeFactory.php
@@ -43,8 +44,10 @@ ___nested_dropdown_mode,"&:where(.dropdown-mode .m-navbar-navigation .m-dropdown
43
44
  ___popover--flipped,"&:where(.m-popover[data-mosaic-popover-flipped],.m-popover[data-mosaic-popover-flipped] &)",600,node-type,Mosaic/NodeTypes/Pro/Popover/PopoverElementTypeFactory.php
44
45
  ___radio-input--checked,&:checked,500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementTypeFactory.php
45
46
  ___radio-input--checkmark,&:checked::before,500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementTypeFactory.php
46
- ___select-input-option,"&.m-select:where(:has(option:not(:disabled):checked)), &.m-select :where(option)",500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
47
- ___select-input-option--disabled,"&.m-select:where(:has(option:disabled:checked)), &.m-select :where(option:disabled)",800,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
47
+ ___select--opened,"&.m-select:where(.m-select--opened),.m-select:where(.m-select--opened) > &,.m-select:where(.m-select--opened) > .m-select-toggle &,.m-select:where(.m-select--opened) > .m-select-options &",600,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
48
+ ___select-option--active,"&.m-select-option--active,.m-select-option--active &",500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
49
+ ___select-option--in-toggle,"&.m-select-current-option,.m-select-current-option &",600,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
50
+ ___select-option--selected,"&[aria-selected=""true""],&.m-select-option--selected,[aria-selected=""true""] &,.m-select-option--selected &",400,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
48
51
  ___slide--active,.m-slide--active > &,500,node-type,Mosaic/NodeTypes/Slider/SliderSlides/SliderSlide/SliderSlideElementTypeFactory.php
49
52
  ___slider_navigation_bullet--active,&.m-slider-bullet--active,500,node-type,Mosaic/NodeTypes/Slider/SliderNavigation/SliderNavigationBullet/SliderNavigationBulletElementTypeFactory.php
50
53
  ___slider_navigation_bullet--hover,&:not(.m-slider-bullet--active):HOVER,100,node-type,Mosaic/NodeTypes/Slider/SliderNavigation/SliderNavigationBullet/SliderNavigationBulletElementTypeFactory.php
@@ -0,0 +1,17 @@
1
+ recipe,check,status,evidence
2
+ OVERLAY,faded and display:none after load,PASS,"{'bg': 'rgb(255, 255, 255)', 'op': '0', 'd': 'none', 'tr': 'none'}"
3
+ OVERLAY,page underneath takes a real click,PASS,clicked #rx-dark
4
+ DARK,Dark switches the page,PASS,"rgb(250, 250, 245) -> rgb(20, 22, 28)"
5
+ DARK,Dark sets the cookie,PASS,rx-mode=dark
6
+ DARK,a reload keeps Dark,PASS,"rgb(20, 22, 28)"
7
+ DARK,Light switches back,PASS,"rgb(250, 250, 245), rx-mode=light"
8
+ LOOP,moves on its own,PASS,153.434px -> 182.25px
9
+ LOOP,hover suspends it by Interaction ID,PASS,183.644px = 183.644px
10
+ LOOP,leaving resumes it,PASS,183.644px -> 196.695px
11
+ LOOP,still moving past one 4s cycle,PASS,198.316px -> 0.350098px
12
+ OFFCANV,"odd click opens: display flex, slid in",PASS,"{'bg': 'rgb(240, 240, 240)', 'op': '1', 'd': 'flex', 'tr': '0%'}"
13
+ OFFCANV,even click closes: display none at the end,PASS,"{'bg': 'rgb(240, 240, 240)', 'op': '1', 'd': 'none', 'tr': '100%'}"
14
+ PROGRESS,bar fills as the article scrolls,PASS,-100% -> -55.1729% -> -0.968059%
15
+ REVEAL,first section reveals on scroll,PASS,"{'bg': 'rgb(9, 99, 199)', 'op': '1', 'd': 'block', 'tr': '0px'}"
16
+ REVEAL,second stays hidden until reached,PASS,"{'bg': 'rgb(9, 99, 199)', 'op': '0', 'd': 'block', 'tr': '0px 40px'}"
17
+ REVEAL,second reveals by class alone,PASS,"{'bg': 'rgb(9, 99, 199)', 'op': '1', 'd': 'block', 'tr': '0px'}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mosaic-headless",
3
- "version": "1.34.9",
3
+ "version": "1.36.0",
4
4
  "description": "AI-agent skill: build Mosaic Pro (Nextend) WordPress sites by writing the underlying data model directly - 23 custom tables, no visual editor, no DOM. Every node type, style property and node property swept against a live install and asserted on the delivered HTML and compiled CSS. Installs into Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot, Continue, Windsurf and Claude.ai.",
5
5
  "keywords": [
6
6
  "wordpress",
@@ -174,6 +174,20 @@ inheritance (measured on 1.0.11: 18 declarations on one div). A dark band is one
174
174
  targets the `html` element with a `collectionMode` property, since interactions can
175
175
  set it too. The mode listed first in a collection is the default.
176
176
 
177
+ A theme `heal()` made has one mode; a second one is a record on any document
178
+ instance's commit, under the key `collectionMode` (measured on 1.0.11):
179
+
180
+ ```json
181
+ {"ID": "<uuid>", "parentType": "collection", "parentID": "<collectionID>",
182
+ "ordering": "a5", "status": "publish", "revision": "", "version": "",
183
+ "data": {"name": "Dark", "icon": ""}}
184
+ ```
185
+
186
+ Each variable then carries a value per mode - `skinsData: {<skin>: {<lightMode>:
187
+ {"value": …}, <darkMode>: {"value": …}}}` - and a variable with no value for the new
188
+ mode shows the sub-factory default there. The site-wide switcher (buttons, cookie,
189
+ page-load re-apply) is a recipe in references/interactions.md, measured end to end.
190
+
177
191
  ### Which class wins
178
192
 
179
193
  From lowest to highest: **Variant < Variant sub class < Universal class < Universal
@@ -397,14 +397,22 @@ was valid. Every field had been dropped on the way in, for three different reaso
397
397
  `*ElementMResourceFactory.php` and every extractor here walked
398
398
  `*ElementTypeFactory.php` only. Two types were missing from the catalog; the
399
399
  walk now covers both and the count went 126 → 128.
400
- - **`select-option` is a leaf and its label is the `text` PROPERTY.** Give it a
401
- `wysiwyg-text` child and the option renders with an empty label: a dropdown that
402
- opens onto five blank lines, which looks like a styling problem and is not.
400
+ - **Up to 1.0.11, `select-option` was a leaf and its label the `text` PROPERTY.**
401
+ A `wysiwyg-text` child rendered an empty label: a dropdown that opened onto five
402
+ blank lines. **1.0.12 reversed it.** `select-input` is gone; the dropdown is now
403
+ `select > select-toggle (select-placeholder, icon) + select-options > select-option`,
404
+ and a `select-option`'s label is a CHILD (`text` > `wysiwyg-text`, or anything
405
+ else) - a `text` property on it is not a declared property any more. The native
406
+ control lives on as `listbox` / `listbox-option`, and THAT option is still the
407
+ leaf with `text`. Writing a 1.0.11 tree to 1.0.12 is the new way to get blank
408
+ options; see `references/upgrading.md` for what the data upgrade rewrote.
403
409
 
404
410
  The through-line is the one this file keeps recording: Mosaic accepts a write it
405
411
  cannot use and says nothing. The defence is to read the delivered page back and
406
412
  count what arrived — `verify_components.py` now asserts the control count, the option
407
- labels and that an empty required form is actually refused.
413
+ labels and that an empty required form is actually refused, and on 1.0.12 drives the
414
+ custom select: it opens, a click and the keyboard both pick, the hidden input carries
415
+ the value, and a submit with nothing picked marks the toggle `aria-invalid`.
408
416
 
409
417
  ## `display` on an element whose visibility the plugin owns — twice now
410
418
 
@@ -8,8 +8,10 @@ every node-type state in `data/style-states.csv`. Reach for it first;
8
8
  `references/styling.md` has the shapes.
9
9
 
10
10
  **The interaction path** is this document: scroll-driven and event-driven animation
11
- with keyframes, run by Mosaic's own JavaScript. It is **partially verified**, and this
12
- page is explicit about where the verified part ends.
11
+ with keyframes, run by Mosaic's own JavaScript. Since v1.35 it is verified end to end
12
+ - values included - in the shape the editor stores; `tools/interactions.py` writes it.
13
+ Prefer it over custom code for anything the editor can express: a client can open
14
+ and change an interaction, but not a script.
13
15
 
14
16
  ## What is confirmed
15
17
 
@@ -68,61 +70,102 @@ Confirmed from it:
68
70
  it is a percentage of the scroll range, not milliseconds.
69
71
  - **`easing` is defaulted to `ease`** by the server.
70
72
 
71
- ## What is NOT solved - and exactly how far it now goes
73
+ ## Animation values: solved, in the editor's own shape
72
74
 
73
- `tools/sweep_interactions.py` commits candidate shapes to a live page and judges each
74
- against `var mosaicInteractions` in the delivered HTML **and** against the row read
75
- back out of the database, with negative controls. Results in
76
- `data/interaction-verification.csv`.
77
-
78
- **`propertyMetas` is NOT the problem, and the previous claim here was wrong.** It is
79
- accepted, stored, and keeps its order:
75
+ Until v1.35 this section said the property VALUES could not be written headlessly:
76
+ every attempt stored the timing and the `propertyMetas` and lost `initial` and the
77
+ keyframes' `properties`. The experiment that settled it was the one this page kept
78
+ recommending - author one tween in the 1.0.11 editor and read the row back - and the
79
+ editor's shape differs from every candidate tried in three ways:
80
80
 
81
81
  ```json
82
- "propertyMetas": [{"uuid": "<uuid>", "type": "predefined", "timelineKey": "_",
83
- "predefinedOptions": {"name": "opacity"}}]
82
+ "animationOptions": {
83
+ "propertyMetas": [{"type": "predefined", "timelineKey": "_",
84
+ "predefinedOptions": {"name": "opacity"}, "uuid": "M"}],
85
+ "initial": {"M": "0%"},
86
+ "keyframes": [{"uuid": "K", "duration": 1000, "properties": {"M": "80%"}}]
87
+ }
84
88
  ```
85
89
 
86
- `type` is one of `predefined | custom | static | collectionMode | collectionVariable
87
- | display`; the options key is that type plus `Options`
88
- (`KeyframePropertyMetaTypeFactoryAbstract::getPropertyMetaOptionsDataName()`), and
89
- for `predefined` the `name` is the property itself - the full list is
90
- `data/animatable-properties.csv`.
90
+ 1. **`initial` and `properties` are keyed by the META's uuid**, never by the property
91
+ name. (The old reading - "for a predefined meta the name is the property" - was
92
+ wrong: a meta is a data-array item, and an item's name is its id.)
93
+ 2. **Values are CSS strings with their unit** - `"0%"`, `"40px"`, `"0px"` - not
94
+ bare numbers.
95
+ 3. **On a timed trigger the keyframe carries `duration` / `delay` in ms**; only the
96
+ progress family (`scrollIntoView`, `pointerMove`) uses `progressData` 0-100.
91
97
 
92
- **`uuid` is optional on create and REQUIRED on update.** `DataArray::initValues`
93
- mints one when it is missing, but `DataArray::applyCommitData` matches existing items
94
- by uuid and rebuilds `order` from `array_column($new, 'uuid')` - so on any later
95
- commit an item without a uuid is not matched, not carried into the new order, and
96
- disappears. Measured both ways: the same shape stored 1 meta on create and 0 after an
97
- update.
98
+ `tools/sweep_interactions.py` holds the proof: the editor shape BOUND on `pageLoad`
99
+ and on `scrollIntoView` on the FIRST commit, while the same shape with bare numbers,
100
+ and the same shape keyed by `"opacity"`, both stored zero values - one field apart
101
+ each (data/interaction-verification.csv; the six older candidates are kept as the
102
+ record of what does not work). Don't hand-write these: `tools/interactions.py`
103
+ builds every shape on this page.
98
104
 
99
- **What still does not bind is `initial` and the keyframes' `properties`.** Four
100
- attempts, each with the row read back:
105
+ The rest of what the editor stores, each read back from a hand-authored interaction:
101
106
 
102
- | attempt | result |
107
+ | what | where it lives |
103
108
  |---|---|
104
- | one commit carrying metas + values | metas stored, 0 property values |
105
- | second commit adding the values | metas stored, 0 property values |
106
- | second commit that also REORDERS the metas, so `propertyMetas/order` genuinely changes | reorder took effect in storage, still 0 property values |
107
- | the values written **straight into `wp_mosaic_nodes`**, all caches flushed | still absent from the payload |
108
-
109
- That last row is the informative one: it rules out the trust model, the commit
110
- validators and the cache. The gate is in the export itself -
111
- `KeyframePropertiesDataSub::exportForInteraction()` will only emit a property for
112
- which `$this->hasSubData($name)` is true, and those descriptors exist only where
113
- `AnimationActionOptionsDataSubAbstract::syncAttachedPropertyMetas()` has created
114
- them, on a shared `DataMeta` that starts empty every time the object is constructed.
115
-
116
- So the honest position is: **the envelope, the trigger, the timeline and the property
117
- metas can all be written headlessly; the property VALUES have not been.** Use the CSS
118
- path, which is fully verified - see `data/style-state-verification.csv`, where 36 of
119
- 37 probed states compiled to exactly the selector the table promises.
120
-
121
- The one experiment left, and it is cheap: author a single interaction in the editor,
122
- then `SELECT data FROM wp_mosaic_nodes` for that node. One look settles it.
123
-
124
- **`pointerEnter` produced no `mosaicInteractions` entry at all**, so the timed family
125
- needs something the progress family does not - also unfinished.
109
+ | Interaction ID (what suspend/resume name) | `<type>Options.ID`, `[a-z0-9_]+` |
110
+ | Out of view: keep / suspend / reset | `<type>Options.outOfView` `"0"` / `"1"` / `"2"` |
111
+ | Loop | `<type>Options.actionSlots.<slot>.options.isLoop = "1"` - on the SLOT, not the interaction |
112
+ | Trigger other than the element itself | `<type>Options.trigger` = `{"type": "element" \| "variant" \| "universalClass", "uuid": id}` (`"<id>/<subID>"` for a sub class) |
113
+ | Conditions | `<type>Options.conditions` - see the cookie shape below |
114
+ | Display at the end of the timeline | a meta `{"type": "display", "displayOptions": {"endDisplay": "none"}}`, no keyframe value |
115
+ | Variable mode (Variables > Variable modes) | a meta `{"type": "collectionMode", "collectionModeOptions": {"id": <collectionID>}}`, keyframe value = the mode ID |
116
+ | Set cookie | `{"type": "setCookie", "setCookieOptions": {"settings": {"name", "value"}}}` |
117
+ | Suspend / resume by ID | `{"type": "interactionSuspend", "interactionSuspendOptions": {"settings": {"interactionID": "loop_id"}}}`, `interactionResume` alike |
118
+ | Hide in editor (Navigator) | the node's `data.hidden: true` - the live page still renders it |
119
+
120
+ Two traps in that table, both measured:
121
+
122
+ - **A simple action's fields go under `settings`, not under its opt-group's name.**
123
+ The suspend fields are declared in a group called `suspend`; written there they are
124
+ accepted and dropped, the interaction ID falls back to `all`, and a hover that
125
+ suspends "all" on its element suspends ITSELF - its `out` slot never fires, so the
126
+ resume never runs. The runtime looked broken; the payload showed
127
+ `interactionSuspendOptions: {timelines: {_: null}}`.
128
+ - **A `collectionMode` tween exports as every variable of the collection at that
129
+ mode's value**, so the switch is one keyframe of `duration: 0` on the `document`
130
+ node (the editor's "HTML" element) and the whole page follows.
131
+
132
+ The cookie condition, exactly as the editor stores it:
133
+
134
+ ```json
135
+ "conditions": [{"uuid": "…", "evaluationUnits": [{"uuid": "…",
136
+ "type": "browserCondition",
137
+ "browserConditionOptions": {"subject": {"type": "httpCookie", "httpCookieOptions": {
138
+ "settings": {"name": "color-mode"},
139
+ "comparator": {"type": "text", "textOptions": {
140
+ "operator": "equals", "settings": {"value": "dark"}}}}}}}]}]
141
+ ```
142
+
143
+ ## Mosaic's tutorials, built headlessly
144
+
145
+ https://mosaicbuilder.com/docs/tutorials/ builds four things without custom code.
146
+ `tools/verify_recipes.py` builds all four from `tools/interactions.py` on one page and
147
+ drives them in Chromium - 16 of 16 checks (data/tutorial-recipes-verification.csv):
148
+
149
+ - **Dark/light switcher.** A second mode on the colour collection (a `collectionMode`
150
+ record parented to the collection, values per mode in each variable's
151
+ `skinsData[skin][mode]` - see design-system.md); Dark and Light buttons whose click
152
+ runs `mode_switch` on the `document` node plus `set_cookie`; and a `pageLoad` on
153
+ `document` gated by `cookie_is("color-mode", "dark")`. Measured: background
154
+ switches, the cookie is set, a reload keeps Dark, Light switches back. The cookie
155
+ is a session cookie, so a closed browser starts Light again - as the tutorial says.
156
+ - **Loading overlay.** A fixed full-page div with `data.hidden: true`, a `pageLoad`
157
+ fading opacity to `0%` and `hide_at_end`. Measured: `display:none` after load, and
158
+ the button under it takes a real click.
159
+ - **Reusable animation.** One `elementScrollIntoView` interaction on the FIRST
160
+ section, `trigger` = the section's universal class, no target, a `children`
161
+ modifier naming the child class. Measured: the second section, which has no
162
+ interaction of its own, stays at opacity 0 until scrolled to, then reveals - each
163
+ element fires on its own. (Naming the trigger class as the TARGET would animate
164
+ every section at once.)
165
+ - **Loop with hover pause.** A looping `pageLoad` tween with an Interaction ID and
166
+ `outOfView: "1"`, plus one `hover` whose `in` suspends and `out` resumes that ID.
167
+ Measured: it moves alone, holds still while hovered, moves on leaving, and keeps
168
+ looping past one cycle.
126
169
 
127
170
  ## The failure mode that makes this hard
128
171
 
@@ -19,14 +19,14 @@ component that checks placement, because nothing downstream will.
19
19
 
20
20
  ## The parent side: `data/placement-rules.csv`
21
21
 
22
- One row per node type, extracted from every `canBeParentFor` in the source (122 types):
22
+ One row per node type, extracted from every `canBeParentFor` in the source (134 types, 1.0.12):
23
23
 
24
24
  | rule | count | meaning |
25
25
  |---|---|---|
26
- | `none` | 59 | leaf. Refuses every child — the default on `NodeTypeFactoryAbstract`. |
27
- | `any` | 34 | takes anything. `div`, `body`, `section`, `button`, `menu`, `slider-slide`, `tabs-tab-pane`, … |
28
- | `allow` | 26 | takes only the types in `allowed_children`. |
29
- | `complex` | 3 | the body is not a plain `instanceof` chain — `fieldset`, `select-input`, `styleguide-entry-content-text-quote`. Read the file named in `declared_in`. |
26
+ | `none` | 57 | leaf. Refuses every child — the default on `NodeTypeFactoryAbstract`. |
27
+ | `any` | 46 | takes anything. `div`, `body`, `section`, `button`, `menu`, `slider-slide`, `tabs-tab-pane`, … |
28
+ | `allow` | 29 | takes only the types in `allowed_children`. |
29
+ | `complex` | 2 | the body is not a plain `instanceof` chain — `listbox`, `styleguide-entry-content-text-quote`. Read the file named in `declared_in`. |
30
30
 
31
31
  The `allow` rows are the component families, and they are strict. A few worth knowing
32
32
  by heart because they are the ones people get wrong:
@@ -0,0 +1,57 @@
1
+ # Mosaic's tutorials, mapped to headless builds
2
+
3
+ Mosaic publishes 24 tutorials: four under https://mosaicbuilder.com/docs/tutorials/
4
+ and twenty under https://mosaicbuilder.com/tutorials/ (basics, menus, interactions,
5
+ integrations - all of them listed in the site's `tutorial-sitemap.xml`; the index
6
+ pages load the list with JavaScript, so a plain fetch of them finds only four).
7
+ **None of the 24 uses custom code.** Several say so outright ("without writing any
8
+ JavaScript", "no code required"). That is the bar for this skill too - see "Native
9
+ first" in SKILL.md.
10
+
11
+ Status, per tutorial:
12
+
13
+ - **MEASURED** - built from `tools/interactions.py` by `tools/verify_recipes.py`
14
+ and driven in Chromium (data/tutorial-recipes-verification.csv, 16 of 16).
15
+ - **PARTS** - every piece it uses is measured elsewhere in this skill; the
16
+ tutorial as a whole has not been rebuilt.
17
+ - **OPEN** - at least one piece has not been driven headlessly yet. Named.
18
+
19
+ | tutorial | what it builds | status | how, headlessly |
20
+ |---|---|---|---|
21
+ | docs: dark-light-mode-switcher | site-wide mode toggle, remembered | MEASURED | second `collectionMode`, `mode_switch` on `document` + `set_cookie`, `pageLoad` gated by `cookie_is` |
22
+ | docs: loading-animation | full-page loader that fades out | MEASURED | fixed div, `data.hidden: true`, `pageLoad` opacity + `hide_at_end` |
23
+ | docs: reusable-animations | one scroll reveal reused by class | MEASURED | `elementScrollIntoView`, `trigger=class_target`, no target, `children` modifier; per-child delay with `tween(delay=)` |
24
+ | docs: animation-loop | endless vertical ticker, pause on hover | MEASURED (loop + hover pause) | `on(..., loop=True, ix_id=, out_of_view="1")`, hover `suspend`/`resume` by ID; the reposition tweens are `duration: 0` with a `delay` |
25
+ | interactions: reading-progress-bar | bar that fills while reading | MEASURED | sticky outer, `scrollIntoView` on the article targeting the bar, translateX `-100%` to `0%`, `progress=True, easing="linear"` |
26
+ | menus: off-canvas-menu | full-screen menu, hamburger/close | MEASURED (the toggle) | click `odd` slot: `display(start="flex")` + translateX `100%`>`0%`; `even`: back + `display(end="none")`; `data.hidden: true` on the panel; arrow-on-hover is a CSS state + `transition` |
27
+ | interactions: animated-shape-dividers | SVG divider that scales in and loops | PARTS | icon node with SVG, `transformOrigin`, `pageLoad` scaleY `70%`>`100%`, a second tween back, `loop=True` |
28
+ | interactions: background-clip | image through the letters | PARTS | `backgroundStyle` (clip text, fixed) + transparent `color`; references/styling.md |
29
+ | interactions: background-parallax | fixed section background | PARTS | `backgroundStyle` fixed |
30
+ | interactions: blurred-sticky-cta | frosted sticky button | PARTS | `position: sticky`, `bottom`, `backdropFilter`, background with alpha |
31
+ | interactions: flip-box-3d | card flips on hover | PARTS | `perspective`, `transformStyle`, back-face via `customDeclarations` (the tutorial does the same), hover `in`/`out` rotateY `180deg`/`0deg` on the wrapper |
32
+ | interactions: parallax-effect | rows drifting at two speeds | PARTS | `scrollIntoView` on the section targeting each grid, translateX `10%`>`-10%` and back; start/end via `settings` |
33
+ | interactions: scroll-timeline | sticky icons, fading rows, nested components | PARTS | `elementScrollIntoView` `in`/`out` slots, opacity and colour tweens with variables, sticky `top: 50vh`, nested Part components |
34
+ | interactions: video-controls | custom play / pause / overlay | OPEN (player actions) | click `odd`/`even`, opacity tweens, `player_play` / `player_pause` - their shape is read from the source, not driven yet |
35
+ | interactions: vimeo-hover-play | Vimeo plays on hover, pauses on leave | OPEN (player actions) | hover `in`/`out`, translateY overlay, `player_play`/`player_pause` |
36
+ | menus: mega-menu | dropdown with a component per item | OPEN (dropdown open-on-hover settings) | navbar > dropdown nodes (`mo.py placement`), a menu-item component, grid with an image |
37
+ | basics: layout-system | Section / Container / Row / Column / Grid / Div | PARTS | variants in `mo.py classes`; a node changes kind by its element class |
38
+ | basics: style-icons | library or pasted SVG icons, sized and coloured | PARTS | icon node, `currentColor`, colour variable |
39
+ | basics: context-bar | the editor's search bar | n/a | an editor UI feature; nothing to write |
40
+ | integrations: google-map | Google Maps element | PARTS | `googlemaps` node; the API key is a Mosaic setting the user enters |
41
+ | integrations: metabox | Loop over a CPT with Meta Box fields | PARTS | loop nodes and Meta Box variables, references/custom-fields.md; Order by "Publish date GMT" |
42
+ | integrations: webhook-setup | form posts to Zapier/Make | OPEN (webhook action not driven) | form node + a webhook form action; references/placement.md (forms) |
43
+ | integrations: mailchimp | form subscribes to Mailchimp | OPEN | form action with audience and field map; needs the user's API key |
44
+ | integrations: mailerlite | form subscribes to MailerLite | OPEN | form action; needs the user's API key |
45
+
46
+ What the measured ones settled that the tutorials leave implicit:
47
+
48
+ - The "HTML" element in the Navigator is the `document` node of the master; a
49
+ variable-mode action there re-declares every variable of the collection on it.
50
+ - A suspend without an Interaction ID suspends every interaction on its target,
51
+ including the hover that issued it - so "pause on hover" never resumes. Always pass
52
+ the ID.
53
+ - `click` carries three slots at once - `click` (every click), `odd`, `even` - and
54
+ the off-canvas toggle is odd/even on one interaction, not two interactions.
55
+ - A panel that starts `display: none` in its style can still be opened by a
56
+ `display(start="flex")` action: the action wins for as long as it holds, and
57
+ `display(end="none")` on the closing slot puts it back.
@@ -1,4 +1,4 @@
1
- # Upgrading the plugin: what 1.0.7 → 1.0.8 → 1.0.10 → 1.0.11 did to the data, measured
1
+ # Upgrading the plugin: what 1.0.7 → 1.0.8 → 1.0.10 → 1.0.11 → 1.0.12 did to the data, measured
2
2
 
3
3
  A Mosaic plugin update is two events, not one. The files change when WordPress
4
4
  installs the package; the DATA changes only when Mosaic's own upgrade flow has
@@ -340,3 +340,69 @@ runs had left `master-root`, `styleguide-root`, `component-root` and
340
340
  `parentNodeID` (the master is back to its 7 baseline nodes), and sweep `document`
341
341
  on its own, or not at all. Also, the parent is the FIRST div by `ordering` (what
342
342
  `--setup` picks); a config rebuilt by hand with another div sends the probes there.
343
+
344
+ ## 1.0.11 → 1.0.12
345
+
346
+ **Getting the package.** `wp plugin update mosaic` again: "Updated 1 of 1", the
347
+ right permissions, and `MOSAIC_GLOBAL.dataVersion` / `MOSAIC_SITE.dataVersion` read
348
+ `1.0.12` on the first look afterwards. **The data upgrade now runs on its own, in
349
+ the background** (`MosaicUpgradeLayer/BackgroundUpgrade`); nothing had to be driven.
350
+ `wp plugin list` printed `1.0.11` once, straight after the update, before the
351
+ header read back as 1.0.12 - check `Version:` in `mosaic.php`, not the first list.
352
+ Backups: `wp db export ~/private_html/pre-1012.sql` and a copy of the old folder.
353
+ No duplicate roots afterwards (the health SQL in SKILL.md: 0 groups, 155 roots).
354
+
355
+ **What the migration rewrote: the Select split** (`Upgrade-1.0.12.php`, NEXT-4757,
356
+ written for 1.0.8 and carried forward). The native `select-input` / `select-option`
357
+ pair is gone. Every stored `select-input` became one of two things:
358
+
359
+ - `multiple`, or `size` > 1 → **`listbox`** > `listbox-option` - the native
360
+ `<select class="m-listbox">`, whose option is still a leaf with a `text` property;
361
+ - anything else → the new **`select`**, written out as the factory defaults:
362
+
363
+ ```
364
+ select nameAttribute, required, defaultValue; the root keeps width + font
365
+ select-toggle <button role=combobox> - the visible box, the field chrome moved here
366
+ select-placeholder > text (Inherited text) > wysiwyg-text "Please choose an option"
367
+ icon the chevron SVG
368
+ select-options <div role=listbox>
369
+ select-option value, selected; label is a CHILD: text > wysiwyg-text
370
+ ```
371
+
372
+ Delivered as `<mosaic-select class="m-select">`, plus a hidden
373
+ `<input class="m-select-input" name=…>` that carries the value into the
374
+ submission. The field's invalid / focus-visible state selectors grew a
375
+ `.m-select-toggle[aria-invalid="true"]` arm, because the hidden input is never
376
+ `:user-invalid` - a submit with nothing picked marks the TOGGLE instead. Old
377
+ `___select-input-option*` states became `___listbox-option` on the List box path and
378
+ `___select-option--active` (from a hover) on the Select path; the rest were dropped.
379
+ An empty-valued first option survived the migration as an ordinary option; the
380
+ skill's form builder (`sites/_forms.py`) now turns it into the placeholder instead.
381
+
382
+ **Re-extracted and diffed against 1.0.11:** 134 node types (+7 Select / List box,
383
+ -2), 201 node properties, 131 data classes, 134 placement rules, 27 default
384
+ structures (`select` and `select-toggle` heal their children in), 60 style states
385
+ (`___select--opened`, three option states, `___listbox-option`),
386
+ `gridRow/ColumnStart/End` moved under a `CSSGridChildPositionPropertyFactory`, and
387
+ the `pointerMove` trigger's description gained touch. Pluggables are the same 285.
388
+ `check_tables.py`: every source table matches a fresh extraction.
389
+
390
+ **Re-verified on the live site:** `form-surface` 23/23 (the select opened, picked by
391
+ click and by keyboard, required refused), `component-wall` 27, `content-loop` 15/15,
392
+ `popovers` 37/37, `tokens` 15/15, `dialog-form` 49/49, both sliders 15/15,
393
+ `tutorial-recipes` 16/16, the interaction sweep unchanged (the editor-shape
394
+ candidates still BIND), style states 39 COMPILED of 40 probed, and the seven new
395
+ node types all RENDERED. The 406s some posts return are older than the upgrade:
396
+ those posts have no Mosaic template (`TemplateNotFoundException`).
397
+
398
+ **Two traps hit while doing it, both ours:**
399
+
400
+ - Rebuilding ONE page with `build_site.py` re-fills every component, which re-keys
401
+ their inner nodes (`references/design-system.md`); the other pages that place a
402
+ component keep overrides keyed to the old IDs and fall back to the defaults -
403
+ three identical "專案" cards. Build every page that places a component in the
404
+ same run as the page you changed.
405
+ - `verify_recipes.py --post` binds the recipes template to THAT post. The example
406
+ command said `--post 21`, which on this site is an unrelated probe page; its
407
+ content was replaced and `/probe-recipes/` kept serving an older build. Look the
408
+ ID up first.
@@ -122,21 +122,22 @@ if (!fs.existsSync(path.join(ROOT, pkg.bin["mosaic-headless"])))
122
122
  const rows = (p) => tableFiles(p)
123
123
  .reduce((n, f) => n + read(f).trim().split("\n").length - 1, 0); // minus each header
124
124
  const counts = {
125
- "data/node-verification.csv": 129,
125
+ "data/node-verification.csv": 134,
126
126
  "data/style-verification.csv": 101,
127
127
  "data/node-property-verification.csv": 191,
128
128
  "data/rwd-verification.csv": 733,
129
129
  "data/browser-verification": 4132,
130
- "data/style-state-verification.csv": 52,
131
- "data/interaction-verification.csv": 7,
132
- "data/data-class-hierarchy.csv": 126,
130
+ "data/style-state-verification.csv": 59,
131
+ "data/interaction-verification.csv": 11,
132
+ "data/tutorial-recipes-verification.csv": 16,
133
+ "data/data-class-hierarchy.csv": 131,
133
134
  "data/custom-fields-verification.csv": 62,
134
135
  "data/dialog-verification.csv": 19,
135
136
  "data/slider-verification.csv": 30,
136
137
  "data/token-verification.csv": 15,
137
138
  "data/mobile-audit.csv": 68,
138
- "data/component-wall-verification.csv": 26,
139
- "data/form-surface-verification.csv": 18,
139
+ "data/component-wall-verification.csv": 27,
140
+ "data/form-surface-verification.csv": 23,
140
141
  "data/content-loop-verification.csv": 15,
141
142
  "data/navigation-verification.csv": 39,
142
143
  "data/page-modal-verification.csv": 19,