@whoa-chat/react 0.0.0-stage → 0.2.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.
Files changed (100) hide show
  1. package/dist/locales/bg.json +779 -0
  2. package/dist/locales/da.json +779 -0
  3. package/dist/locales/de.json +779 -0
  4. package/dist/locales/en.json +779 -0
  5. package/dist/locales/es.json +779 -0
  6. package/dist/locales/fr.json +809 -0
  7. package/dist/locales/index.d.ts +11807 -0
  8. package/dist/locales/index.js +1 -0
  9. package/dist/locales/it.json +779 -0
  10. package/dist/locales/ja.json +779 -0
  11. package/dist/locales/loaders.d.ts +3 -0
  12. package/dist/locales/loaders.js +1 -0
  13. package/dist/locales/nl.json +779 -0
  14. package/dist/locales/pl.json +839 -0
  15. package/dist/locales/pt-BR.json +779 -0
  16. package/dist/locales/pt-PT.json +779 -0
  17. package/dist/locales/sv.json +779 -0
  18. package/dist/locales/zh-CN.json +779 -0
  19. package/dist/locales/zh-TW.json +779 -0
  20. package/dist/src/ActionGroup.d.ts +12 -0
  21. package/dist/src/ActionGroup.js +1 -0
  22. package/dist/src/AiChoices.d.ts +10 -0
  23. package/dist/src/AiChoices.js +1 -0
  24. package/dist/src/AssistantNote.d.ts +8 -0
  25. package/dist/src/AssistantNote.js +1 -0
  26. package/dist/src/Attachments.d.ts +56 -0
  27. package/dist/src/Attachments.js +1 -0
  28. package/dist/src/AvailabilityCard.d.ts +19 -0
  29. package/dist/src/AvailabilityCard.js +1 -0
  30. package/dist/src/CardOutcome.d.ts +6 -0
  31. package/dist/src/CardOutcome.js +1 -0
  32. package/dist/src/ChatThread.d.ts +149 -0
  33. package/dist/src/ChatThread.js +8 -0
  34. package/dist/src/ComposerTools.d.ts +29 -0
  35. package/dist/src/ComposerTools.js +1 -0
  36. package/dist/src/CustomCard.d.ts +5 -0
  37. package/dist/src/CustomCard.js +1 -0
  38. package/dist/src/DraftCard.d.ts +10 -0
  39. package/dist/src/DraftCard.js +1 -0
  40. package/dist/src/EventRow.d.ts +5 -0
  41. package/dist/src/EventRow.js +2 -0
  42. package/dist/src/FormattedText.d.ts +45 -0
  43. package/dist/src/FormattedText.js +5 -0
  44. package/dist/src/HelpOfferCard.d.ts +10 -0
  45. package/dist/src/HelpOfferCard.js +1 -0
  46. package/dist/src/InboxTools.d.ts +53 -0
  47. package/dist/src/InboxTools.js +1 -0
  48. package/dist/src/MerchantPanel.d.ts +10 -0
  49. package/dist/src/MerchantPanel.js +1 -0
  50. package/dist/src/MessageActions.d.ts +15 -0
  51. package/dist/src/MessageActions.js +1 -0
  52. package/dist/src/MessagePreview.d.ts +20 -0
  53. package/dist/src/MessagePreview.js +1 -0
  54. package/dist/src/PasswordCard.d.ts +6 -0
  55. package/dist/src/PasswordCard.js +1 -0
  56. package/dist/src/RequestCards.d.ts +8 -0
  57. package/dist/src/RequestCards.js +1 -0
  58. package/dist/src/ReviewCard.d.ts +15 -0
  59. package/dist/src/ReviewCard.js +1 -0
  60. package/dist/src/RichCards.d.ts +37 -0
  61. package/dist/src/RichCards.js +1 -0
  62. package/dist/src/RichInput.d.ts +41 -0
  63. package/dist/src/RichInput.js +12 -0
  64. package/dist/src/StoreAvatar.d.ts +33 -0
  65. package/dist/src/StoreAvatar.js +1 -0
  66. package/dist/src/WorldMap.d.ts +10 -0
  67. package/dist/src/WorldMap.js +1 -0
  68. package/dist/src/agents.d.ts +9 -0
  69. package/dist/src/agents.js +1 -0
  70. package/dist/src/appearance.d.ts +17 -0
  71. package/dist/src/appearance.js +1 -0
  72. package/dist/src/chatApi.d.ts +179 -0
  73. package/dist/src/chatApi.js +1 -0
  74. package/dist/src/chatEnv.d.ts +16 -0
  75. package/dist/src/chatEnv.js +1 -0
  76. package/dist/src/chime.d.ts +7 -0
  77. package/dist/src/chime.js +1 -0
  78. package/dist/src/clock.d.ts +5 -0
  79. package/dist/src/clock.js +1 -0
  80. package/dist/src/copyToClipboard.d.ts +10 -0
  81. package/dist/src/copyToClipboard.js +1 -0
  82. package/dist/src/emojis.d.ts +6 -0
  83. package/dist/src/emojis.js +1 -0
  84. package/dist/src/flags.d.ts +5 -0
  85. package/dist/src/flags.js +1 -0
  86. package/dist/src/highlight.d.ts +8 -0
  87. package/dist/src/highlight.js +1 -0
  88. package/dist/src/host.d.ts +40 -0
  89. package/dist/src/host.js +1 -0
  90. package/dist/src/i18n.d.ts +2 -0
  91. package/dist/src/i18n.js +1 -0
  92. package/dist/src/refLinks.d.ts +7 -0
  93. package/dist/src/refLinks.js +1 -0
  94. package/dist/src/supportChat.css +2490 -0
  95. package/dist/src/useLive.d.ts +51 -0
  96. package/dist/src/useLive.js +1 -0
  97. package/dist/src/worldDots.d.ts +7 -0
  98. package/dist/src/worldDots.js +1 -0
  99. package/package.json +208 -4
  100. 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,7 @@
