@lwc/engine-core 9.1.0 → 9.1.1-alpha.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.
@@ -18,11 +18,13 @@ export { freezeTemplate } from './freeze-template';
18
18
  export { getComponentAPIVersion } from './component';
19
19
  export { shouldBeFormAssociated } from './utils';
20
20
  export { getComponentConstructor } from './get-component-constructor';
21
+ export type { MIR, MIRNode, MIRAction, MIRAttributes, MosaicAction, MosaicActionParams, } from './mosaic';
21
22
  export type { RendererAPI, LifecycleCallback } from './renderer';
22
23
  export type { Template } from './template';
23
24
  export type { ConfigValue as WireConfigValue, ContextConsumer as WireContextConsumer, ContextProvider as WireContextProvider, ContextProviderOptions as WireContextProviderOptions, ContextValue as WireContextValue, DataCallback as WireDataCallback, WireAdapter, WireAdapterConstructor, WireAdapterSchemaValue, WireContextSubscriptionPayload, WireContextSubscriptionCallback, } from './wiring';
24
25
  export type { FormRestoreState, FormRestoreReason } from './vm';
25
26
  export { LightningElement } from './base-lightning-element';
27
+ export { Mosaic } from './mosaic';
26
28
  export { default as api } from './decorators/api';
27
29
  export { default as track } from './decorators/track';
28
30
  export { default as wire } from './decorators/wire';
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Mosaic Intermediate Representation (MIR) and JSON serialization types
3
+ */
4
+ type JSONPrimitive = string | number | boolean | null | undefined;
5
+ type JSONValue = JSONPrimitive | JSONObject | JSONArray;
6
+ type JSONObject = {
7
+ [key: string]: JSONValue;
8
+ };
9
+ type JSONArray = JSONValue[];
10
+ export interface MIRAction extends JSONObject {
11
+ name: string;
12
+ params?: JSONObject;
13
+ }
14
+ export interface MIRAttributes {
15
+ action?: MIRAction;
16
+ [key: string]: JSONValue;
17
+ }
18
+ export interface MIR {
19
+ definition: string;
20
+ children?: MIRNode[];
21
+ }
22
+ export interface MIRNode extends MIR {
23
+ attributes?: MIRAttributes;
24
+ }
25
+ /**
26
+ * Mosaic class definition and types
27
+ */
28
+ type TargetHint = 'modal' | 'panel' | 'toast' | 'pip';
29
+ export interface MosaicActionParams {
30
+ action: {
31
+ value?: JSONObject;
32
+ };
33
+ client: {
34
+ views: {
35
+ update(args: {
36
+ componentRef?: string;
37
+ props?: JSONObject;
38
+ }): void;
39
+ push(args: {
40
+ componentRef: string;
41
+ props?: JSONObject;
42
+ target?: TargetHint;
43
+ }): void;
44
+ };
45
+ };
46
+ }
47
+ export type MosaicAction = (params: MosaicActionParams) => void;
48
+ export declare abstract class Mosaic {
49
+ abstract render(): MIR;
50
+ }
51
+ export {};
52
+ //# sourceMappingURL=mosaic.d.ts.map
package/dist/index.cjs CHANGED
@@ -8725,6 +8725,15 @@ function getComponentConstructor(elm) {
8725
8725
  return ctor;
8726
8726
  }
8727
8727
 
8728
+ /*
8729
+ * Copyright (c) 2026, Salesforce, Inc.
8730
+ * All rights reserved.
8731
+ * SPDX-License-Identifier: MIT
8732
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8733
+ */
8734
+ class Mosaic {
8735
+ }
8736
+
8728
8737
  /*
8729
8738
  * Copyright (c) 2018, salesforce.com, inc.
8730
8739
  * All rights reserved.
@@ -8785,6 +8794,7 @@ Object.defineProperty(exports, "SignalBaseClass", {
8785
8794
  });
8786
8795
  exports.BaseBridgeElement = BaseBridgeElement;
8787
8796
  exports.LightningElement = LightningElement;
8797
+ exports.Mosaic = Mosaic;
8788
8798
  exports.__unstable__ProfilerControl = profilerControl;
8789
8799
  exports.__unstable__ReportingControl = reportingControl;
8790
8800
  exports.api = api$1;
@@ -8819,5 +8829,5 @@ exports.swapTemplate = swapTemplate;
8819
8829
  exports.track = track;
8820
8830
  exports.unwrap = unwrap;
8821
8831
  exports.wire = wire;
8822
- /** version: 9.1.0 */
8832
+ /** version: 9.1.1-alpha.0 */
8823
8833
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -8722,6 +8722,15 @@ function getComponentConstructor(elm) {
8722
8722
  return ctor;
8723
8723
  }
8724
8724
 
8725
+ /*
8726
+ * Copyright (c) 2026, Salesforce, Inc.
8727
+ * All rights reserved.
8728
+ * SPDX-License-Identifier: MIT
8729
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8730
+ */
8731
+ class Mosaic {
8732
+ }
8733
+
8725
8734
  /*
8726
8735
  * Copyright (c) 2018, salesforce.com, inc.
8727
8736
  * All rights reserved.
@@ -8744,6 +8753,6 @@ function readonly(obj) {
8744
8753
  return getReadOnlyProxy(obj);
8745
8754
  }
8746
8755
 
8747
- export { BaseBridgeElement, LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
8748
- /** version: 9.1.0 */
8756
+ export { BaseBridgeElement, LightningElement, Mosaic, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
8757
+ /** version: 9.1.1-alpha.0 */
8749
8758
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
5
5
  ],
6
6
  "name": "@lwc/engine-core",
7
- "version": "9.1.0",
7
+ "version": "9.1.1-alpha.0",
8
8
  "description": "Core LWC engine APIs.",
9
9
  "keywords": [
10
10
  "lwc"
@@ -51,9 +51,9 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@lwc/features": "9.1.0",
55
- "@lwc/shared": "9.1.0",
56
- "@lwc/signals": "9.1.0"
54
+ "@lwc/features": "9.1.1-alpha.0",
55
+ "@lwc/shared": "9.1.1-alpha.0",
56
+ "@lwc/signals": "9.1.1-alpha.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "observable-membrane": "2.0.0"