@darqlabs/curator-sdk-react 0.3.0 → 0.3.1
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/cjs/attachmentEnvelope.d.ts +7 -0
- package/dist/cjs/attachmentEnvelope.d.ts.map +1 -1
- package/dist/cjs/attachmentEnvelope.js +7 -0
- package/dist/cjs/attachmentEnvelope.js.map +1 -1
- package/dist/esm/attachmentEnvelope.d.ts +7 -0
- package/dist/esm/attachmentEnvelope.d.ts.map +1 -1
- package/dist/esm/attachmentEnvelope.js +7 -0
- package/dist/esm/attachmentEnvelope.js.map +1 -1
- package/package.json +3 -3
|
@@ -20,6 +20,13 @@
|
|
|
20
20
|
*
|
|
21
21
|
* Presentation, not redaction. `chat.history()` still returns the raw content;
|
|
22
22
|
* this only governs what the widget draws.
|
|
23
|
+
*
|
|
24
|
+
* DUPLICATED ON PURPOSE. The canonical format — and the `renderAttachmentEnvelope`
|
|
25
|
+
* producer the server calls — lives in `@darq/shared-types` (`src/files.ts`),
|
|
26
|
+
* which is an internal workspace package this published SDK cannot depend on.
|
|
27
|
+
* Keep the regex below in sync with the one there; both are anchored on the
|
|
28
|
+
* full literal, so drift shows up as an unstripped envelope rather than as
|
|
29
|
+
* mangled message text.
|
|
23
30
|
*/
|
|
24
31
|
/** One attachment recovered from the envelope. */
|
|
25
32
|
export interface ParsedAttachment {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentEnvelope.d.ts","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"attachmentEnvelope.d.ts","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,kDAAkD;AAClD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,0EAA0E;IAC1E,WAAW,EAAE,gBAAgB,EAAE,CAAA;CAChC;AAmBD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAqBrE;AAED,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK1D"}
|
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
*
|
|
22
22
|
* Presentation, not redaction. `chat.history()` still returns the raw content;
|
|
23
23
|
* this only governs what the widget draws.
|
|
24
|
+
*
|
|
25
|
+
* DUPLICATED ON PURPOSE. The canonical format — and the `renderAttachmentEnvelope`
|
|
26
|
+
* producer the server calls — lives in `@darq/shared-types` (`src/files.ts`),
|
|
27
|
+
* which is an internal workspace package this published SDK cannot depend on.
|
|
28
|
+
* Keep the regex below in sync with the one there; both are anchored on the
|
|
29
|
+
* full literal, so drift shows up as an unstripped envelope rather than as
|
|
30
|
+
* mangled message text.
|
|
24
31
|
*/
|
|
25
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
33
|
exports.splitAttachmentEnvelope = splitAttachmentEnvelope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentEnvelope.js","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"attachmentEnvelope.js","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;;AAkCH,0DAqBC;AAGD,oDAKC;AA9CD;;;;;;;;;;;;;GAaG;AACH,MAAM,QAAQ,GACZ,sKAAsK,CAAA;AAExK,SAAgB,uBAAuB,CAAC,OAAe;IACrD,IAAI,CAAC,OAAO,IAAI,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the raw content;
|
|
22
22
|
* this only governs what the widget draws.
|
|
23
|
+
*
|
|
24
|
+
* DUPLICATED ON PURPOSE. The canonical format — and the `renderAttachmentEnvelope`
|
|
25
|
+
* producer the server calls — lives in `@darq/shared-types` (`src/files.ts`),
|
|
26
|
+
* which is an internal workspace package this published SDK cannot depend on.
|
|
27
|
+
* Keep the regex below in sync with the one there; both are anchored on the
|
|
28
|
+
* full literal, so drift shows up as an unstripped envelope rather than as
|
|
29
|
+
* mangled message text.
|
|
23
30
|
*/
|
|
24
31
|
/** One attachment recovered from the envelope. */
|
|
25
32
|
export interface ParsedAttachment {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentEnvelope.d.ts","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"attachmentEnvelope.d.ts","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,kDAAkD;AAClD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,0EAA0E;IAC1E,WAAW,EAAE,gBAAgB,EAAE,CAAA;CAChC;AAmBD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAqBrE;AAED,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK1D"}
|
|
@@ -20,6 +20,13 @@
|
|
|
20
20
|
*
|
|
21
21
|
* Presentation, not redaction. `chat.history()` still returns the raw content;
|
|
22
22
|
* this only governs what the widget draws.
|
|
23
|
+
*
|
|
24
|
+
* DUPLICATED ON PURPOSE. The canonical format — and the `renderAttachmentEnvelope`
|
|
25
|
+
* producer the server calls — lives in `@darq/shared-types` (`src/files.ts`),
|
|
26
|
+
* which is an internal workspace package this published SDK cannot depend on.
|
|
27
|
+
* Keep the regex below in sync with the one there; both are anchored on the
|
|
28
|
+
* full literal, so drift shows up as an unstripped envelope rather than as
|
|
29
|
+
* mangled message text.
|
|
23
30
|
*/
|
|
24
31
|
/**
|
|
25
32
|
* Matches one envelope block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentEnvelope.js","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"attachmentEnvelope.js","sourceRoot":"","sources":["../../src/attachmentEnvelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAiBH;;;;;;;;;;;;;GAaG;AACH,MAAM,QAAQ,GACZ,sKAAsK,CAAA;AAExK,MAAM,UAAU,uBAAuB,CAAC,OAAe;IACrD,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACrD,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,CAAA;IACjD,CAAC;IAED,MAAM,WAAW,GAAuB,EAAE,CAAA;IAC1C,8EAA8E;IAC9E,8EAA8E;IAC9E,4BAA4B;IAC5B,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAgB,EAAE,QAAgB,EAAE,IAAY,EAAE,EAAE;QACrG,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAC5D,OAAO,EAAE,CAAA;IACX,CAAC,CAAC,CAAA;IAEF,OAAO;QACL,4EAA4E;QAC5E,2EAA2E;QAC3E,gDAAgD;QAChD,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;QAClC,WAAW;KACZ,CAAA;AACH,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAChD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;QAAE,OAAO,EAAE,CAAA;IACnD,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAA;IACrC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;IAChE,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAA;AACnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darqlabs/curator-sdk-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Official React components for Curator — drop-in chat widget and headless hook backed by @darqlabs/curator-sdk.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^18.0.0 || ^19.0.0",
|
|
35
35
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
36
|
-
"@darqlabs/curator-sdk": "^0.3.
|
|
36
|
+
"@darqlabs/curator-sdk": "^0.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@testing-library/react": "^16.1.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-dom": "^18.3.0",
|
|
47
47
|
"ts-jest": "^29.4.9",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
|
-
"@darqlabs/curator-sdk": "^0.3.
|
|
49
|
+
"@darqlabs/curator-sdk": "^0.3.1"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"curator",
|