@rolder/kit 3.0.0-alpha.4 → 3.0.0-alpha.40

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 (134) hide show
  1. package/dist/ai/index.d.ts +2 -0
  2. package/dist/ai/index.js +2 -0
  3. package/dist/ai/ui/{conversation → chat}/Empty.js +5 -4
  4. package/dist/ai/ui/chat/File.d.ts +3 -0
  5. package/dist/ai/ui/{conversation → chat}/File.js +10 -8
  6. package/dist/ai/ui/chat/FileIcon.js +43 -0
  7. package/dist/ai/ui/{conversation → chat}/Loader.js +4 -3
  8. package/dist/ai/ui/chat/Message.d.ts +3 -0
  9. package/dist/ai/ui/chat/Message.js +28 -0
  10. package/dist/ai/ui/chat/Messages.d.ts +2 -0
  11. package/dist/ai/ui/chat/Messages.js +9 -0
  12. package/dist/ai/ui/chat/Root.d.ts +8 -0
  13. package/dist/ai/ui/chat/Root.js +22 -0
  14. package/dist/ai/ui/chat/chatInput/File.js +72 -0
  15. package/dist/ai/ui/chat/chatInput/FileIcon.js +43 -0
  16. package/dist/ai/ui/{promptInput → chat/chatInput}/Footer.js +4 -1
  17. package/dist/ai/ui/chat/chatInput/Root.d.ts +9 -0
  18. package/dist/ai/ui/chat/chatInput/Root.js +25 -0
  19. package/dist/ai/ui/chat/chatInput/Submit.js +24 -0
  20. package/dist/ai/ui/{promptInput → chat/chatInput}/Textarea.js +9 -7
  21. package/dist/ai/ui/{promptInput → chat/chatInput}/index.d.ts +2 -3
  22. package/dist/ai/ui/{promptInput → chat/chatInput}/index.js +2 -2
  23. package/dist/ai/ui/chat/chatInput/store/file.d.ts +8 -0
  24. package/dist/ai/ui/chat/chatInput/store/file.js +32 -0
  25. package/dist/ai/ui/chat/chatInput/store/fileErrorNotificaton.d.ts +2 -0
  26. package/dist/ai/ui/chat/chatInput/store/fileErrorNotificaton.js +21 -0
  27. package/dist/ai/ui/chat/chatInput/store/index.d.ts +2 -0
  28. package/dist/ai/ui/chat/chatInput/store/index.js +2 -0
  29. package/dist/ai/ui/chat/chatInput/store/input.d.ts +13 -0
  30. package/dist/ai/ui/chat/chatInput/store/input.js +80 -0
  31. package/dist/ai/ui/chat/chatInput/store/parseFile.d.ts +2 -0
  32. package/dist/ai/ui/chat/chatInput/store/parseFile.js +23 -0
  33. package/dist/ai/ui/chat/index.d.ts +14 -0
  34. package/dist/ai/ui/{conversation → chat}/index.js +6 -3
  35. package/dist/ai/ui/chat/store/index.d.ts +2 -0
  36. package/dist/ai/ui/chat/store/index.js +2 -0
  37. package/dist/ai/ui/chat/store/messages.d.ts +18 -0
  38. package/dist/ai/ui/chat/store/messages.js +89 -0
  39. package/dist/ai/ui/chat/store/states.d.ts +11 -0
  40. package/dist/ai/ui/chat/store/states.js +17 -0
  41. package/dist/ai/ui/index.d.ts +1 -0
  42. package/dist/ai/ui/index.js +1 -0
  43. package/dist/ai/utils/index.d.ts +2 -0
  44. package/dist/ai/utils/index.js +2 -0
  45. package/dist/app/AppDefaults.js +1 -1
  46. package/dist/app/DefaultApp.js +1 -1
  47. package/dist/app/cookieColorSchemeManager.js +1 -1
  48. package/dist/app/defaultTheme.d.ts +1 -1
  49. package/dist/app/index.d.ts +4 -0
  50. package/dist/app/index.js +4 -0
  51. package/dist/hooks/index.d.ts +2 -0
  52. package/dist/hooks/index.js +2 -0
  53. package/dist/index.d.ts +4 -16
  54. package/dist/index.js +4 -17
  55. package/dist/styles.css +3 -3
  56. package/dist/tanstackFunctions/cookie/index.d.ts +3 -0
  57. package/dist/tanstackFunctions/cookie/index.js +4 -0
  58. package/dist/tanstackFunctions/index.d.ts +2 -0
  59. package/dist/tanstackFunctions/index.js +2 -0
  60. package/dist/tanstackFunctions/s3/getS3Client.d.ts +2 -0
  61. package/dist/tanstackFunctions/s3/getS3Client.js +18 -0
  62. package/dist/tanstackFunctions/s3/getSignedFileUrlFn.d.ts +4 -0
  63. package/dist/tanstackFunctions/s3/getSignedFileUrlFn.js +21 -0
  64. package/dist/tanstackFunctions/s3/index.d.ts +2 -0
  65. package/dist/tanstackFunctions/s3/index.js +2 -0
  66. package/dist/tanstackFunctions/s3/uploadRequest.d.ts +3 -0
  67. package/dist/tanstackFunctions/s3/uploadRequest.js +21 -0
  68. package/dist/ui/AnimatedChevron.d.ts +2 -2
  69. package/dist/ui/AnimatedChevron.js +7 -25
  70. package/dist/ui/JsonInput.js +1 -1
  71. package/dist/ui/editor/Toolbar.js +4 -22
  72. package/dist/ui/error/index.d.ts +4 -4
  73. package/dist/ui/error/index.js +5 -4
  74. package/dist/ui/form/buttons/CancelButton.js +4 -26
  75. package/dist/ui/form/buttons/SubmitButton.js +4 -29
  76. package/dist/ui/form/fields/TextPassowrdField.js +4 -26
  77. package/dist/ui/form/index.d.ts +2 -2
  78. package/dist/ui/form/index.js +3 -3
  79. package/dist/ui/hoverPaper/index.d.ts +2 -2
  80. package/dist/ui/hoverPaper/index.js +3 -2
  81. package/dist/ui/scrollArea/ScrollArea.d.ts +1 -1
  82. package/dist/ui/scrollArea/ScrollAreaButton.d.ts +1 -1
  83. package/dist/ui/scrollArea/ScrollAreaButton.js +7 -28
  84. package/package.json +40 -28
  85. package/dist/ai/ui/conversation/ConversationContext.d.ts +0 -7
  86. package/dist/ai/ui/conversation/ConversationContext.js +0 -8
  87. package/dist/ai/ui/conversation/ConversationProvider.d.ts +0 -2
  88. package/dist/ai/ui/conversation/ConversationProvider.js +0 -14
  89. package/dist/ai/ui/conversation/File.d.ts +0 -4
  90. package/dist/ai/ui/conversation/FileIcon.js +0 -225
  91. package/dist/ai/ui/conversation/Message.d.ts +0 -4
  92. package/dist/ai/ui/conversation/Message.js +0 -25
  93. package/dist/ai/ui/conversation/Root.d.ts +0 -2
  94. package/dist/ai/ui/conversation/Root.js +0 -26
  95. package/dist/ai/ui/conversation/index.d.ts +0 -13
  96. package/dist/ai/ui/conversation/types.d.ts +0 -7
  97. package/dist/ai/ui/conversation/types.js +0 -0
  98. package/dist/ai/ui/conversation/useChatMessage.d.ts +0 -2
  99. package/dist/ai/ui/conversation/useChatMessage.js +0 -12
  100. package/dist/ai/ui/promptInput/File.js +0 -117
  101. package/dist/ai/ui/promptInput/FileIcon.js +0 -225
  102. package/dist/ai/ui/promptInput/PromptInputContext.d.ts +0 -12
  103. package/dist/ai/ui/promptInput/PromptInputContext.js +0 -8
  104. package/dist/ai/ui/promptInput/PromptInputProvider.d.ts +0 -2
  105. package/dist/ai/ui/promptInput/PromptInputProvider.js +0 -50
  106. package/dist/ai/ui/promptInput/Root.d.ts +0 -3
  107. package/dist/ai/ui/promptInput/Root.js +0 -17
  108. package/dist/ai/ui/promptInput/Submit.js +0 -40
  109. package/dist/ai/ui/promptInput/types.d.ts +0 -11
  110. package/dist/ai/ui/promptInput/types.js +0 -0
  111. package/dist/surreal/connection.d.ts +0 -9
  112. package/dist/surreal/connection.js +0 -49
  113. package/dist/surreal/deafaultCrud.d.ts +0 -2
  114. package/dist/surreal/deafaultCrud.js +0 -18
  115. package/dist/surreal/deserialize.d.ts +0 -17
  116. package/dist/surreal/deserialize.js +0 -46
  117. package/dist/surreal/encryption.d.ts +0 -6
  118. package/dist/surreal/encryption.js +0 -30
  119. package/dist/ui/editor/styles.module.js +0 -7
  120. package/dist/ui/editor/styles_module.css +0 -16
  121. /package/dist/ai/ui/{conversation → chat}/Empty.d.ts +0 -0
  122. /package/dist/ai/ui/{conversation → chat}/FileIcon.d.ts +0 -0
  123. /package/dist/ai/ui/{conversation → chat}/Loader.d.ts +0 -0
  124. /package/dist/ai/ui/{promptInput → chat/chatInput}/File.d.ts +0 -0
  125. /package/dist/ai/ui/{promptInput → chat/chatInput}/FileIcon.d.ts +0 -0
  126. /package/dist/ai/ui/{promptInput → chat/chatInput}/Footer.d.ts +0 -0
  127. /package/dist/ai/ui/{promptInput → chat/chatInput}/Submit.d.ts +0 -0
  128. /package/dist/ai/ui/{promptInput → chat/chatInput}/Textarea.d.ts +0 -0
  129. /package/dist/{functions → tanstackFunctions/cookie}/getCookie.d.ts +0 -0
  130. /package/dist/{functions → tanstackFunctions/cookie}/getCookie.js +0 -0
  131. /package/dist/{functions → tanstackFunctions/cookie}/setCookie.d.ts +0 -0
  132. /package/dist/{functions → tanstackFunctions/cookie}/setCookie.js +0 -0
  133. /package/dist/{functions → tanstackFunctions/cookie}/setCookies.d.ts +0 -0
  134. /package/dist/{functions → tanstackFunctions/cookie}/setCookies.js +0 -0
@@ -1,6 +0,0 @@
1
- type EncryptionInstance = {
2
- encrypt(text: string): string;
3
- decrypt(encryptedText: string): string;
4
- };
5
- export declare const encryptionFn: (secretHash: string) => EncryptionInstance;
6
- export {};
@@ -1,30 +0,0 @@
1
- import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
2
- import { createServerOnlyFn } from "@tanstack/react-start";
3
- const encryptionFn = createServerOnlyFn((secretHash)=>{
4
- class Encryption {
5
- key;
6
- constructor(secretHash){
7
- this.key = Buffer.from(secretHash, 'hex');
8
- }
9
- encrypt(text) {
10
- const algorithm = 'aes-256-cbc';
11
- const iv = randomBytes(16);
12
- const cipher = createCipheriv(algorithm, this.key, iv);
13
- let encrypted = cipher.update(text, 'utf8', 'hex');
14
- encrypted += cipher.final('hex');
15
- return `${iv.toString('hex')}:${encrypted}`;
16
- }
17
- decrypt(encryptedText) {
18
- const algorithm = 'aes-256-cbc';
19
- const parts = encryptedText.split(':');
20
- const iv = Buffer.from(parts[0], 'hex');
21
- const encrypted = parts[1];
22
- const decipher = createDecipheriv(algorithm, this.key, iv);
23
- let decrypted = decipher.update(encrypted, 'hex', 'utf8');
24
- decrypted += decipher.final('utf8');
25
- return decrypted;
26
- }
27
- }
28
- return new Encryption(secretHash);
29
- });
30
- export { encryptionFn };
@@ -1,7 +0,0 @@
1
- import "./styles_module.css";
2
- const styles_module = {
3
- root: "root-OYYJgs",
4
- content: "content-b5nnhz",
5
- toolbar: "toolbar-RksEGD"
6
- };
7
- export { styles_module as default };
@@ -1,16 +0,0 @@
1
- .root-OYYJgs {
2
- --editor-border-color: light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
3
- border: rem(1px) solid var(--editor-border-color);
4
- border-radius: var(--mantine-radius-md);
5
- }
6
-
7
- .content-b5nnhz {
8
- border-radius: var(--mantine-radius-md);
9
- }
10
-
11
- .toolbar-RksEGD {
12
- border-color: var(--editor-border-color);
13
- border-top-left-radius: var(--mantine-radius-md);
14
- border-top-right-radius: var(--mantine-radius-md);
15
- }
16
-
File without changes
File without changes
File without changes