From 1aa7f9774fd33073f40a29e7e8576566d516063e Mon Sep 17 00:00:00 2001 From: e11sy <130844513+e11sy@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:15:31 +0300 Subject: [PATCH 1/6] improve typings and playground --- example/example.html | 402 ------------------ {example => playground}/assets/codex2x.png | Bin {example => playground}/assets/demo.css | 0 .../assets/json-preview.js | 0 index.html => playground/index.html | 10 +- src/ListTabulator/index.ts | 33 +- src/index.ts | 15 +- src/types/ItemMeta.ts | 23 +- src/types/ListParams.ts | 23 +- src/utils/normalizeData.ts | 2 + vite.config.js | 2 +- 11 files changed, 57 insertions(+), 453 deletions(-) delete mode 100644 example/example.html rename {example => playground}/assets/codex2x.png (100%) rename {example => playground}/assets/demo.css (100%) rename {example => playground}/assets/json-preview.js (100%) rename index.html => playground/index.html (96%) diff --git a/example/example.html b/example/example.html deleted file mode 100644 index 6f6f363f..00000000 --- a/example/example.html +++ /dev/null @@ -1,402 +0,0 @@ - - - - - Editor.js 🤩🧦🤨 example - - - - - - -
-
- - - -
-
-
- -
- editor.save() -
- -
- Readonly: - - Off - -
- toggle -
-
-
-
-

-
-      
-    
-
- - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/example/assets/codex2x.png b/playground/assets/codex2x.png similarity index 100% rename from example/assets/codex2x.png rename to playground/assets/codex2x.png diff --git a/example/assets/demo.css b/playground/assets/demo.css similarity index 100% rename from example/assets/demo.css rename to playground/assets/demo.css diff --git a/example/assets/json-preview.js b/playground/assets/json-preview.js similarity index 100% rename from example/assets/json-preview.js rename to playground/assets/json-preview.js diff --git a/index.html b/playground/index.html similarity index 96% rename from index.html rename to playground/index.html index 3d949a15..c33e7015 100644 --- a/index.html +++ b/playground/index.html @@ -4,8 +4,8 @@ Editor.js 🤩🧦🤨 example - - + + @@ -62,7 +62,7 @@