phoenix_duskmoon 10.0.5 → 10.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/assets/js/react_form/component.js +3 -10
- package/assets/js/react_form/index.js +1 -2
- package/package.json +6 -6
- package/priv/static/assets/css/app-44f822e828f1f398ee242cbbc47ad5ff.css +2 -0
- package/priv/static/assets/css/app-44f822e828f1f398ee242cbbc47ad5ff.css.gz +0 -0
- package/priv/static/assets/css/app.css +1 -1
- package/priv/static/assets/css/app.css.gz +0 -0
- package/priv/static/cache_manifest.json +2 -2
- package/priv/static/assets/css/app-f3e09a20a7d107eb69615e2cb40305fe.css +0 -2
- package/priv/static/assets/css/app-f3e09a20a7d107eb69615e2cb40305fe.css.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# [10.0.6](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/compare/v10.0.5...v10.0.6) (2026-10-19)
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
- Update Core/CSS Art to 1.20.6, Elements/Art Elements and supporting individual
|
|
6
|
+
element packages to 1.9.3, and React Components to 0.5.2.
|
|
7
|
+
- Document Markdown Input's lazy renderer, math and Mermaid asset overrides,
|
|
8
|
+
plus custom-button accessible-name synchronization.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Apply `form_class` to the actual schema form while preserving upstream default
|
|
13
|
+
classes, typed values, reset and reconnect behavior.
|
|
14
|
+
- Use published React controls for read-only number stepping and required Select
|
|
15
|
+
accessibility, removing the obsolete local workarounds.
|
|
16
|
+
- Use Core's secondary pagination selectors for active and hovered pages while
|
|
17
|
+
retaining the existing neutral-color integration.
|
|
18
|
+
|
|
19
|
+
### Validation
|
|
20
|
+
|
|
21
|
+
- Cover button accessible names, secondary pagination in both themes, narrow
|
|
22
|
+
Megamenu layouts and the updated React Form contracts.
|
|
23
|
+
|
|
1
24
|
# [10.0.5](https://github.com/duskmoon-dev/phoenix-duskmoon-ui/compare/v10.0.4...v10.0.5) (2026-10-18)
|
|
2
25
|
|
|
3
26
|
### Added
|
|
@@ -19,20 +19,13 @@ export function ReactField({ config, value, errors, disabled, onChange }) {
|
|
|
19
19
|
control = h(Checkbox, { ...common, required: config.required, checked: Boolean(value), onChange: (event) => onChange(event.target.checked) });
|
|
20
20
|
break;
|
|
21
21
|
case "number":
|
|
22
|
-
// TODO(upstream): duskmoon-dev/duskmoon-react#82
|
|
23
|
-
// WORKAROUND(upstream): duskmoon-dev/duskmoon-react#82 — readOnly does not guard upstream stepping.
|
|
24
22
|
control = h(InputNumber, { ...common, ...textAttributes, min: config.min ?? undefined, max: config.max ?? undefined, step: config.step ?? undefined,
|
|
25
|
-
|
|
23
|
+
value: value ?? null, onChange });
|
|
26
24
|
break;
|
|
27
25
|
case "select":
|
|
28
26
|
case "multiselect":
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
control = h(Select, { ...common, placeholder: config.placeholder ?? undefined, ref: (container) => {
|
|
32
|
-
const trigger = container?.querySelector('button[aria-haspopup="listbox"]');
|
|
33
|
-
if (config.required) trigger?.setAttribute("aria-required", "true");
|
|
34
|
-
else trigger?.removeAttribute("aria-required");
|
|
35
|
-
}, value: value ?? undefined, mode: config.type === "multiselect" ? "multiple" : undefined,
|
|
27
|
+
control = h(Select, { ...common, placeholder: config.placeholder ?? undefined, "aria-required": config.required ? "true" : undefined,
|
|
28
|
+
value: value ?? undefined, mode: config.type === "multiselect" ? "multiple" : undefined,
|
|
36
29
|
options: config.options || [], showSearch: true, allowClear: true, onChange: (next) => onChange(next ?? null) });
|
|
37
30
|
break;
|
|
38
31
|
case "textarea":
|
|
@@ -42,9 +42,8 @@ export const DuskmoonReactForm = {
|
|
|
42
42
|
this.renderSchema();
|
|
43
43
|
},
|
|
44
44
|
renderSchema() {
|
|
45
|
-
// TODO(upstream): duskmoon-dev/duskmoon-react#85 - JsonSchemaForm has no native form class prop.
|
|
46
45
|
this.schemaRoot.render(React.createElement(ReactSchemaForm, {
|
|
47
|
-
key: this.schemaRevision, compiled: this.compiledSchema, value: this.values,
|
|
46
|
+
key: this.schemaRevision, className: this.schemaElement.dataset.formClass, compiled: this.compiledSchema, value: this.values,
|
|
48
47
|
defaultValue: this.initialValues, errors: this.errors, disabled: this.disconnectedState,
|
|
49
48
|
onChange: (values) => {
|
|
50
49
|
const path = changedPath(this.values, values);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phoenix_duskmoon",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./priv/static/assets/js/phoenix_duskmoon.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"registry": "https://registry.npmjs.org/"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@duskmoon-dev/art-elements": "1.9.
|
|
41
|
-
"@duskmoon-dev/components": "0.5.
|
|
42
|
-
"@duskmoon-dev/core": "1.20.
|
|
43
|
-
"@duskmoon-dev/css-art": "1.20.
|
|
44
|
-
"@duskmoon-dev/elements": "1.9.
|
|
40
|
+
"@duskmoon-dev/art-elements": "1.9.3",
|
|
41
|
+
"@duskmoon-dev/components": "0.5.2",
|
|
42
|
+
"@duskmoon-dev/core": "1.20.6",
|
|
43
|
+
"@duskmoon-dev/css-art": "1.20.6",
|
|
44
|
+
"@duskmoon-dev/elements": "1.9.3",
|
|
45
45
|
"react": "19.3.0",
|
|
46
46
|
"react-dom": "19.3.0"
|
|
47
47
|
},
|