obi-sdk 0.7.1 → 0.10.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.
@@ -9,6 +9,7 @@ export declare class ObiWidget extends LitElement {
9
9
  private apiKey;
10
10
  private isActive;
11
11
  private linkOnlyAccess;
12
+ private urlBlacklist;
12
13
  private position;
13
14
  private user;
14
15
  private state;
@@ -1 +1,2 @@
1
1
  export * from "./storage";
2
+ export * from "./url-matcher";
@@ -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.7.1",
3
+ "version": "0.10.0",
4
4
  "description": "JavaScript SDK for Obi",
5
5
  "type": "module",
6
6
  "main": "dist/obi-sdk.umd.js",
@@ -42,8 +42,8 @@
42
42
  "lit": "^3.0.0",
43
43
  "ts-pattern": "^5.7.0",
44
44
  "zod": "^3.22.0",
45
- "@obi/obi-session": "0.3.3",
46
- "@obi/obi-client": "0.3.0",
45
+ "@obi/obi-client": "0.6.0",
46
+ "@obi/obi-session": "0.3.6",
47
47
  "@obi/utils": "0.2.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -1,6 +0,0 @@
1
- import { O } from "./obi-widget-7e9394b1.js";
2
- import "./types-e0297e7b.js";
3
- export {
4
- O as ObiWidget
5
- };
6
- //# sourceMappingURL=index-6deeede6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-6deeede6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}