Skip to content

Commit d7fdcd7

Browse files
committed
Merge branch 'upstream/2.x' into live-component-force-post-requests
2 parents ca32780 + 524ac5a commit d7fdcd7

File tree

124 files changed

+2877
-1236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+2877
-1236
lines changed

src/Autocomplete/assets/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"enabled": true,
1515
"autoimport": {
1616
"tom-select/dist/css/tom-select.default.css": true,
17+
"tom-select/dist/css/tom-select.bootstrap4.css": false,
1718
"tom-select/dist/css/tom-select.bootstrap5.css": false
1819
}
1920
}

src/Autocomplete/doc/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ into an Ajax-powered autocomplete smart UI control (leveraging `Tom Select`_):
1212
Installation
1313
------------
1414

15-
Before you start, make sure you have `StimulusBundle configured in your app`_.
15+
.. caution::
16+
17+
Before you start, make sure you have `StimulusBundle configured in your app`_.
1618

17-
Then install the bundle using Composer and Symfony Flex:
19+
Install the bundle using Composer and Symfony Flex:
1820

1921
.. code-block:: terminal
2022

src/Chartjs/doc/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ It is part of `the Symfony UX initiative`_.
88
Installation
99
------------
1010

11-
Before you start, make sure you have `StimulusBundle configured in your app`_.
11+
.. caution::
1212

13-
Then install the bundle using Composer and Symfony Flex:
13+
Before you start, make sure you have `StimulusBundle configured in your app`_.
14+
15+
Install the bundle using Composer and Symfony Flex:
1416

1517
.. code-block:: terminal
1618

src/Cropperjs/doc/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Symfony UX Cropper.js is a Symfony bundle integrating the
88
Installation
99
------------
1010

11-
Before you start, make sure you have `StimulusBundle configured in your app`_.
11+
.. caution::
1212

13-
Then, install this bundle using Composer and Symfony Flex:
13+
Before you start, make sure you have `StimulusBundle configured in your app`_.
14+
15+
Install the bundle using Composer and Symfony Flex:
1416

1517
.. code-block:: terminal
1618
@@ -104,8 +106,8 @@ custom Stimulus controller:
104106
105107
disconnect() {
106108
// You should always remove listeners when the controller is disconnected to avoid side effects
107-
this.element.removeEventListener('cropperjs:pre-connect', this._onConnect);
108109
this.element.removeEventListener('cropperjs:connect', this._onConnect);
110+
this.element.removeEventListener('cropperjs:pre-connect', this._onPreConnect);
109111
}
110112
111113
_onPreConnect(event) {

src/Dropzone/doc/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ having to browse their computer for a file.
1010
Installation
1111
------------
1212

13-
Before you start, make sure you have `StimulusBundle configured in your app`_.
13+
.. caution::
1414

15-
Then, install this bundle using Composer and Symfony Flex:
15+
Before you start, make sure you have `StimulusBundle configured in your app`_.
16+
17+
Install the bundle using Composer and Symfony Flex:
1618

1719
.. code-block:: terminal
1820

src/LazyImage/doc/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ It provides two key features:
1212
Installation
1313
------------
1414

15-
Before you start, make sure you have `StimulusBundle configured in your app`_.
15+
.. caution::
1616

17-
Then install this bundle using Composer and Symfony Flex:
17+
Before you start, make sure you have `StimulusBundle configured in your app`_.
18+
19+
Install the bundle using Composer and Symfony Flex:
1820

1921
.. code-block:: terminal
2022

src/LiveComponent/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Fix instantiating LiveComponentMetadata multiple times.
1919
- Change JavaScript package to `type: module`.
2020
- Throwing an error when setting an invalid model name.
21+
- Add support for URL binding in `LiveProp`
2122

2223
## 2.12.0
2324

src/LiveComponent/assets/dist/Component/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class Component {
5353
emitSelf(name: string, data: any): void;
5454
private performEmit;
5555
private doEmit;
56-
updateFromNewElementFromParentRender(toEl: HTMLElement): void;
56+
updateFromNewElementFromParentRender(toEl: HTMLElement): boolean;
5757
onChildComponentModelUpdate(modelName: string, value: any, childComponent: Component): void;
5858
private isTurboEnabled;
5959
private tryStartingRequest;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Component from '../index';
2+
import { PluginInterface } from './PluginInterface';
3+
interface QueryMapping {
4+
name: string;
5+
}
6+
export default class implements PluginInterface {
7+
private readonly mapping;
8+
constructor(mapping: {
9+
[p: string]: QueryMapping;
10+
});
11+
attachToComponent(component: Component): void;
12+
}
13+
export {};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Component from '../index';
2+
import { PluginInterface } from './PluginInterface';
3+
export default class implements PluginInterface {
4+
private element;
5+
private mapping;
6+
attachToComponent(component: Component): void;
7+
private registerBindings;
8+
private updateUrl;
9+
}

src/LiveComponent/assets/dist/live_controller.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export default class LiveControllerDefault extends Controller<HTMLElement> imple
3636
type: StringConstructor;
3737
default: string;
3838
};
39+
queryMapping: {
40+
type: ObjectConstructor;
41+
default: {};
42+
};
3943
};
4044
readonly nameValue: string;
4145
readonly urlValue: string;
@@ -49,6 +53,11 @@ export default class LiveControllerDefault extends Controller<HTMLElement> imple
4953
readonly debounceValue: number;
5054
readonly fingerprintValue: string;
5155
readonly requestMethodValue: 'get' | 'post';
56+
readonly queryMappingValue: {
57+
[p: string]: {
58+
name: string;
59+
};
60+
};
5261
private proxiedComponent;
5362
component: Component;
5463
pendingActionTriggerModelElement: HTMLElement | null;

0 commit comments

Comments
 (0)