mosaic-headless 1.33.4 → 1.34.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/README.ja.md CHANGED
@@ -144,8 +144,8 @@ commit の成功はページが動く証拠ではないし、正しいスタイ
144
144
  | 項目 | 結果 |
145
145
  |---|---|
146
146
  | **ノード型** | 129 / 129 を 1 型 1 ドキュメントでスイープ、commit → 描画 → 断言 → 削除:77 RENDERED、25 COMMITTED、15 COMMIT_5xx、12 BROKE_PAGE。1.0.8 で再スイープ:以前は黙って commit されていた 5 型が、親なしではページを落とすようになった。描画されなかった行のうち 3 つは「必要な親なしで commit した」というスイープ手法の産物で、その旨が行の横にある |
147
- | **スタイルプロパティ** | 98 / 98 を実ページに書き、コンパイル済み CSS と照合:58 COMPILED、18 ABSENT、21 SKIPPED |
148
- | **ノードプロパティ** | 191 / 191 を各プロパティ自身のバリデータ連鎖から導いた値で再探査:35 APPLIED、43 NO_EFFECT、55 NO_HOST、47 SKIPPED |
147
+ | **スタイルプロパティ** | 101 / 101 を実ページに書き、コンパイル済み CSS と照合:61 COMPILED、18 ABSENT、21 SKIPPED |
148
+ | **ノードプロパティ** | 191 / 191 を各プロパティ自身のバリデータ連鎖から導いた値で再探査:39 APPLIED、45 NO_EFFECT、55 NO_HOST、48 SKIPPED |
149
149
  | **レスポンシブ** | 2 サイト計 733 件の `_t`/`_m` 宣言を、サイトが実際に配信したスタイルシートに対して 1 件ずつ断言 — 全件検証済み |
150
150
  | **ブラウザ** | 配信された 2 ページを Chromium の 3 つのビューポートで計算スタイル 4,132 件読み取り:2,929 件が一致、912 件は比較不能として明示、**上書き 0 件** |
151
151
  | **デザイン監査** | コントラスト、フォントフォールバック、CJK の字送り、横溢れ、テキストの切れ、1 行の文字数 — ブラウザ上で実行、**指摘 26 件、すべて理由付きで裁定済み** — 理由のない容認はリリースゲートが拒否する |
package/README.ko.md CHANGED
@@ -140,8 +140,8 @@ commit 성공은 페이지가 동작한다는 증거가 아니고, 올바른 스
140
140
  | 항목 | 결과 |
141
141
  |---|---|
142
142
  | **노드 타입** | 129 / 129를 문서당 하나씩 스윕, commit → 렌더 → 단언 → 삭제: 77 RENDERED, 25 COMMITTED, 15 COMMIT_5xx, 12 BROKE_PAGE. 1.0.8에서 재스윕: 전에는 조용히 commit되던 5개 타입이 부모 없이는 페이지를 죽인다. 렌더되지 않은 행 중 셋은 "필요한 부모 없이 commit"한 스윕 방식의 산물이며, 그 사실이 행 옆에 적혀 있다 |
143
- | **스타일 프로퍼티** | 98 / 98을 실제 페이지에 쓰고 컴파일된 CSS와 대조: 58 COMPILED, 18 ABSENT, 21 SKIPPED |
144
- | **노드 프로퍼티** | 191 / 191을 각 프로퍼티 자신의 검증기 체인에서 도출한 값으로 재탐사: 35 APPLIED, 43 NO_EFFECT, 55 NO_HOST, 47 SKIPPED |
143
+ | **스타일 프로퍼티** | 101 / 101을 실제 페이지에 쓰고 컴파일된 CSS와 대조: 61 COMPILED, 18 ABSENT, 21 SKIPPED |
144
+ | **노드 프로퍼티** | 191 / 191을 각 프로퍼티 자신의 검증기 체인에서 도출한 값으로 재탐사: 39 APPLIED, 45 NO_EFFECT, 55 NO_HOST, 48 SKIPPED |
145
145
  | **반응형** | 두 사이트 합쳐 733개의 `_t`/`_m` 선언을, 사이트가 실제로 내보낸 스타일시트에 대해 하나씩 단언 — 전부 검증됨 |
146
146
  | **브라우저** | 전달된 두 페이지를 Chromium의 세 가지 뷰포트에서 계산 스타일 4,132건 판독: 2,929건 일치, 912건은 비교 불가로 명시, **덮어쓰기 0건** |
147
147
  | **디자인 감사** | 명암비, 폰트 폴백, CJK 자간, 가로 넘침, 텍스트 잘림, 한 줄 글자 수 — 브라우저에서 실행, **지적 26건, 모두 서면으로 판정** — 이유 없는 승인은 릴리스 게이트가 거부한다 |
package/README.md CHANGED
@@ -200,8 +200,8 @@ factories, so Pro types register and render regardless.
200
200
  | pass | result |
201
201
  |---|---|
202
202
  | **node types** | 129 / 129 swept one per document, committed → rendered → asserted → deleted: 77 RENDERED, 25 COMMITTED, 15 COMMIT_5xx, 12 BROKE_PAGE. Re-swept on 1.0.8: five types that used to commit silently now kill the page unparented. The non-rendering rows that are artefacts of committing without the required parent say so beside the row |
203
- | **style properties** | 98 / 98 written to a live page and checked against the compiled CSS: 58 COMPILED, 18 ABSENT, 21 SKIPPED |
204
- | **node properties** | 191 / 191 re-probed with a value shaped by each property's own validator chain: 35 APPLIED, 43 NO_EFFECT, 55 NO_HOST, 47 SKIPPED |
203
+ | **style properties** | 101 / 101 written to a live page and checked against the compiled CSS: 61 COMPILED, 18 ABSENT, 21 SKIPPED |
204
+ | **node properties** | 191 / 191 re-probed with a value shaped by each property's own validator chain: 39 APPLIED, 45 NO_EFFECT, 55 NO_HOST, 48 SKIPPED |
205
205
  | **responsive** | 733 `_t`/`_m` declarations across two sites asserted against the stylesheet the site actually served — all verified |
