@contentcredits/sdk 2.0.4 → 2.2.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/dist/content-credits.cjs.js +195 -101
- package/dist/content-credits.cjs.js.map +1 -1
- package/dist/content-credits.d.ts +60 -0
- package/dist/content-credits.esm.js +195 -101
- package/dist/content-credits.esm.js.map +1 -1
- package/dist/content-credits.umd.min.js +1 -1
- package/dist/content-credits.umd.min.js.map +1 -1
- package/dist/index.d.ts +46 -0
- package/dist/paywall/index.d.ts +5 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/ui/shadow.d.ts +8 -0
- package/package.json +1 -1
package/dist/ui/shadow.d.ts
CHANGED
|
@@ -7,6 +7,14 @@ export declare function createShadowHost(id: string): {
|
|
|
7
7
|
host: HTMLElement;
|
|
8
8
|
root: ShadowRoot;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Creates a shadow host inserted immediately after `anchorEl` in the DOM.
|
|
12
|
+
* Used for the inline paywall panel so it flows naturally below the content.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createInlineShadowHost(id: string, anchorEl: HTMLElement): {
|
|
15
|
+
host: HTMLElement;
|
|
16
|
+
root: ShadowRoot;
|
|
17
|
+
};
|
|
10
18
|
export declare function removeShadowHost(id: string): void;
|
|
11
19
|
/** Inject a <style> tag into a shadow root */
|
|
12
20
|
export declare function injectStyles(root: ShadowRoot, css: string): void;
|