neuphlo-editor 0.3.0 → 0.3.2

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
@@ -39,11 +39,8 @@ import Placeholder from "@tiptap/extension-placeholder"
39
39
  - Import our minimal stylesheet in your app to activate defaults: `import 'neuphlo-editor/styles.css'` (or `@import 'neuphlo-editor/styles.css';`).
40
40
  - Next.js App Router: `app/layout.tsx` or `app/globals.css`
41
41
  - Vite/CRA: `src/main.tsx`/`src/index.tsx`
42
- - The base CSS does not add a border or background; add your own if desired.
43
-
44
- - Opt out per instance:
45
-
46
- - `<Editor styled={false} />`
42
+ - The base CSS does not add a border, background, padding, or min-height; add your own if desired.
43
+ - Top/bottom gaps are trimmed: the first and last child inside the editor have their margins collapsed to 0 so the container itself introduces no spacing. You fully control outer spacing.
47
44
 
48
45
  - Bring your own styles (Tailwind or CSS):
49
46
  - Use `className` to style the content container; use `editorContainerProps` for other DOM props (e.g., `id`, `role`). No styles are injected by the package.
@@ -77,9 +74,6 @@ Advanced: pass TipTap options directly (everything maps to TipTap’s `EditorPro
77
74
  editorProps={{ attributes: { spellcheck: 'true' } }}
78
75
  editorContainerProps={{ id: 'editor', role: 'textbox' }}
79
76
  />
80
-
81
- // Alternatively, add the class manually via props
82
- <Editor className="nph-editor" />
83
77
  ```
84
78
 
85
79
  ### Editable
@@ -0,0 +1,18 @@
1
+ import StarterKit from '@tiptap/starter-kit';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __export = (target, all) => {
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+ var Preset = [
9
+ StarterKit.configure({
10
+ bulletList: { keepMarks: true },
11
+ orderedList: { keepMarks: true },
12
+ heading: { levels: [1, 2, 3, 4] }
13
+ })
14
+ ];
15
+
16
+ export { Preset, __export };
17
+ //# sourceMappingURL=chunk-J7YMLR5T.js.map
18
+ //# sourceMappingURL=chunk-J7YMLR5T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/preset.ts"],"names":[],"mappings":";;;;;;;AAGO,IAAM,MAAA,GAAsB;AAAA,EACjC,WAAW,SAAA,CAAU;AAAA,IACnB,UAAA,EAAY,EAAE,SAAA,EAAW,IAAA,EAAK;AAAA,IAC9B,WAAA,EAAa,EAAE,SAAA,EAAW,IAAA,EAAK;AAAA,IAC/B,OAAA,EAAS,EAAE,MAAA,EAAQ,CAAC,GAAG,CAAA,EAAG,CAAA,EAAG,CAAC,CAAA;AAAE,GACjC;AACH","file":"chunk-J7YMLR5T.js","sourcesContent":["import type { Extension } from \"@tiptap/core\"\nimport StarterKit from \"@tiptap/starter-kit\"\n\nexport const Preset: Extension[] = [\n StarterKit.configure({\n bulletList: { keepMarks: true },\n orderedList: { keepMarks: true },\n heading: { levels: [1, 2, 3, 4] },\n }),\n]\n"]}
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Preset } from './chunk-XABVYDNO.js';
1
+ export { Preset } from './chunk-J7YMLR5T.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map