206
206
  | **browser** | 4,132 computed-style readings on two delivered pages in Chromium at three viewports: 2,929 compared and agreed, 912 not-comparable and labelled, **0 overridden** |
207
207
  | **design audit** | contrast, font fallback, CJK tracking, overflow, clipped text, line measure — run in the browser, **26 findings, every one ruled on in writing** — an acknowledgement without a reason is refused by the release gate |
package/README.zh-TW.md CHANGED
@@ -165,8 +165,8 @@ commit 成功不代表頁面能用,樣式表正確也不代表。這裡每個
165
165
  | 項目 | 結果 |
166
166
  |---|---|
167
167
  | **節點型別** | 129 / 129 逐一放進獨立文件,寫入 → 渲染 → 斷言 → 刪除:77 RENDERED、25 COMMITTED、15 COMMIT_5xx、12 BROKE_PAGE。在 1.0.8 上重掃:五個以前默默寫入的型別,沒放對父節點現在會直接弄死頁面。未渲染的當中有三個是「沒給父層」的掃描方法產物,註記就在列旁 |
168
- | **樣式屬性** | 98 / 98 寫進真實頁面、對照編譯出的 CSS:58 COMPILED、18 ABSENT、21 SKIPPED |
169
- | **節點屬性** | 191 / 191 用各自驗證鏈推出的值重新探測:35 APPLIED、43 NO_EFFECT、55 NO_HOST、47 SKIPPED |
168
+ | **樣式屬性** | 101 / 101 寫進真實頁面、對照編譯出的 CSS:61 COMPILED、18 ABSENT、21 SKIPPED |
169
+ | **節點屬性** | 191 / 191 用各自驗證鏈推出的值重新探測:39 APPLIED、45 NO_EFFECT、55 NO_HOST、48 SKIPPED |
170
170
  | **響應式** | 兩個站共 733 條 `_t`/`_m` 宣告,對照網站實際送出的樣式表逐條斷言——全數通過 |
171
171
  | **瀏覽器** | 在 Chromium 三個視窗寬度上對兩個交付頁面做 4,132 次計算樣式讀取:2,929 條比對相符、912 條標為無法比對、**0 條被覆蓋** |
172
172
  | **設計稽核** | 對比度、字體回退、CJK 字距、水平溢出、文字裁切、每行字數——在瀏覽器裡跑,**26 項發現,每一項都有書面裁定**——沒寫理由的 acknowledge 會被發布閘門拒絕 |
package/SKILL.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: "mosaic-headless"
3
3
  description: |
4
- Build and modify Mosaic Pro (Nextend) WordPress sites by writing the data model directly - no visual editor, no DOM. Query the real surface with `mo.py` (129 node types, 196 node properties, 98 style properties, 54 style states, 157 variants, 75 dynamic variables, 16 interaction triggers, 115 REST routes) where every lookup leads with the measured verdict, not the declaration: each node type placed on a live site one at a time, each style and node property swept against compiled CSS and markup, the delivered pages re-read in Chromium at three viewports. Measured on Mosaic Pro 1.0.10: the popover (anchored or screen-placed, the flip state, afterClose-chained tours), the modal on the Popover API, OpenStreetMap, exit-intent and scroll-depth triggers, run rules and memory. Drives theme export/import and the 1.0.7 -> 1.0.10 data upgrades from outside wp-admin; re-extracted and re-verified on 1.0.11.
4
+ Build and modify Mosaic Pro (Nextend) WordPress sites by writing the data model directly - no visual editor, no DOM. Query the real surface with `mo.py` (129 node types, 196 node properties, 101 style properties, 57 style states, 157 variants, 75 dynamic variables, 16 interaction triggers, 115 REST routes) where every lookup leads with the measured verdict, not the declaration: each node type placed on a live site one at a time, each style and node property swept against compiled CSS and markup, the delivered pages re-read in Chromium at three viewports. Measured on Mosaic Pro 1.0.10: the popover (anchored or screen-placed, the flip state, afterClose-chained tours), the modal on the Popover API, OpenStreetMap, exit-intent and scroll-depth triggers, run rules and memory. Drives theme export/import and the 1.0.7 -> 1.0.10 data upgrades from outside wp-admin; re-extracted and re-verified on 1.0.11.
5
5
  license: "MIT"
6
6
  metadata:
7
7
  author: "moksa (https://moksaweb.com)"
8
- version: "1.33.4"
8
+ version: "1.34.1"
9
9
  homepage: "https://github.com/Moksa1123/mosaic-headless"
10
10
  ---
11
11
 
@@ -109,14 +109,13 @@ that looks like a server problem. Two things make it easy to hit:
109
109
  after deleting it. `X-Mosaic-Paths` on any 406 names the paths Mosaic looked for,
110
110
  and `index.php` is in every list.
111
111
 
112
- **Two limits, both measured.** `adminTemplateEditorInstance` does not return auto
113
- templates at all - it listed only the three manual ones - so the admin surface
114
- hides them. And an auto template's document has a `node/template/<id>` key but no
115
- `template-internal` root: `heal()` builds that skeleton only for templates made
116
- through `createManualTemplate`, and committing one directly answers HTTP 500. So
117
- the row removes the 406 and I could not then put content in it. Not deployed on
118
- the demo site for that reason - a 200 with an empty body is worse signal than a
119
- 406.
112
+ This `index.php` row is the editor's **Fallback → Empty** template: priority
113
+ `PHP_INT_MAX`, matching every request (`Plugins/Paths/PathIndex.php`). Since 1.0.10
114
+ an auto template is an ordinary writable one - it is listed by
115
+ `adminTemplateEditorInstance` and its document carries a `template-internal`
116
+ root, so content goes in like any page's (the commit shape is in
117
+ `references/templates-and-conditions.md`). Before 1.0.10 both were missing and a
118
+ direct commit answered HTTP 500.
120
119
 
