@valbuild/shared 0.49.0 → 0.51.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";
@@ -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
+ };