@tltdsh/mx 1.6.1 → 1.6.3
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/AGENTS.md +2 -0
- package/CLAUDE.md +2 -0
- package/README.md +2 -2
- package/mx.d.ts +14 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -4,6 +4,8 @@ Instructions for AI coding agents working with mx.js codebases.
|
|
|
4
4
|
|
|
5
5
|
**Full documentation: [mxjs.dev](https://mxjs.dev)** - API reference, patterns, gotchas, playground.
|
|
6
6
|
|
|
7
|
+
**For agents:** [mxjs.dev/ai](https://mxjs.dev/ai) has a paste-ready system prompt, the React, Vue and Svelte habits that break mx, and a self-check list. [mxjs.dev/llms.txt](https://mxjs.dev/llms.txt) has the same rules in one plain-text file.
|
|
8
|
+
|
|
7
9
|
When transferring from React/Vue/Svelte, read [mxjs.dev/what-mx-is-not](https://mxjs.dev/what-mx-is-not) first. mx deliberately has no hooks, no JSX, no fragments, no portals, no memo, no synthetic events, no signals. That page lists every omission and what replaces it.
|
|
8
10
|
|
|
9
11
|
---
|
package/CLAUDE.md
CHANGED
|
@@ -4,6 +4,8 @@ Instructions for AI coding agents working with mx.js codebases.
|
|
|
4
4
|
|
|
5
5
|
**Full documentation: [mxjs.dev](https://mxjs.dev)** - API reference, patterns, gotchas, playground.
|
|
6
6
|
|
|
7
|
+
**For agents:** [mxjs.dev/ai](https://mxjs.dev/ai) has a paste-ready system prompt, the React, Vue and Svelte habits that break mx, and a self-check list. [mxjs.dev/llms.txt](https://mxjs.dev/llms.txt) has the same rules in one plain-text file.
|
|
8
|
+
|
|
7
9
|
When transferring from React/Vue/Svelte, read [mxjs.dev/what-mx-is-not](https://mxjs.dev/what-mx-is-not) first. mx deliberately has no hooks, no JSX, no fragments, no portals, no memo, no synthetic events, no signals. That page lists every omission and what replaces it.
|
|
8
10
|
|
|
9
11
|
---
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ A DOM reconciliation engine for building user interfaces in plain JavaScript, fr
|
|
|
26
26
|
### Pinned version
|
|
27
27
|
|
|
28
28
|
```html
|
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/@tltdsh/mx@1.6.
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/@tltdsh/mx@1.6.3/mx.min.js"></script>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### npm / yarn / bun
|
|
@@ -232,7 +232,7 @@ The package ships an agent skill in `node_modules/@tltdsh/mx/skill/`: the mx rul
|
|
|
232
232
|
ln -s "$PWD/node_modules/@tltdsh/mx/skill" ~/.claude/skills/mx
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
The same skill is a zip at [mxjs.dev/mx-skill.zip](https://mxjs.dev/mx-skill.zip).
|
|
235
|
+
The same skill is a zip at [mxjs.dev/mx-skill.zip](https://mxjs.dev/mx-skill.zip). [mxjs.dev/ai](https://mxjs.dev/ai) has a paste-ready system prompt for agents without skills, and [mxjs.dev/llms.txt](https://mxjs.dev/llms.txt) has the same rules in one plain-text file.
|
|
236
236
|
|
|
237
237
|
## TypeScript
|
|
238
238
|
|
package/mx.d.ts
CHANGED
|
@@ -167,6 +167,20 @@ interface MxHTMLAttrs {
|
|
|
167
167
|
'aria-keyshortcuts'?: string;
|
|
168
168
|
'aria-relevant'?: 'additions' | 'removals' | 'text' | 'all' | 'additions text' | (string & {});
|
|
169
169
|
|
|
170
|
+
// ARIA list and tree cluster (accessibility)
|
|
171
|
+
// aria-setsize takes -1 when the total is unknown.
|
|
172
|
+
'aria-multiselectable'?: boolean | 'true' | 'false';
|
|
173
|
+
'aria-level'?: number;
|
|
174
|
+
'aria-posinset'?: number;
|
|
175
|
+
'aria-setsize'?: number;
|
|
176
|
+
|
|
177
|
+
// ARIA grid cluster (accessibility)
|
|
178
|
+
// aria-rowcount and aria-colcount take -1 when the total is unknown.
|
|
179
|
+
'aria-rowcount'?: number;
|
|
180
|
+
'aria-rowindex'?: number;
|
|
181
|
+
'aria-colcount'?: number;
|
|
182
|
+
'aria-colindex'?: number;
|
|
183
|
+
|
|
170
184
|
// Loading
|
|
171
185
|
fetchpriority?: 'high' | 'low' | 'auto';
|
|
172
186
|
|