121
120
  For `/` specifically the WordPress-side fix is the sound one: point the front page
122
121
  at a post that has a template (`show_on_front=page`, `page_on_front=<id>`).
@@ -256,6 +255,10 @@ STATES 52 of the 53 style states written to a live page and matched agains
256
255
  now refuses to commit alone, so it is NO_HOST). All seven globally usable states verified - and the
257
256
  pseudo-classes are emitted UPPERCASE (`._j:HOVER`), so grepping a
258
257
  stylesheet for `:hover` finds nothing. data/style-state-verification.csv
258
+ The table now lists 57: v1.34's extractor also reads selector lists
259
+ spelt `implode(',', array(…))`, which adds
260
+ ___accordion-item--opened/--opening and ___dropdown--opened - read
261
+ from source, not yet swept.
259
262
 
260
263
  COMPONENTS used on the example page: the service row is committed ONCE to the
261
264
  theme and the page places four instances of it, each carrying only the
@@ -407,7 +410,7 @@ UPGRADE 1.0.7 -> 1.0.8 driven over the plugin's own milestone route from
407
410
 
408
411
  FROM SOURCE 129 node types, 196 properties (68 with enums), 285 pluggable IDs,
409
412
  129 placement rules, 25 composite default structures (10 declared,
410
- 15 healed in), 98 style properties, 54 style states, 16 interaction
413
+ 15 healed in), 101 style properties, 57 style states, 16 interaction
411
414
  triggers - re-extracted from the 1.0.11 tree.
412
415
  ```
413
416
 
@@ -418,14 +421,14 @@ the difference is worth being exact about:
418
421
  ```
419
422
  node types 129 / 129 swept live, one per document
420
423
  node properties 191 / 196 re-probed with a value shaped by each property's
421
- own validator chain: 38 APPLIED, 45 NO_EFFECT,
424
+ own validator chain: 39 APPLIED, 45 NO_EFFECT,
422
425
  2 EDITOR_ONLY, 55 NO_HOST (no rendering type
423
- declares them), 2 INSTRUMENT, 45 SKIPPED
426
+ declares them), 2 INSTRUMENT, 48 SKIPPED
424
427
  (the five missing are 1.0.10's popover -
425
428
  role, ariaLive, accessibleLabel, closedby,
426
429
  positioning - measured on the popover lab
427
430
  instead: data/popover-verification.csv)
428
- style properties 98 / 98 swept live; 58 COMPILED, 18 ABSENT, 1 NO_ELEMENT,
431
+ style properties 101 / 101 swept live; 61 COMPILED, 18 ABSENT, 1 NO_ELEMENT,
429
432
  21 SKIPPED (no test value could be synthesised, and
430
433
  SKIPPED is never counted as a pass)
431
434
  ```
@@ -499,6 +502,20 @@ so the pattern is in the data, not just in this paragraph.
499
502
  matches and the element silently disappears. Driven end to end on a client build;
500
503
  references/templates-and-conditions.md
501
504
 
505
+ **Cross-checked against the official docs.** All 72 pages of Mosaic's own
506
+ documentation (Oct 2026) were compared with this skill, and every disagreement was
507
+ settled in the 1.0.11 source or on the live site. Where the docs are wrong for
508
+ 1.0.11, the skill follows the source and says so at the spot: the system
509
+ requirement is WordPress 6.9, not 6.5; evaluator functions are `find_image` /
510
+ `remove_html`, and `@FINDIMAGE` prints nothing; a slider's `duration` is the
511
+ transition, not the dwell; the Google Maps Language and Region settings do not
512
+ exist; the optimizer opt-out attributes are the four the source adds, not the
513
+ docs' longer list. Where the docs corrected the skill, re-measured on 1.0.11:
514
+ `gridChildPosition` compiles as a group, `scale` / `perspective` /
515
+ `collectionModesData` exist and compile, `youtube` `privacy` renders on
516
+ youtube-nocookie.com, "Wrap in link" is a `button` with the Link variant, and a
517
+ variable's `customProperty` is optional.
518
+
502
519
  ## Orient yourself in this order
503
520
 
504
521
  1. `references/data-model.md` — where a page actually lives. Read this first even if
@@ -549,10 +566,10 @@ so the pattern is in the data, not just in this paragraph.
549
566
  | `data/default-children.csv` | 25 | source — what a composite type needs **inside** it |
550
567
  | `data/style-properties.csv` | 98 | source — every settable CSS property and its value shape |
551
568
  | `data/style-value-shapes.csv` | 22 | **probed live** — the exact JSON shape for each structured value, and what it compiled to |
552
- | `data/style-states.csv` | 54 | source — state IDs with their exact CSS selector templates |
569
+ | `data/style-states.csv` | 57 | source — state IDs with their exact CSS selector templates |
553
570
  | `data/property-verification.csv` | 170 | **probed live** — per-property effect on markup vs CSS, with unprovable enums marked INCONCLUSIVE |
554
571
  | `data/node-property-verification.csv` | 191 | **swept live** — each property probed with a value shaped by its own validator chain, on a type that declares it |
555
- | `data/style-verification.csv` | 98 | **swept live** — every style property written to a page and checked against the compiled CSS, with its group beside the result |
572
+ | `data/style-verification.csv` | 101 | **swept live** — every style property written to a page and checked against the compiled CSS, with its group beside the result |
556
573
  | `data/rwd-verification.csv` | 733 | **checked live** - every `_t`/`_m` declaration vs the served stylesheet, with status per row |
557
574
  | `data/browser-verification/` | 4132 | **computed in Chromium** - declared vs `getComputedStyle` at three viewports, `not-comparable` labelled per row. One CSV per page, named by its slug |
558
575
  | `data/design-audit-acknowledged.csv` | 3 | reviewed findings that will not be fixed, each with a written reason. An acknowledgement without a reason is a suppression wearing a better name, and the release gate refuses one |
@@ -648,7 +665,10 @@ it is gated on admin capability only, not on a licence. It moves a whole theme,
648
665
  a single page. `tools/theme_zip.py` drives both directions from outside the editor.
649
666
  Two things about the import that the route list does not tell you: with no
650
667
  `themeActivateMode` it defaults to `live` and switches every visitor to the imported
651
- theme (the tool sends `test`, Mosaic's admin-only preview, unless `--activate`); and a
668
+ theme (the tool sends `test` unless `--activate`). Test mode is per USER, not per
669
+ admin role: it is user meta `mosaic_<blogID>_test_mode_theme`, so the account whose
670
+ cookie made the import sees the imported theme on every later fetch while visitors
671
+ keep the live one - read a page logged out to see what visitors see; and a
652
672
  milestone must be called until it answers `isCompleted:true` - stop one call early,
653
673
  as the first version of the tool did after its last upload chunk, and that
654
674
  milestone's batch bookkeeping is left in the lock for the NEXT milestone to read as
@@ -829,6 +849,16 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
829
849
  with `inactive:"1"` - the new integer-as-string property, the Badge variant's
830
850
  default - it is a `<span>`, a label rather than a control. Measured all three.
831
851
  `menu-link` and `wysiwyg-link` still render `<span>` without a `url`.
852
+ - **A button's words go in a `text` node, not straight under it.** The editor builds
853
+ `button > text (Inherited text variant, 6381b2f3…) > wysiwyg-text`, and the same
854
+ for menu-link, dropdown-toggle, tabs and submit labels. A `wysiwyg-text` placed
855
+ directly under a button renders identically but cannot be edited in the editor:
856
+ the navigator shows no child, and a double-click opens only the link settings.
857
+ Only `text`, `label`, `choice-label`, `choice-legend`, `fieldset-legend` and the
858
+ inline `wysiwyg-span` / `wysiwyg-link` hold runs directly. `build_page.py` wraps
859
+ runs under any other type itself (`wrap_text_runs`), so the `"text"` shorthand is
860
+ safe on a button. Output: `<a class="m-button"><div class="m-inherited-text
861
+ m-wysiwyg">…</div></a>` - the editor's own button carries the same `<div>`.
832
862
  - **`text` renders as `<div>` by default** — set `tagName` for `<h1>`, `<p>` and so on.
