@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.
- package/dist/ListButtons-3UeVXRAK.cjs +4 -0
- package/dist/ListButtons-CDkmhg3v.js +3612 -0
- package/dist/{PageSetupDialog-DsjAfJy0.js → PageSetupDialog-Djs8aW5A.js} +1726 -851
- package/dist/PageSetupDialog-GGWMpoe-.cjs +15 -0
- package/dist/TablePropertiesDialog-B399kZgL.js +901 -0
- package/dist/TablePropertiesDialog-DYbjwevC.cjs +1 -0
- package/dist/components/DocxEditor/pagedEditorRef.d.ts +9 -4
- package/dist/components/DocxEditor/types.d.ts +23 -1
- package/dist/components/tableStylePresets.d.ts +2 -6
- package/dist/composables/useOutlineSidebar.d.ts +1 -0
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -2
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.js +1279 -1130
- package/dist/ui/folio-ui.d.ts +120 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +8 -0
- package/dist/ui.js +98 -98
- package/dist/utils/pageText.d.ts +14 -0
- package/package.json +1 -1
- package/dist/ListButtons-B498PX1d.js +0 -4256
- package/dist/ListButtons-D-zMJ7rl.cjs +0 -4
- package/dist/PageSetupDialog-CGBaBVzo.cjs +0 -15
- package/dist/TablePropertiesDialog-A-1Pm1f9.cjs +0 -1
- package/dist/TablePropertiesDialog-PyXEJC_o.js +0 -887
|
@@ -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