1
+ export declare const MAP: {
2
+ step: number;
3
+ top: number;
4
+ bottom: number;
5
+ cols: number;
6
+ };
7
+ export declare const LAND_ROWS: string[];
@@ -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,210 @@
1
1
  {
2
2
  "name": "@whoa-chat/react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.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
+ "./EventRow": {
58
+ "types": "./dist/src/EventRow.d.ts",
59
+ "default": "./dist/src/EventRow.js"
60
+ },
61
+ "./FormattedText": {
62
+ "types": "./dist/src/FormattedText.d.ts",
63
+ "default": "./dist/src/FormattedText.js"
64
+ },
65
+ "./HelpOfferCard": {
66
+ "types": "./dist/src/HelpOfferCard.d.ts",
67
+ "default": "./dist/src/HelpOfferCard.js"
68
+ },
69
+ "./InboxTools": {
70
+ "types": "./dist/src/InboxTools.d.ts",
71
+ "default": "./dist/src/InboxTools.js"
72
+ },
73
+ "./MerchantPanel": {
74
+ "types": "./dist/src/MerchantPanel.d.ts",
75
+ "default": "./dist/src/MerchantPanel.js"
76
+ },
77
+ "./MessageActions": {
78
+ "types": "./dist/src/MessageActions.d.ts",
79
+ "default": "./dist/src/MessageActions.js"
80
+ },
81
+ "./MessagePreview": {
82
+ "types": "./dist/src/MessagePreview.d.ts",
83
+ "default": "./dist/src/MessagePreview.js"
84
+ },
85
+ "./PasswordCard": {
86
+ "types": "./dist/src/PasswordCard.d.ts",
87
+ "default": "./dist/src/PasswordCard.js"
88
+ },
89
+ "./RequestCards": {
90
+ "types": "./dist/src/RequestCards.d.ts",
91
+ "default": "./dist/src/RequestCards.js"
92
+ },
93
+ "./ReviewCard": {
94
+ "types": "./dist/src/ReviewCard.d.ts",
95
+ "default": "./dist/src/ReviewCard.js"
96
+ },
97
+ "./RichCards": {
98
+ "types": "./dist/src/RichCards.d.ts",
99
+ "default": "./dist/src/RichCards.js"
100
+ },
101
+ "./RichInput": {
102
+ "types": "./dist/src/RichInput.d.ts",
103
+ "default": "./dist/src/RichInput.js"
104
+ },
105
+ "./StoreAvatar": {
106
+ "types": "./dist/src/StoreAvatar.d.ts",
107
+ "default": "./dist/src/StoreAvatar.js"
108
+ },
109
+ "./WorldMap": {
110
+ "types": "./dist/src/WorldMap.d.ts",
111
+ "default": "./dist/src/WorldMap.js"
112
+ },
113
+ "./agents": {
114
+ "types": "./dist/src/agents.d.ts",
115
+ "default": "./dist/src/agents.js"
116
+ },
117
+ "./appearance": {
118
+ "types": "./dist/src/appearance.d.ts",
119
+ "default": "./dist/src/appearance.js"
120
+ },
121
+ "./chatApi": {
122
+ "types": "./dist/src/chatApi.d.ts",
123
+ "default": "./dist/src/chatApi.js"
124
+ },
125
+ "./chatEnv": {
126
+ "types": "./dist/src/chatEnv.d.ts",
127
+ "default": "./dist/src/chatEnv.js"
128
+ },
129
+ "./chime": {
130
+ "types": "./dist/src/chime.d.ts",
131
+ "default": "./dist/src/chime.js"
132
+ },
133
+ "./clock": {
134
+ "types": "./dist/src/clock.d.ts",
135
+ "default": "./dist/src/clock.js"
136
+ },
137
+ "./copyToClipboard": {
138
+ "types": "./dist/src/copyToClipboard.d.ts",
139
+ "default": "./dist/src/copyToClipboard.js"
140
+ },
141
+ "./emojis": {
142
+ "types": "./dist/src/emojis.d.ts",
143
+ "default": "./dist/src/emojis.js"
144
+ },
145
+ "./flags": {
146
+ "types": "./dist/src/flags.d.ts",
147
+ "default": "./dist/src/flags.js"
148
+ },
149
+ "./highlight": {
150
+ "types": "./dist/src/highlight.d.ts",
151
+ "default": "./dist/src/highlight.js"
152
+ },
153
+ "./host": {
154
+ "types": "./dist/src/host.d.ts",
155
+ "default": "./dist/src/host.js"
156
+ },
157
+ "./i18n": {
158
+ "types": "./dist/src/i18n.d.ts",
159
+ "default": "./dist/src/i18n.js"
160
+ },
161
+ "./refLinks": {
162
+ "types": "./dist/src/refLinks.d.ts",
163
+ "default": "./dist/src/refLinks.js"
164
+ },
165
+ "./supportChat.css": "./dist/src/supportChat.css",
166
+ "./useLive": {
167
+ "types": "./dist/src/useLive.d.ts",
168
+ "default": "./dist/src/useLive.js"
169
+ },
170
+ "./worldDots": {
171
+ "types": "./dist/src/worldDots.d.ts",
172
+ "default": "./dist/src/worldDots.js"
173
+ },
174
+ "./locales": {
175
+ "types": "./dist/locales/index.d.ts",
176
+ "default": "./dist/locales/index.js"
177
+ },
178
+ "./locales/loaders": {
179
+ "types": "./dist/locales/loaders.d.ts",
180
+ "default": "./dist/locales/loaders.js"
181
+ },
182
+ "./locales/*.json": "./dist/locales/*.json"
183
+ },
184
+ "dependencies": {
185
+ "@whoa-chat/core": "0.2.0"
186
+ },
187
+ "peerDependencies": {
188
+ "react": "^18.3.1",
189
+ "react-dom": "^18.3.1",
190
+ "react-i18next": "^17.1.1",
191
+ "i18next": "^26.5.5",
192
+ "@tiptap/core": "3.33.0",
193
+ "@tiptap/extension-code-block": "3.33.0",
194
+ "@tiptap/pm": "3.33.0",
195
+ "@tiptap/react": "3.33.0",
196
+ "@tiptap/starter-kit": "3.33.0",
197
+ "prismjs": "1.30.0",
198
+ "@shopify/app-bridge-types": "0.7.2"
199
+ },
200
+ "scripts": {
201
+ "test": "vitest run",
202
+ "typecheck": "tsc --noEmit",
203
+ "prepack": "node ../core/pack.mjs build",
204
+ "postpack": "node ../core/pack.mjs restore"
205
+ },
206
+ "files": [
207
+ "dist",
208
+ "README.md"
209
+ ]
210
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.