833
863
  - **A `wysiwyg-text` run prints no markup since 1.0.11.** Its `<` and `>` are escaped
834
864
  on output, so `A<strong>B</strong>C<br>D` reaches the page as those literal
@@ -837,6 +867,11 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
837
867
  `wysiwyg-linebreak` → `<br>`, `wysiwyg-link` with `url` →
838
868
  `<a class="m-inline-link">`, each holding its own `wysiwyg-text` child. Entities
839
869
  still print as their character (`&lt;dialog&gt;` → `<dialog>`, `&amp;` → `&`).
870
+ Bold and italic are NOT nodes but a property of the run: `wysiwyg-text` (and
871
+ `wysiwyg-variable`) take `format: ["bold"]`, `["italic"]` or both, printed as
872
+ `<strong>` / `<em>`. Both at once comes out misnested on 1.0.11 -
873
+ `<strong><em> BI</strong></em>` (measured); browsers repair it, validators do not.
874
+ `inline_html.py` maps `<strong>`/`<em>` to styled `wysiwyg-span`s instead.
840
875
  Through 1.0.10 the run was raw HTML instead, where a tag name in prose swallowed
841
876
  the rest of the paragraph; `build_page.py` refuses any tag in a run either way.
842
877
  - **`menu-link` is `width: fit-content` by default** (`.m-menu-link{display:flex;gap:4px;
@@ -852,12 +887,15 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
852
887
  list - `dvh`, `svh`, `lvh`, `dvw`, container units: `height: 100dvh` takes every
853
888
  other line in the block with it, silently. The structured `height` / `maxHeight`
854
889
  fields do accept `dvh`.
855
- - **`youtube` renders `<mosaic-youtube><iframe>` with no `title`** - the iframe gets
856
- only `loading`, `src`, `allow` and an id, so an accessible name has to be added
857
- some other way. `youtubeUrl` is `{"v": "https://www.youtube.com/watch?v=…"}`;
858
- `lazyLoad` adds `loading="lazy"` and there is no click-to-load facade. Sized by
859
- `width`/`height: 100%` inside an `aspect-ratio: 16/9` box. `privacy` alone still
860
- emits nothing (NO_OUTPUT).
890
+ - **`youtube` renders `<mosaic-youtube>` carrying `data-video-id`, `data-params`,
891
+ `data-host`**, with the server's iframe inside `<noscript>`; the custom element
892
+ builds the real iframe once it has a size. The iframe has no `title`, so an
893
+ accessible name has to be added some other way. `youtubeUrl` is
894
+ `{"v": "https://www.youtube.com/watch?v=…"}`; `lazyLoad` defers it and there is
895
+ no click-to-load facade (same for `vimeo`). Sized by `width`/`height: 100%` inside
896
+ an `aspect-ratio: 16/9` box. `privacy:"1"` switches the host to
897
+ `www.youtube-nocookie.com` - measured on 1.0.11; the old NO_OUTPUT row was a probe
898
+ artefact. `suggestedVideos` maps to `rel`. `vimeo`'s `privacy` is `dnt=1`.
861
899
  - **Eight types emit custom elements**: `<mosaic-dropdown>`, `<mosaic-navbar>`,
862
900
  `<mosaic-tabs>`, `<mosaic-accordion>`, `<mosaic-vimeo>`, `<mosaic-youtube>` and
863
901
  friends. A selector written against `div`/`nav` misses all of them.
@@ -865,8 +903,12 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
865
903
  - **Only four types take a `url`**: `button`, `menu-link`, `wysiwyg-link`,
866
904
  `dropdown-toggle`. Put one on a `text` or an `image` and it is accepted, stored,
867
905
  and emits no anchor whatsoever. To make anything else clickable, WRAP it in a
868
- `menu-link` - that type takes `children: rule=any` and becomes a real `<a href>`
869
- as soon as it has a `url` (`target="_blank"` included; both probed).
906
+ `button` whose `style.variant` is the Link variant (`f671bc01-…`, `m-link`) - that
907
+ is what the editor's "Wrap in link" writes, `button` takes children, and with a
908
+ `url` it renders `<a class="m-link" href>` around them (measured on 1.0.11). A
909
+ `menu-link` wrapper works the same way (`target="_blank"` included; probed) but
910
+ carries menu styling. A `button` with `inactive` on keeps its `url`/`target`/`rel`
911
+ stored and emits none of them.
870
912
  - **An image's attachment-protocol path is relative to the UPLOADS directory.**
871
913
  `wp-attachment://image/<id>/<size>/2026/09/pic.png` resolves, and carries the
872
914
  attachment's `width`/`height` onto the tag. Give it the full
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.33.4"
23
+ "version": "1.34.1"
24
24
  },
