0.1.4-beta.69.81 • Published 4 days ago

lexical-svelte-runes v0.1.4-beta.69.81

Weekly downloads
-
License
-
Repository
-
Last release
4 days ago

check dev branch please

currently we need to sync with this forked branch or not...

fork

shitty readme i know :(

QuickStart

pnpm install lexical-svelte-runes@latest
<script lang="ts">
	import '@unocss/reset/tailwind-compat.css';
	//import 'uno.css';
	import '#uno.css';  // unocss, u can add this repo to tailwindcss so u dont need to import from here
	import Editor from './Editor.svelte';
	import './index.css'; // react playground css
	import LexicalComposer from './lib/LexicalComposer.svelte';

	import SettingsContext from './playground/context/SettingsContext.svelte';
	import SharedAutocompleteContext from './playground/context/SharedAutocompleteContext.svelte';
	import { createHistoryContext } from './playground/context/SharedHistoryContext';
	import type { Settings } from './playground/appSettings';

	let { ...props }: Settings = $props();

	createHistoryContext();
</script>

<SettingsContext settings={props}>
	<SharedAutocompleteContext>
		<LexicalComposer>
			<div class="editor-shell w-full">
				<Editor />
			</div>
		</LexicalComposer>
	</SharedAutocompleteContext>
</SettingsContext>

Goal

  • migrate to melt-ui/shadcn for components
  • use external library instead creating our own
    • image resize library
    • colorPicker components
    • ...
  • use feature based folder architecture instead of plugin folder and nodes folder

    • /dialog
        node.svelte
        plugin.svelte.ts

Contribute How-to

  1. since we use runes to polyfill react hook, it is super easy to port an component, simply copy the tsx into the right folder, then run autoFix.js to clean the import (removing $ by renaming imports) then fix the code to make it svelte-ish ! remember the output of useState const [fn,setFn]=useState() are both function just like solidjs

  2. you can check other components in the repo to see how it works

TODO

you can refer to official react playground to see what is missing here

ideally we should catch up the a certain commit and then fix commit by commit but it is fine to just refer to latest lexical-react commits and port over code-diffs

0.1.4-beta.69.1

4 days ago

0.1.4-beta.69.3

4 days ago

0.1.4-beta.69.5

4 days ago

0.1.4-beta.69.6

4 days ago

0.1.4-beta.69.8

4 days ago

0.1.4-beta.69

4 days ago

0.1.4-beta.68

4 days ago

0.1.4-beta.67

11 days ago

0.1.4-beta.66

11 days ago

0.1.4-beta.65

16 days ago

0.1.4-beta.64

16 days ago

0.1.4-beta.63

19 days ago

0.1.4-beta.62

19 days ago

0.1.4-beta.61

19 days ago

0.1.4-beta.59

1 month ago

0.1.4-beta.58

1 month ago

0.1.4-beta.60

1 month ago

0.1.4-beta.48

1 month ago

0.1.4-beta.52

1 month ago

0.1.4-beta.51

1 month ago

0.1.4-beta.50

1 month ago

0.1.4-beta.56

1 month ago

0.1.4-beta.55

1 month ago

0.1.4-beta.54

1 month ago

0.1.4-beta.53

1 month ago

0.1.4-beta.57

1 month ago

0.1.4-beta.53.1

1 month ago

0.1.4-beta.55.1

1 month ago

0.1.4-beta.49

1 month ago

0.1.4-beta.47

1 month ago

0.1.4-beta.46

1 month ago

0.1.4-beta.45

2 months ago

0.1.4-beta.44

2 months ago

0.1.4-beta.43

2 months ago

0.1.4-beta.42

2 months ago

0.1.4-beta.41

2 months ago

0.1.4-beta.38

2 months ago

0.1.4-beta.37

2 months ago

0.1.4-beta.36

2 months ago

0.1.4-beta.39

2 months ago

0.1.4-beta.40

2 months ago

0.1.4-beta.34

2 months ago

0.1.4-beta.32

2 months ago

0.1.4-beta.31

2 months ago

0.1.4-beta.30

2 months ago

0.1.4-beta.29

2 months ago

0.1.4-beta.27

3 months ago

0.1.4-beta.26

3 months ago

0.1.4-beta.28

3 months ago

0.1.4-beta.23

4 months ago

0.1.4-beta.24

4 months ago

0.1.4-beta.16

4 months ago

0.1.4-beta.15

4 months ago

0.1.4-beta.19

4 months ago

0.1.4-beta.18

4 months ago

0.1.4-beta.17

4 months ago

0.1.4-beta.22

4 months ago

0.1.4-beta.21

4 months ago

0.1.4-beta.20

4 months ago

0.1.4-beta.12

4 months ago

0.1.4-beta.11

4 months ago

0.1.4-beta.10

4 months ago

0.1.4-beta.14

4 months ago

0.1.4-beta.13

4 months ago

0.1.4-beta.9

4 months ago

0.1.4-beta.7

4 months ago

0.1.4-beta.2

4 months ago

0.1.4-beta.3

4 months ago

0.1.4-beta.4

4 months ago

0.1.4-beta.5

4 months ago

0.1.4-beta.1

4 months ago

0.1.2-beta.6

4 months ago

0.1.2-beta.7

4 months ago

0.1.3-beta.0

4 months ago

0.1.2-beta.8

4 months ago

0.1.2-beta.2

5 months ago

0.1.2-beta.3

5 months ago

0.1.2-beta.1

5 months ago

0.1.2-beta.4

5 months ago

0.1.1-alpha

5 months ago

0.1.2

5 months ago

0.1.2-beta

5 months ago

0.1.3

5 months ago

0.1.1-beta

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago