@joryio/web-sdk 1.4.0-beta.5 → 1.4.0-beta.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## 1.4.0 - 2026-11-18
4
4
 
5
+ Changed (1.4.0-beta.7): a fallback per variable in the editor's "New text" field. A click on a pill (or Enter / Space on it) opens a small popover, "If <field> is missing" with one input, that writes `| default: "..."` on that variable only; a pill with a fallback shows it after its name ("firstName · friend"). The single "If a value is missing" field, which wrote one fallback onto every variable of the text, is gone; an existing edit loads with each variable's own default on its pill (text saved with the old field has it on its variables, now shown per pill), untouched variables keep their Liquid byte for byte. The fallback is plain text: Liquid in it (`{{`, `{%`) is refused with a short note. Quoting: `"..."`, `'...'` when the text has a `"`, and with both kinds each `'` becomes the typographic apostrophe (Liquid has no escape inside a string), so nothing typed is dropped. Esc, Enter or Done closes the popover (Esc does not close the panel); it sits in the panel's flow, so it follows a right-to-left panel. The live preview resolves each variable on its own: its sample value, else its own fallback, else the placeholder pill. New editor words `fallbackFor` ("If {name} is missing"), `fallbackBad`, `fallbackDone`; `fallback` is no longer used (a dashboard may keep sending it).
6
+
7
+ Changed (1.4.0-beta.7): "Create content for this slot →" in the editor's Add content slot. A saved slot edit - right after Save, and when an existing slot edit is opened - shows what fills that slot: no campaign, a "Create content for this slot →" button; campaigns, "In this slot: <name> (status)" (each clickable) and "+ Add another campaign". The editor never calls the Joryio API: `joryio:editor-context` `placements` entries may carry `campaigns: [{ id, name, status, statusLabel? }]`, and a dashboard that handles the shortcut sets `openSlot: true`; a click posts `joryio:editor-open-slot { placementKey, campaignId? }` to the dashboard (origin- and window-checked like every message) and focuses the dashboard tab, which opens the campaign or a new Placement campaign for that slot. Without `openSlot` (a dashboard before this) a slot saves and closes the panel as before and no shortcut shows; 1.4.0-beta.6 ignores both new context fields. New editor words `slotCreate`, `slotIn`, `slotAddAnother`. `joryio-editor.min.js` 16992 bytes gzip (budget 17000). Web only: iOS, Android, React Native and Unity are not applicable - the editor edits a web page in a browser tab, and the other SDKs have no editor.
8
+
9
+ Changed (1.4.0-beta.7): the on-site Web personalization editor (`joryio-editor.min.js`) shows variables as placeholder pills. In the live preview on the page, a variable with no sample value from the dashboard and no fallback (`| default:`) is a small rounded pill with the field name (`firstName`) in the editor's teal, instead of the text `[firstName]`, so it cannot be mistaken for page text: an inline custom element with its own shadow root (the site's CSS cannot restyle it, the site's `:nth-of-type` selectors do not move), on the element's own line height, its own bidi island in a right-to-left page; a click on it selects the element it is in and never reaches the site. With a sample value the page shows the value, with only a fallback the fallback, as before. The side panel's "New text" field shows the same pills in the text: an Insert chip puts a pill at the caret; a pill is one token (Backspace / Delete remove all of it, the arrow keys step over it, copy puts its Liquid on the clipboard, paste is plain text and its Liquid becomes pills). The stored value is the same Liquid as before (`{{ user.firstName }}`, `| default:` from "If a value is missing"). The Insert row takes the dashboard's full personalization catalog: `attributes` in `joryio:editor-context` may be `{ key, label, group }` (`key` the Liquid path, inserted as is) as well as the older `{ name, custom? }`; the common fields (first name, last name, email, city when present, else the first ones) are chips with their labels, and "More…" opens a searchable picker grouped by `group` (↑ / ↓ and Enter in the search box, Esc closes it) that inserts the same Liquid a chip does, as a pill with the label. A new collapsible "Liquid code" section shows and edits the raw text; Liquid a pill cannot show (`{% if %}`, filters other than `default`) keeps the field as raw text with a short note, so nothing is lost. Fixed: selecting an element that already has an edit (a click, the arrow keys, the breadcrumb) opened a fresh draft with the page's original text while the page showed the edit ("Blog" in the field, "Blog 123" on the page), and its Save made a second edit; it now opens that edit - the latest one when the element has several, with a dot on the tiles of its other edits, which open them - with its value, its fallback and "Was:" the page's original text, and Save updates the same edit (an edit from the dashboard's context too). The page-edit rendering for visitors is unchanged: visitors never see pills. `joryio-editor.min.js` 16087 bytes gzip, budget raised from 14000 to 17000 (loaded only in a tab the dashboard opened for the editor). Web only: iOS, Android, React Native and Unity are not applicable - the editor edits a web page in a browser tab, and the other SDKs have no editor and no page-edit preview.
10
+
11
+ Changed (1.4.0-beta.6): the on-site Web personalization editor (`joryio-editor.min.js`) is redesigned (Joryio BACKLOG D444, design handoff screens 1-3). All of its UI is in one closed shadow root on an `all: initial` host, so the site's CSS cannot restyle it and its CSS cannot reach the site; the previews it puts in the page are custom elements with their own shadow roots (never a `div`, so the site's `:nth-of-type` selectors do not move). Hover shows a dashed outline with a label ("Heading · h1"); a click selects (it never reaches the site); arrow up / down, two buttons and a breadcrumb ("Page › Main › Heading") move to the element around it or the first one inside it. A light side panel names the element and how many elements its selector matches (1 match / "Matches N - all will change" / Not found) and offers Change text, Change link (off with "Not a link"), Change image (images only, `replace_image`), Hide it and Add content slot (`insert_placement`, Above it / Below it / Instead of it = position `replace` / inside at the start or end), each with its own field: the new text with "Was:", Insert chips for profile fields (`{{ user.firstName }}`, the dashboard's format) and "If a value is missing" (the `| default:`); the address; the slot name, turned into a placement key as typed ("after blog" -> `after_blog`, never refused). A collapsible CSS selector field for developers. Every edit shows live on the page while editing, with the dashboard's sample values for the variables, else their fallbacks; text is set as text, addresses must be http(s), and the original nodes come back on cancel, undo and stop. A dock shows campaign, variant and page, "N edits" (a click jumps to that edit), Undo and "Save & return to Joryio" (Esc still finishes). New messages with the dashboard, all origin- and window-checked: `joryio:editor-context` (dashboard -> editor: campaign and variant names, the variant's edits, profile fields, placements, sample values, translated words and `dir`), `joryio:editor-focus` `{ id }` (jump to an edit), `joryio:editor-remove` `{ id }` (Undo of a new edit) and `joryio:editor-done`; `joryio:editor-pick` now carries the edit's `id` (an id the dashboard has replaces that edit). A dashboard that sends no context works as before, with Undo off. The editor's words are English unless the dashboard sends its translations. `joryio-editor.min.js` 13127 bytes gzip, budget raised from 3500 to 14000 (loaded only in a tab the dashboard opened for the editor; no visitor downloads it). Web only: iOS, Android, React Native and Unity are not applicable - the editor edits a web page in a browser tab.
12
+
13
+ Fixed (1.4.0-beta.6): a beta reports its own version. The release build writes the beta (`1.4.0-beta.6`) into `SDK_VERSION` of the published copy, not only into `package.json`: the beta sends it in `X-Joryio-SDK-Version`, and its side files (`joryio-cards-ui.min.js`, `joryio-editor.min.js`) are loaded from `sdk.joryio.com/web/1.4.0-beta.6/`. Before, a beta said `1.4.0`, so an npm beta (bundled into the site, or loaded from a CDN that is not sdk.joryio.com) asked `web/1.4.0/` and `web/1/` - neither exists for a beta - and the card feed showed `unavailable`. A pre-release never falls back to the major channel `web/<major>/` (it holds finals only); a final keeps it as the last resort. The source keeps saying `1.4.0`. The same fix on iOS, Android, React Native and Unity.
14
+
15
+ Added (1.4.0-beta.6): page-edit position `replace` - "Instead of it" (Joryio BACKLOG D444, from main, PR #876). An `insert_placement` edit at `replace` hides the chosen element (`display: none !important`, as `hide` does) and puts the placement spot right after it, so the placement takes the element's place; undoing it (destroy, a route change, an answer that no longer carries it) removes the spot and shows the element as it was. A store plugin may write it into the page's HTML too (server-side page edits, D450): the SDK keeps it when the answer carries it, and undoes both parts - the spot, and the hide with the same rule as a server-written `hide` - when it does not. A build before this one reads `replace` as `after` (the element stays visible, the spot goes after it). Web only: iOS, Android, React Native and Unity are not applicable - page edits change a web page's DOM.
16
+
5
17
  Changed (1.4.0-beta.5): one subscription type for every listener, the same on all five SDKs (Joryio BACKLOG D444 / D446, owner decisions 2026-11-23). `onCardsUpdated`, `onPlacementsUpdated` and `onFlagsUpdated` return a `JoryioSubscription` (new exported type): `cancel()` stops the updates - the same type name and method on iOS, Android, React Native and Unity (`JoryioSubscription.Cancel()`). It can still be called, `sub()` being `sub.cancel()`, so code that called the returned function keeps working. Cancelling twice is harmless, and the same callback subscribed twice now counts as two subscriptions. Neither placements, flags nor cards are in a final release (none of the three listeners exists in 1.3.3), so the breaking renames are made now. No wire changes.
6
18
 
7
19
  Changed (1.4.0-beta.4): the page-edit site settings (`GET /v1/in-app/site-settings`) are asked once per SDK session instead of once per page load. The answer is kept in `sessionStorage`, per workspace (`jry_page_edit_site_<hash>`, the SDK-key hash of the other page-edit stores), tied to the session id - a new session asks again - and refreshed at most every `SITE_SETTINGS_SESSION_REFRESH_SECONDS` (600, new export) within the session; the server's `ttlSeconds` (60, the browser and CDN cache lifetime) no longer shortens that. With a stored answer a page no longer waits for the site settings before asking for its edits: the stored answer is used at once and refreshed in the background when it is 10 minutes old (if that refresh finds a newly live campaign, the page asks for its edits then). What this means for marketers: a page-edit campaign launched while a visitor is on the site reaches that visitor within 10 minutes (on a new session at once); pausing is not delayed, because `/v1/in-app/page-edits` checks every campaign's liveness on every page. A failed request is still "unknown": nothing is stored, the page asks `/v1/in-app/page-edits` as before, and a failed background refresh drops the stale answer. `reset()`, `resetTo()`, `wipeData()` and every consent change remove the stored answer, as the other per-workspace stores; `identify()` keeps it - it is the same for every visitor. No wire changes. Web only: iOS, Android, React Native and Unity are not applicable - page edits are a browser concept (no DOM, no page loads in an app screen).
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "1.4.0";
1
+ export declare const SDK_VERSION = "1.4.0-beta.7";
2
2
  export declare const SDK_PLATFORM_HEADER = "X-Joryio-SDK";
3
3
  export declare const SDK_VERSION_HEADER = "X-Joryio-SDK-Version";
4
4
  export declare const SDK_PLATFORM = "web";
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,UAAU,CAAC;AAUnC,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE3D;AACD,eAAO,MAAM,oBAAoB,mCAAmC,CAAC;AAarE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAY3E;AACD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,sBAAsB,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,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AA6CD,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc,CA+FhE"}
@@ -5,7 +5,7 @@ import type { InAppAuthProvider } from './inapp';
5
5
  import type { PlacementConsent } from './placements';
6
6
  import { type PageContextTracker } from './page-context';
7
7
  export declare const PAGE_EDIT_OPERATIONS: readonly ["replace_text", "replace_image", "replace_link", "hide", "insert_placement"];
8
- export declare const PAGE_EDIT_POSITIONS: readonly ["before", "after", "prepend", "append"];
8
+ export declare const PAGE_EDIT_POSITIONS: readonly ["before", "after", "prepend", "append", "replace"];
9
9
  export declare const PAGE_EDITS_CAPABILITY = "page_edits";
10
10
  export declare const PAGE_EDIT_ANTI_FLICKER_MS = 300;
11
11
  export declare const pageEditsStorageKeys: (sdkKey: string) => {
@@ -1 +1 @@
1
- {"version":3,"file":"page-edits.d.ts","sourceRoot":"","sources":["../../src/core/page-edits.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAA2C,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElG,eAAO,MAAM,oBAAoB,wFAAyF,CAAC;AAC3H,eAAO,MAAM,mBAAmB,mDAAoD,CAAC;AACrF,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD,eAAO,MAAM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AS,CAAS;gBAGhB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC,EAAE,iBAAiB,YAAA;IAYlC,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,GAAG,IAAI;IAYxD,KAAK,IAAI,IAAI;IAgBb,UAAU,CAAC,IAAI,GAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,IAAI;IAYvD,OAAO,IAAI,IAAI;IAUf,YAAY,IAAI,MAAM;IAKtB,kBAAkB,IAAI,MAAM;IAM5B,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,QAAQ;YAuBF,aAAa;IA2C3B,YAAY,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAO5C,OAAO,CAAC,UAAU;IA2BlB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,WAAW;YA8CL,KAAK;IA4DnB,OAAO,CAAC,QAAQ;IAWhB,OAAO,CAAC,QAAQ;IAwChB,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,QAAQ;IAoDhB,OAAO,CAAC,SAAS;IAqBjB,OAAO,CAAC,IAAI;IAqBZ,OAAO,CAAC,OAAO;IAYf,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,QAAQ;IA6BhB,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,WAAW;IAoCnB,OAAO,CAAC,eAAe;IA0BvB,OAAO,CAAC,cAAc;IAsEtB,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,IAAI;CAmBb"}
@@ -1,5 +1,5 @@
1
1
  export declare const SDK_HOST = "https://sdk.joryio.com";
2
2
  export declare function coreFolderOf(src: string | null | undefined): string | null;
3
- export declare function sdkHostFileUrls(file: string, override?: string, ownFolder?: string | null): string[];
3
+ export declare function sdkHostFileUrls(file: string, override?: string, ownFolder?: string | null, version?: string): string[];
4
4
  export declare function loadSdkScript(src: string, marker: string): Promise<void>;
5
5
  //# sourceMappingURL=sdk-host-files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-host-files.d.ts","sourceRoot":"","sources":["../../src/core/sdk-host-files.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AAWjD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAU1E;AAuCD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAiB,GAAG,MAAM,EAAE,CAOhH;AAGD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAaxE"}
1
+ {"version":3,"file":"sdk-host-files.d.ts","sourceRoot":"","sources":["../../src/core/sdk-host-files.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AAWjD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAU1E;AA0CD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,GAAG,IAAiB,EAAE,OAAO,GAAE,MAAoB,GAAG,MAAM,EAAE,CAS/I;AAGD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAaxE"}
@@ -0,0 +1,21 @@
1
+ import type { EditorStringKey } from './editor-strings';
2
+ export declare const quoted: (fallback: string) => string;
3
+ export declare const isPlainFallback: (v: string) => boolean;
4
+ export declare function varFallback(src: string): string | null;
5
+ export declare function setVarFallback(src: string, fallback: string): string;
6
+ export declare const variableTag: (name: string, custom: boolean, fallback?: string | null) => string;
7
+ export declare const pathTag: (path: string, fallback?: string | null) => string;
8
+ export declare const VAR_PATH: RegExp;
9
+ export interface LiquidVar {
10
+ name: string;
11
+ path: string;
12
+ src: string;
13
+ }
14
+ export type LiquidPart = string | LiquidVar;
15
+ export declare function previewParts(value: string, sample: Record<string, string>): LiquidPart[];
16
+ export declare const previewText: (value: string, sample: Record<string, string>) => string;
17
+ export declare function liquidParts(value: string): LiquidPart[] | null;
18
+ export declare function slugify(name: string): string;
19
+ export declare const newEditId: () => string;
20
+ export declare function kindKey(tagOrSelector: string, isSelector?: boolean): EditorStringKey;
21
+ //# sourceMappingURL=editor-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-model.d.ts","sourceRoot":"","sources":["../../src/editor/editor-model.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAYxD,eAAO,MAAM,MAAM,GAAI,UAAU,MAAM,KAAG,MACuF,CAAC;AAGlI,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,KAAG,OAA6D,CAAC;AAG1G,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAItD;AAGD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGpE;AAGD,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,QAAQ,OAAO,EAAE,WAAW,MAAM,GAAG,IAAI,KAAG,MAA4E,CAAC;AAGnK,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,EAAE,WAAW,MAAM,GAAG,IAAI,KAAG,MAAuF,CAAC;AAGzJ,eAAO,MAAM,QAAQ,QAAsE,CAAC;AAG5F,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAW5C,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAuBxF;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAAsG,CAAC;AAWnL,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,GAAG,IAAI,CAe9D;AAGD,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ5C;AAGD,eAAO,MAAM,SAAS,QAAO,MAAsE,CAAC;AAGpG,wBAAgB,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,eAAe,CAoBlF"}
@@ -0,0 +1,89 @@
1
+ export declare const EDITOR_STRINGS: {
2
+ title: string;
3
+ variant: string;
4
+ hintPoint: string;
5
+ hintEditing: string;
6
+ editsOne: string;
7
+ editsMany: string;
8
+ noEdits: string;
9
+ undo: string;
10
+ undoOffline: string;
11
+ saveReturn: string;
12
+ clickToEdit: string;
13
+ helpTitle: string;
14
+ helpUp: string;
15
+ helpDown: string;
16
+ helpClickKey: string;
17
+ helpClick: string;
18
+ dismiss: string;
19
+ page: string;
20
+ up: string;
21
+ down: string;
22
+ matchOne: string;
23
+ matchMany: string;
24
+ matchNone: string;
25
+ whatToDo: string;
26
+ actText: string;
27
+ actLink: string;
28
+ actImage: string;
29
+ actHide: string;
30
+ actSlot: string;
31
+ noText: string;
32
+ notLink: string;
33
+ notImage: string;
34
+ newText: string;
35
+ was: string;
36
+ insert: string;
37
+ fallbackFor: string;
38
+ fallbackHelp: string;
39
+ fallbackBad: string;
40
+ fallbackDone: string;
41
+ liquid: string;
42
+ more: string;
43
+ search: string;
44
+ noMatch: string;
45
+ rawNote: string;
46
+ newLink: string;
47
+ newImage: string;
48
+ urlBad: string;
49
+ hideNote: string;
50
+ hiddenFor: string;
51
+ slotName: string;
52
+ savedAs: string;
53
+ slotHelp: string;
54
+ slotEmpty: string;
55
+ slotCreate: string;
56
+ slotIn: string;
57
+ slotAddAnother: string;
58
+ where: string;
59
+ posBefore: string;
60
+ posAfter: string;
61
+ posReplace: string;
62
+ posPrepend: string;
63
+ posAppend: string;
64
+ slotPreview: string;
65
+ css: string;
66
+ cssHelp: string;
67
+ cssBad: string;
68
+ cancel: string;
69
+ save: string;
70
+ noSelector: string;
71
+ kHeading: string;
72
+ kText: string;
73
+ kLink: string;
74
+ kButton: string;
75
+ kImage: string;
76
+ kList: string;
77
+ kSection: string;
78
+ kMain: string;
79
+ kHeader: string;
80
+ kFooter: string;
81
+ kNav: string;
82
+ kForm: string;
83
+ kElement: string;
84
+ };
85
+ export type EditorStringKey = keyof typeof EDITOR_STRINGS;
86
+ export type EditorStrings = Record<EditorStringKey, string>;
87
+ export declare function mergeStrings(over: unknown): EditorStrings;
88
+ export declare function fill(text: string, vars?: Record<string, string | number>): string;
89
+ //# sourceMappingURL=editor-strings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-strings.d.ts","sourceRoot":"","sources":["../../src/editor/editor-strings.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;AAG5D,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,CASzD;AAGD,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAAG,MAAM,CAErF"}
@@ -0,0 +1,26 @@
1
+ type Kid = Node | string | null | undefined | false;
2
+ export declare function h<K extends keyof HTMLElementTagNameMap>(tag: K, attrs?: Record<string, string | boolean | undefined> | null, ...kids: Kid[]): HTMLElementTagNameMap[K];
3
+ declare const ICONS: {
4
+ text: string[];
5
+ link: string[];
6
+ image: string[];
7
+ hide: string[];
8
+ slot: string[];
9
+ undo: string[];
10
+ up: string[];
11
+ down: string[];
12
+ cursor: string[];
13
+ code: string[];
14
+ chevron: string[];
15
+ check: string[];
16
+ close: string[];
17
+ };
18
+ export type IconName = keyof typeof ICONS;
19
+ export declare function icon(name: IconName, size?: number): SVGSVGElement;
20
+ export declare const HOST_STYLE = "all:initial !important;position:fixed !important;top:0 !important;left:0 !important;width:0 !important;height:0 !important;z-index:2147483647 !important;display:block !important";
21
+ export declare const PREVIEW_HOST_STYLE = "all:initial !important;display:block !important;margin:10px 0 !important";
22
+ export declare const PREVIEW_VAR_HOST_STYLE = "all:unset !important;display:inline !important;unicode-bidi:isolate !important";
23
+ export declare const PREVIEW_CSS = ".v{font-family:ui-monospace,\"SF Mono\",Menlo,monospace;font-size:.8em;font-weight:600;line-height:1;padding:.12em .5em;border-radius:999px;background:rgba(0,169,154,.14);color:#0F766E;box-shadow:inset 0 0 0 1px rgba(0,169,154,.5);white-space:nowrap;unicode-bidi:isolate;font-style:normal;text-transform:none;letter-spacing:0}.s,.x{font:12.5px/1.4 Inter,system-ui,-apple-system,\"Segoe UI\",Roboto,sans-serif;border-radius:10px;padding:14px 16px;text-align:center}.s{border:2px dashed #7A6CFF;background:#F4F2FF;color:#4C3FD1}.s b{font-weight:700}.s code{font-family:ui-monospace,\"SF Mono\",Menlo,monospace}.s div{font-size:11.5px;color:#6B5FD9;margin-top:3px}.x{border:1.5px dashed #F04438;background:#FEF3F2;color:#B42318;text-align:start;padding:10px 12px;font-size:12px}";
24
+ export declare const EDITOR_CSS = "\n*{box-sizing:border-box}\n.r{font:13px/1.4 Inter,system-ui,-apple-system,\"Segoe UI\",Roboto,sans-serif;color:#242B3A;-webkit-font-smoothing:antialiased}\nbutton{font:inherit;color:inherit;cursor:pointer}\nbutton:disabled{cursor:not-allowed}\nbutton:focus-visible,input:focus-visible,textarea:focus-visible,.ce:focus{outline:2px solid #31D6C8;outline-offset:1px}\n.box{position:fixed;pointer-events:none;border:2px dashed #00A99A;background:rgba(0,169,154,.07);border-radius:4px;display:none}\n.box.sel{border-style:solid;background:rgba(0,169,154,.04)}\n.chip{position:absolute;bottom:100%;inset-inline-start:-2px;margin-bottom:2px;background:#00A99A;color:#fff;font-size:11px;font-weight:600;padding:3px 8px;border-radius:6px 6px 6px 0;white-space:nowrap;max-width:60vw;overflow:hidden;text-overflow:ellipsis}\n.help{position:fixed;top:16px;inset-inline-end:16px;width:240px;background:#fff;border:1px solid #E5EAF2;border-radius:10px;box-shadow:0 8px 24px rgba(10,18,64,.14);padding:10px 12px}\n.help h3{margin:0 0 6px;font-size:11px;font-weight:700;color:#6B7280;letter-spacing:.5px;text-transform:uppercase}\n.help .row{display:flex;align-items:center;gap:8px;font-size:12px;padding:3px 0}\n.kbd{min-width:38px;text-align:center;font-size:11px;font-weight:600;border:1px solid #E5EAF2;border-radius:5px;padding:1px 5px;background:#F8FAFC}\n.help .x{position:absolute;top:6px;inset-inline-end:6px;border:0;background:none;color:#8990A8;padding:2px;display:grid}\n.dock{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;background:#071342;color:#fff;border-radius:14px;padding:7px 7px 7px 14px;box-shadow:0 12px 32px rgba(10,18,64,.35);white-space:nowrap;max-width:calc(100vw - 24px)}\n.r.open .dock{left:calc(50% - 190px)}\n.r.open[dir=rtl] .dock{left:calc(50% + 190px)}\n.logo{width:22px;height:22px;border-radius:6px;background:#fff;color:#071342;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}\n.name{font-size:12.5px;font-weight:600;margin-inline-start:4px;overflow:hidden;text-overflow:ellipsis;max-width:200px}\n.sub{font-size:12px;color:#A8AEC1;overflow:hidden;text-overflow:ellipsis;max-width:220px}\n.sep{width:1px;height:22px;background:#2A3366;margin:0 8px;flex:none}\n.hint{font-size:12px;color:#C9CEDD;display:inline-flex;align-items:center;gap:6px}\n.hint svg{color:#31D6C8}\n.db{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;border:0;background:#1B245A;color:#fff;font-size:12.5px;font-weight:600}\n.ib{height:32px;width:32px;border-radius:8px;border:0;background:transparent;color:#fff;display:grid;place-items:center}\n.ib:disabled{color:#4A527A}\n.go{height:32px;padding:0 14px;border-radius:8px;border:0;background:#31D6C8;color:#071342;font-size:12.5px;font-weight:700}\n.pop{position:absolute;bottom:calc(100% + 10px);left:0;right:0;min-width:280px;max-height:50vh;overflow:auto;background:#fff;color:#242B3A;border-radius:12px;border:1px solid #E5EAF2;box-shadow:0 12px 32px rgba(10,18,64,.18);padding:6px;white-space:normal}\n.pop .e{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:none;border-radius:8px;font-size:12.5px;text-align:start}\n.pop .e:hover{background:#F8FAFC}\n.pop .empty{padding:12px;font-size:12.5px;color:#6B7280}\n.num{width:20px;height:20px;border-radius:99px;background:#071342;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;flex:none}\n.panel{position:fixed;top:0;bottom:0;inset-inline-end:0;width:380px;max-width:100vw;background:#fff;border-inline-start:1px solid #E5EAF2;box-shadow:-8px 0 24px rgba(10,18,64,.06);display:flex;flex-direction:column}\n.hd{padding:16px 18px 14px;border-bottom:1px solid #E5EAF2}\n.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:11.5px;color:#6B7280;margin-bottom:6px}\n.crumbs svg{color:#A8AEC1}\n.crumb{border:0;background:transparent;color:#6B7280;font-weight:500;font-size:11.5px;padding:2px 6px;border-radius:5px}\n.crumb.cur{background:#E5F9F6;color:#0F766E;font-weight:600}\n.nav{margin-inline-start:auto;display:flex;gap:2px}\n.nav button{border:1px solid #E5EAF2;background:#fff;border-radius:6px;width:24px;height:22px;display:grid;place-items:center;color:#3A4060;padding:0}\n.nav button:disabled{opacity:.4}\n.tr{display:flex;align-items:center;gap:10px}\n.title{font-size:17px;font-weight:700;color:#0A1240;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}\n.pill{margin-inline-start:auto;display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:999px;white-space:nowrap;flex:none}\n.pill.ok{background:#E5F9F6;color:#0F766E}\n.pill.many{background:#FFF7E6;color:#92400E}\n.pill.none{background:#FEF3F2;color:#B42318}\n.bd{padding:16px 18px;overflow:auto;flex:1}\n.lbl{display:block;font-size:12.5px;font-weight:600;color:#242B3A;margin-bottom:8px}\n.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}\n.tile{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:10px;text-align:start;background:#fff;border:1.5px solid #E5EAF2;color:#3A4060}\n.tile[aria-checked=true]{background:#E5F9F6;border-color:#00C8B7;color:#0F766E}\n.tile.slot[aria-checked=true]{background:#F4F2FF;border-color:#7A6CFF;color:#4C3FD1}\n.tile:disabled{opacity:.55}\n.tile[data-e]>span::after{content:'';display:inline-block;width:6px;height:6px;border-radius:9px;background:#00A99A;margin-inline-start:6px;vertical-align:middle}\n.tile b{display:block;font-size:12.5px;font-weight:600;color:#0A1240}\n.tile small{display:block;font-size:10.5px;color:#6B7280}\n.fr{display:flex;align-items:baseline;margin-bottom:8px}\n.fr .lbl{margin:0}\n.was{margin-inline-start:auto;font-size:11.5px;color:#6B7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%}\ntextarea,input,.ce{width:100%;font:inherit;font-size:13.5px;color:#0F1424;padding:10px 12px;border-radius:10px;border:1.5px solid #E5EAF2;background:#fff;outline:none}\ntextarea,.ce{line-height:1.5;resize:vertical;border-color:#00C8B7}\n.ce{min-height:72px;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}\n.vp{font-family:ui-monospace,\"SF Mono\",Menlo,monospace;font-size:.8em;font-weight:600;line-height:1;padding:.12em .5em;border-radius:999px;background:rgba(0,169,154,.14);color:#0F766E;box-shadow:inset 0 0 0 1px rgba(0,169,154,.5);white-space:nowrap;unicode-bidi:isolate;font-style:normal;text-transform:none;letter-spacing:0;cursor:pointer}\n.vp .vfb{font-weight:400;opacity:.75}\n.fbp .vc{margin-top:8px}\n.slotc{display:flex;flex-direction:column;align-items:flex-start;gap:6px}\n.slotc .lbl{margin:0}\n.lnk{border:0;background:none;padding:0;color:#4C3FD1;font-size:12.5px;font-weight:600;text-align:start}\ntextarea.mono{height:auto}\ninput{height:40px;padding:0 12px}\ninput.slotin{border-color:#7A6CFF}\n.mono{font-family:ui-monospace,\"SF Mono\",Menlo,monospace;font-size:12px;height:36px;background:#F8FAFC;border-width:1px}\n.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}\n.chips span{font-size:11.5px;color:#6B7280;margin-inline-end:2px}\n.vc{font-family:ui-monospace,\"SF Mono\",Menlo,monospace;font-size:11.5px;padding:3px 8px;border-radius:6px;border:1px solid #E5EAF2;background:#F8FAFC;color:#3A4060}\n.pk{margin-top:8px;border:1px solid #E5EAF2;border-radius:10px;padding:6px;background:#fff;box-shadow:0 8px 24px rgba(10,18,64,.1)}\n.pk input{height:34px}\n.pk [role=listbox]{max-height:220px;overflow:auto;margin-top:4px}\n.pk .g{font-size:10.5px;font-weight:700;color:#6B7280;text-transform:uppercase;letter-spacing:.4px;padding:8px 8px 3px}\n.pk .o{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:6px 8px;border-radius:7px;font-size:12.5px;cursor:pointer}\n.pk .o[aria-selected=true],.pk .o:hover{background:#E5F9F6}\n.pk code{font-family:ui-monospace,\"SF Mono\",Menlo,monospace;font-size:11px;color:#6B7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n[hidden]{display:none!important}\n.help2{font-size:11.5px;color:#6B7280;margin-top:5px}\n.err{font-size:11.5px;color:#B42318;margin-top:5px}\n.mt{margin-top:14px}\n.note{background:#FFF7E6;border:1px solid #FCD34D;border-radius:10px;padding:10px 12px;font-size:12.5px;color:#92400E;line-height:1.5}\n.key{font-family:ui-monospace,\"SF Mono\",Menlo,monospace;color:#4C3FD1;background:#F4F2FF;padding:1px 6px;border-radius:4px}\n.seg{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;background:#F3F5FA;border-radius:9px;padding:3px}\n.seg button{border:0;background:transparent;border-radius:7px;padding:6px 4px;font-size:12px;color:#3A4060}\n.seg button[aria-checked=true]{background:#fff;color:#0A1240;font-weight:600;box-shadow:0 1px 2px rgba(10,18,64,.08)}\n.css{margin-top:20px;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:#6B7280;font-size:12px}\n.ft{padding:12px 18px;border-top:1px solid #E5EAF2;display:flex;gap:10px;background:#F8FAFC}\n.cancel{height:38px;padding:0 14px;border-radius:10px;border:1px solid #E5EAF2;background:#fff;color:#242B3A;font-size:13px;font-weight:600}\n.save{flex:1;height:38px;border-radius:10px;border:0;background:#071342;color:#fff;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.save:disabled{opacity:.45}\n@media (max-width:760px){.r.open .dock{display:none}.help{display:none}}\n";
25
+ export {};
26
+ //# sourceMappingURL=editor-ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-ui.d.ts","sourceRoot":"","sources":["../../src/editor/editor-ui.ts"],"names":[],"mappings":"AAWA,KAAK,GAAG,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC;AAEpD,wBAAgB,CAAC,CAAC,CAAC,SAAS,MAAM,qBAAqB,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAQtK;AAGD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;CAcV,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC;AAE1C,wBAAgB,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,SAAK,GAAG,aAAa,CAS7D;AAGD,eAAO,MAAM,UAAU,sLAAsL,CAAC;AAG9M,eAAO,MAAM,kBAAkB,6EAA6E,CAAC;AAW7G,eAAO,MAAM,sBAAsB,mFAAmF,CAAC;AAKvH,eAAO,MAAM,WAAW,4wBAA2X,CAAC;AAEpZ,eAAO,MAAM,UAAU,mwSAkGtB,CAAC"}
@@ -0,0 +1,22 @@
1
+ export interface LiquidField {
2
+ el: HTMLElement;
3
+ set(value: string): void;
4
+ insert(tag: string): void;
5
+ closePop(): boolean;
6
+ }
7
+ export interface FallbackWords {
8
+ title: string;
9
+ help: string;
10
+ bad: string;
11
+ done: string;
12
+ }
13
+ export declare function serialize(n: Node): string;
14
+ export declare function liquidField(opts: {
15
+ label: string;
16
+ rawNote: string;
17
+ root: ShadowRoot | null;
18
+ onChange: (value: string) => void;
19
+ labelOf?: (path: string) => string | undefined;
20
+ fallback?: FallbackWords;
21
+ }): LiquidField;
22
+ //# sourceMappingURL=liquid-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liquid-field.d.ts","sourceRoot":"","sources":["../../src/editor/liquid-field.ts"],"names":[],"mappings":"AA6BA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,WAAW,CAAC;IAEhB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,IAAI,OAAO,CAAC;CACrB;AAGD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAMzC;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,GAAG,WAAW,CA0Od"}
@@ -1,17 +1,25 @@
1
1
  import type { Logger } from '../utils/logger';
2
- import { type PageEditOperation } from '../core/page-edits';
2
+ import { type PageEditOperation, type PageEditPosition, type PageEditWire } from '../core/page-edits';
3
3
  import { EDITOR_MESSAGES } from '../core/editor-gate';
4
4
  export { EDITOR_MESSAGES };
5
+ export declare const EDITOR_SESSION_MESSAGES: {
6
+ readonly CONTEXT: "joryio:editor-context";
7
+ readonly FOCUS: "joryio:editor-focus";
8
+ readonly REMOVE: "joryio:editor-remove";
9
+ readonly DONE: "joryio:editor-done";
10
+ readonly OPEN_SLOT: "joryio:editor-open-slot";
11
+ };
5
12
  export declare function cssEscape(value: string): string;
6
13
  export declare function robustSelector(el: Element): string | null;
7
14
  export declare function operationsFor(el: Element): PageEditOperation[];
8
15
  export interface EditorPick {
9
16
  type: typeof EDITOR_MESSAGES.PICK;
17
+ id: string;
10
18
  selector: string;
11
19
  operation: PageEditOperation;
12
20
  value?: string;
13
21
  placementKey?: string;
14
- position?: 'before' | 'after' | 'prepend' | 'append';
22
+ position?: PageEditPosition;
15
23
  tag: string;
16
24
  text: string;
17
25
  }
@@ -21,19 +29,68 @@ export declare class VisualEditor {
21
29
  private logger;
22
30
  private onStop;
23
31
  private listeners;
24
- private highlight;
32
+ private active;
33
+ private host;
34
+ root: ShadowRoot | null;
35
+ private wrap;
36
+ private hoverBox;
37
+ private selBox;
38
+ private dock;
25
39
  private panel;
40
+ private help;
41
+ private hovered;
26
42
  private selected;
27
- private active;
43
+ private draft;
44
+ private showCss;
45
+ private showLiquid;
46
+ private closeOverlay;
47
+ private popOpen;
48
+ private edits;
49
+ private history;
50
+ private synced;
51
+ private t;
52
+ private dir;
53
+ private ctx;
54
+ private previewUndo;
55
+ private originals;
28
56
  constructor(dashboardOrigin: string, opener: Window, logger: Logger, onStop?: () => void);
29
57
  start(): void;
30
58
  isActive(): boolean;
59
+ editList(): PageEditWire[];
31
60
  stop(): void;
32
61
  private send;
33
62
  private activate;
34
- private outline;
35
- private unselect;
36
- select(el: Element): void;
37
- pick(el: Element, selector: string, operation: PageEditOperation, value: string): boolean;
63
+ private applyContext;
64
+ private place;
65
+ private move;
66
+ private editsOn;
67
+ select(el: Element, edit?: PageEditWire): void;
68
+ private enabled;
69
+ private newDraft;
70
+ private draftOf;
71
+ private orig;
72
+ focusEdit(id: unknown): boolean;
73
+ private draftEdit;
74
+ private save;
75
+ openSlot(placementKey: string, campaignId?: string): boolean;
76
+ pick(el: Element | null, selector: string, operation: PageEditOperation, value: string, opts?: {
77
+ id?: string;
78
+ position?: PageEditPosition;
79
+ }): boolean;
80
+ private cancel;
81
+ private closePanel;
82
+ undo(): boolean;
83
+ done(): void;
84
+ private clearPreview;
85
+ private renderPreview;
86
+ private previewNode;
87
+ private applyPreview;
88
+ private renderHelp;
89
+ private labelOf;
90
+ private editTitle;
91
+ private togglePop;
92
+ private renderDock;
93
+ private renderPanel;
94
+ private renderFields;
38
95
  }
39
96
  //# sourceMappingURL=visual-editor.d.ts.map
@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const SDK_VERSION = "1.4.0-beta.7";
347
347
  interface InAppDisplayOptions {
348
348
  defaultPosition?: 'top' | 'center' | 'bottom';
349
349
  defaultAnimation?: 'fade' | 'slide' | 'none';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Joryio Web SDK v1.4.0-beta.5
2
+ * Joryio Web SDK v1.4.0-beta.7
3
3
  * (c) 2026 Joryio. All rights reserved.
4
4
  * @license Commercial - see https://github.com/joryio/joryio-web-sdk/blob/main/LICENSE
5
5
  */