chemicaljs 3.0.1 → 3.0.3
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/Chemical.svelte +2 -15
- package/Frame.svelte +3 -3
- package/package.json +1 -1
package/Chemical.svelte
CHANGED
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
"/wisp/",
|
|
12
12
|
),
|
|
13
13
|
ready = $bindable(false),
|
|
14
|
-
onready,
|
|
14
|
+
onready= undefined,
|
|
15
15
|
} = $props();
|
|
16
16
|
|
|
17
17
|
let defaultConfig;
|
|
18
|
-
let rewriteUrl;
|
|
19
18
|
let Controller;
|
|
20
19
|
let HttpCachePlugin;
|
|
21
20
|
let UrlWatcherPlugin;
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
|
|
75
74
|
async function initialize() {
|
|
76
75
|
[
|
|
77
|
-
{ defaultConfig
|
|
76
|
+
{ defaultConfig },
|
|
78
77
|
{ Controller },
|
|
79
78
|
{
|
|
80
79
|
HttpCachePlugin,
|
|
@@ -115,17 +114,6 @@
|
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
export function url(url, plugins = []) {
|
|
119
|
-
if (ready) {
|
|
120
|
-
let newFrame = controller.createFrame(null, plugins);
|
|
121
|
-
|
|
122
|
-
return rewriteUrl(url, newFrame.context, {
|
|
123
|
-
origin: new URL(location.href),
|
|
124
|
-
base: new URL(location.href),
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
117
|
export function createFrame(...props) {
|
|
130
118
|
return controller.createFrame(...props);
|
|
131
119
|
}
|
|
@@ -225,7 +213,6 @@
|
|
|
225
213
|
const searchEngines = {
|
|
226
214
|
google: "https://www.google.com/search?q=%s",
|
|
227
215
|
duckduckgo: "https://duckduckgo.com/?q=%s",
|
|
228
|
-
ddg: "https://duckduckgo.com/?q=%s",
|
|
229
216
|
bing: "https://www.bing.com/search?q=%s",
|
|
230
217
|
brave: "https://search.brave.com/search?q=%s",
|
|
231
218
|
yahoo: "https://search.yahoo.com/search?p=%s",
|
package/Frame.svelte
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
chemical = $bindable(),
|
|
7
7
|
class: className,
|
|
8
8
|
src = $bindable(),
|
|
9
|
-
onchange,
|
|
9
|
+
onchange= undefined,
|
|
10
10
|
cache = false,
|
|
11
|
-
linkhandler,
|
|
12
|
-
catchlinks,
|
|
11
|
+
linkhandler= undefined,
|
|
12
|
+
catchlinks= undefined,
|
|
13
13
|
adblock = false,
|
|
14
14
|
...restProps
|
|
15
15
|
} = $props();
|