@symfony/ux-live-component 2.30.0 → 2.32.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 +6 -4
- 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
|
@@ -545,12 +545,14 @@ var HookManager_default = class {
|
|
|
545
545
|
}
|
|
546
546
|
triggerHook(hookName, ...args) {
|
|
547
547
|
const hooks = this.hooks.get(hookName) || [];
|
|
548
|
-
hooks.forEach((callback) =>
|
|
548
|
+
hooks.forEach((callback) => {
|
|
549
|
+
callback(...args);
|
|
550
|
+
});
|
|
549
551
|
}
|
|
550
552
|
};
|
|
551
553
|
|
|
552
554
|
// ../../../node_modules/.pnpm/idiomorph@0.3.0/node_modules/idiomorph/dist/idiomorph.esm.js
|
|
553
|
-
var Idiomorph = function() {
|
|
555
|
+
var Idiomorph = (function() {
|
|
554
556
|
"use strict";
|
|
555
557
|
let EMPTY_SET = /* @__PURE__ */ new Set();
|
|
556
558
|
let defaults = {
|
|
@@ -1093,7 +1095,7 @@ var Idiomorph = function() {
|
|
|
1093
1095
|
morph,
|
|
1094
1096
|
defaults
|
|
1095
1097
|
};
|
|
1096
|
-
}();
|
|
1098
|
+
})();
|
|
1097
1099
|
|
|
1098
1100
|
// src/normalize_attributes_for_comparison.ts
|
|
1099
1101
|
function normalizeAttributesForComparison(element) {
|
|
@@ -2021,7 +2023,6 @@ var Component = class {
|
|
|
2021
2023
|
thisPromiseResolve(backendResponse);
|
|
2022
2024
|
return response;
|
|
2023
2025
|
}
|
|
2024
|
-
this.processRerender(html, backendResponse);
|
|
2025
2026
|
const liveUrl = backendResponse.getLiveUrl();
|
|
2026
2027
|
if (liveUrl) {
|
|
2027
2028
|
history.replaceState(
|
|
@@ -2030,6 +2031,7 @@ var Component = class {
|
|
|
2030
2031
|
new URL(liveUrl + window.location.hash, window.location.origin)
|
|
2031
2032
|
);
|
|
2032
2033
|
}
|
|
2034
|
+
this.processRerender(html, backendResponse);
|
|
2033
2035
|
this.backendRequest = null;
|
|
2034
2036
|
thisPromiseResolve(backendResponse);
|
|
2035
2037
|
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.32.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
|
}
|