@symfony/ux-live-component 2.29.2 → 2.31.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.md +1 -1
- package/dist/live_controller.js +2 -2
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ composer require symfony/ux-live-component:2.23.0
|
|
|
14
14
|
npm add @symfony/ux-live-component@2.23.0
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
**Tip:** Your `package.json` file will be automatically modified by [Flex](https://github.com/symfony/flex) when installing or upgrading a PHP package. To prevent this behavior, ensure to **use at least Flex 1.22.0 or 2.5.0**, and run `composer config extra.symfony
|
|
17
|
+
**Tip:** Your `package.json` file will be automatically modified by [Flex](https://github.com/symfony/flex) when installing or upgrading a PHP package. To prevent this behavior, ensure to **use at least Flex 1.22.0 or 2.5.0**, and run `composer config --json "extra.symfony/flex.synchronize_package_json" false`.
|
|
18
18
|
|
|
19
19
|
## Resources
|
|
20
20
|
|
package/dist/live_controller.js
CHANGED
|
@@ -377,7 +377,7 @@ function getValueFromElement(element, valueStore) {
|
|
|
377
377
|
}
|
|
378
378
|
return element.value;
|
|
379
379
|
}
|
|
380
|
-
if (element.
|
|
380
|
+
if (element.hasAttribute("data-value")) {
|
|
381
381
|
return element.dataset.value;
|
|
382
382
|
}
|
|
383
383
|
if ("value" in element) {
|
|
@@ -2021,7 +2021,6 @@ var Component = class {
|
|
|
2021
2021
|
thisPromiseResolve(backendResponse);
|
|
2022
2022
|
return response;
|
|
2023
2023
|
}
|
|
2024
|
-
this.processRerender(html, backendResponse);
|
|
2025
2024
|
const liveUrl = backendResponse.getLiveUrl();
|
|
2026
2025
|
if (liveUrl) {
|
|
2027
2026
|
history.replaceState(
|
|
@@ -2030,6 +2029,7 @@ var Component = class {
|
|
|
2030
2029
|
new URL(liveUrl + window.location.hash, window.location.origin)
|
|
2031
2030
|
);
|
|
2032
2031
|
}
|
|
2032
|
+
this.processRerender(html, backendResponse);
|
|
2033
2033
|
this.backendRequest = null;
|
|
2034
2034
|
thisPromiseResolve(backendResponse);
|
|
2035
2035
|
if (this.isRequestPending) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symfony/ux-live-component",
|
|
3
3
|
"description": "Live Component: bring server-side re-rendering & model binding to any element.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.31.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"symfony-ux",
|
|
8
8
|
"twig",
|
|
@@ -58,8 +58,9 @@
|
|
|
58
58
|
"build": "tsx ../../../bin/build_package.ts .",
|
|
59
59
|
"watch": "tsx ../../../bin/build_package.ts . --watch",
|
|
60
60
|
"test": "pnpm run test:unit && pnpm run test:browser",
|
|
61
|
-
"test:unit": "../../../bin/
|
|
62
|
-
"test:browser": "
|
|
61
|
+
"test:unit": "../../../bin/unit_test_package.sh .",
|
|
62
|
+
"test:browser": "playwright test",
|
|
63
|
+
"test:browser:ui": "playwright test --ui",
|
|
63
64
|
"check": "biome check",
|
|
64
65
|
"ci": "biome ci"
|
|
65
66
|
}
|