mosaic-headless 1.33.3 → 1.34.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.
- package/README.ja.md +2 -2
- package/README.ko.md +2 -2
- package/README.md +2 -2
- package/README.zh-TW.md +2 -2
- package/SKILL.md +61 -26
- package/assets/templates/platforms/claude-ai.json +2 -2
- package/assets/templates/platforms/claude-code.json +2 -2
- package/assets/templates/platforms/codex-cli.json +2 -2
- package/assets/templates/platforms/continue.json +1 -1
- package/assets/templates/platforms/copilot.json +2 -2
- package/assets/templates/platforms/cursor.json +1 -1
- package/assets/templates/platforms/gemini-cli.json +2 -2
- package/data/node-property-verification.csv +1 -1
- package/data/node-type-notes.csv +2 -2
- package/data/style-properties.csv +3 -0
- package/data/style-states.csv +3 -0
- package/data/style-verification.csv +3 -0
- package/package.json +1 -1
- package/references/data-model.md +8 -1
- package/references/design-system.md +51 -9
- package/references/dialog-and-triggers.md +4 -3
- package/references/dynamic-content.md +17 -0
- package/references/interactions.md +34 -6
- package/references/placement.md +64 -3
- package/references/responsive.md +26 -10
- package/references/slider.md +17 -3
- package/references/styling.md +55 -5
- package/references/templates-and-conditions.md +51 -2
- package/references/upgrading.md +25 -1
- package/references/vs-elementor-gutenberg.md +7 -5
- package/references/write-protocol.md +11 -0
- package/scripts/check-release.mjs +1 -1
- package/tools/build_page.py +1 -1
- package/tools/extract_style_properties.py +18 -3
- package/tools/mo.py +2 -2
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
|
-
| **スタイルプロパティ** |
|
|
148
|
-
| **ノードプロパティ** | 191 / 191 を各プロパティ自身のバリデータ連鎖から導いた値で再探査:
|
|
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
|
-
| **스타일 프로퍼티** |
|
|
144
|
-
| **노드 프로퍼티** | 191 / 191을 각 프로퍼티 자신의 검증기 체인에서 도출한 값으로 재탐사:
|
|
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** |
|
|
204
|
-
| **node properties** | 191 / 191 re-probed with a value shaped by each property's own validator chain:
|
|
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
|
-
| **樣式屬性** |
|
|
169
|
-
| **節點屬性** | 191 / 191 用各自驗證鏈推出的值重新探測:
|
|
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,
|
|
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.
|
|
8
|
+
version: "1.34.0"
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
`
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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),
|
|
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:
|
|
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,
|
|
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
|
|
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` |
|
|
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` |
|
|
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
|
|
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
|
|
@@ -703,7 +723,10 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
703
723
|
with them (`m-accordion-item--opened`, `m-menu-link--current`, `m-tab--active`).
|
|
704
724
|
Any CSS you write against an emitted class is coupled to the plugin version.
|
|
705
725
|
- **`body{opacity:0}`** — the theme reveals itself from JavaScript. Screenshot tooling
|
|
706
|
-
must let scripts run or it captures a blank page.
|
|
726
|
+
must let scripts run or it captures a blank page. The reveal waits for
|
|
727
|
+
`DOMContentLoaded`, i.e. for every `defer` script, so deferring scripts blanks the
|
|
728
|
+
page longer; `html body{opacity:1!important}` is safe and was worth 72 → 86 mobile
|
|
729
|
+
(`references/styling.md`).
|
|
707
730
|
- **Two themes can carry the same name, and only the ACTIVE one is bound to
|
|
708
731
|
anything.** Every write to `theme/<themeID>/...` succeeds against an inactive
|
|
709
732
|
theme - master, nodes, components, tokens, all of it - and then
|
|
@@ -834,6 +857,11 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
834
857
|
`wysiwyg-linebreak` → `<br>`, `wysiwyg-link` with `url` →
|
|
835
858
|
`<a class="m-inline-link">`, each holding its own `wysiwyg-text` child. Entities
|
|
836
859
|
still print as their character (`<dialog>` → `<dialog>`, `&` → `&`).
|
|
860
|
+
Bold and italic are NOT nodes but a property of the run: `wysiwyg-text` (and
|
|
861
|
+
`wysiwyg-variable`) take `format: ["bold"]`, `["italic"]` or both, printed as
|
|
862
|
+
`<strong>` / `<em>`. Both at once comes out misnested on 1.0.11 -
|
|
863
|
+
`<strong><em> BI</strong></em>` (measured); browsers repair it, validators do not.
|
|
864
|
+
`inline_html.py` maps `<strong>`/`<em>` to styled `wysiwyg-span`s instead.
|
|
837
865
|
Through 1.0.10 the run was raw HTML instead, where a tag name in prose swallowed
|
|
838
866
|
the rest of the paragraph; `build_page.py` refuses any tag in a run either way.
|
|
839
867
|
- **`menu-link` is `width: fit-content` by default** (`.m-menu-link{display:flex;gap:4px;
|
|
@@ -849,12 +877,15 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
849
877
|
list - `dvh`, `svh`, `lvh`, `dvw`, container units: `height: 100dvh` takes every
|
|
850
878
|
other line in the block with it, silently. The structured `height` / `maxHeight`
|
|
851
879
|
fields do accept `dvh`.
|
|
852
|
-
- **`youtube` renders `<mosaic-youtube
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
`
|
|
857
|
-
|
|
880
|
+
- **`youtube` renders `<mosaic-youtube>` carrying `data-video-id`, `data-params`,
|
|
881
|
+
`data-host`**, with the server's iframe inside `<noscript>`; the custom element
|
|
882
|
+
builds the real iframe once it has a size. The iframe has no `title`, so an
|
|
883
|
+
accessible name has to be added some other way. `youtubeUrl` is
|
|
884
|
+
`{"v": "https://www.youtube.com/watch?v=…"}`; `lazyLoad` defers it and there is
|
|
885
|
+
no click-to-load facade (same for `vimeo`). Sized by `width`/`height: 100%` inside
|
|
886
|
+
an `aspect-ratio: 16/9` box. `privacy:"1"` switches the host to
|
|
887
|
+
`www.youtube-nocookie.com` - measured on 1.0.11; the old NO_OUTPUT row was a probe
|
|
888
|
+
artefact. `suggestedVideos` maps to `rel`. `vimeo`'s `privacy` is `dnt=1`.
|
|
858
889
|
- **Eight types emit custom elements**: `<mosaic-dropdown>`, `<mosaic-navbar>`,
|
|
859
890
|
`<mosaic-tabs>`, `<mosaic-accordion>`, `<mosaic-vimeo>`, `<mosaic-youtube>` and
|
|
860
891
|
friends. A selector written against `div`/`nav` misses all of them.
|
|
@@ -862,8 +893,12 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
862
893
|
- **Only four types take a `url`**: `button`, `menu-link`, `wysiwyg-link`,
|
|
863
894
|
`dropdown-toggle`. Put one on a `text` or an `image` and it is accepted, stored,
|
|
864
895
|
and emits no anchor whatsoever. To make anything else clickable, WRAP it in a
|
|
865
|
-
`
|
|
866
|
-
|
|
896
|
+
`button` whose `style.variant` is the Link variant (`f671bc01-…`, `m-link`) - that
|
|
897
|
+
is what the editor's "Wrap in link" writes, `button` takes children, and with a
|
|
898
|
+
`url` it renders `<a class="m-link" href>` around them (measured on 1.0.11). A
|
|
899
|
+
`menu-link` wrapper works the same way (`target="_blank"` included; probed) but
|
|
900
|
+
carries menu styling. A `button` with `inactive` on keeps its `url`/`target`/`rel`
|
|
901
|
+
stored and emits none of them.
|
|
867
902
|
- **An image's attachment-protocol path is relative to the UPLOADS directory.**
|
|
868
903
|
`wp-attachment://image/<id>/<size>/2026/09/pic.png` resolves, and carries the
|
|
869
904
|
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,
|
|
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.
|
|
23
|
+
"version": "1.34.0"
|
|
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,
|
|
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.
|
|
23
|
+
"version": "1.34.0"
|
|
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,
|
|
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.
|
|
23
|
+
"version": "1.34.0"
|
|
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,
|
|
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,
|
|
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.
|
|
23
|
+
"version": "1.34.0"
|
|
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,
|
|
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,
|
|
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.
|
|
23
|
+
"version": "1.34.0"
|
|
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""",
|
|
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"">"
|
package/data/node-type-notes.csv
CHANGED
|
@@ -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
|
|
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,,,
|
package/data/style-states.csv
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.34.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",
|
package/references/data-model.md
CHANGED
|
@@ -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` |
|
|
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>}
|
|
92
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
140
|
-
|
|
141
|
-
|
|
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
|
|
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
|
|
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
|
|
516
|
-
|
|
517
|
-
|
|
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
|
|