@valbuild/shared 0.48.1 → 0.50.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/README.md CHANGED
@@ -19,5 +19,5 @@ See the rules to what does NOT belong in this package below.
19
19
 
20
20
  ## What **DOES NOT** go into this package?
21
21
 
22
- - Any function / type that depends on a UI framework, even transitively (React, Lexical, NextJS, Vite...).
22
+ - Any function / type that depends on a UI framework, even transitively (React, ProseMirror, NextJS, Vite...).
23
23
  - Any function that cannot execute both on server-side and client-side.
@@ -0,0 +1,5 @@
1
+ import { ModuleId } from "@valbuild/core";
2
+ export interface IValStore {
3
+ updateAll(): Promise<void>;
4
+ update(moduleIds: ModuleId[]): Promise<void>;
5
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./richtext/conversion/index.js";
2
2
  export * from "./mimeType/index.js";
3
3
  export * from "./server/types.js";
4
+ export * from "./IValStore.js";
@@ -0,0 +1,4 @@
1
+ export declare const EXT_TO_MIME_TYPES: Record<string, string>;
2
+ export declare const MIME_TYPES_TO_EXT: {
3
+ [k: string]: string;
4
+ };
@@ -1,4 +1,3 @@
1
1
  export declare function getMimeType(base64Url: string): string | undefined;
2
2
  export declare function mimeTypeToFileExt(mimeType: string): string;
3
3
  export declare function filenameToMimeType(filename: string): string | undefined;
4
- export declare function imageTypeToMimeType(imageType: string): string;
@@ -1 +1,2 @@
1
- export * from "./imageMimeType.js";
1
+ export * from "./convertMimeType.js";
2
+ export * from "./all.js";
@@ -1,3 +1,4 @@
1
- export * from "./lexicalToRichTextSource.js";
2
- export * from "./richTextSourceToLexical.js";
1
+ export * from "./remirrorToRichTextSource.js";
3
2
  export * from "./parseRichTextSource.js";
3
+ export * from "./remirrorTypes.js";
4
+ export * from "./richTextToRemirror.js";
@@ -0,0 +1,5 @@
1
+ import { RichTextSource, AnyRichTextOptions } from "@valbuild/core";
2
+ import { RemirrorJSON } from "./remirrorTypes.js";
3
+ export declare function remirrorToRichTextSource(node: RemirrorJSON): RichTextSource<AnyRichTextOptions> & {
4
+ files: Record<string, string>;
5
+ };