@anker-in/campaign-ui 0.1.6 → 0.1.8

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 (74) hide show
  1. package/dist/cjs/components/animation/CodeEditor.d.ts +7 -0
  2. package/dist/cjs/components/animation/CodeEditor.js +2 -0
  3. package/dist/cjs/components/animation/CodeEditor.js.map +7 -0
  4. package/dist/cjs/components/animation/Preview.d.ts +5 -0
  5. package/dist/cjs/components/animation/Preview.js +2 -0
  6. package/dist/cjs/components/animation/Preview.js.map +7 -0
  7. package/dist/cjs/components/animation/bannerAni.d.ts +16 -0
  8. package/dist/cjs/components/animation/bannerAni.js +59 -0
  9. package/dist/cjs/components/animation/bannerAni.js.map +7 -0
  10. package/dist/cjs/components/animation/libs.d.js +2 -0
  11. package/dist/cjs/components/animation/libs.d.js.map +7 -0
  12. package/dist/cjs/components/animation/textAni.d.ts +9 -0
  13. package/dist/cjs/components/animation/textAni.js +2 -0
  14. package/dist/cjs/components/animation/textAni.js.map +7 -0
  15. package/dist/cjs/components/chat/Messages.d.ts +1 -1
  16. package/dist/cjs/components/chat/action.d.ts +1 -3
  17. package/dist/cjs/components/chat/action.js +1 -1
  18. package/dist/cjs/components/chat/action.js.map +3 -3
  19. package/dist/cjs/components/chat/index.d.ts +0 -10
  20. package/dist/cjs/components/chat/index.js +1 -1
  21. package/dist/cjs/components/chat/index.js.map +3 -3
  22. package/dist/cjs/components/chat/messages.js +1 -1
  23. package/dist/cjs/components/chat/messages.js.map +3 -3
  24. package/dist/cjs/components/chat/props.d.ts +0 -1
  25. package/dist/cjs/components/chat/props.js +1 -1
  26. package/dist/cjs/components/chat/props.js.map +1 -1
  27. package/dist/cjs/components/chat/utils.d.ts +2 -1
  28. package/dist/cjs/components/chat/utils.js +1 -1
  29. package/dist/cjs/components/chat/utils.js.map +3 -3
  30. package/dist/cjs/components/index.d.ts +0 -1
  31. package/dist/cjs/components/index.js +1 -1
  32. package/dist/cjs/components/index.js.map +3 -3
  33. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  34. package/dist/esm/components/animation/CodeEditor.d.ts +7 -0
  35. package/dist/esm/components/animation/CodeEditor.js +2 -0
  36. package/dist/esm/components/animation/CodeEditor.js.map +7 -0
  37. package/dist/esm/components/animation/Preview.d.ts +5 -0
  38. package/dist/esm/components/animation/Preview.js +2 -0
  39. package/dist/esm/components/animation/Preview.js.map +7 -0
  40. package/dist/esm/components/animation/bannerAni.d.ts +16 -0
  41. package/dist/esm/components/animation/bannerAni.js +59 -0
  42. package/dist/esm/components/animation/bannerAni.js.map +7 -0
  43. package/dist/esm/components/animation/libs.d.js +2 -0
  44. package/dist/esm/components/animation/libs.d.js.map +7 -0
  45. package/dist/esm/components/animation/textAni.d.ts +9 -0
  46. package/dist/esm/components/animation/textAni.js +2 -0
  47. package/dist/esm/components/animation/textAni.js.map +7 -0
  48. package/dist/esm/components/chat/Messages.d.ts +1 -1
  49. package/dist/esm/components/chat/action.d.ts +1 -3
  50. package/dist/esm/components/chat/action.js +1 -1
  51. package/dist/esm/components/chat/action.js.map +3 -3
  52. package/dist/esm/components/chat/index.d.ts +0 -10
  53. package/dist/esm/components/chat/index.js +1 -1
  54. package/dist/esm/components/chat/index.js.map +3 -3
  55. package/dist/esm/components/chat/messages.js +1 -1
  56. package/dist/esm/components/chat/messages.js.map +3 -3
  57. package/dist/esm/components/chat/props.d.ts +0 -1
  58. package/dist/esm/components/chat/props.js.map +1 -1
  59. package/dist/esm/components/chat/utils.d.ts +2 -1
  60. package/dist/esm/components/chat/utils.js +1 -1
  61. package/dist/esm/components/chat/utils.js.map +3 -3
  62. package/dist/esm/components/index.d.ts +0 -1
  63. package/dist/esm/components/index.js +1 -1
  64. package/dist/esm/components/index.js.map +3 -3
  65. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +11 -7
  67. package/src/components/chat/action.tsx +0 -24
  68. package/src/components/chat/index.tsx +2 -18
  69. package/src/components/chat/messages.tsx +1 -5
  70. package/src/components/chat/props.ts +0 -1
  71. package/src/components/index.ts +0 -3
  72. package/src/helpers/index.ts +2 -0
  73. package/src/helpers/utils.ts +8 -0
  74. package/src/components/chat/utils.ts +0 -3
