@appcues/web-sdk 7.24.5 → 7.25.1
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 +18 -0
- package/build/bind-interface.d.ts.map +1 -1
- package/build/{bootstrap.npm.DhCL3ysC.js → bootstrap.npm.D9rMPDG3.js} +901 -822
- package/build/index.npm.js +1 -1
- package/build/main.d.ts.map +1 -1
- package/build/sagas/experiences-sagas.d.ts.map +1 -1
- package/build/snippets/context.d.ts +13 -0
- package/build/snippets/context.d.ts.map +1 -0
- package/build/snippets/error.d.ts +11 -0
- package/build/snippets/error.d.ts.map +1 -0
- package/build/snippets/load-snippets.d.ts +21 -0
- package/build/snippets/load-snippets.d.ts.map +1 -0
- package/build/snippets/register.d.ts +16 -0
- package/build/snippets/register.d.ts.map +1 -0
- package/package.json +1 -1
- /package/build/{checklist.fba46edf57684df073fc8ac7224084af20b180eb.css → checklist.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{container.fba46edf57684df073fc8ac7224084af20b180eb.css → container.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{debugger.fba46edf57684df073fc8ac7224084af20b180eb.css → debugger.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{modal-step-legacy-render.fba46edf57684df073fc8ac7224084af20b180eb.css → modal-step-legacy-render.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{modal.fba46edf57684df073fc8ac7224084af20b180eb.css → modal.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{satisfaction-survey.fba46edf57684df073fc8ac7224084af20b180eb.css → satisfaction-survey.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{test-mode.fba46edf57684df073fc8ac7224084af20b180eb.css → test-mode.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
- /package/build/{tooltip.fba46edf57684df073fc8ac7224084af20b180eb.css → tooltip.118aac89845df1b399011c9ff0b32b9685523101.css} +0 -0
package/build/index.npm.js
CHANGED
package/build/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/scripts/main.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/scripts/main.js"],"names":[],"mappings":";AA6JA,uCAA8C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experiences-sagas.d.ts","sourceRoot":"","sources":["../../src/scripts/sagas/experiences-sagas.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"experiences-sagas.d.ts","sourceRoot":"","sources":["../../src/scripts/sagas/experiences-sagas.js"],"names":[],"mappings":"AAyDA,iMA4BC;AA6HD,qJAWC;AAwFD,oGAoCC;AA5ID,mDAGG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets up `Appcues.__createSnippetContext` on the public API object.
|
|
3
|
+
*
|
|
4
|
+
* Bridges open-builder's internal hook/action context to the simplified
|
|
5
|
+
* SnippetContext API that snippet authors interact with. Closes over the
|
|
6
|
+
* Redux store so that `context.user` and `context.group` always reflect
|
|
7
|
+
* the latest WebSocket-delivered snippet context at execution time.
|
|
8
|
+
*
|
|
9
|
+
* @param {object} appcues - The Appcues public API object (window.Appcues).
|
|
10
|
+
* @param {Function} getState - The Redux store's getState function.
|
|
11
|
+
*/
|
|
12
|
+
export function setupSnippetContext(appcues: object, getState: Function): void;
|
|
13
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/scripts/snippets/context.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,6CAHW,MAAM,4BAuEhB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets up `Appcues.__reportSnippetError` on the public API object.
|
|
3
|
+
*
|
|
4
|
+
* Called from generated snippet trait code (and from context.reportError) when
|
|
5
|
+
* a hook or action throws. Reports to open-builder's error system and emits an
|
|
6
|
+
* appcues:v2:step_error event for analytics tracking.
|
|
7
|
+
*
|
|
8
|
+
* @param {object} appcues - The Appcues public API object (window.Appcues).
|
|
9
|
+
*/
|
|
10
|
+
export function setupSnippetErrorReporting(appcues: object): void;
|
|
11
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/scripts/snippets/error.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,oDAFW,MAAM,QAyBhB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Loads the account's compiled snippet bundle with SRI verification.
|
|
3
|
+
*
|
|
4
|
+
* Creates a <script integrity="sha384-..." crossorigin="anonymous"> element.
|
|
5
|
+
* The browser natively refuses to execute the script if its content does not
|
|
6
|
+
* match the integrity hash — protecting against CDN/cache tampering.
|
|
7
|
+
*
|
|
8
|
+
* This is a no-op if no published bundle exists (i.e.
|
|
9
|
+
* `snippetsConfig.integrity` is absent). Experience rendering is not blocked
|
|
10
|
+
* by snippet load failures.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} accountId - The Appcues account ID.
|
|
13
|
+
* @param {object} snippetsConfig - The `snippets` field from account settings.
|
|
14
|
+
* @param {number} snippetsConfig.version
|
|
15
|
+
* @param {string} snippetsConfig.integrity - SRI hash (e.g. "sha384-...")
|
|
16
|
+
*/
|
|
17
|
+
export function loadSnippets(accountId: string, snippetsConfig: {
|
|
18
|
+
version: number;
|
|
19
|
+
integrity: string;
|
|
20
|
+
}): void;
|
|
21
|
+
//# sourceMappingURL=load-snippets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-snippets.d.ts","sourceRoot":"","sources":["../../src/scripts/snippets/load-snippets.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wCALW,MAAM,kBAEd;IAAgC,OAAO,EAA/B,MAAM;IACkB,SAAS,EAAjC,MAAM;CAChB,QA8BA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attaches `registerTrait` and `registerAction` to the Appcues public API
|
|
3
|
+
* object. Should be called from bindInterface before snippets load.
|
|
4
|
+
*
|
|
5
|
+
* @param {object} appcues - The Appcues public API object (window.Appcues).
|
|
6
|
+
*/
|
|
7
|
+
export function setupRegistrationBridge(appcues: object): void;
|
|
8
|
+
/**
|
|
9
|
+
* Forwards all pending trait and action registrations to a newly-created
|
|
10
|
+
* open-builder core() instance. Should be called immediately after
|
|
11
|
+
* createAppcues() returns in the experiences saga.
|
|
12
|
+
*
|
|
13
|
+
* @param {object} coreInstance - The open-builder core() instance.
|
|
14
|
+
*/
|
|
15
|
+
export function flushRegistrations(coreInstance: object): void;
|
|
16
|
+
//# sourceMappingURL=register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/scripts/snippets/register.js"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,iDAFW,MAAM,QAUhB;AAED;;;;;;GAMG;AACH,iDAFW,MAAM,QAShB"}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|