@whoa-chat/react 0.0.0-stage → 0.3.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/locales/bg.json +790 -0
- package/dist/locales/da.json +790 -0
- package/dist/locales/de.json +790 -0
- package/dist/locales/en.json +790 -0
- package/dist/locales/es.json +790 -0
- package/dist/locales/fr.json +821 -0
- package/dist/locales/index.d.ts +11975 -0
- package/dist/locales/index.js +1 -0
- package/dist/locales/it.json +790 -0
- package/dist/locales/ja.json +790 -0
- package/dist/locales/loaders.d.ts +3 -0
- package/dist/locales/loaders.js +1 -0
- package/dist/locales/nl.json +790 -0
- package/dist/locales/pl.json +852 -0
- package/dist/locales/pt-BR.json +790 -0
- package/dist/locales/pt-PT.json +790 -0
- package/dist/locales/sv.json +790 -0
- package/dist/locales/zh-CN.json +790 -0
- package/dist/locales/zh-TW.json +790 -0
- package/dist/src/ActionGroup.d.ts +12 -0
- package/dist/src/ActionGroup.js +1 -0
- package/dist/src/AiChoices.d.ts +10 -0
- package/dist/src/AiChoices.js +1 -0
- package/dist/src/AssistantNote.d.ts +8 -0
- package/dist/src/AssistantNote.js +1 -0
- package/dist/src/Attachments.d.ts +56 -0
- package/dist/src/Attachments.js +1 -0
- package/dist/src/AvailabilityCard.d.ts +19 -0
- package/dist/src/AvailabilityCard.js +1 -0
- package/dist/src/CardOutcome.d.ts +6 -0
- package/dist/src/CardOutcome.js +1 -0
- package/dist/src/ChatThread.d.ts +149 -0
- package/dist/src/ChatThread.js +8 -0
- package/dist/src/ComposerTools.d.ts +29 -0
- package/dist/src/ComposerTools.js +1 -0
- package/dist/src/CustomCard.d.ts +5 -0
- package/dist/src/CustomCard.js +1 -0
- package/dist/src/DraftCard.d.ts +10 -0
- package/dist/src/DraftCard.js +1 -0
- package/dist/src/EmailTranscript.d.ts +6 -0
- package/dist/src/EmailTranscript.js +1 -0
- package/dist/src/EventRow.d.ts +5 -0
- package/dist/src/EventRow.js +2 -0
- package/dist/src/FormattedText.d.ts +45 -0
- package/dist/src/FormattedText.js +5 -0
- package/dist/src/HelpOfferCard.d.ts +10 -0
- package/dist/src/HelpOfferCard.js +1 -0
- package/dist/src/InboxTools.d.ts +53 -0
- package/dist/src/InboxTools.js +1 -0
- package/dist/src/MerchantPanel.d.ts +10 -0
- package/dist/src/MerchantPanel.js +1 -0
- package/dist/src/MessageActions.d.ts +15 -0
- package/dist/src/MessageActions.js +1 -0
- package/dist/src/MessagePreview.d.ts +20 -0
- package/dist/src/MessagePreview.js +1 -0
- package/dist/src/PasswordCard.d.ts +6 -0
- package/dist/src/PasswordCard.js +1 -0
- package/dist/src/RequestCards.d.ts +8 -0
- package/dist/src/RequestCards.js +1 -0
- package/dist/src/ReviewCard.d.ts +15 -0
- package/dist/src/ReviewCard.js +1 -0
- package/dist/src/RichCards.d.ts +37 -0
- package/dist/src/RichCards.js +1 -0
- package/dist/src/RichInput.d.ts +41 -0
- package/dist/src/RichInput.js +12 -0
- package/dist/src/StoreAvatar.d.ts +35 -0
- package/dist/src/StoreAvatar.js +1 -0
- package/dist/src/WorldMap.d.ts +10 -0
- package/dist/src/WorldMap.js +1 -0
- package/dist/src/agents.d.ts +9 -0
- package/dist/src/agents.js +1 -0
- package/dist/src/appearance.d.ts +17 -0
- package/dist/src/appearance.js +1 -0
- package/dist/src/chatApi.d.ts +182 -0
- package/dist/src/chatApi.js +1 -0
- package/dist/src/chatEnv.d.ts +16 -0
- package/dist/src/chatEnv.js +1 -0
- package/dist/src/chime.d.ts +7 -0
- package/dist/src/chime.js +1 -0
- package/dist/src/clock.d.ts +5 -0
- package/dist/src/clock.js +1 -0
- package/dist/src/copyToClipboard.d.ts +10 -0
- package/dist/src/copyToClipboard.js +1 -0
- package/dist/src/emojis.d.ts +6 -0
- package/dist/src/emojis.js +1 -0
- package/dist/src/flags.d.ts +5 -0
- package/dist/src/flags.js +1 -0
- package/dist/src/highlight.d.ts +8 -0
- package/dist/src/highlight.js +1 -0
- package/dist/src/host.d.ts +40 -0
- package/dist/src/host.js +1 -0
- package/dist/src/i18n.d.ts +2 -0
- package/dist/src/i18n.js +1 -0
- package/dist/src/refLinks.d.ts +7 -0
- package/dist/src/refLinks.js +1 -0
- package/dist/src/supportChat.css +2522 -0
- package/dist/src/useLive.d.ts +51 -0
- package/dist/src/useLive.js +1 -0
- package/dist/src/worldDots.d.ts +7 -0
- package/dist/src/worldDots.js +1 -0
- package/package.json +212 -4
- package/README.md +0 -3
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type LiveEvent = {
|
|
2
|
+
type: "update";
|
|
3
|
+
shop?: string;
|
|
4
|
+
} | {
|
|
5
|
+
type: "typing";
|
|
6
|
+
shop?: string;
|
|
7
|
+
who: "merchant" | "agent";
|
|
8
|
+
name?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
stop?: boolean;
|
|
11
|
+
note?: boolean;
|
|
12
|
+
at: string;
|
|
13
|
+
} | {
|
|
14
|
+
type: "viewing";
|
|
15
|
+
name: string;
|
|
16
|
+
shop: string | null;
|
|
17
|
+
at: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const useLive: (opts: {
|
|
20
|
+
url: string | null | undefined;
|
|
21
|
+
role: "merchant" | "team";
|
|
22
|
+
token: () => Promise<string | null>;
|
|
23
|
+
onEvent: (e: LiveEvent) => void;
|
|
24
|
+
}) => {
|
|
25
|
+
connected: boolean;
|
|
26
|
+
typing: (payload: {
|
|
27
|
+
shop?: string;
|
|
28
|
+
text: string;
|
|
29
|
+
note?: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
viewing: (shop: string | null) => void;
|
|
32
|
+
};
|
|
33
|
+
/** Which conversation each teammate has open; forgotten a minute after they last said so. */
|
|
34
|
+
export declare const useViewers: () => {
|
|
35
|
+
apply: (e: LiveEvent) => void;
|
|
36
|
+
at: (shop: string) => string[];
|
|
37
|
+
};
|
|
38
|
+
/** Who is typing where, forgotten a few seconds after the last sign of it. */
|
|
39
|
+
export declare const useTypingState: () => {
|
|
40
|
+
typing: Record<string, {
|
|
41
|
+
merchant?: {
|
|
42
|
+
text: string;
|
|
43
|
+
at: number;
|
|
44
|
+
};
|
|
45
|
+
agents: Record<string, number>;
|
|
46
|
+
agentText?: Record<string, string>;
|
|
47
|
+
agentNote?: Record<string, boolean>;
|
|
48
|
+
}>;
|
|
49
|
+
apply: (e: LiveEvent, shopFallback?: string) => void;
|
|
50
|
+
clear: (shop: string, who: "merchant" | "agent") => void;
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as v,useEffect as S,useRef as x,useState as O}from"react";const _=4*6e4,j=1200,I=3e4,N=9e4,L=15e3,R=f=>{const{url:g,role:b}=f,m=x(f);m.current=f;const t=x(null),[r,n]=O(!1);S(()=>{if(!g)return;let e=!1,o=1e3,a,w;const p=async()=>{if(e)return;const T=await m.current.token().catch(()=>null);if(!T||e){a=window.setTimeout(p,o);return}const h=new WebSocket(`${g}${g.includes("?")?"&":"?"}${new URLSearchParams({role:b,token:T})}`);t.current=h,h.onopen=()=>{o=1e3,n(!0),m.current.onEvent({type:"update"}),w=window.setInterval(()=>h.readyState===WebSocket.OPEN&&h.send(JSON.stringify({action:"ping"})),_)},h.onmessage=k=>{try{m.current.onEvent(JSON.parse(String(k.data)))}catch{}},h.onclose=()=>{window.clearInterval(w),n(!1),t.current===h&&(t.current=null),!e&&(a=window.setTimeout(p,o),o=Math.min(o*2,3e4))}};p();const y=()=>{document.visibilityState==="visible"&&!t.current&&(window.clearTimeout(a),o=1e3,p())};return document.addEventListener("visibilitychange",y),()=>{e=!0,window.clearTimeout(a),window.clearInterval(w),document.removeEventListener("visibilitychange",y),t.current?.close(),t.current=null}},[g,b]);const u=x(0),d=x(void 0),s=x(null);S(()=>{const e=window.setInterval(()=>{const o=s.current,a=t.current;o?.text.trim()&&a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify({action:"typing",shop:o.shop,text:o.text,stop:!1,idle:!0,...o.note?{note:!0}:{}}))},I);return()=>window.clearInterval(e)},[]);const c=v(e=>{const o=s.current?.text!==e.text||s.current?.shop!==e.shop||!!s.current?.note!=!!e.note,a=s.current;s.current=e;const w=t.current;if(a&&a.shop!==e.shop&&a.text.trim()&&w?.readyState===WebSocket.OPEN&&w.send(JSON.stringify({action:"typing",shop:a.shop,text:"",stop:!0})),!o||!w||w.readyState!==WebSocket.OPEN)return;window.clearTimeout(d.current);const p=()=>{u.current=Date.now(),w.send(JSON.stringify({action:"typing",shop:e.shop,text:e.text,stop:!e.text.trim(),...e.note?{note:!0}:{}}))};if(!e.text.trim())return p();const y=j-(Date.now()-u.current);y<=0?p():d.current=window.setTimeout(p,y)},[]),l=x(null),i=v(()=>{const e=t.current;e?.readyState===WebSocket.OPEN&&e.send(JSON.stringify({action:"viewing",shop:l.current}))},[]);S(()=>{const e=window.setInterval(()=>l.current&&i(),3e4);return()=>window.clearInterval(e)},[i]),S(()=>{r&&i()},[r,i]);const E=v(e=>{l.current=e,i()},[i]);return{connected:r,typing:c,viewing:E}},D=()=>{const[f,g]=O({});S(()=>{const t=window.setInterval(()=>{const r=Date.now()-75e3;g(n=>Object.values(n).some(u=>u.at<r)?Object.fromEntries(Object.entries(n).filter(([,u])=>u.at>=r)):n)},5e3);return()=>window.clearInterval(t)},[]);const b=v(t=>{t.type==="viewing"&&g(r=>{const n={...r};return t.shop?n[t.name]={shop:t.shop,at:Date.now()}:delete n[t.name],n})},[]),m=v(t=>Object.entries(f).filter(([,r])=>r.shop===t).map(([r])=>r),[f]);return{apply:b,at:m}},W=()=>{const[f,g]=O({});S(()=>{const t=window.setInterval(()=>{const r=Date.now();g(n=>{let u=!1;const d={};for(const[s,c]of Object.entries(n)){const l=c.merchant&&c.merchant.at>r-N?c.merchant:void 0,i=Object.fromEntries(Object.entries(c.agents).filter(([o,a])=>a>r-(c.agentText?.[o]?N:L))),E=Object.fromEntries(Object.entries(c.agentText??{}).filter(([o])=>o in i)),e=Object.fromEntries(Object.entries(c.agentNote??{}).filter(([o])=>o in i));(l!==c.merchant||Object.keys(i).length!==Object.keys(c.agents).length)&&(u=!0),(l||Object.keys(i).length)&&(d[s]={merchant:l,agents:i,agentText:E,agentNote:e})}return u?d:n})},1e3);return()=>window.clearInterval(t)},[]);const b=v((t,r="")=>{if(t.type!=="typing")return;const n=t.shop??r;g(u=>{const d=u[n]??{agents:{}};if(t.who==="merchant")return{...u,[n]:{...d,merchant:t.stop?void 0:{text:t.text??"",at:Date.now()}}};const s=t.name??"",c={...d.agents},l={...d.agentText},i={...d.agentNote};return t.stop?(delete c[s],delete l[s],delete i[s]):(c[s]=Date.now(),t.text?.trim()?l[s]=t.text:delete l[s],i[s]=!!t.note),{...u,[n]:{...d,agents:c,agentText:l,agentNote:i}}})},[]),m=v((t,r)=>{g(n=>n[t]?{...n,[t]:r==="merchant"?{...n[t],merchant:void 0}:{...n[t],agents:{},agentText:{}}}:n)},[]);return{typing:f,apply:b,clear:m}};export{R as useLive,W as useTypingState,D as useViewers};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={step:2,top:80,bottom:-58,cols:180},t=["37,2,4,3,1,5,4,24,16,5,37,4,38","30,2,10,1,2,5,4,27,17,1,42,2,37","34,3,3,1,1,1,1,6,11,19,38,2,13,13,13,3,1,2,15","28,3,1,1,3,1,3,1,1,2,1,4,1,2,10,17,37,2,12,21,1,2,26","0,1,10,2,15,1,2,7,4,2,2,8,10,13,1,1,23,3,12,1,5,3,1,28,1,10,2,1,10,1","8,13,1,9,2,3,2,1,2,1,1,3,1,2,3,4,8,13,22,9,12,3,1,2,1,47,1,5","0,3,5,41,4,5,5,10,24,14,1,1,1,12,1,53","2,2,3,39,1,1,3,6,7,6,9,4,13,5,2,4,1,1,1,70","8,37,9,2,1,1,7,4,25,5,2,79","7,7,1,28,8,4,11,3,24,6,2,67,2,1,1,4,4","9,4,8,22,8,4,2,1,35,6,3,59,5,1,3,1,9","11,1,11,22,7,7,28,2,5,1,1,2,3,58,9,4,8","8,1,16,24,2,10,25,3,5,1,5,58,10,3,9","25,24,2,11,23,2,1,2,2,70,6,1,11","26,36,26,2,1,69,1,1,18","27,1,1,27,1,1,3,2,26,71,1,1,18","28,30,5,1,25,70,2,1,18","28,28,1,2,30,7,1,8,2,1,1,5,2,42,22","28,27,30,7,3,2,2,5,6,4,2,41,3,2,18","28,26,32,4,4,1,2,2,1,4,1,10,2,38,5,1,19","28,24,33,5,8,1,1,2,1,12,2,32,4,1,6,1,19","29,23,35,2,4,3,1,1,6,11,2,34,2,2,3,2,20","30,22,35,8,7,1,3,1,1,42,3,1,2,4,20","31,19,36,10,12,42,5,2,23","32,17,36,14,1,4,1,46,29","34,8,7,1,35,29,1,36,29","33,1,1,6,8,1,33,24,1,7,2,33,30","34,1,1,5,42,24,2,7,1,1,5,27,30","37,4,7,2,32,26,1,11,5,23,2,1,29","37,4,4,2,4,1,29,28,1,9,6,9,2,8,36","38,4,2,2,8,1,27,27,2,8,7,6,5,6,1,1,35","40,6,36,27,2,6,10,4,6,7,6,1,29","44,4,33,29,1,4,12,3,9,5,6,1,29","46,2,34,29,1,1,14,3,9,6,5,1,29","47,1,4,4,26,30,2,2,12,2,9,1,2,2,8,1,27","48,1,1,1,1,8,23,32,13,1,1,1,8,1,2,1,37","51,10,23,31,15,1,21,1,27","51,13,21,2,1,1,4,21,24,1,1,2,5,2,31","51,14,30,18,26,1,1,1,4,3,31","50,15,30,17,27,2,4,4,1,1,29","50,17,27,17,29,2,3,4,6,2,23","50,20,25,15,31,2,2,3,1,2,3,1,1,1,1,3,19","49,23,24,14,32,1,8,1,7,4,17","50,23,23,14,33,3,13,5,4,1,11","51,21,24,14,38,1,3,1,7,2,1,1,6,1,9","51,20,26,13,70","52,19,25,14,4,1,40,3,3,1,18","52,19,25,14,4,1,37,6,3,2,10,1,6","54,16,26,13,3,3,36,8,2,2,17","55,15,26,12,4,3,36,12,17","55,15,27,11,4,2,34,17,7,1,7","55,13,29,11,4,2,33,18,15","55,11,31,10,5,1,34,19,14","55,11,32,8,41,20,13","54,11,33,8,41,20,13","54,11,34,6,43,19,13","54,10,35,5,44,4,5,9,14","54,7,87,1,10,6,11,1,3","53,9,98,5,12,1,2","53,6,118,2,1","53,4,1,1,103,2,12,2,2","54,4,105,1,11,2,3","53,4,117,2,4","53,4,123","52,4,68,1,55","52,3,125","53,3,124","54,2,124","180","180"];export{t as LAND_ROWS,o as MAP};
|
package/package.json
CHANGED
|
@@ -1,6 +1,214 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whoa-chat/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Whoa Chat's React components and styles: the merchant chat for your embedded Shopify app, its cards, files and live updates.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"homepage": "https://whoa.chat/docs/",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Super-Simple-Co/whoa-chat.git",
|
|
10
|
+
"directory": "packages/react"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./ActionGroup": {
|
|
18
|
+
"types": "./dist/src/ActionGroup.d.ts",
|
|
19
|
+
"default": "./dist/src/ActionGroup.js"
|
|
20
|
+
},
|
|
21
|
+
"./AiChoices": {
|
|
22
|
+
"types": "./dist/src/AiChoices.d.ts",
|
|
23
|
+
"default": "./dist/src/AiChoices.js"
|
|
24
|
+
},
|
|
25
|
+
"./AssistantNote": {
|
|
26
|
+
"types": "./dist/src/AssistantNote.d.ts",
|
|
27
|
+
"default": "./dist/src/AssistantNote.js"
|
|
28
|
+
},
|
|
29
|
+
"./Attachments": {
|
|
30
|
+
"types": "./dist/src/Attachments.d.ts",
|
|
31
|
+
"default": "./dist/src/Attachments.js"
|
|
32
|
+
},
|
|
33
|
+
"./AvailabilityCard": {
|
|
34
|
+
"types": "./dist/src/AvailabilityCard.d.ts",
|
|
35
|
+
"default": "./dist/src/AvailabilityCard.js"
|
|
36
|
+
},
|
|
37
|
+
"./CardOutcome": {
|
|
38
|
+
"types": "./dist/src/CardOutcome.d.ts",
|
|
39
|
+
"default": "./dist/src/CardOutcome.js"
|
|
40
|
+
},
|
|
41
|
+
"./CustomCard": {
|
|
42
|
+
"types": "./dist/src/CustomCard.d.ts",
|
|
43
|
+
"default": "./dist/src/CustomCard.js"
|
|
44
|
+
},
|
|
45
|
+
"./ChatThread": {
|
|
46
|
+
"types": "./dist/src/ChatThread.d.ts",
|
|
47
|
+
"default": "./dist/src/ChatThread.js"
|
|
48
|
+
},
|
|
49
|
+
"./ComposerTools": {
|
|
50
|
+
"types": "./dist/src/ComposerTools.d.ts",
|
|
51
|
+
"default": "./dist/src/ComposerTools.js"
|
|
52
|
+
},
|
|
53
|
+
"./DraftCard": {
|
|
54
|
+
"types": "./dist/src/DraftCard.d.ts",
|
|
55
|
+
"default": "./dist/src/DraftCard.js"
|
|
56
|
+
},
|
|
57
|
+
"./EmailTranscript": {
|
|
58
|
+
"types": "./dist/src/EmailTranscript.d.ts",
|
|
59
|
+
"default": "./dist/src/EmailTranscript.js"
|
|
60
|
+
},
|
|
61
|
+
"./EventRow": {
|
|
62
|
+
"types": "./dist/src/EventRow.d.ts",
|
|
63
|
+
"default": "./dist/src/EventRow.js"
|
|
64
|
+
},
|
|
65
|
+
"./FormattedText": {
|
|
66
|
+
"types": "./dist/src/FormattedText.d.ts",
|
|
67
|
+
"default": "./dist/src/FormattedText.js"
|
|
68
|
+
},
|
|
69
|
+
"./HelpOfferCard": {
|
|
70
|
+
"types": "./dist/src/HelpOfferCard.d.ts",
|
|
71
|
+
"default": "./dist/src/HelpOfferCard.js"
|
|
72
|
+
},
|
|
73
|
+
"./InboxTools": {
|
|
74
|
+
"types": "./dist/src/InboxTools.d.ts",
|
|
75
|
+
"default": "./dist/src/InboxTools.js"
|
|
76
|
+
},
|
|
77
|
+
"./MerchantPanel": {
|
|
78
|
+
"types": "./dist/src/MerchantPanel.d.ts",
|
|
79
|
+
"default": "./dist/src/MerchantPanel.js"
|
|
80
|
+
},
|
|
81
|
+
"./MessageActions": {
|
|
82
|
+
"types": "./dist/src/MessageActions.d.ts",
|
|
83
|
+
"default": "./dist/src/MessageActions.js"
|
|
84
|
+
},
|
|
85
|
+
"./MessagePreview": {
|
|
86
|
+
"types": "./dist/src/MessagePreview.d.ts",
|
|
87
|
+
"default": "./dist/src/MessagePreview.js"
|
|
88
|
+
},
|
|
89
|
+
"./PasswordCard": {
|
|
90
|
+
"types": "./dist/src/PasswordCard.d.ts",
|
|
91
|
+
"default": "./dist/src/PasswordCard.js"
|
|
92
|
+
},
|
|
93
|
+
"./RequestCards": {
|
|
94
|
+
"types": "./dist/src/RequestCards.d.ts",
|
|
95
|
+
"default": "./dist/src/RequestCards.js"
|
|
96
|
+
},
|
|
97
|
+
"./ReviewCard": {
|
|
98
|
+
"types": "./dist/src/ReviewCard.d.ts",
|
|
99
|
+
"default": "./dist/src/ReviewCard.js"
|
|
100
|
+
},
|
|
101
|
+
"./RichCards": {
|
|
102
|
+
"types": "./dist/src/RichCards.d.ts",
|
|
103
|
+
"default": "./dist/src/RichCards.js"
|
|
104
|
+
},
|
|
105
|
+
"./RichInput": {
|
|
106
|
+
"types": "./dist/src/RichInput.d.ts",
|
|
107
|
+
"default": "./dist/src/RichInput.js"
|
|
108
|
+
},
|
|
109
|
+
"./StoreAvatar": {
|
|
110
|
+
"types": "./dist/src/StoreAvatar.d.ts",
|
|
111
|
+
"default": "./dist/src/StoreAvatar.js"
|
|
112
|
+
},
|
|
113
|
+
"./WorldMap": {
|
|
114
|
+
"types": "./dist/src/WorldMap.d.ts",
|
|
115
|
+
"default": "./dist/src/WorldMap.js"
|
|
116
|
+
},
|
|
117
|
+
"./agents": {
|
|
118
|
+
"types": "./dist/src/agents.d.ts",
|
|
119
|
+
"default": "./dist/src/agents.js"
|
|
120
|
+
},
|
|
121
|
+
"./appearance": {
|
|
122
|
+
"types": "./dist/src/appearance.d.ts",
|
|
123
|
+
"default": "./dist/src/appearance.js"
|
|
124
|
+
},
|
|
125
|
+
"./chatApi": {
|
|
126
|
+
"types": "./dist/src/chatApi.d.ts",
|
|
127
|
+
"default": "./dist/src/chatApi.js"
|
|
128
|
+
},
|
|
129
|
+
"./chatEnv": {
|
|
130
|
+
"types": "./dist/src/chatEnv.d.ts",
|
|
131
|
+
"default": "./dist/src/chatEnv.js"
|
|
132
|
+
},
|
|
133
|
+
"./chime": {
|
|
134
|
+
"types": "./dist/src/chime.d.ts",
|
|
135
|
+
"default": "./dist/src/chime.js"
|
|
136
|
+
},
|
|
137
|
+
"./clock": {
|
|
138
|
+
"types": "./dist/src/clock.d.ts",
|
|
139
|
+
"default": "./dist/src/clock.js"
|
|
140
|
+
},
|
|
141
|
+
"./copyToClipboard": {
|
|
142
|
+
"types": "./dist/src/copyToClipboard.d.ts",
|
|
143
|
+
"default": "./dist/src/copyToClipboard.js"
|
|
144
|
+
},
|
|
145
|
+
"./emojis": {
|
|
146
|
+
"types": "./dist/src/emojis.d.ts",
|
|
147
|
+
"default": "./dist/src/emojis.js"
|
|
148
|
+
},
|
|
149
|
+
"./flags": {
|
|
150
|
+
"types": "./dist/src/flags.d.ts",
|
|
151
|
+
"default": "./dist/src/flags.js"
|
|
152
|
+
},
|
|
153
|
+
"./highlight": {
|
|
154
|
+
"types": "./dist/src/highlight.d.ts",
|
|
155
|
+
"default": "./dist/src/highlight.js"
|
|
156
|
+
},
|
|
157
|
+
"./host": {
|
|
158
|
+
"types": "./dist/src/host.d.ts",
|
|
159
|
+
"default": "./dist/src/host.js"
|
|
160
|
+
},
|
|
161
|
+
"./i18n": {
|
|
162
|
+
"types": "./dist/src/i18n.d.ts",
|
|
163
|
+
"default": "./dist/src/i18n.js"
|
|
164
|
+
},
|
|
165
|
+
"./refLinks": {
|
|
166
|
+
"types": "./dist/src/refLinks.d.ts",
|
|
167
|
+
"default": "./dist/src/refLinks.js"
|
|
168
|
+
},
|
|
169
|
+
"./supportChat.css": "./dist/src/supportChat.css",
|
|
170
|
+
"./useLive": {
|
|
171
|
+
"types": "./dist/src/useLive.d.ts",
|
|
172
|
+
"default": "./dist/src/useLive.js"
|
|
173
|
+
},
|
|
174
|
+
"./worldDots": {
|
|
175
|
+
"types": "./dist/src/worldDots.d.ts",
|
|
176
|
+
"default": "./dist/src/worldDots.js"
|
|
177
|
+
},
|
|
178
|
+
"./locales": {
|
|
179
|
+
"types": "./dist/locales/index.d.ts",
|
|
180
|
+
"default": "./dist/locales/index.js"
|
|
181
|
+
},
|
|
182
|
+
"./locales/loaders": {
|
|
183
|
+
"types": "./dist/locales/loaders.d.ts",
|
|
184
|
+
"default": "./dist/locales/loaders.js"
|
|
185
|
+
},
|
|
186
|
+
"./locales/*.json": "./dist/locales/*.json"
|
|
187
|
+
},
|
|
188
|
+
"dependencies": {
|
|
189
|
+
"@whoa-chat/core": "0.3.0"
|
|
190
|
+
},
|
|
191
|
+
"peerDependencies": {
|
|
192
|
+
"react": "^18.3.1",
|
|
193
|
+
"react-dom": "^18.3.1",
|
|
194
|
+
"react-i18next": "^17.1.1",
|
|
195
|
+
"i18next": "^26.5.5",
|
|
196
|
+
"@tiptap/core": "3.33.0",
|
|
197
|
+
"@tiptap/extension-code-block": "3.33.0",
|
|
198
|
+
"@tiptap/pm": "3.33.0",
|
|
199
|
+
"@tiptap/react": "3.33.0",
|
|
200
|
+
"@tiptap/starter-kit": "3.33.0",
|
|
201
|
+
"prismjs": "1.30.0",
|
|
202
|
+
"@shopify/app-bridge-types": "0.7.2"
|
|
203
|
+
},
|
|
204
|
+
"scripts": {
|
|
205
|
+
"test": "vitest run",
|
|
206
|
+
"typecheck": "tsc --noEmit",
|
|
207
|
+
"prepack": "node ../core/pack.mjs build",
|
|
208
|
+
"postpack": "node ../core/pack.mjs restore"
|
|
209
|
+
},
|
|
210
|
+
"files": [
|
|
211
|
+
"dist",
|
|
212
|
+
"README.md"
|
|
213
|
+
]
|
|
214
|
+
}
|
package/README.md
DELETED