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

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.
@@ -1,6 +1,6 @@
1
1
  import { useComputedColorScheme } from "@mantine/core";
2
2
  import { useEffect } from "react";
3
- import { setCookies } from "../functions/index.js";
3
+ import { setCookies } from "../functions/setCookies.js";
4
4
  const AppDefaults = ({ saveColorScheme })=>{
5
5
  const colorScheme = useComputedColorScheme();
6
6
  useEffect(()=>{
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ColorSchemeScript, MantineProvider } from "@mantine/core";
3
3
  import { HeadContent, Scripts } from "@tanstack/react-router";
4
- import { getCookie } from "../functions/index.js";
4
+ import { getCookie } from "../functions/getCookie.js";
5
5
  import { AppDefaults } from "./AppDefaults.js";
6
6
  import { cookieColorSchemeManager } from "./cookieColorSchemeManager.js";
7
7
  import { defaultTheme } from "./defaultTheme.js";
@@ -1,6 +1,6 @@
1
1
  import { isMantineColorScheme } from "@mantine/core";
2
2
  import { atom } from "nanostores";
3
- import { setCookie } from "../functions/index.js";
3
+ import { setCookie } from "../functions/setCookie.js";
4
4
  const $colorScheme = atom();
5
5
  let unsubscribeSystemTheme;
6
6
  const cookieColorSchemeManager = ({ key = 'colorScheme' } = {})=>({
package/dist/index.d.ts CHANGED
@@ -2,8 +2,16 @@ export { Conversation, type ConversationProps, useChatMessage, } from './ai/ui/c
2
2
  export { type Accept, PromptInput, type PromptInputProps, } from './ai/ui/promptInput';
3
3
  export { convertFileUIPartBlobToDataURL } from './ai/utils/convertFileUIPartBlobToDataURL';
4
4
  export { parseAiMessagePart } from './ai/utils/parseAiMessagePart';
5
- export * from './app';
6
- export * from './functions';
7
- export * from './hooks';
8
- export * from './surreal';
5
+ export { DefaultApp } from './app/DefaultApp';
6
+ export { defaultRequestMiddlewares } from './app/defaultRequestMiddlewares';
7
+ export { defaultTheme } from './app/defaultTheme';
8
+ export { getCookie } from './functions/getCookie';
9
+ export { setCookie } from './functions/setCookie';
10
+ export { setCookies } from './functions/setCookies';
11
+ export { useMutation } from './hooks/useMutation';
12
+ export { useMutationWithInvalidate } from './hooks/useMutationWithInvalidate';
13
+ export { getDB } from './surreal/connection';
14
+ export { surrealDeleteFn, surrealUnsubscribeFn } from './surreal/deafaultCrud';
15
+ export { deserialize } from './surreal/deserialize';
16
+ export { encryptionFn } from './surreal/encryption';
9
17
  export * from './ui';
package/dist/index.js CHANGED
@@ -2,9 +2,17 @@ import { Conversation, useChatMessage } from "./ai/ui/conversation/index.js";
2
2
  import { PromptInput } from "./ai/ui/promptInput/index.js";
3
3
  import { convertFileUIPartBlobToDataURL } from "./ai/utils/convertFileUIPartBlobToDataURL.js";
4
4
  import { parseAiMessagePart } from "./ai/utils/parseAiMessagePart.js";
5
- export * from "./app/index.js";
6
- export * from "./functions/index.js";
7
- export * from "./hooks/index.js";
8
- export * from "./surreal/index.js";
5
+ import { DefaultApp } from "./app/DefaultApp.js";
6
+ import { defaultRequestMiddlewares } from "./app/defaultRequestMiddlewares.js";
7
+ import { defaultTheme } from "./app/defaultTheme.js";
8
+ import { getCookie } from "./functions/getCookie.js";
9
+ import { setCookie } from "./functions/setCookie.js";
10
+ import { setCookies } from "./functions/setCookies.js";
11
+ import { useMutation } from "./hooks/useMutation.js";
12
+ import { useMutationWithInvalidate } from "./hooks/useMutationWithInvalidate.js";
13
+ import { getDB } from "./surreal/connection.js";
14
+ import { surrealDeleteFn, surrealUnsubscribeFn } from "./surreal/deafaultCrud.js";
15
+ import { deserialize } from "./surreal/deserialize.js";
16
+ import { encryptionFn } from "./surreal/encryption.js";
9
17
  export * from "./ui/index.js";
10
- export { Conversation, PromptInput, convertFileUIPartBlobToDataURL, parseAiMessagePart, useChatMessage };
18
+ export { Conversation, DefaultApp, PromptInput, convertFileUIPartBlobToDataURL, defaultRequestMiddlewares, defaultTheme, deserialize, encryptionFn, getCookie, getDB, parseAiMessagePart, setCookie, setCookies, surrealDeleteFn, surrealUnsubscribeFn, useChatMessage, useMutation, useMutationWithInvalidate };
@@ -5,7 +5,7 @@ import { linter } from "@codemirror/lint";
5
5
  import { keymap } from "@codemirror/view";
6
6
  import { vscodeDark, vscodeLight } from "@uiw/codemirror-theme-vscode";
7
7
  import react_codemirror from "@uiw/react-codemirror";
8
- import { getCookie } from "../functions/index.js";
8
+ import { getCookie } from "../functions/getCookie.js";
9
9
  const formatJson = (view)=>{
10
10
  try {
11
11
  const text = view.state.doc.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolder/kit",
3
- "version": "3.0.0-alpha.3",
3
+ "version": "3.0.0-alpha.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,3 +0,0 @@
1
- export * from './DefaultApp';
2
- export * from './defaultRequestMiddlewares';
3
- export * from './defaultTheme';
package/dist/app/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from "./DefaultApp.js";
2
- export * from "./defaultRequestMiddlewares.js";
3
- export * from "./defaultTheme.js";
@@ -1,3 +0,0 @@
1
- export * from './getCookie';
2
- export * from './setCookie';
3
- export * from './setCookies';
@@ -1,3 +0,0 @@
1
- export * from "./getCookie.js";
2
- export * from "./setCookie.js";
3
- export * from "./setCookies.js";
@@ -1 +0,0 @@
1
- export * from './cookies';
@@ -1 +0,0 @@
1
- export * from "./cookies/index.js";
@@ -1,2 +0,0 @@
1
- export * from './useMutation';
2
- export * from './useMutationWithInvalidate';
@@ -1,2 +0,0 @@
1
- export * from "./useMutation.js";
2
- export * from "./useMutationWithInvalidate.js";
@@ -1,4 +0,0 @@
1
- export { getDB } from './connection';
2
- export * from './deafaultCrud';
3
- export { deserialize } from './deserialize';
4
- export { encryptionFn } from './encryption';
@@ -1,5 +0,0 @@
1
- import { getDB } from "./connection.js";
2
- import { deserialize } from "./deserialize.js";
3
- import { encryptionFn } from "./encryption.js";
4
- export * from "./deafaultCrud.js";
5
- export { deserialize, encryptionFn, getDB };