lwc 6.3.4 → 6.4.1

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.
Files changed (2) hide show
  1. package/index.d.ts +32 -0
  2. package/package.json +16 -16
package/index.d.ts CHANGED
@@ -5,6 +5,8 @@
5
5
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6
6
  */
7
7
 
8
+ import type { FormRestoreReason, FormRestoreState } from '@lwc/engine-core';
9
+
8
10
  /**
9
11
  * Lightning Web Components core module
10
12
  */
@@ -163,6 +165,12 @@ declare module 'lwc' {
163
165
  * ```
164
166
  */
165
167
  static get CustomElementConstructor(): typeof HTMLElement;
168
+
169
+ /**
170
+ * Set to true to designate this component as a Form-Associated Custom Element (FACE).
171
+ * @see https://web.dev/articles/more-capable-form-controls#form-associated_custom_elements
172
+ */
173
+ static formAssociated?: boolean;
166
174
  /**
167
175
  * Called when the element is inserted in a document
168
176
  */
@@ -179,6 +187,30 @@ declare module 'lwc' {
179
187
  * Called when a descendant component throws an error in one of its lifecycle hooks
180
188
  */
181
189
  errorCallback(error: Error, stack: string): void;
190
+ /**
191
+ * Called when a Form-Associated Custom Element (FACE) is associated with an HTMLFormElement.
192
+ * @param form HTMLFormElement - the associated form element
193
+ * @see https://web.dev/articles/more-capable-form-controls#void_formassociatedcallbackform
194
+ */
195
+ formAssociatedCallback(form: HTMLFormElement | null): void;
196
+ /**
197
+ * Called when a Form-Associated Custom Element (FACE) has a disabled state that has changed.
198
+ * @param disabled boolean - the new disabled state
199
+ * @see https://web.dev/articles/more-capable-form-controls#void_formdisabledcallbackdisabled
200
+ */
201
+ formDisabledCallback(disabled: boolean): void;
202
+ /**
203
+ * Called when a Form-Associated Custom Element (FACE) has an associated form that is reset.
204
+ * @see https://web.dev/articles/more-capable-form-controls#void_formresetcallback
205
+ */
206
+ formResetCallback(): void;
207
+ /**
208
+ * Called when a Form-Associated Custom Element (FACE) has an associated form that is restored.
209
+ * @param state FormRestoreState - the state of the form during restoration
210
+ * @param reason FormRestoreReason - the reason the form was restored
211
+ * @see https://web.dev/articles/more-capable-form-controls#void_formstaterestorecallbackstate_mode
212
+ */
213
+ formStateRestoreCallback(state: FormRestoreState | null, reason: FormRestoreReason): void;
182
214
 
183
215
  readonly template: ShadowRootTheGoodPart;
184
216
  readonly shadowRoot: null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lwc",
3
- "version": "6.3.4",
3
+ "version": "6.4.1",
4
4
  "description": "Lightning Web Components (LWC)",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -20,21 +20,21 @@
20
20
  "*.d.ts"
21
21
  ],
22
22
  "dependencies": {
23
- "@lwc/aria-reflection": "6.3.4",
24
- "@lwc/babel-plugin-component": "6.3.4",
25
- "@lwc/compiler": "6.3.4",
26
- "@lwc/engine-core": "6.3.4",
27
- "@lwc/engine-dom": "6.3.4",
28
- "@lwc/engine-server": "6.3.4",
29
- "@lwc/errors": "6.3.4",
30
- "@lwc/features": "6.3.4",
31
- "@lwc/module-resolver": "6.3.4",
32
- "@lwc/rollup-plugin": "6.3.4",
33
- "@lwc/shared": "6.3.4",
34
- "@lwc/style-compiler": "6.3.4",
35
- "@lwc/synthetic-shadow": "6.3.4",
36
- "@lwc/template-compiler": "6.3.4",
37
- "@lwc/wire-service": "6.3.4"
23
+ "@lwc/aria-reflection": "6.4.1",
24
+ "@lwc/babel-plugin-component": "6.4.1",
25
+ "@lwc/compiler": "6.4.1",
26
+ "@lwc/engine-core": "6.4.1",
27
+ "@lwc/engine-dom": "6.4.1",
28
+ "@lwc/engine-server": "6.4.1",
29
+ "@lwc/errors": "6.4.1",
30
+ "@lwc/features": "6.4.1",
31
+ "@lwc/module-resolver": "6.4.1",
32
+ "@lwc/rollup-plugin": "6.4.1",
33
+ "@lwc/shared": "6.4.1",
34
+ "@lwc/style-compiler": "6.4.1",
35
+ "@lwc/synthetic-shadow": "6.4.1",
36
+ "@lwc/template-compiler": "6.4.1",
37
+ "@lwc/wire-service": "6.4.1"
38
38
  },
39
39
  "lwc": {
40
40
  "modules": [