@monetize.software/sdk-extension 0.1.0-alpha.0
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/README.md +113 -0
- package/dist/chunks/chrome-port-BXHR4SOG.js +2014 -0
- package/dist/chunks/chrome-port-BXHR4SOG.js.map +1 -0
- package/dist/chunks/chrome-port-EtYqHf3p.js +2 -0
- package/dist/chunks/chrome-port-EtYqHf3p.js.map +1 -0
- package/dist/chunks/port-name-BPfQKtdb.js +5 -0
- package/dist/chunks/port-name-BPfQKtdb.js.map +1 -0
- package/dist/chunks/port-name-qwB109u9.js +2 -0
- package/dist/chunks/port-name-qwB109u9.js.map +1 -0
- package/dist/content/PaywallUI.d.ts +28 -0
- package/dist/content/PaywallUI.d.ts.map +1 -0
- package/dist/content/RemoteAuthClient.d.ts +91 -0
- package/dist/content/RemoteAuthClient.d.ts.map +1 -0
- package/dist/content/RemoteBillingClient.d.ts +126 -0
- package/dist/content/RemoteBillingClient.d.ts.map +1 -0
- package/dist/content/RemoteEventTracker.d.ts +9 -0
- package/dist/content/RemoteEventTracker.d.ts.map +1 -0
- package/dist/content/RemoteTrialStore.d.ts +13 -0
- package/dist/content/RemoteTrialStore.d.ts.map +1 -0
- package/dist/content/index.d.ts +11 -0
- package/dist/content/index.d.ts.map +1 -0
- package/dist/content/transport.d.ts +6 -0
- package/dist/content/transport.d.ts.map +1 -0
- package/dist/content.cjs +26 -0
- package/dist/content.cjs.map +1 -0
- package/dist/content.js +2723 -0
- package/dist/content.js.map +1 -0
- package/dist/offscreen/index.d.ts +21 -0
- package/dist/offscreen/index.d.ts.map +1 -0
- package/dist/offscreen/server.d.ts +26 -0
- package/dist/offscreen/server.d.ts.map +1 -0
- package/dist/offscreen.cjs +2 -0
- package/dist/offscreen.cjs.map +1 -0
- package/dist/offscreen.js +239 -0
- package/dist/offscreen.js.map +1 -0
- package/dist/shared/channel.d.ts +14 -0
- package/dist/shared/channel.d.ts.map +1 -0
- package/dist/shared/chrome-port.d.ts +8 -0
- package/dist/shared/chrome-port.d.ts.map +1 -0
- package/dist/shared/errors.d.ts +4 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/messages.d.ts +195 -0
- package/dist/shared/messages.d.ts.map +1 -0
- package/dist/shared/port-name.d.ts +2 -0
- package/dist/shared/port-name.d.ts.map +1 -0
- package/dist/shared/protocol.d.ts +59 -0
- package/dist/shared/protocol.d.ts.map +1 -0
- package/dist/shared/transport-client.d.ts +31 -0
- package/dist/shared/transport-client.d.ts.map +1 -0
- package/dist/shared/transport-server.d.ts +32 -0
- package/dist/shared/transport-server.d.ts.map +1 -0
- package/dist/sw/ensure-offscreen.d.ts +8 -0
- package/dist/sw/ensure-offscreen.d.ts.map +1 -0
- package/dist/sw/forwarder.d.ts +3 -0
- package/dist/sw/forwarder.d.ts.map +1 -0
- package/dist/sw/index.d.ts +4 -0
- package/dist/sw/index.d.ts.map +1 -0
- package/dist/sw/types.d.ts +19 -0
- package/dist/sw/types.d.ts.map +1 -0
- package/dist/sw.cjs +2 -0
- package/dist/sw.cjs.map +1 -0
- package/dist/sw.js +94 -0
- package/dist/sw.js.map +1 -0
- package/package.json +63 -0
- package/src/offscreen/offscreen.html +24 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Monetize SDK — Offscreen</title>
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
<!--
|
|
9
|
+
Hidden offscreen document. Hosts the singleton BillingClient/AuthClient/
|
|
10
|
+
EventTracker for the extension. Created by service worker via:
|
|
11
|
+
|
|
12
|
+
chrome.offscreen.createDocument({
|
|
13
|
+
url: chrome.runtime.getURL('offscreen.html'),
|
|
14
|
+
reasons: ['LOCAL_STORAGE'],
|
|
15
|
+
justification: 'Persist auth session and bootstrap cache across all extension surfaces via localStorage, which is unavailable in service workers.'
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
The offscreen document URL must be a static file bundled with the extension —
|
|
19
|
+
copy this file (or generate from this template) into your extension package
|
|
20
|
+
and reference its bundled `offscreen.js` to call startOffscreenServer().
|
|
21
|
+
-->
|
|
22
|
+
<script type="module" src="./offscreen.js"></script>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|