@@ -1,2 +1,2 @@
1
- "use strict";var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var c=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of i(e))!p.call(o,s)&&s!==r&&n(o,s,{get:()=>e[s],enumerable:!(t=a(e,s))||t.enumerable});return o};var l=o=>c(n({},"__esModule",{value:!0}),o);var g={};module.exports=l(g);var d=require("react"),m=require("@copilotkit/runtime-client-gql");
1
+ "use strict";var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var c=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of i(e))!p.call(o,s)&&s!==r&&n(o,s,{get:()=>e[s],enumerable:!(t=a(e,s))||t.enumerable});return o};var l=o=>c(n({},"__esModule",{value:!0}),o);var g={};module.exports=l(g);var d=require("react"),u=require("@copilotkit/runtime-client-gql");
2
2
  //# sourceMappingURL=props.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/chat/props.ts"],
4
- "sourcesContent": ["import React from 'react'\nimport { Message } from '@copilotkit/runtime-client-gql'\n\nexport interface ButtonProps {\n open: boolean\n setOpen: () => void\n}\n\nexport interface WindowProps {\n open: boolean\n setOpen: (open: boolean) => void\n clickOutsideToClose: boolean\n hitEscapeToClose: boolean\n shortcut: string\n children?: React.ReactNode\n}\n\nexport interface HeaderProps {\n open: boolean\n setOpen: (open: boolean) => void\n}\n\nexport interface ChatSuggestions {\n currentSuggestions: SuggestionsProps[]\n}\n\nexport interface SuggestionsProps {\n title: string\n message: string\n partial?: boolean\n className?: string\n}\n\nexport interface MessagesProps {\n messages: Message[]\n inProgress: boolean\n ResponseButton?: React.ReactElement\n children?: React.ReactNode\n messagesCallback?: (messages: any) => void\n}\n\nexport interface InputProps {\n inProgress: boolean\n onSend: (text: string) => Promise<Message>\n isVisible?: boolean\n}\n\nexport interface ResponseButtonProps {\n onClick: () => void\n inProgress: boolean\n}\n"],
4
+ "sourcesContent": ["import React from 'react'\nimport { Message } from '@copilotkit/runtime-client-gql'\n\nexport interface ButtonProps {\n open: boolean\n setOpen: () => void\n}\n\nexport interface WindowProps {\n open: boolean\n setOpen: (open: boolean) => void\n clickOutsideToClose: boolean\n hitEscapeToClose: boolean\n shortcut: string\n children?: React.ReactNode\n}\n\nexport interface HeaderProps {\n open: boolean\n setOpen: (open: boolean) => void\n}\n\nexport interface ChatSuggestions {\n currentSuggestions: SuggestionsProps[]\n}\n\nexport interface SuggestionsProps {\n title: string\n message: string\n partial?: boolean\n className?: string\n}\n\nexport interface MessagesProps {\n messages: Message[]\n inProgress: boolean\n ResponseButton?: React.ReactElement\n children?: React.ReactNode\n}\n\nexport interface InputProps {\n inProgress: boolean\n onSend: (text: string) => Promise<Message>\n isVisible?: boolean\n}\n\nexport interface ResponseButtonProps {\n onClick: () => void\n inProgress: boolean\n}\n"],
5
5
  "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAA,IAAAE,EAAkB,iBAClBC,EAAwB",
6
6
  "names": ["props_exports", "__toCommonJS", "import_react", "import_runtime_client_gql"]
7
7
  }
@@ -1,2 +1,3 @@
1
1
  import { useCopilotChat, useCopilotAction, useCopilotReadable } from '@copilotkit/react-core';
2
- export { useCopilotChat, useCopilotAction, useCopilotReadable };
2
+ import { Role, ActionExecutionMessage, TextMessage } from '@copilotkit/runtime-client-gql';
3
+ export { useCopilotChat, useCopilotAction, useCopilotReadable, Role, ActionExecutionMessage, TextMessage };
@@ -1,2 +1,2 @@
1
- "use strict";var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var p in o)l(e,p,{get:o[p],enumerable:!0})},m=(e,o,p,C)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of r(o))!s.call(e,i)&&i!==p&&l(e,i,{get:()=>o[i],enumerable:!(C=a(o,i))||C.enumerable});return e};var b=e=>m(l({},"__esModule",{value:!0}),e);var c={};u(c,{useCopilotAction:()=>t.useCopilotAction,useCopilotChat:()=>t.useCopilotChat,useCopilotReadable:()=>t.useCopilotReadable});module.exports=b(c);var t=require("@copilotkit/react-core");
1
+ "use strict";var a=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var C=(i,o)=>{for(var p in o)a(i,p,{get:o[p],enumerable:!0})},c=(i,o,p,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of m(o))!u.call(i,s)&&s!==p&&a(i,s,{get:()=>o[s],enumerable:!(l=r(o,s))||l.enumerable});return i};var n=i=>c(a({},"__esModule",{value:!0}),i);var x={};C(x,{ActionExecutionMessage:()=>t.ActionExecutionMessage,Role:()=>t.Role,TextMessage:()=>t.TextMessage,useCopilotAction:()=>e.useCopilotAction,useCopilotChat:()=>e.useCopilotChat,useCopilotReadable:()=>e.useCopilotReadable});module.exports=n(x);var e=require("@copilotkit/react-core"),t=require("@copilotkit/runtime-client-gql");
2
2
  //# sourceMappingURL=utils.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/chat/utils.ts"],
4
- "sourcesContent": ["import { useCopilotChat, useCopilotAction, useCopilotReadable } from '@copilotkit/react-core'\n\nexport { useCopilotChat, useCopilotAction, useCopilotReadable }\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,0IAAAE,EAAAF,GAAA,IAAAG,EAAqE",
6
- "names": ["utils_exports", "__export", "__toCommonJS", "import_react_core"]
4
+ "sourcesContent": ["import { useCopilotChat, useCopilotAction, useCopilotReadable } from '@copilotkit/react-core'\nimport { Role, ActionExecutionMessage, TextMessage } from '@copilotkit/runtime-client-gql'\n\nexport { useCopilotChat, useCopilotAction, useCopilotReadable, Role, ActionExecutionMessage, TextMessage }\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,4OAAAE,EAAAF,GAAA,IAAAG,EAAqE,kCACrEC,EAA0D",
6
+ "names": ["utils_exports", "__export", "__toCommonJS", "import_react_core", "import_runtime_client_gql"]
7
7
  }
@@ -1,2 +1 @@
1
1
  export { default as Chat } from './chat/index.js';
2
- export { useCopilotChat, useCopilotAction, useCopilotReadable } from './chat/utils.js';
@@ -1,2 +1,2 @@
1
- "use strict";var s=Object.create;var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var m=(o,t)=>{for(var e in t)p(o,e,{get:t[e],enumerable:!0})},i=(o,t,e,C)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of f(t))!h.call(o,l)&&l!==e&&p(o,l,{get:()=>t[l],enumerable:!(C=u(t,l))||C.enumerable});return o};var x=(o,t,e)=>(e=o!=null?s(d(o)):{},i(t||!o||!o.__esModule?p(e,"default",{value:o,enumerable:!0}):e,o)),b=o=>i(p({},"__esModule",{value:!0}),o);var c={};m(c,{Chat:()=>r.default,useCopilotAction:()=>a.useCopilotAction,useCopilotChat:()=>a.useCopilotChat,useCopilotReadable:()=>a.useCopilotReadable});module.exports=b(c);var r=x(require("./chat/index.js")),a=require("./chat/utils.js");
1
+ "use strict";var l=Object.create;var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var x=(a,t)=>{for(var e in t)o(a,e,{get:t[e],enumerable:!0})},d=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of p(t))!u.call(a,f)&&f!==e&&o(a,f,{get:()=>t[f],enumerable:!(r=m(t,f))||r.enumerable});return a};var C=(a,t,e)=>(e=a!=null?l(s(a)):{},d(t||!a||!a.__esModule?o(e,"default",{value:a,enumerable:!0}):e,a)),b=a=>d(o({},"__esModule",{value:!0}),a);var c={};x(c,{Chat:()=>h.default});module.exports=b(c);var h=C(require("./chat/index.js"));
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/index.ts"],
4
- "sourcesContent": ["// eslint-disable-next-line import/extensions\n\nexport { default as Chat } from './chat/index.js'\n\nexport { useCopilotChat, useCopilotAction, useCopilotReadable } from './chat/utils.js'\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,6JAAAE,EAAAF,GAEA,IAAAG,EAAgC,8BAEhCC,EAAqE",
6
- "names": ["components_exports", "__export", "__toCommonJS", "import_chat", "import_utils"]
4
+ "sourcesContent": ["// eslint-disable-next-line import/extensions\nexport { default as Chat } from './chat/index.js'\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qCAAAE,EAAAF,GACA,IAAAG,EAAgC",
6
+ "names": ["components_exports", "__export", "__toCommonJS", "import_chat"]
7
7
  }