25
25
  "loaderBehaviour": "Upload via Settings -> Skills -> Upload. Claude.ai parses SKILL.md frontmatter and surfaces the skill in your library. The extraction tool (extract-block-schema.php) needs a live WP-CLI connection and won't run in the sandbox; use it from a local terminal against your own site instead.",
26
26
  "uploadSteps": [
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.33.4"
23
+ "version": "1.34.1"
24
24
  },
25
25
  "loaderBehaviour": "Auto-loads on session start when SKILL.md frontmatter parses successfully.",
26
26
  "verified": true,
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.33.4"
23
+ "version": "1.34.1"
24
24
  },
25
25
  "loaderBehaviour": "Confirmed (2026-07-11): Codex CLI natively supports the SKILL.md spec. Place SKILL.md under .codex/skills/<name>/ (project) or ~/.codex/skills/<name>/ (personal) and Codex loads the name+description at session start, then the full body on demand. A parallel, broader convention .agents/skills/ (searched from cwd up to repo root, then ~/.agents/skills/) also exists across multiple tools - if your Codex CLI version prioritizes that path instead, mirror the same SKILL.md there.",
26
26
  "verified": true,
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "alwaysApply": false
22
22
  },
23
23
  "loaderBehaviour": "Continue reads .continue/rules/*.md as Rules. Set alwaysApply: true to attach to every chat, or leave false and rely on the description for relevance matching. Rule files load in lexicographic order if you split this into several numbered files. References must be embedded inline; the installer concatenates key reference files into the rule body.",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.33.4"
23
+ "version": "1.34.1"
24
24
  },
25
25
  "loaderBehaviour": "CHANGED as of 2026-07-11: GitHub Copilot added a proper '.github/skills/' Agent Skills directory (December 2025), alongside the older single-file .github/copilot-instructions.md convention. This config targets the new skills-directory form. If your Copilot version predates this (pre Dec 2025), use the instructions-append fallback instead (see fallback below).",
26
26
  "fallback": {
@@ -16,7 +16,7 @@
16
16
  "sites": false
17
17
  },
