@runtypelabs/persona 4.11.1 → 4.13.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/codegen.cjs +13 -13
- package/dist/codegen.d.cts +9 -0
- package/dist/codegen.d.ts +9 -0
- package/dist/codegen.js +13 -13
- package/dist/index.cjs +45 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.global.js +34 -34
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +46 -46
- package/dist/index.js.map +1 -1
- package/dist/install.global.js +1 -1
- package/dist/install.global.js.map +1 -1
- package/dist/theme-editor-preview.cjs +44 -44
- package/dist/theme-editor-preview.js +33 -33
- package/package.json +1 -1
- package/src/codegen.test.ts +43 -0
- package/src/install.test.ts +83 -0
- package/src/install.ts +48 -2
- package/src/ui.scroll-additive.test.ts +365 -0
- package/src/ui.scroll.test.ts +19 -6
- package/src/ui.ts +115 -28
- package/src/utils/auto-follow.test.ts +38 -0
- package/src/utils/auto-follow.ts +35 -0
- package/src/utils/code-generators.ts +30 -4
package/dist/index.d.cts
CHANGED
|
@@ -10272,6 +10272,15 @@ type CodeGeneratorOptions = {
|
|
|
10272
10272
|
* @default "body"
|
|
10273
10273
|
*/
|
|
10274
10274
|
target?: string;
|
|
10275
|
+
/**
|
|
10276
|
+
* Base URL of the directory holding the widget assets (install.global.js,
|
|
10277
|
+
* index.global.js, widget.css) for the script formats (script-installer,
|
|
10278
|
+
* script-manual, script-advanced). Pass a first-party base such as
|
|
10279
|
+
* "https://cdn.runtype.com/persona/latest" when the embedding page's CSP
|
|
10280
|
+
* does not allow third-party CDNs. A trailing slash is tolerated.
|
|
10281
|
+
* @default the jsDelivr dist directory pinned to this package version
|
|
10282
|
+
*/
|
|
10283
|
+
cdnBase?: string;
|
|
10275
10284
|
};
|
|
10276
10285
|
declare function generateCodeSnippet(config: any, format?: CodeFormat, options?: CodeGeneratorOptions): string;
|
|
10277
10286
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10272,6 +10272,15 @@ type CodeGeneratorOptions = {
|
|
|
10272
10272
|
* @default "body"
|
|
10273
10273
|
*/
|
|
10274
10274
|
target?: string;
|
|
10275
|
+
/**
|
|
10276
|
+
* Base URL of the directory holding the widget assets (install.global.js,
|
|
10277
|
+
* index.global.js, widget.css) for the script formats (script-installer,
|
|
10278
|
+
* script-manual, script-advanced). Pass a first-party base such as
|
|
10279
|
+
* "https://cdn.runtype.com/persona/latest" when the embedding page's CSP
|
|
10280
|
+
* does not allow third-party CDNs. A trailing slash is tolerated.
|
|
10281
|
+
* @default the jsDelivr dist directory pinned to this package version
|
|
10282
|
+
*/
|
|
10283
|
+
cdnBase?: string;
|
|
10275
10284
|
};
|
|
10276
10285
|
declare function generateCodeSnippet(config: any, format?: CodeFormat, options?: CodeGeneratorOptions): string;
|
|
10277
10286
|
|