@vectoriox/iox-builder 4.33.0 → 4.34.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.
@@ -21,7 +21,7 @@ export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTra
21
21
  import Lenis from 'lenis';
22
22
  import { Subject, BehaviorSubject, of, forkJoin } from 'rxjs';
23
23
  import interact from 'interactjs';
24
- import { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES } from '@vectoriox/iox-ui/actions-core';
24
+ import { BEHAVIOUR_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, CONSENT_ACTION_TYPES } from '@vectoriox/iox-ui/actions-core';
25
25
  import Moveable from 'moveable';
26
26
  import Selecto from 'selecto';
27
27
  import { map, catchError } from 'rxjs/operators';
@@ -3288,6 +3288,14 @@ class InteractionEngineService {
3288
3288
  this.executeBehaviourAction(node, action, selfEl);
3289
3289
  continue;
3290
3290
  }
3291
+ // Tier-B server actions (A2). ALWAYS a simulation here: the canvas is the ADMIN's
3292
+ // browser and a server action is a public-site write (an email, a webhook, a content
3293
+ // row) — the toast says what the LIVE site would do.
3294
+ if (SERVER_ELEMENT_ACTION_TYPES.has(action.type)) {
3295
+ const detail = { type: action.type, params: action.params ?? {}, target: action.target };
3296
+ window.dispatchEvent(new CustomEvent('iox-action-simulated', { detail }));
3297
+ continue;
3298
+ }
3291
3299
  // Consent actions (C3). Recording ones SIMULATE — the canvas is the ADMIN's browser,
3292
3300
  // and an admin's cookie is not a visitor's decision; the toast says what would be
3293
3301
  // recorded. Opening the preferences dialog is dialog-opening and honestly RUNS.