18
18
  "frontmatter": {
19
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
19
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
20
  "globs": [
21
21
  "**/*.php",
22
22
  "**/wp-content/**",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 98 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.33.4"
23
+ "version": "1.34.1"
24
24
  },
25
25
  "loaderBehaviour": "CHANGED as of 2026-07-11: Gemini CLI now natively supports the same SKILL.md standard as Claude Code and Codex CLI - the same directory-based skill works unmodified. Gemini CLI discovers skills in this precedence order: built-in, extension skills, ~/.gemini/skills/ (personal), .gemini/skills/ (project, shared via version control). At session start Gemini injects each discovered skill's name+description into the system prompt and calls activate_skill when a task matches.",
26
26
  "verified": true,
@@ -122,7 +122,7 @@ positionY,,,SKIPPED,
122
122
  poster,,,SKIPPED,
123
123
  preload,video,"""none""",APPLIED,"<video class=""m-video"" id=""np-160"" controls=""1"" preload=""none"">"
124
124
  privacy,vimeo,"""1""",NO_EFFECT,"<mosaic-vimeo class=""m-vimeo"" id=""np-168"" data-autoplay=""0"" data-mute=""0"" data-playsinline=""0"">"
125
- privacy,youtube,"""1""",NO_OUTPUT,the element emitted nothing with this property set
125
+ privacy,youtube,"""1"" + youtubeUrl {""v"": ""https://www.youtube.com/watch?v=dQw4w9WgXcQ""}",APPLIED,"data-host=""www.youtube-nocookie.com"" (re-measured 1.0.11; the earlier NO_OUTPUT probe had no usable youtubeUrl)"
126
126
  processShortcodes,code,"""1""",NO_EFFECT,"<div class=""m-code"" id=""np-070"">"
127
127
  query,,,NO_HOST,
128
128
  readonly,text-input,371337,NO_EFFECT,"<input class=""m-input"" id=""np-093"" type=""text"">"
@@ -7,5 +7,5 @@ component-instance,"Swept as COMMIT_500, which is what a BARE one does. The node
7
7
  component-internal,"The component's content hangs under THIS node, in the `node/component/<id>` key of a componentDocumentInstance. `component-root` looks like the parent and accepts no children."
8
8
  component-root,"Accepts no children. It frames the component's preview document, not its content."
9
9
  loop,COMMIT_500 on a bare page: the loop needs a query context that a plain document does not provide.
10
- menu-link,"Renders as <span> with no `url` and as a real <a href> with one - probed, `target=""_blank""` included. `children: rule=any`, so it is the way to make anything clickable: a linked heading or image is a menu-link WRAPPING it."
11
- text,"Does NOT take `url`. Only button, menu-link, wysiwyg-link and dropdown-toggle declare it; setting one on a text or image node is accepted, stored, and emits no anchor at all. Measured after from_elementor.py lost 19 of 21 link targets on one page that way. Wrap in menu-link instead."
10
+ menu-link,"Renders as <span> with no `url` and as a real <a href> with one - probed, `target=""_blank""` included. `children: rule=any`, so it can make anything clickable by wrapping it - though the editor's own ""Wrap in link"" writes a `button` with the Link variant (m-link), which renders the same <a href> around its children (measured 1.0.11)."
11
+ text,"Does NOT take `url`. Only button, menu-link, wysiwyg-link and dropdown-toggle declare it; setting one on a text or image node is accepted, stored, and emits no anchor at all. Measured after from_elementor.py lost 19 of 21 link targets on one page that way. Wrap it in a `button` with the Link variant (what the editor does) or a menu-link instead."
@@ -83,12 +83,14 @@ filter,,CSSFilterStylePropertyFactory,,,
83
83
  backdropFilter,,CSSBackdropFilterPropertyFactory,,,
84
84
  transform,,CSSTransformPropertyFactory,,,
85
85
  translate,,CSSTranslateStylePropertyFactory,,,
86
+ scale,,CSSScaleStylePropertyFactory,,,
86
87
  rotate,,CSSRotateStylePropertyFactory,,,
87
88
  transformOrigin,,CSSTransformOriginStylePropertyFactory,,,
88
89
  transformStyle,,CSSPropertyFactory,,flat|preserve-3d,
89
90
  transition,,CSSTransitionPropertyFactory,,,
90
91
  mask,,CSSMaskStylePropertyFactory,,,
91
92
  perspectiveOrigin,,CSSPerspectiveOriginStylePropertyFactory,,,
93
+ perspective,,CSSPropertyFactory,,,
92
94
  objectFitStyle,,CSSObjectFitStylePropertyFactory,,,
93
95
  mixBlendMode,,CSSPropertyFactory,,normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity,
94
96
  boxSizing,,CSSPropertyFactory,,border-box|content-box,
@@ -97,3 +99,4 @@ backgroundColor,,CSSColorPropertyFactory,,,yes
97
99
  backgroundStyle,,CSSBackgroundStylePropertyFactory,,,
98
100
  cursor,,CSSPropertyFactory,,auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|grab|grabbing|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|inherit|initial|revert|revert-layer|unset,
99
101
  customDeclarations,,CustomDeclarationsPropertyFactory,,,
102
+ collectionModesData,,CSSCollectionModePropertyFactory,,,
@@ -9,6 +9,8 @@ hover-tab,&:where(.m-tab:not(.m-tab--active)):HOVER,100,global,Mosaic/NodeTypes/
9
9
  hover-when-link,"&:where([tabindex]:not([tabindex=""-1""]),a[href]:not([disabled]),button:not([disabled])):HOVER",100,global,Mosaic/Builder/Style/StatesMeta.php
10
10
  ____loop_pagination_number--active,&.m-loop-pagination-number--active,500,node-type,Mosaic/NodeTypes/Loop/LoopPagination/Numbers/Number/LoopPaginationNumberElementTypeFactory.php
11
11
  ____loop_pagination_number_ellipsis,&.m-loop-pagination-number-ellipsis,0,node-type,Mosaic/NodeTypes/Loop/LoopPagination/Numbers/Number/LoopPaginationNumberElementTypeFactory.php
12
+ ___accordion-item--opened,"&.m-accordion-item--opened,.m-accordion-item:where(.m-accordion-item--opened) > &,.m-accordion-item:where(.m-accordion-item--opened) > .m-accordion-title &",600,node-type,Mosaic/NodeTypes/Accordion/AccordionItem/AccordionItemElementTypeFactory.php
13
+ ___accordion-item--opening,"&.m-accordion-item--opening,.m-accordion-item:where(.m-accordion-item--opening) > &,.m-accordion-item:where(.m-accordion-item--opening) > .m-accordion-title &",600,node-type,Mosaic/NodeTypes/Accordion/AccordionItem/AccordionItemElementTypeFactory.php
12
14
  ___arrow_hidden,&:where(.m-slider-arrow--hidden),800,node-type,Mosaic/NodeTypes/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
13
15
  ___checkbox-input--checked,&:checked,500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Checkbox/CheckboxInput/CheckboxInputElementTypeFactory.php
14
16
  ___checkbox-input--checkmark,&:checked::before,500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Checkbox/CheckboxInput/CheckboxInputElementTypeFactory.php
@@ -17,6 +19,7 @@ ___choice--checked-within,.m-choice:where(:has(input:checked)) &,500,node-type,M
17
19
  ___choice--focus-visible,&:has(:where(input):focus-visible),760,node-type,Mosaic/NodeTypes/Form/Form/MElements/Choice/ChoiceElementTypeFactory.php
18
20
  ___choice-field--invalid,&:has(:user-invalid),700,node-type,Mosaic/NodeTypes/Form/Form/MElements/ChoiceField/ChoiceFieldElementTypeFactory.php
19
21
  ___choice-field--invalid-within,.m-choice-field:where(:has(:user-invalid)) &,700,node-type,Mosaic/NodeTypes/Form/Form/MElements/ChoiceField/ChoiceFieldElementTypeFactory.php
22
+ ___dropdown--opened,"&.m-dropdown:where(.dropdown--opened),.m-dropdown:where(.dropdown--opened) > &,.m-dropdown:where(.dropdown--opened) > :where( .m-dropdown-toggle) &",600,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
20
23
  ___dropdown--opening,.m-dropdown:where(.dropdown--opening) &,600,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
21
24
  ___dropdown-toggle--current,&.m-dropdown-toggle--current,500,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownToggle/DropdownToggleElementTypeFactory.php
22
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
@@ -22,6 +22,7 @@ borderTopWidth,borderStyle,border-top-width,"""37px""",,ABSENT
22
22
  bottom,,bottom,"""37px""",37px,COMPILED
23
23
  boxShadow,,box-shadow,,,SKIPPED
24
24
  boxSizing,,box-sizing,"""content-box""",content-box,COMPILED
25
+ collectionModesData,,(custom properties),"{""<collectionID>"": ""<modeID>""}",every variable of that collection re-declared on the element (18 declarations),COMPILED
25
26
  color,,color,"""rgb(9, 99, 199)""","rgb(9, 99, 199)",COMPILED
26
27
  columnGap,,column-gap,"""37px""",37px,COMPILED
27
28
  cursor,,cursor,"""unset""",unset,COMPILED
@@ -77,11 +78,13 @@ paddingBottom,,padding-bottom,"""37px""",37px,COMPILED
77
78
  paddingLeft,,padding-left,"""37px""",37px,COMPILED
78
79
  paddingRight,,padding-right,"""37px""",37px,COMPILED
79
80
  paddingTop,,padding-top,"""37px""",37px,COMPILED
81
+ perspective,,perspective,"""731px""",731px,COMPILED
80
82
  perspectiveOrigin,,perspective-origin,,,SKIPPED
81
83
  position,,position,"""sticky""",sticky,COMPILED
82
84
  right,,right,"""37px""",37px,COMPILED
83
85
  rotate,,rotate,,,SKIPPED
84
86
  rowGap,,row-gap,"""37px""",37px,COMPILED
87
+ scale,,scale,"{""type"": ""scale"", ""scaleOptions"": {""value"": ""1.37""}}",1.37,COMPILED
85
88
  textAlign,,text-align,"""right""",right,COMPILED
86
89
  textDecorationLine,,text-decoration-line,"""line-through""",line-through,COMPILED
87
90
  textShadow,,text-shadow,,,SKIPPED
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mosaic-headless",
3
- "version": "1.33.4",
3
+ "version": "1.34.1",
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",
@@ -22,7 +22,7 @@ Measured on a real install (`data/db-columns.csv`, 23 tables / 210 columns, Mosa
22
22
  | `mosaic_universal_classes`, `mosaic_universal_sub_classes` | user-defined classes that apply to any element. `mosaic_utility_classes` / `mosaic_utility_sub_classes` before 1.0.8 |
23
23
  | `mosaic_collections`, `mosaic_collection_modes`, `mosaic_collection_skins`, `mosaic_collection_groups`, `mosaic_collection_variables` | the design-token system (a collection has modes and skins; variables resolve per mode) |
24
24
  | `mosaic_breakpoints` | responsive breakpoints, per theme — not global |
25
- | `mosaic_settings` | theme-scoped settings |
25
+ | `mosaic_settings` | Mosaic → Settings, one row for the whole site (no `themeID` column) - including the Google Maps key, CAPTCHA and mailing-list API keys, so a theme ZIP never carries them |
26
26
  | `mosaic_submissions`, `mosaic_submission_actions` | form submissions (Pro) |
27
27
  | `mosaic_locks` | editing locks; the only table created at plugin activation |
28
28
 
@@ -138,3 +138,10 @@ component's own text present twice from a single definition. Edit the component
138
138
  every instance changes - which is the whole point, and the reason a real site should
139
139
  use these rather than repeating a tree.
140
140
 
141
+ From the official docs and the schema: a component's "Context" - which `@VAR`
142
+ namespaces its nodes may use - is the `path` column of `wp_mosaic_components`, the
143
+ same template-path ids templates use. A component in use is not deleted. Resetting an
144
+ override resets that one node, not its children. Pasting a component or class from
145
+ another theme adds a resource even when one of that name exists, so `name` can
146
+ repeat within a theme; only the emitted class name is made unique.
147
+
@@ -88,8 +88,12 @@ More from a client build on 1.0.10:
88
88
  A universal class is the theme-global class a user names (the editor's "classes"),
89
89
  committed on the master document under the key `universalClass` with
90
90
  `data: {name, label, states}` - `states` is the same structure as a variant's. A node
91
- takes it through `style.universalClasses`, a map `{<classID>: <classID>}` (a map to a
92
- universal SUB class ID applies that sub class instead; `ElementMResourceStyle.php`).
91
+ takes it through `style.universalClasses`, a map `{<classID>: <classID>}`. Mapping a
92
+ class to one of its SUB class IDs applies the root class AND the sub-class chain down
93
+ to it - the parent comes along, it is not replaced (`ElementMResourceStyle.php`
94
+ adds the root's names and data first, then each level). A sub class's emitted name
95
+ joins every level with `--` (`card--wide--dark`), so only a root class renders under
96
+ exactly the name you gave it.
93
97
  The emitted class is the `name` (sanitized, any `m-` prefix dropped - the
94
98
  class-name grammar is in SKILL.md), and its CSS is printed only
95
99
  on a page where some node uses it. `status: "delete"` removes one - unlike a variant,
@@ -100,7 +104,12 @@ a universal class is not catalog-backed.
100
104
  A collection variable compiles to a real CSS custom property on `:root`, and any
101
105
  token-referencable style property can point at it.
102
106
 
103
- The theme's healed default gives you one collection, one mode and one skin. A variable
107
+ A theme that `heal()` creates from nothing gets one collection, one mode and one skin
108
+ ("Default collection / Default mode / Default skin"). A theme started from Mosaic's
109
+ shipped data instead has nine collections - Color (with Light and Dark modes), Font
110
+ family, Typography, Spacing, Size, Position, Border radius, Shadow, Image & gradient -
111
+ so read `collection` / `collectionMode` / `collectionSkin` off the document rather
112
+ than assuming either. The skin listed first is the one in use. A variable
104
113
  hangs off the collection, and its value is stored per **skin → mode**:
105
114
 
106
115
  ```json
@@ -117,7 +126,7 @@ hangs off the collection, and its value is stored per **skin → mode**:
117
126
  }
118
127
  ```
119
128
 
120
- Reference it from any of the 34 token-referencable properties in
129
+ Reference it from any of the 39 token-referencable properties in
121
130
  `data/style-properties.csv` with a one-key object:
122
131
 
123
132
  ```json
@@ -136,9 +145,13 @@ Details that cost time to find:
136
145
  - **`skinsData[skinID]` is keyed by mode ID directly.** There is no `modesData`
137
146
  wrapper — `CollectionVariableSkinDataDataSub::getSubData($modeID)` goes straight to
138
147
  the mode, whose only property is `value`.
139
- - **`customProperty` is emitted verbatim**, so it must include the leading `--`.
140
- Writing `"brand"` produces `background-color:var(brand)` and a `:root{brand: …}`
141
- declaration, neither of which is valid CSS.
148
+ - **`customProperty` is optional, and its dashes are too.** Omitted, the name is
149
+ derived from the path, `--<collection>--<group>--<name>` slugged
150
+ (`--default-collection--probe-derived`); pinned without dashes, `probe-bare-cp`
151
+ is emitted as `--probe-bare-cp` (both measured on 1.0.11;
152
+ `CollectionVariableNameHelper`). A clash with another variable is made unique per
153
+ theme. Before 1.0.11 a dash-less value was emitted verbatim as invalid CSS, so
154
+ writing the full `--name` is still the portable choice.
142
155
  - **A wrong `skinsData` shape does not fail.** The variable is created, `:root` gets
143
156
  the declaration, and the value is the sub-factory's default (`#FFF` for colours).
144
157
  If your token renders white, the value never arrived.
@@ -149,6 +162,30 @@ Details that cost time to find:
149
162
  `collectionVariable` manager — clearing nodes does not remove them, and orphans
150
163
  accumulate as duplicate `:root` declarations.
151
164
 
165
+ ### Modes on an element: dark sections, dark mode
166
+
167
+ A collection with more than one mode (Light / Dark) is switched per element with the
168
+ style property `collectionModesData`, `{<collectionID>: <modeID>}`, in any state and
169
+ breakpoint like every other style key. It compiles to a re-declaration of every
170
+ variable of that collection, at that mode's value, on the element's own rule - so the
171
+ element and everything under it see the other mode through ordinary custom-property
172
+ inheritance (measured on 1.0.11: 18 declarations on one div). A dark band is one
173
+ `collectionModesData` on the band; a site-wide switch is an interaction whose action
174
+ targets the `html` element with a `collectionMode` property, since interactions can
175
+ set it too. The mode listed first in a collection is the default.
176
+
177
+ ### Which class wins
178
+
179
+ From lowest to highest: **Variant < Variant sub class < Universal class < Universal
180
+ sub class < Local styles**, and within each slot except local styles a later class
181
+ beats an earlier one - `ElementMResourceStyle.php` builds the class list in exactly
182
+ that order. Variant sub classes nest, and the whole chain applies.
183
+
184
+ `style.localStates` are not part of that layer: each entry is a per-node custom
185
+ state, `{label, selector, state: {<breakpoint>: {…props}}}`, where `selector` is SCSS
186
+ with `&` standing for the element (`&:hover a`, `&::after`; `LocalStatesMeta`). Use
187
+ one when the 57 built-in states do not name the selector you need.
188
+
152
189
  ## How to actually build a theme
153
190
 
154
191
  1. Define collection variables for the palette, the type scale and the spacing scale.
@@ -175,9 +212,14 @@ dropdown horizontalAlign: left | center | right
175
212
  ```
176
213
 
177
214
  Both children are inserted by `onHeal()` if you leave them out, so only the two
178
- need authoring. **It opens on CLICK, not hover** — the host gains
215
+ need authoring. **It opens on CLICK by default** — `openOn` is `click` | `hover`,
216
+ emitted as `data-open-on` with `click` when unset
217
+ (`DropdownElementMResourceAbstract`). On open the host gains
179
218
  `dropdown--opening dropdown--opened` and the wrapper goes from `display:none` to
180
- `display:flex`. A hover test reports a dropdown that does not work.
219
+ `display:flex`. A hover test against a default dropdown reports one that does not
220
+ work; set `openOn:"hover"` if hover is what you want. Style the open look through
221
+ the `___dropdown--opened` state. Menus support one submenu level only - no
222
+ sub-submenus.
181
223
 
182
224
  `dropdown-wrapper` used to read as a leaf in `placement-rules.csv`. Its
183
225
  `canBeParentFor()` returns `true`, but on `DropdownWrapperElementTypeFactoryAbstract`,
@@ -512,9 +512,10 @@ blocks inside it. Any tool that read a breakpoint by block id reads nothing now
512
512
  the twenty inert grouped properties are now visible in the markup as well as absent
513
513
  from the CSS, and a checker must not read "no token" as "the node did not render".
514
514
 
515
- **`youtube`'s `privacy` property suppresses the element.** Set on its own it emits
516
- nothing at all, where 1.0.8 rendered the element and recorded NO_EFFECT. One row of
517
- `data/node-property-verification.csv`, the only `NO_OUTPUT` in the table.
515
+ **`youtube`'s `privacy` property does not suppress the element.** An earlier sweep
516
+ recorded it as `NO_OUTPUT`; re-measured on 1.0.11 with a real `youtubeUrl`, the
517
+ element renders and `data-host` becomes `www.youtube-nocookie.com`
518
+ (`YouTubeElementMResource`). The old row was a probe without a usable URL.
518
519
 
519
520
  ## The worked example's own modal
520
521