From a1024fdd2e575af861585dd3cb5937be5e1f1403 Mon Sep 17 00:00:00 2001 From: Federico Abella <65520926+FedeAbella@users.noreply.github.com> Date: Sat, 1 Nov 2025 21:27:17 -0300 Subject: [PATCH] feat: add flowSupport stub This adds a missing stub for lightning/flowSupport. Tackes #448 --- .../flowSupport/flowSupport.js | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/lightning-stubs/flowSupport/flowSupport.js diff --git a/src/lightning-stubs/flowSupport/flowSupport.js b/src/lightning-stubs/flowSupport/flowSupport.js new file mode 100644 index 0000000..10ac4df --- /dev/null +++ b/src/lightning-stubs/flowSupport/flowSupport.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2025, salesforce.com, inc. + * All rights reserved. + * SPDX-License-Identifier: MIT + * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT + */ +export const FlowAttributeChangeEventName = 'lightning__flowattributechange'; +export const FlowNavigationBackEventName = 'lightning__flownavigationback'; +export const FlowNavigationNextEventName = 'lightning__flownavigationnext'; +export const FlowNavigationPauseEventName = 'lightning__flownavigationpause'; +export const FlowNavigationFinishEventName = 'lightning__flownavigationfinish'; + +export class FlowAttributeChangeEvent extends CustomEvent { + constructor() { + super(FlowAttributeChangeEventName, { bubbles: true, composed: true }); + } +} + +export class FlowNavigationBackEvent extends CustomEvent { + constructor() { + super(FlowNavigationBackEventName, { bubbles: true, composed: true }); + } +} + +export class FlowNavigationNextEvent extends CustomEvent { + constructor() { + super(FlowNavigationNextEventName, { bubbles: true, composed: true }); + } +} + +export class FlowNavigationNextEvent extends CustomEvent { + constructor() { + super(FlowNavigationNextEventName, { bubbles: true, composed: true }); + } +} + +export class FlowNavigationPauseEvent extends CustomEvent { + constructor() { + super(FlowNavigationPauseEventName, { bubbles: true, composed: true }); + } +} + +export class FlowNavigationFinishEvent extends CustomEvent { + constructor() { + super(FlowNavigationFinishEventName, { bubbles: true, composed: true }); + } +}