@shotstack/shotstack-studio 2.12.1 → 2.12.2

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.
package/dist/index.d.ts CHANGED
@@ -370,6 +370,13 @@ export declare class Edit {
370
370
  setTimelineBackground(color: string): Promise<void>;
371
371
  private setTimelineBackgroundInternal;
372
372
  getTimelineBackground(): string;
373
+ /**
374
+ * Re-detect merge field placeholders across the document and re-resolve the canvas.
375
+ * Use after registering or updating fields directly on the merge field service (rather
376
+ * than through a clip-level command): clips that already contain `{{ FIELD }}`
377
+ * placeholders pick up their resolved values immediately, without a reload.
378
+ */
379
+ refreshMergeFields(): void;
373
380
  /**
374
381
  * Find the content clip that best matches a luma (by temporal overlap).
375
382
  */
@@ -259,6 +259,13 @@ export declare class Edit {
259
259
  setTimelineBackground(color: string): Promise<void>;
260
260
  private setTimelineBackgroundInternal;
261
261
  getTimelineBackground(): string;
262
+ /**
263
+ * Re-detect merge field placeholders across the document and re-resolve the canvas.
264
+ * Use after registering or updating fields directly on the merge field service (rather
265
+ * than through a clip-level command): clips that already contain `{{ FIELD }}`
266
+ * placeholders pick up their resolved values immediately, without a reload.
267
+ */
268
+ refreshMergeFields(): void;
262
269
  /**
263
270
  * Find the content clip that best matches a luma (by temporal overlap).
264
271
  */
@@ -43645,6 +43645,18 @@ class Da {
43645
43645
  resolveMergeFields(e) {
43646
43646
  return this.mergeFieldService.resolve(e);
43647
43647
  }
43648
+ /**
43649
+ * Re-detect merge field placeholders across the document and re-resolve the canvas.
43650
+ * Use after registering or updating fields directly on the merge field service (rather
43651
+ * than through a clip-level command): clips that already contain `{{ FIELD }}`
43652
+ * placeholders pick up their resolved values immediately, without a reload.
43653
+ */
43654
+ refreshMergeFields() {
43655
+ const e = this.detectMergeFieldBindings(this.mergeFieldService.toSerializedArray());
43656
+ for (const [r, n] of e)
43657
+ n.size > 0 && this.document.setClipBindingsForClip(r, n);
43658
+ this.resolve();
43659
+ }
43648
43660
  // ─── Template Edit Access (via document bindings) ──────────────────────────
43649
43661
  /* @internal Get the exportable clip (with merge field placeholders restored) */
43650
43662
  getTemplateClip(e, r) {