obi-sdk 0.7.0 → 0.9.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/loader.d.ts +1 -0
- package/dist/modular/chunks/index-e3a03e58.js +6 -0
- package/dist/modular/chunks/index-e3a03e58.js.map +1 -0
- package/dist/modular/chunks/{obi-widget-6550377d.js → obi-widget-d8d64ad7.js} +52 -11
- package/dist/modular/chunks/obi-widget-d8d64ad7.js.map +1 -0
- package/dist/modular/index.js +1 -1
- package/dist/modular/ui.js +10 -10
- package/dist/obi-sdk.standalone.iife.js +31 -31
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/react.es.js +4043 -4010
- package/dist/react.es.js.map +1 -1
- package/dist/react.umd.js +47 -47
- package/dist/react.umd.js.map +1 -1
- package/dist/ui/components/obi-widget/obi-widget.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/url-matcher.d.ts +16 -0
- package/package.json +4 -4
- package/dist/modular/chunks/index-f31a59cc.js +0 -6
- package/dist/modular/chunks/index-f31a59cc.js.map +0 -1
- package/dist/modular/chunks/obi-widget-6550377d.js.map +0 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility for matching URLs against glob patterns
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Check if a URL matches any of the provided glob patterns
|
|
6
|
+
* @param url The URL to check
|
|
7
|
+
* @param patterns Array of glob patterns to match against
|
|
8
|
+
* @returns true if the URL matches any pattern, false otherwise
|
|
9
|
+
*/
|
|
10
|
+
export declare function matchesUrlPattern(url: string, patterns: string[]): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Check if the current page URL is blacklisted
|
|
13
|
+
* @param blacklist Array of URL glob patterns
|
|
14
|
+
* @returns true if current URL is blacklisted, false otherwise
|
|
15
|
+
*/
|
|
16
|
+
export declare function isCurrentUrlBlacklisted(blacklist?: string[]): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "obi-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "JavaScript SDK for Obi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/obi-sdk.umd.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lit": "^3.0.0",
|
|
43
43
|
"ts-pattern": "^5.7.0",
|
|
44
44
|
"zod": "^3.22.0",
|
|
45
|
-
"@obi/obi-client": "0.
|
|
46
|
-
"@obi/
|
|
47
|
-
"@obi/
|
|
45
|
+
"@obi/obi-client": "0.5.0",
|
|
46
|
+
"@obi/utils": "0.2.0",
|
|
47
|
+
"@obi/obi-session": "0.3.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-f31a59cc.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|