@stll/folio-vue 0.2.0 → 0.3.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.
@@ -0,0 +1,14 @@
1
+ import { Node as PMNode } from 'prosemirror-model';
2
+ import { Layout } from '@stll/folio-core/layout-engine';
3
+ /**
4
+ * The plain text of a single rendered page (1-based), read by joining each of
5
+ * the page's layout fragments' `[pmStart, pmEnd)` document text with a
6
+ * newline. Fragments with no `pmStart`/`pmEnd` (e.g. a page-shell placeholder)
7
+ * are skipped. Returns `null` when the layout hasn't been computed yet or the
8
+ * page number is out of range.
9
+ *
10
+ * Mirrors `@stll/folio-react`'s `components/pageText.ts`; kept as a separate
11
+ * file rather than shared so `@stll/folio-vue` doesn't cross-import the React
12
+ * package.
13
+ */
14
+ export declare const getPageTextFromLayout: (layout: Layout | null, doc: PMNode, page: number) => string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/folio-vue",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Vue 3 editor for folio: a Word-document (.docx) editor for the browser, built on @stll/folio-core and ProseMirror.",
5
5
  "keywords": [
6
6
  "document-editor",