@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 +7 -0
- package/dist/internal.d.ts +7 -0
- package/dist/internal.es.js +12 -0
- package/dist/internal.umd.js +1 -1
- package/dist/shotstack-studio.es.js +13 -1
- package/dist/shotstack-studio.umd.js +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import "pixi.js/text-html";
|
|
|
11
11
|
import "pixi.js/sprite-tiling";
|
|
12
12
|
import "pixi.js/filters";
|
|
13
13
|
import "pixi.js/mesh";
|
|
14
|
-
const jE = "2.12.
|
|
14
|
+
const jE = "2.12.1", WE = {
|
|
15
15
|
version: jE
|
|
16
16
|
};
|
|
17
17
|
function E1(e, t, i) {
|
|
@@ -43889,6 +43889,18 @@ class So {
|
|
|
43889
43889
|
resolveMergeFields(t) {
|
|
43890
43890
|
return this.mergeFieldService.resolve(t);
|
|
43891
43891
|
}
|
|
43892
|
+
/**
|
|
43893
|
+
* Re-detect merge field placeholders across the document and re-resolve the canvas.
|
|
43894
|
+
* Use after registering or updating fields directly on the merge field service (rather
|
|
43895
|
+
* than through a clip-level command): clips that already contain `{{ FIELD }}`
|
|
43896
|
+
* placeholders pick up their resolved values immediately, without a reload.
|
|
43897
|
+
*/
|
|
43898
|
+
refreshMergeFields() {
|
|
43899
|
+
const t = this.detectMergeFieldBindings(this.mergeFieldService.toSerializedArray());
|
|
43900
|
+
for (const [i, n] of t)
|
|
43901
|
+
n.size > 0 && this.document.setClipBindingsForClip(i, n);
|
|
43902
|
+
this.resolve();
|
|
43903
|
+
}
|
|
43892
43904
|
// ─── Template Edit Access (via document bindings) ──────────────────────────
|
|
43893
43905
|
/* @internal Get the exportable clip (with merge field placeholders restored) */
|
|
43894
43906
|
getTemplateClip(t, i) {
|