@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/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