open-chat-studio-widget 0.4.4 → 0.4.5

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.
@@ -123,6 +123,7 @@ export declare class OcsChat {
123
123
  private parseStarterQuestions;
124
124
  private cleanup;
125
125
  private getApiBaseUrl;
126
+ private getApiHeaders;
126
127
  private startSession;
127
128
  private sendMessage;
128
129
  private handleStarterQuestionClick;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Get CSRF token from cookies if the current domain matches the API base URL
3
+ */
4
+ export declare function getCSRFToken(apiBaseUrl: string): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-chat-studio-widget",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Chat component for Open Chat Studio",
5
5
  "main": "dist/index.cjs.js",
6
6
  "exports": "./dist/esm/open-chat-studio-widget.js",
@@ -31,6 +31,7 @@
31
31
  "dependencies": {
32
32
  "@stencil/core": "^4.26.0",
33
33
  "dompurify": "^3.0.5",
34
+ "js-cookie": "^3.0.5",
34
35
  "marked": "^4.3.0",
35
36
  "npmrc": "^1.1.1"
36
37
  },
@@ -42,9 +43,9 @@
42
43
  "autoprefixer": "^10.4.20",
43
44
  "jest": "^29.7.0",
44
45
  "jest-cli": "^29.7.0",
46
+ "npm-run-all": "^4.1.5",
45
47
  "postcss-import": "^16.1.0",
46
48
  "puppeteer": "^24.2.0",
47
- "npm-run-all": "^4.1.5",
48
49
  "tailwindcss": "^3.4.17",
49
50
  "typescript": "^5.7.3"
50
51
  },