@pexip-engage-public/plugin 1.1.11-canary-20250520091427 → 1.1.11-canary-20250521140833
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 +1 -1
- package/dist/instance/index.d.ts.map +1 -1
- package/dist/instance/index.js +13 -10
- package/dist/instance/index.js.map +1 -1
- package/package.json +3 -3
- package/src/instance/index.ts +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/instance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGxE,YAAY,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAI/D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAC7C,eAAO,MAAM,YAAY,wBAIvB,CAAC;AAEH,wBAAgB,eAAe,CAAC,OAAO,GAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/instance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGxE,YAAY,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAI/D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAC7C,eAAO,MAAM,YAAY,wBAIvB,CAAC;AAEH,wBAAgB,eAAe,CAAC,OAAO,GAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAyB,QA8CtF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,WAAW,EAAE,YAAY,CAAC;KAC3B;CACF;AAED,MAAM,MAAM,qBAAqB,GAC7B,CAAC,MAAM,CAAC,GACR,CAAC,cAAc,CAAC,GAChB,CAAC,QAAQ,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACjD,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC7F,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,EAAE,CAAC;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,OAAO,YAAY,CAAC;CAC9B"}
|
package/dist/instance/index.js
CHANGED
|
@@ -7,25 +7,22 @@ export const PluginStatic = new Proxy(_PluginInstance, {
|
|
|
7
7
|
},
|
|
8
8
|
});
|
|
9
9
|
export function installOnGlobal(options = { shouldWarn: true }) {
|
|
10
|
-
if (!window.PexipEngage
|
|
11
|
-
if (options.shouldWarn
|
|
10
|
+
if (!window.PexipEngage) {
|
|
11
|
+
if (options.shouldWarn) {
|
|
12
12
|
console.warn("Polyfilling window.PexipEngage, this should not happen. Please make sure you're using the correct initialization script.");
|
|
13
13
|
}
|
|
14
|
+
// polyfill functionality of `embed` file
|
|
14
15
|
function PexipEngage() {
|
|
15
16
|
const pexip = window.PexipEngage;
|
|
16
17
|
pexip.q = pexip.q || [];
|
|
17
18
|
const args = arguments;
|
|
18
19
|
return new Promise((resolve, reject) => pexip.q.push([args, resolve, reject]));
|
|
19
20
|
}
|
|
20
|
-
PexipEngage.q =
|
|
21
|
-
window.PexipEngage =
|
|
21
|
+
PexipEngage.q = [];
|
|
22
|
+
window.PexipEngage = PexipEngage;
|
|
23
|
+
}
|
|
24
|
+
if (!window.PexipEngage.Plugin) {
|
|
22
25
|
window.PexipEngage.Plugin = PluginStatic;
|
|
23
|
-
dispatchEvent({
|
|
24
|
-
target: document,
|
|
25
|
-
detail: { type: PluginStatic.EVENT_INIT },
|
|
26
|
-
bubbles: true,
|
|
27
|
-
cancelable: true,
|
|
28
|
-
});
|
|
29
26
|
}
|
|
30
27
|
function processQueueItem([args, resolve, reject]) {
|
|
31
28
|
if (args[0] === "get-instance") {
|
|
@@ -39,5 +36,11 @@ export function installOnGlobal(options = { shouldWarn: true }) {
|
|
|
39
36
|
window.PexipEngage.q.forEach(processQueueItem);
|
|
40
37
|
window.PexipEngage.q.splice(0);
|
|
41
38
|
window.PexipEngage.q.push = (item) => processQueueItem(item);
|
|
39
|
+
dispatchEvent({
|
|
40
|
+
target: document,
|
|
41
|
+
detail: { type: PluginStatic.EVENT_INIT },
|
|
42
|
+
bubbles: true,
|
|
43
|
+
cancelable: true,
|
|
44
|
+
});
|
|
42
45
|
}
|
|
43
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/instance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAK/D,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,KAAK,CAAC,eAAe,EAAE;IACrD,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,aAAa;QAC9B,OAAO,IAAI,QAAQ,CAAC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6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pexip-engage-public/plugin",
|
|
3
|
-
"version": "1.1.11-canary-
|
|
3
|
+
"version": "1.1.11-canary-20250521140833",
|
|
4
4
|
"homepage": "https://github.com/skedify/frontend-mono/tree/develop/apps/booking-plugin/packages/plugin-public#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/skedify/frontend-mono/issues"
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
46
46
|
"happy-dom": "^17.4.7",
|
|
47
47
|
"vitest": "^3.1.3",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
48
|
+
"@pexip-engage/tsconfig": "0.1.1",
|
|
49
|
+
"eslint-config-pexip-engage": "1.1.16"
|
|
50
50
|
},
|
|
51
51
|
"volta": {
|
|
52
52
|
"extends": "../../../../package.json"
|
package/src/instance/index.ts
CHANGED
|
@@ -14,13 +14,13 @@ export const PluginStatic = new Proxy(_PluginInstance, {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export function installOnGlobal(options: { shouldWarn: boolean } = { shouldWarn: true }) {
|
|
17
|
-
if (!window.PexipEngage
|
|
18
|
-
if (options.shouldWarn
|
|
17
|
+
if (!window.PexipEngage) {
|
|
18
|
+
if (options.shouldWarn) {
|
|
19
19
|
console.warn(
|
|
20
20
|
"Polyfilling window.PexipEngage, this should not happen. Please make sure you're using the correct initialization script.",
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
// polyfill functionality of `embed` file
|
|
24
24
|
function PexipEngage() {
|
|
25
25
|
const pexip = window.PexipEngage;
|
|
26
26
|
pexip.q = pexip.q || [];
|
|
@@ -30,16 +30,12 @@ export function installOnGlobal(options: { shouldWarn: boolean } = { shouldWarn:
|
|
|
30
30
|
pexip.q.push([args, resolve, reject]),
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
PexipEngage
|
|
34
|
-
window.PexipEngage =
|
|
35
|
-
|
|
33
|
+
(PexipEngage as any as IPexipEngage).q = [];
|
|
34
|
+
window.PexipEngage = PexipEngage as any as IPexipEngage;
|
|
35
|
+
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
detail: { type: PluginStatic.EVENT_INIT },
|
|
40
|
-
bubbles: true,
|
|
41
|
-
cancelable: true,
|
|
42
|
-
});
|
|
37
|
+
if (!window.PexipEngage.Plugin) {
|
|
38
|
+
window.PexipEngage.Plugin = PluginStatic;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
type QueueItem = (typeof window.PexipEngage.q)[number];
|
|
@@ -56,6 +52,13 @@ export function installOnGlobal(options: { shouldWarn: boolean } = { shouldWarn:
|
|
|
56
52
|
window.PexipEngage.q.forEach(processQueueItem);
|
|
57
53
|
window.PexipEngage.q.splice(0);
|
|
58
54
|
window.PexipEngage.q.push = (item) => processQueueItem(item);
|
|
55
|
+
|
|
56
|
+
dispatchEvent({
|
|
57
|
+
target: document,
|
|
58
|
+
detail: { type: PluginStatic.EVENT_INIT },
|
|
59
|
+
bubbles: true,
|
|
60
|
+
cancelable: true,
|
|
61
|
+
});
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
declare global {
|