@syntrologie/runtime-sdk 2.8.0-canary.71 → 2.8.0-canary.73

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.
@@ -10,20 +10,20 @@ export type VariantFlagValue = Partial<CanvasConfigResponse> & {
10
10
  /**
11
11
  * Strategy for resolving multiple active variant configs into one.
12
12
  *
13
- * Currently: "first-match" returns the first non-empty variant config.
14
- * Future: "merge" concatenate tiles/actions/overlays from all variants.
13
+ * - "merge" (default): concatenate tiles/actions from all active variants.
14
+ * Singleton fields (theme, launcher, meta, etc.) take first-defined value.
15
+ * - "first-match": returns the first non-empty variant config (legacy).
15
16
  */
16
- export type MergeStrategy = 'first-match';
17
+ export type MergeStrategy = 'merge' | 'first-match';
17
18
  /**
18
19
  * Resolve multiple variant feature flags into a single CanvasConfigResponse.
19
20
  *
20
21
  * Evaluates each flag key against the experiment client and applies the
21
- * configured strategy. Currently uses "first-match": the first flag that
22
- * returns a non-empty config wins.
22
+ * configured strategy.
23
23
  *
24
24
  * @param client - Experiment client to evaluate feature flags
25
25
  * @param keys - Ordered list of variant flag keys to evaluate
26
- * @param _strategy - Resolution strategy (reserved for future use)
26
+ * @param strategy - Resolution strategy (default: "merge")
27
27
  * @returns Resolved config, or null if no flags are active
28
28
  */
29
- export declare function resolveVariantConfigs(client: ExperimentClient, keys: string[], _strategy?: MergeStrategy): CanvasConfigResponse | null;
29
+ export declare function resolveVariantConfigs(client: ExperimentClient, keys: string[], strategy?: MergeStrategy): CanvasConfigResponse | null;
package/dist/index.js CHANGED
@@ -104,7 +104,7 @@ import {
104
104
  validateEventName,
105
105
  validateProps,
106
106
  widgetRegistry
107
- } from "./chunk-WX32GVSP.js";
107
+ } from "./chunk-P3GRWZXE.js";
108
108
  import {
109
109
  AddClassZ,
110
110
  AnchorIdZ,
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Syntro
3
- } from "./chunk-WX32GVSP.js";
3
+ } from "./chunk-P3GRWZXE.js";
4
4
  import "./chunk-77TNZ66J.js";
5
5
  import "./chunk-IR6UOR63.js";
6
6
  import "./chunk-YLLWLUQX.js";