@pagefind/default-ui
Advanced tools
Comparing version 1.0.4-rc0 to 1.0.4-rc1
{ | ||
"name": "@pagefind/default-ui", | ||
"version": "1.0.4-rc0", | ||
"version": "1.0.4-rc1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "npm_dist/cjs/ui-core.cjs", |
@@ -18,2 +18,3 @@ import PagefindSvelte from "./svelte/ui.svelte"; | ||
let bundlePath = opts.bundlePath ?? scriptBundlePath; | ||
let pageSize = opts.pageSize ?? 5; | ||
let resetStyles = opts.resetStyles ?? true; | ||
@@ -29,2 +30,7 @@ let showImages = opts.showImages ?? true; | ||
let translations = opts.translations ?? []; | ||
// setting the param to null should disable highlighting, hence this more complicated check | ||
let highlightQueryParamName = "pagefind-highlight"; | ||
if (opts.highlightQueryParamName !== undefined) { | ||
highlightQueryParamName = opts.highlightQueryParamName; | ||
} | ||
@@ -34,2 +40,3 @@ // Remove the UI-specific config before passing it along to the Pagefind backend | ||
delete opts["bundlePath"]; | ||
delete opts["pageSize"]; | ||
delete opts["resetStyles"]; | ||
@@ -55,2 +62,3 @@ delete opts["showImages"]; | ||
base_path: bundlePath, | ||
page_size: pageSize, | ||
reset_styles: resetStyles, | ||
@@ -66,2 +74,3 @@ show_images: showImages, | ||
translations, | ||
highlight_query_param_name: highlightQueryParamName, | ||
pagefind_options: opts, | ||
@@ -78,2 +87,6 @@ }, | ||
} | ||
destroy() { | ||
this._pfs.$destroy(); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
378932
11283