@brett_lamy/docstream-editor 0.3.4 → 0.3.5

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
@@ -158,6 +158,14 @@ Exports:
158
158
  - `SourceFileEditor`
159
159
  - `SourceFileEditorProps`
160
160
 
161
+ Applications that only need the core editor can import the narrow entrypoint. It avoids loading
162
+ the source-file and React playground integrations:
163
+
164
+ ```tsx
165
+ import { GitbookEditor } from "@brett_lamy/docstream-editor/editor"
166
+ import { astToTiptap } from "@brett_lamy/docstream-editor/convert"
167
+ ```
168
+
161
169
  ## Styling and Theming
162
170
 
163
171
  The editor CSS is designed to sit beside `@brett_lamy/docstream/styles.css` and inherit the same application theme tokens. In a shadcn-style app, define your theme variables globally and import both CSS entrypoints once.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brett_lamy/docstream-editor",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "TipTap editor for Docstream GitBook-style markdown documents.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,6 +21,14 @@
21
21
  "types": "./src/index.ts",
22
22
  "import": "./src/index.ts"
23
23
  },
24
+ "./editor": {
25
+ "types": "./src/editor/Editor.tsx",
26
+ "import": "./src/editor/Editor.tsx"
27
+ },
28
+ "./convert": {
29
+ "types": "./src/editor/convert.ts",
30
+ "import": "./src/editor/convert.ts"
31
+ },
24
32
  "./styles.css": "./src/styles.css"
25
33
  },
26
34
  "dependencies": {
package/src/styles.css CHANGED
@@ -538,6 +538,30 @@
538
538
  }
539
539
  .gb-code pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
540
540
  .gb-code pre code .hljs-comment { font-style: italic; }
541
+ .gb-code .hljs-keyword,
542
+ .gb-code .hljs-selector-tag,
543
+ .gb-code .hljs-built_in,
544
+ .gb-code .hljs-type,
545
+ .gb-code .hljs-tag,
546
+ .gb-code .hljs-name { color: #c792ea; }
547
+ .gb-code .hljs-string,
548
+ .gb-code .hljs-attr,
549
+ .gb-code .hljs-symbol,
550
+ .gb-code .hljs-bullet { color: #a5d6a7; }
551
+ .gb-code .hljs-title,
552
+ .gb-code .hljs-section,
553
+ .gb-code .hljs-function .hljs-title { color: #82aaff; }
554
+ .gb-code .hljs-number,
555
+ .gb-code .hljs-literal,
556
+ .gb-code .hljs-variable,
557
+ .gb-code .hljs-template-variable { color: #f78c6c; }
558
+ .gb-code .hljs-comment,
559
+ .gb-code .hljs-quote,
560
+ .gb-code .hljs-meta { color: #777784; }
561
+ .gb-code .hljs-operator,
562
+ .gb-code .hljs-punctuation { color: #89ddff; }
563
+ .gb-code .hljs-deletion { color: #ff6b6b; }
564
+ .gb-code .hljs-addition { color: #69db7c; }
541
565
 
542
566
  /* ── Updates / changelog (mirrors .docs-updates) ────────── */
543
567
  .gb-updates { margin: 0.85em 0; border-top: 1px solid var(--gb-border); }