@univer-cli/headless-univer 1.4.0 → 1.5.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 +5 -1
- package/README.zh-CN.md +7 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +1 -1
- package/package.json +63 -62
package/README.md
CHANGED
|
@@ -53,8 +53,12 @@ Each factory call returns a new exclusive Univer instance. Its lifecycle owner m
|
|
|
53
53
|
|
|
54
54
|
## Pro license
|
|
55
55
|
|
|
56
|
-
The composition registers Pro plugins
|
|
56
|
+
The composition registers Pro plugins. Their available operations and limits follow the Univer Pro SDK's free tier and license rules. With Univer Pro 1.5.0, an empty `license` supports free editing capabilities, including Board chart insertion. Supply a valid license for capabilities or limits outside the free tier; applications should handle rejected operations according to the installed SDK's rules.
|
|
57
57
|
|
|
58
58
|
## Responsibility boundaries
|
|
59
59
|
|
|
60
60
|
The package is responsible only for standard Univer composition. It does not load Snapshot or UnitData, capture mutations, or manage revisions, OT, commits, worker pools, daemons, authentication, or server transport. Applications that need a different plugin combination can implement their own `HeadlessUniverFactory` without forking this package.
|
|
61
|
+
|
|
62
|
+
## Board model analysis
|
|
63
|
+
|
|
64
|
+
`createHeadlessBoardLayoutRuntime({ createUniver })` implements `UniverBoardModelLayoutRuntime` for `unit-layout-lint`. Supply a standard or custom `HeadlessUniverFactory`; each capture loads detached snapshots, calls the Board model Facade, and disposes its exclusive instances in `finally`. The adapter needs no browser and has no `close()` method. It does not establish final font metrics or rendered automatic routes.
|
package/README.zh-CN.md
CHANGED
|
@@ -56,13 +56,16 @@ Runtime。
|
|
|
56
56
|
|
|
57
57
|
## Pro license
|
|
58
58
|
|
|
59
|
-
该 composition 注册 Pro plugins
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Unit 数据,以及非 Pro 能力,在没有 license 时仍然可用。
|
|
59
|
+
该 composition 注册 Pro plugins,可用操作与限制遵循 Univer Pro SDK 的免费能力和 license 规则。
|
|
60
|
+
Univer Pro 1.5.0 中,空 `license` 支持免费编辑能力,包括 Board chart 插入。超出免费能力或限制时,
|
|
61
|
+
应提供有效 license;application 需按所安装 SDK 的规则处理被拒绝的操作。
|
|
63
62
|
|
|
64
63
|
## 职责边界
|
|
65
64
|
|
|
66
65
|
Package 只负责标准 Univer composition,不加载 Snapshot 或 UnitData,不捕获 mutation,也不管理 revision、OT、
|
|
67
66
|
commit、worker pool、daemon、认证或 server transport。需要不同插件组合时,application 可以实现自己的
|
|
68
67
|
`HeadlessUniverFactory`,无需 fork 本 package。
|
|
68
|
+
|
|
69
|
+
## Board model 分析
|
|
70
|
+
|
|
71
|
+
`createHeadlessBoardLayoutRuntime({ createUniver })` 为 `unit-layout-lint` 实现 `UniverBoardModelLayoutRuntime`。传入标准或自定义 `HeadlessUniverFactory`;每次 capture 加载独立 snapshot,调用 Board model Facade,并在 `finally` 中释放独占实例。无需浏览器,也没有 `close()` 方法;不证明最终字体度量或自动渲染路径。
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,13 @@ import "@univerjs-pro/sheets-slicer/facade";
|
|
|
47
47
|
import "@univerjs-pro/sheets-sparkline/facade";
|
|
48
48
|
import "@univerjs-pro/slides-chart/facade";
|
|
49
49
|
import "@univerjs-pro/slides-table/facade";
|
|
50
|
+
import { UniverBoardModelLayoutRuntime } from "@univer-cli/univer-render-runtime";
|
|
51
|
+
//#region src/board-layout.d.ts
|
|
52
|
+
/** Model-only layout evidence from detached snapshots. Each capture owns and disposes its instances. */
|
|
53
|
+
declare function createHeadlessBoardLayoutRuntime(options: {
|
|
54
|
+
readonly createUniver: HeadlessUniverFactory;
|
|
55
|
+
}): UniverBoardModelLayoutRuntime;
|
|
56
|
+
//#endregion
|
|
50
57
|
//#region src/index.d.ts
|
|
51
58
|
interface HeadlessUniverFactoryContext {
|
|
52
59
|
readonly unitId: string;
|
|
@@ -61,4 +68,4 @@ type HeadlessUniverFactory = (context: HeadlessUniverFactoryContext) => Promise<
|
|
|
61
68
|
declare function createStandardHeadlessUniverFacade(univer: Univer): FUniver;
|
|
62
69
|
declare function createStandardHeadlessUniverFactory(options: StandardHeadlessUniverFactoryOptions): HeadlessUniverFactory;
|
|
63
70
|
//#endregion
|
|
64
|
-
export { HeadlessUniverFactory, HeadlessUniverFactoryContext, StandardHeadlessUniverFactoryOptions, createStandardHeadlessUniverFacade, createStandardHeadlessUniverFactory };
|
|
71
|
+
export { HeadlessUniverFactory, HeadlessUniverFactoryContext, StandardHeadlessUniverFactoryOptions, createHeadlessBoardLayoutRuntime, createStandardHeadlessUniverFacade, createStandardHeadlessUniverFactory };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x23a537,_0x47eeba){const _0x17e293=_0x7471,_0x1f2aad=_0x23a537();while(!![]){try{const _0x17ed39=-parseInt(_0x17e293(0x180))/0x1*(-parseInt(_0x17e293(0x17f))/0x2)+-parseInt(_0x17e293(0x17c))/0x3+-parseInt(_0x17e293(0x17d))/0x4+parseInt(_0x17e293(0x179))/0x5+parseInt(_0x17e293(0x17b))/0x6+parseInt(_0x17e293(0x186))/0x7+-parseInt(_0x17e293(0x187))/0x8*(parseInt(_0x17e293(0x17a))/0x9);if(_0x17ed39===_0x47eeba)break;else _0x1f2aad['push'](_0x1f2aad['shift']());}catch(_0x1874f0){_0x1f2aad['push'](_0x1f2aad['shift']());}}}(_0x35e6,0xd9b29));import{UniverBasesPlugin as _0x5301fd}from'@univerjs-pro/bases';import{UniverBasesThreadCommentPlugin as _0x413b32}from'@univerjs-pro/bases-thread-comment';import _0x412f3c from'@univerjs-pro/bases/locale/en-US';import{UniverBoardsPlugin as _0x48e628}from'@univerjs-pro/boards';import{UniverBoardsChartPlugin as _0xa83457}from'@univerjs-pro/boards-chart';import{UniverBoardsMindPlugin as _0x3743bd}from'@univerjs-pro/boards-mind';import{UniverBoardsTablePlugin as _0x4d0d78}from'@univerjs-pro/boards-table';import{UniverBoardsThreadCommentPlugin as _0x3910e7}from'@univerjs-pro/boards-thread-comment';import{UniverChartEmbedPlugin as _0x47ebf7}from'@univerjs-pro/chart-embed';import{UniverDocsCalloutPlugin as _0x42ca6f}from'@univerjs-pro/docs-callout';import{UniverDocsChartPlugin as _0x2aeff6}from'@univerjs-pro/docs-chart';import{UniverDocsCodePlugin as _0x29ed50}from'@univerjs-pro/docs-code';import{UniverDocsColumnPlugin as _0x4b3970}from'@univerjs-pro/docs-column';import{UniverDocsLatexPlugin as _0x63f67d}from'@univerjs-pro/docs-latex';import{UniverDocsListPlugin as _0x312ef5}from'@univerjs-pro/docs-list';import{UniverDocsQuotePlugin as _0x1b45c3}from'@univerjs-pro/docs-quote';import{UniverDocsShapePlugin as _0x310cc9}from'@univerjs-pro/docs-shape';import{UniverDocsTablePlugin as _0x2dd1a6}from'@univerjs-pro/docs-table';import{UniverEmbedPlugin as _0x5d6cdb}from'@univerjs-pro/embed';import{UniverRustFormulaEnginePlugin as _0x4adc3c}from'@univerjs-pro/engine-formula-rust';import{UniverInkPlugin as _0x1dcb23}from'@univerjs-pro/ink';import{UniverLicensePlugin as _0x14e735}from'@univerjs-pro/license';import{UniverPdfsPlugin as _0x557074}from'@univerjs-pro/pdfs';import{UniverRangePreprocessPlugin as _0x1c025b}from'@univerjs-pro/range-preprocess';import{UniverShapeEditorPlugin as _0x295c7b}from'@univerjs-pro/shape-editor';import{UniverSheetsChartPlugin as _0x21c052}from'@univerjs-pro/sheets-chart';import _0x2c0820 from'@univerjs-pro/sheets-chart/locale/en-US';import{UniverSheetsOutlinePlugin as _0x5be31a}from'@univerjs-pro/sheets-outline';import{UniverSheetsPivotTablePlugin as _0x429653}from'@univerjs-pro/sheets-pivot';import _0x10f637 from'@univerjs-pro/sheets-pivot/locale/en-US';import{UniverSheetsShapePlugin as _0x35b619}from'@univerjs-pro/sheets-shape';import{UniverSheetsSlicerPlugin as _0x5dba82}from'@univerjs-pro/sheets-slicer';import{UniverSheetSparklinePlugin as _0x1bda8f}from'@univerjs-pro/sheets-sparkline';import{UniverSlidesPlugin as _0x213e64}from'@univerjs-pro/slides';import{UniverSlidesChartPlugin as _0x38597d}from'@univerjs-pro/slides-chart';import{UniverSlidesTablePlugin as _0x5f4bd1}from'@univerjs-pro/slides-table';import{UniverSlidesThreadCommentPlugin as _0x1fcd34}from'@univerjs-pro/slides-thread-comment';import{LocaleType as _0x3e01c7,Univer as _0x3ff848,mergeLocales as _0x98a200}from'@univerjs/core';import{FUniver as _0x463e97}from'@univerjs/core/facade';import{UniverDataValidationPlugin as _0x50d898}from'@univerjs/data-validation';import _0x262092 from'@univerjs/data-validation/locale/en-US';function _0x35e6(){const _0x57e23d=['3703840DpXwFy','2808YtyQGX','1206090JHRfTW','333NoLuDe','722712WTfxUz','3530148bRoEmQ','1830436cnkkCD','license','2aMzDLm','1648211CHRtNr','embedPluginConfig','EN_US','registerPlugin','dispose','NO_CALCULATION'];_0x35e6=function(){return _0x57e23d;};return _0x35e6();}import{UniverDocsPlugin as _0xb7d7bb}from'@univerjs/docs';import{UniverDocsDrawingPlugin as _0xdde019}from'@univerjs/docs-drawing';import{UniverDocsHyperLinkPlugin as _0x39f3e5}from'@univerjs/docs-hyper-link';import{UniverDocsThreadCommentPlugin as _0x19b5b5}from'@univerjs/docs-thread-comment';function _0x7471(_0x10d225,_0x5f5caa){_0x10d225=_0x10d225-0x179;const _0x35e6c9=_0x35e6();let _0x747104=_0x35e6c9[_0x10d225];return _0x747104;}import{UniverDrawingPlugin as _0x33fb27}from'@univerjs/drawing';import{UniverRenderEnginePlugin as _0x5c82ca}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0xec36ab}from'@univerjs/network';import{UniverSheetsPlugin as _0x18ea7d}from'@univerjs/sheets';import _0xeab307 from'@univerjs/sheets/locale/en-US';import{UniverSheetsConditionalFormattingPlugin as _0x4f1510}from'@univerjs/sheets-conditional-formatting';import _0x39d1d8 from'@univerjs/sheets-conditional-formatting/locale/en-US';import{UniverSheetsDataValidationPlugin as _0x39d496}from'@univerjs/sheets-data-validation';import _0xeee59f from'@univerjs/sheets-data-validation/locale/en-US';import{UniverSheetsDrawingPlugin as _0x3cccfd}from'@univerjs/sheets-drawing';import{UniverSheetsFilterPlugin as _0x1e76ac}from'@univerjs/sheets-filter';import _0x4c8200 from'@univerjs/sheets-filter/locale/en-US';import{CalculationMode as _0x4a2dd3,UniverSheetsFormulaPlugin as _0x80faf5}from'@univerjs/sheets-formula';import _0x43c893 from'@univerjs/sheets-formula/locale/en-US';import{UniverSheetsHyperLinkPlugin as _0x1fe0a1}from'@univerjs/sheets-hyper-link';import _0x116fa3 from'@univerjs/sheets-hyper-link/locale/en-US';import{UniverSheetsNotePlugin as _0x56aa25}from'@univerjs/sheets-note';import{UniverSheetsNumfmtPlugin as _0x23d533}from'@univerjs/sheets-numfmt';import{UniverSheetsSortPlugin as _0x599bda}from'@univerjs/sheets-sort';import{UniverSheetsTablePlugin as _0x142d64}from'@univerjs/sheets-table';import _0x314e53 from'@univerjs/sheets-table/locale/en-US';import{UniverSheetsThreadCommentPlugin as _0x1e3262}from'@univerjs/sheets-thread-comment';import{UniverThreadCommentPlugin as _0x1db757}from'@univerjs/thread-comment';import'@univerjs/docs/facade';import'@univerjs/docs-drawing/facade';import'@univerjs-pro/boards/facade';import'@univerjs-pro/boards-chart/facade';import'@univerjs-pro/boards-mind/facade';import'@univerjs-pro/boards-table/facade';import'@univerjs-pro/docs-latex/facade';import'@univerjs-pro/docs-callout/facade';import'@univerjs-pro/docs-chart/facade';import'@univerjs-pro/docs-code/facade';import'@univerjs-pro/docs-column/facade';import'@univerjs-pro/docs-list/facade';import'@univerjs-pro/docs-quote/facade';import'@univerjs-pro/docs-shape/facade';import'@univerjs-pro/docs-table/facade';import'@univerjs-pro/embed/facade';import'@univerjs-pro/engine-chart/facade';import'@univerjs-pro/engine-formula/facade';import'@univerjs-pro/engine-shape/facade';import'@univerjs/engine-formula/facade';import'@univerjs/network/facade';import'@univerjs/sheets/facade';import'@univerjs/sheets-conditional-formatting/facade';import'@univerjs/sheets-data-validation/facade';import'@univerjs/sheets-drawing/facade';import'@univerjs/sheets-filter/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-hyper-link/facade';import'@univerjs/sheets-note/facade';import'@univerjs/sheets-numfmt/facade';import'@univerjs/sheets-sort/facade';import'@univerjs/sheets-table/facade';import'@univerjs/sheets-thread-comment/facade';import'@univerjs-pro/bases/facade';import'@univerjs-pro/pdfs/facade';import'@univerjs-pro/range-preprocess/facade';import'@univerjs-pro/shape-editor/facade';import'@univerjs-pro/slides/facade';import'@univerjs-pro/sheets-chart/facade';import'@univerjs-pro/sheets-outline/facade';import'@univerjs-pro/sheets-pivot/facade';import'@univerjs-pro/sheets-shape/facade';import'@univerjs-pro/sheets-slicer/facade';import'@univerjs-pro/sheets-sparkline/facade';import'@univerjs-pro/slides-chart/facade';import'@univerjs-pro/slides-table/facade';function _e(_0x596412){return _0x463e97['newAPI'](_0x596412);}function ve(_0x1fae5c){return async()=>{const _0x3335d9=_0x7471;let _0x1ec54e=new _0x3ff848({'locale':_0x3e01c7[_0x3335d9(0x182)],'locales':ye()});try{return _0x1ec54e[_0x3335d9(0x183)](_0x14e735,{'license':_0x1fae5c[_0x3335d9(0x17e)]}),be(_0x1ec54e,_0x1fae5c),_0x1ec54e;}catch(_0x5203d3){throw _0x1ec54e[_0x3335d9(0x184)](),_0x5203d3;}};}function ye(){let _0x45867c=_0x98a200(_0xeab307,_0x412f3c,_0x43c893,_0x262092,_0x39d1d8,_0xeee59f,_0x4c8200,_0x116fa3,_0x314e53,_0x2c0820,_0x10f637);return{[_0x3e01c7['EN_US']]:_0x45867c};}function be(_0x2c4d91,_0x51bd63){const _0x22c787=_0x7471;_0x2c4d91['registerPlugin'](_0x5c82ca),_0x2c4d91[_0x22c787(0x183)](_0x33fb27),_0x2c4d91['registerPlugin'](_0xb7d7bb),_0x2c4d91['registerPlugin'](_0x63f67d),_0x2c4d91[_0x22c787(0x183)](_0x48e628),_0x2c4d91['registerPlugin'](_0xa83457),_0x2c4d91[_0x22c787(0x183)](_0x1dcb23),_0x2c4d91['registerPlugin'](_0x3743bd),_0x2c4d91[_0x22c787(0x183)](_0x4d0d78),_0x2c4d91[_0x22c787(0x183)](_0xdde019),_0x2c4d91[_0x22c787(0x183)](_0x39f3e5),_0x2c4d91[_0x22c787(0x183)](_0x42ca6f),_0x2c4d91[_0x22c787(0x183)](_0x2aeff6),_0x2c4d91[_0x22c787(0x183)](_0x29ed50),_0x2c4d91[_0x22c787(0x183)](_0x4b3970),_0x2c4d91[_0x22c787(0x183)](_0x312ef5),_0x2c4d91[_0x22c787(0x183)](_0x1b45c3),_0x2c4d91[_0x22c787(0x183)](_0x310cc9),_0x2c4d91[_0x22c787(0x183)](_0x2dd1a6),_0x2c4d91['registerPlugin'](_0x5d6cdb,_0x51bd63[_0x22c787(0x181)]),_0x2c4d91[_0x22c787(0x183)](_0x47ebf7),_0x2c4d91[_0x22c787(0x183)](_0x18ea7d),_0x2c4d91[_0x22c787(0x183)](_0x4adc3c),_0x2c4d91[_0x22c787(0x183)](_0x295c7b),_0x2c4d91[_0x22c787(0x183)](_0x80faf5,{'initialFormulaComputing':_0x4a2dd3[_0x22c787(0x185)]}),_0x2c4d91[_0x22c787(0x183)](_0xec36ab),_0x2c4d91['registerPlugin'](_0x5301fd),_0x2c4d91[_0x22c787(0x183)](_0x557074),_0x2c4d91['registerPlugin'](_0x213e64),_0x2c4d91['registerPlugin'](_0x38597d),_0x2c4d91[_0x22c787(0x183)](_0x5f4bd1),_0x2c4d91[_0x22c787(0x183)](_0x23d533),_0x2c4d91['registerPlugin'](_0x4f1510),_0x2c4d91[_0x22c787(0x183)](_0x1e76ac),_0x2c4d91[_0x22c787(0x183)](_0x599bda),_0x2c4d91[_0x22c787(0x183)](_0x142d64),_0x2c4d91[_0x22c787(0x183)](_0x5dba82),_0x2c4d91[_0x22c787(0x183)](_0x3cccfd),_0x2c4d91[_0x22c787(0x183)](_0x21c052),_0x2c4d91[_0x22c787(0x183)](_0x5be31a),_0x2c4d91['registerPlugin'](_0x429653),_0x2c4d91[_0x22c787(0x183)](_0x35b619),_0x2c4d91[_0x22c787(0x183)](_0x1bda8f),_0x2c4d91[_0x22c787(0x183)](_0x50d898),_0x2c4d91['registerPlugin'](_0x39d496),_0x2c4d91[_0x22c787(0x183)](_0x1fe0a1),_0x2c4d91[_0x22c787(0x183)](_0x56aa25),_0x2c4d91['registerPlugin'](_0x1db757),_0x2c4d91['registerPlugin'](_0x1e3262),_0x2c4d91[_0x22c787(0x183)](_0x19b5b5),_0x2c4d91[_0x22c787(0x183)](_0x1fcd34),_0x2c4d91[_0x22c787(0x183)](_0x413b32),_0x2c4d91[_0x22c787(0x183)](_0x3910e7),_0x2c4d91[_0x22c787(0x183)](_0x1c025b);}export{_e as createStandardHeadlessUniverFacade,ve as createStandardHeadlessUniverFactory};
|
|
1
|
+
(function(_0x19ade4,_0x476900){const _0x1ca02a=_0x2992,_0x327ee5=_0x19ade4();while(!![]){try{const _0xfd79f9=parseInt(_0x1ca02a(0x17e))/0x1*(parseInt(_0x1ca02a(0x18a))/0x2)+parseInt(_0x1ca02a(0x18d))/0x3*(-parseInt(_0x1ca02a(0x1a0))/0x4)+parseInt(_0x1ca02a(0x194))/0x5*(-parseInt(_0x1ca02a(0x190))/0x6)+parseInt(_0x1ca02a(0x199))/0x7+-parseInt(_0x1ca02a(0x19a))/0x8+-parseInt(_0x1ca02a(0x17d))/0x9*(-parseInt(_0x1ca02a(0x186))/0xa)+parseInt(_0x1ca02a(0x18f))/0xb;if(_0xfd79f9===_0x476900)break;else _0x327ee5['push'](_0x327ee5['shift']());}catch(_0x2440cb){_0x327ee5['push'](_0x327ee5['shift']());}}}(_0x21f9,0x99120));import{UniverBasesPlugin as _0x3087ee}from'@univerjs-pro/bases';import{UniverBasesThreadCommentPlugin as _0x1a7e3c}from'@univerjs-pro/bases-thread-comment';import _0x2affba from'@univerjs-pro/bases/locale/en-US';import{UniverBoardsPlugin as _0x362f98}from'@univerjs-pro/boards';import{UniverBoardsChartPlugin as _0x5966b2}from'@univerjs-pro/boards-chart';import{UniverBoardsMindPlugin as _0x390d5f}from'@univerjs-pro/boards-mind';import{UniverBoardsTablePlugin as _0x3b68e5}from'@univerjs-pro/boards-table';import{UniverBoardsThreadCommentPlugin as _0x2cd941}from'@univerjs-pro/boards-thread-comment';import{UniverChartEmbedPlugin as _0x31b20b}from'@univerjs-pro/chart-embed';import{UniverDocsCalloutPlugin as _0x3643ce}from'@univerjs-pro/docs-callout';import{UniverDocsChartPlugin as _0x280f90}from'@univerjs-pro/docs-chart';import{UniverDocsCodePlugin as _0x375591}from'@univerjs-pro/docs-code';import{UniverDocsColumnPlugin as _0x2c1bb3}from'@univerjs-pro/docs-column';import{UniverDocsLatexPlugin as _0x448d62}from'@univerjs-pro/docs-latex';import{UniverDocsListPlugin as _0x5a988c}from'@univerjs-pro/docs-list';import{UniverDocsQuotePlugin as _0x325809}from'@univerjs-pro/docs-quote';import{UniverDocsShapePlugin as _0x4141df}from'@univerjs-pro/docs-shape';import{UniverDocsTablePlugin as _0x432415}from'@univerjs-pro/docs-table';import{EMBED_CHILD_CREATE_OPTIONS as _0x2220e8,UniverEmbedPlugin as _0xb362e2}from'@univerjs-pro/embed';import{UniverRustFormulaEnginePlugin as _0x4578bb}from'@univerjs-pro/engine-formula-rust';import{UniverInkPlugin as _0x2c77cc}from'@univerjs-pro/ink';import{UniverLicensePlugin as _0x34c520}from'@univerjs-pro/license';import{UniverPdfsPlugin as _0x143d72}from'@univerjs-pro/pdfs';import{UniverRangePreprocessPlugin as _0x25f807}from'@univerjs-pro/range-preprocess';import{UniverShapeEditorPlugin as _0x17c4d1}from'@univerjs-pro/shape-editor';import{UniverSheetsChartPlugin as _0x35c9ec}from'@univerjs-pro/sheets-chart';import _0x1e87f3 from'@univerjs-pro/sheets-chart/locale/en-US';import{UniverSheetsOutlinePlugin as _0x5b62a7}from'@univerjs-pro/sheets-outline';import{UniverSheetsPivotTablePlugin as _0x482542}from'@univerjs-pro/sheets-pivot';import _0x2fcb44 from'@univerjs-pro/sheets-pivot/locale/en-US';import{UniverSheetsShapePlugin as _0x2972dc}from'@univerjs-pro/sheets-shape';import{UniverSheetsSlicerPlugin as _0x3ffef1}from'@univerjs-pro/sheets-slicer';import{UniverSheetSparklinePlugin as _0x2ad241}from'@univerjs-pro/sheets-sparkline';import{UniverSlidesPlugin as _0x5e98fa}from'@univerjs-pro/slides';import{UniverSlidesChartPlugin as _0x3c4881}from'@univerjs-pro/slides-chart';import{UniverSlidesTablePlugin as _0x47892b}from'@univerjs-pro/slides-table';import{UniverSlidesThreadCommentPlugin as _0x31c0c7}from'@univerjs-pro/slides-thread-comment';import{IUniverInstanceService as _0x437c96,LocaleType as _0x18a1e6,Univer as _0x580613,UniverInstanceType as _0x4dfdb3,mergeLocales as _0x5c957d}from'@univerjs/core';import{FUniver as _0x415ae0}from'@univerjs/core/facade';import{UniverDataValidationPlugin as _0x2f9d42}from'@univerjs/data-validation';import _0x38a073 from'@univerjs/data-validation/locale/en-US';import{UniverDocsPlugin as _0x45fdda}from'@univerjs/docs';import{UniverDocsDrawingPlugin as _0x323688}from'@univerjs/docs-drawing';import{UniverDocsHyperLinkPlugin as _0x1f4063}from'@univerjs/docs-hyper-link';import{UniverDocsThreadCommentPlugin as _0x3a9906}from'@univerjs/docs-thread-comment';import{UniverDrawingPlugin as _0x37db6c}from'@univerjs/drawing';function _0x21f9(){const _0x337acd=['signal','22FRyCPc','has','Board\x20model\x20layout\x20analysis\x20is\x20unavailable','30714NZNciW','embeddedUnits','7618930gRjdyz','1643514SsZRkc','get','UNIVER_BASE','UNIVER_SHEET','10fovkws','NO_CALCULATION','add','focusPadding','Board\x20page\x20not\x20found:\x20','2500085QIietD','4467944WrqGTM','UNIVER_SLIDE','embedPluginConfig','createUniver','UNIVER_DOC','registerPlugin','180zLRQJP','3654nwnnEj','934RqYtZB','push','unitData','EN_US','pages','createUnit','dispose','throwIfAborted','27930StgsRn','license','unitType'];_0x21f9=function(){return _0x337acd;};return _0x21f9();}import{UniverRenderEnginePlugin as _0x1c0157}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x339671}from'@univerjs/network';import{UniverSheetsPlugin as _0xea52d8}from'@univerjs/sheets';import _0x9a593b from'@univerjs/sheets/locale/en-US';import{UniverSheetsConditionalFormattingPlugin as _0xabe6e8}from'@univerjs/sheets-conditional-formatting';import _0x12e273 from'@univerjs/sheets-conditional-formatting/locale/en-US';import{UniverSheetsDataValidationPlugin as _0x4ec798}from'@univerjs/sheets-data-validation';import _0x86eb97 from'@univerjs/sheets-data-validation/locale/en-US';import{UniverSheetsDrawingPlugin as _0x9cd7f2}from'@univerjs/sheets-drawing';import{UniverSheetsFilterPlugin as _0x48015a}from'@univerjs/sheets-filter';import _0x4f906f from'@univerjs/sheets-filter/locale/en-US';import{CalculationMode as _0x2b083b,UniverSheetsFormulaPlugin as _0x222588}from'@univerjs/sheets-formula';import _0x5090b6 from'@univerjs/sheets-formula/locale/en-US';import{UniverSheetsHyperLinkPlugin as _0x4e6609}from'@univerjs/sheets-hyper-link';import _0x3cf8de from'@univerjs/sheets-hyper-link/locale/en-US';import{UniverSheetsNotePlugin as _0x49c04b}from'@univerjs/sheets-note';import{UniverSheetsNumfmtPlugin as _0xf951f0}from'@univerjs/sheets-numfmt';import{UniverSheetsSortPlugin as _0x1157ac}from'@univerjs/sheets-sort';import{UniverSheetsTablePlugin as _0x18b3bf}from'@univerjs/sheets-table';import _0x3d832f from'@univerjs/sheets-table/locale/en-US';function _0x2992(_0x9ae622,_0x34af1c){_0x9ae622=_0x9ae622-0x17d;const _0x21f9f1=_0x21f9();let _0x299214=_0x21f9f1[_0x9ae622];return _0x299214;}import{UniverSheetsThreadCommentPlugin as _0x2579c6}from'@univerjs/sheets-thread-comment';import{UniverThreadCommentPlugin as _0x51db12}from'@univerjs/thread-comment';import'@univerjs/docs/facade';import'@univerjs/docs-drawing/facade';import'@univerjs-pro/boards/facade';import'@univerjs-pro/boards-chart/facade';import'@univerjs-pro/boards-mind/facade';import'@univerjs-pro/boards-table/facade';import'@univerjs-pro/docs-latex/facade';import'@univerjs-pro/docs-callout/facade';import'@univerjs-pro/docs-chart/facade';import'@univerjs-pro/docs-code/facade';import'@univerjs-pro/docs-column/facade';import'@univerjs-pro/docs-list/facade';import'@univerjs-pro/docs-quote/facade';import'@univerjs-pro/docs-shape/facade';import'@univerjs-pro/docs-table/facade';import'@univerjs-pro/embed/facade';import'@univerjs-pro/engine-chart/facade';import'@univerjs-pro/engine-formula/facade';import'@univerjs-pro/engine-shape/facade';import'@univerjs/engine-formula/facade';import'@univerjs/network/facade';import'@univerjs/sheets/facade';import'@univerjs/sheets-conditional-formatting/facade';import'@univerjs/sheets-data-validation/facade';import'@univerjs/sheets-drawing/facade';import'@univerjs/sheets-filter/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-hyper-link/facade';import'@univerjs/sheets-note/facade';import'@univerjs/sheets-numfmt/facade';import'@univerjs/sheets-sort/facade';import'@univerjs/sheets-table/facade';import'@univerjs/sheets-thread-comment/facade';import'@univerjs-pro/bases/facade';import'@univerjs-pro/pdfs/facade';import'@univerjs-pro/range-preprocess/facade';import'@univerjs-pro/shape-editor/facade';import'@univerjs-pro/slides/facade';import'@univerjs-pro/sheets-chart/facade';import'@univerjs-pro/sheets-outline/facade';import'@univerjs-pro/sheets-pivot/facade';import'@univerjs-pro/sheets-shape/facade';import'@univerjs-pro/sheets-slicer/facade';import'@univerjs-pro/sheets-sparkline/facade';import'@univerjs-pro/slides-chart/facade';import'@univerjs-pro/slides-table/facade';function xe(_0x2f54be){return{async 'captureBoardModelLayout'(_0x43d039){const _0x930f3c=_0x2992;let _0x354bb7=[];for(let _0x27f667 of _0x43d039['pages']){_0x43d039['signal']?.['throwIfAborted']();let _0x3e7976=_0x43d039[_0x930f3c(0x180)][_0x930f3c(0x182)][_0x27f667];if(_0x3e7976===void 0x0)throw Error(_0x930f3c(0x198)+_0x27f667);let _0x4d6928=await _0x2f54be[_0x930f3c(0x19d)]({'unitId':_0x43d039[_0x930f3c(0x180)]['id'],'unitType':_0x4dfdb3['UNIVER_BOARD']});try{let _0x5d8e03={'sheet':_0x4dfdb3[_0x930f3c(0x193)],'doc':_0x4dfdb3[_0x930f3c(0x19e)],'slide':_0x4dfdb3[_0x930f3c(0x19b)],'base':_0x4dfdb3[_0x930f3c(0x192)],'board':_0x4dfdb3['UNIVER_BOARD']},_0x383fe2=new Set([_0x43d039[_0x930f3c(0x180)]['id']]);for(let _0x35a744 of[..._0x43d039['formulaReferenceUnits']??[],..._0x43d039[_0x930f3c(0x18e)]??[]])_0x383fe2[_0x930f3c(0x18b)](_0x35a744[_0x930f3c(0x180)]['id'])||(_0x4d6928['__getInjector']()[_0x930f3c(0x191)](_0x437c96)[_0x930f3c(0x183)](_0x5d8e03[_0x35a744[_0x930f3c(0x188)]],structuredClone(_0x35a744[_0x930f3c(0x180)]),_0x2220e8),_0x383fe2[_0x930f3c(0x196)](_0x35a744[_0x930f3c(0x180)]['id']));_0x4d6928['createUnit'](_0x4dfdb3['UNIVER_BOARD'],structuredClone({..._0x43d039['unitData'],'pageOrder':[_0x27f667],'pages':{[_0x27f667]:_0x3e7976},'activePageId':_0x27f667,'slideOrder':[_0x27f667],'slides':{[_0x27f667]:_0x3e7976},'activeSlideId':_0x27f667}));let _0x5be798=$(_0x4d6928)['getBoard'](_0x43d039[_0x930f3c(0x180)]['id']);if(_0x5be798===null)throw Error('Board\x20not\x20found:\x20'+_0x43d039[_0x930f3c(0x180)]['id']);let _0x1301f3=_0x5be798['analyzeModelLayout'](_0x43d039[_0x930f3c(0x197)]??0x30);if(_0x1301f3===!0x1)throw Error(_0x930f3c(0x18c));_0x354bb7[_0x930f3c(0x17f)]({'pageId':_0x27f667,'analysis':_0x1301f3}),_0x43d039[_0x930f3c(0x189)]?.[_0x930f3c(0x185)]();}finally{_0x4d6928[_0x930f3c(0x184)]();}}return{'pages':_0x354bb7};}};}function $(_0x510cea){return _0x415ae0['newAPI'](_0x510cea);}function Se(_0x19a2b0){return async()=>{const _0x2c17dd=_0x2992;let _0x552e8f=new _0x580613({'locale':_0x18a1e6[_0x2c17dd(0x181)],'locales':Ce()});try{return _0x552e8f['registerPlugin'](_0x34c520,{'license':_0x19a2b0[_0x2c17dd(0x187)]}),we(_0x552e8f,_0x19a2b0),_0x552e8f;}catch(_0x680279){throw _0x552e8f['dispose'](),_0x680279;}};}function Ce(){const _0x2d35e3=_0x2992;let _0x3eefa2=_0x5c957d(_0x9a593b,_0x2affba,_0x5090b6,_0x38a073,_0x12e273,_0x86eb97,_0x4f906f,_0x3cf8de,_0x3d832f,_0x1e87f3,_0x2fcb44);return{[_0x18a1e6[_0x2d35e3(0x181)]]:_0x3eefa2};}function we(_0x522f9c,_0x24e511){const _0x42c2b9=_0x2992;_0x522f9c[_0x42c2b9(0x19f)](_0x1c0157),_0x522f9c[_0x42c2b9(0x19f)](_0x37db6c),_0x522f9c[_0x42c2b9(0x19f)](_0x45fdda),_0x522f9c[_0x42c2b9(0x19f)](_0x448d62),_0x522f9c[_0x42c2b9(0x19f)](_0x362f98),_0x522f9c[_0x42c2b9(0x19f)](_0x5966b2),_0x522f9c[_0x42c2b9(0x19f)](_0x2c77cc),_0x522f9c[_0x42c2b9(0x19f)](_0x390d5f),_0x522f9c['registerPlugin'](_0x3b68e5),_0x522f9c['registerPlugin'](_0x323688),_0x522f9c[_0x42c2b9(0x19f)](_0x1f4063),_0x522f9c['registerPlugin'](_0x3643ce),_0x522f9c['registerPlugin'](_0x280f90),_0x522f9c[_0x42c2b9(0x19f)](_0x375591),_0x522f9c[_0x42c2b9(0x19f)](_0x2c1bb3),_0x522f9c['registerPlugin'](_0x5a988c),_0x522f9c[_0x42c2b9(0x19f)](_0x325809),_0x522f9c[_0x42c2b9(0x19f)](_0x4141df),_0x522f9c[_0x42c2b9(0x19f)](_0x432415),_0x522f9c[_0x42c2b9(0x19f)](_0xb362e2,_0x24e511[_0x42c2b9(0x19c)]),_0x522f9c[_0x42c2b9(0x19f)](_0x31b20b),_0x522f9c[_0x42c2b9(0x19f)](_0xea52d8),_0x522f9c[_0x42c2b9(0x19f)](_0x4578bb),_0x522f9c[_0x42c2b9(0x19f)](_0x17c4d1),_0x522f9c[_0x42c2b9(0x19f)](_0x222588,{'initialFormulaComputing':_0x2b083b[_0x42c2b9(0x195)]}),_0x522f9c['registerPlugin'](_0x339671),_0x522f9c[_0x42c2b9(0x19f)](_0x3087ee),_0x522f9c['registerPlugin'](_0x143d72),_0x522f9c[_0x42c2b9(0x19f)](_0x5e98fa),_0x522f9c[_0x42c2b9(0x19f)](_0x3c4881),_0x522f9c['registerPlugin'](_0x47892b),_0x522f9c[_0x42c2b9(0x19f)](_0xf951f0),_0x522f9c[_0x42c2b9(0x19f)](_0xabe6e8),_0x522f9c[_0x42c2b9(0x19f)](_0x48015a),_0x522f9c[_0x42c2b9(0x19f)](_0x1157ac),_0x522f9c[_0x42c2b9(0x19f)](_0x18b3bf),_0x522f9c[_0x42c2b9(0x19f)](_0x3ffef1),_0x522f9c[_0x42c2b9(0x19f)](_0x9cd7f2),_0x522f9c['registerPlugin'](_0x35c9ec),_0x522f9c[_0x42c2b9(0x19f)](_0x5b62a7),_0x522f9c[_0x42c2b9(0x19f)](_0x482542),_0x522f9c['registerPlugin'](_0x2972dc),_0x522f9c[_0x42c2b9(0x19f)](_0x2ad241),_0x522f9c[_0x42c2b9(0x19f)](_0x2f9d42),_0x522f9c['registerPlugin'](_0x4ec798),_0x522f9c[_0x42c2b9(0x19f)](_0x4e6609),_0x522f9c[_0x42c2b9(0x19f)](_0x49c04b),_0x522f9c[_0x42c2b9(0x19f)](_0x51db12),_0x522f9c[_0x42c2b9(0x19f)](_0x2579c6),_0x522f9c['registerPlugin'](_0x3a9906),_0x522f9c[_0x42c2b9(0x19f)](_0x31c0c7),_0x522f9c[_0x42c2b9(0x19f)](_0x1a7e3c),_0x522f9c[_0x42c2b9(0x19f)](_0x2cd941),_0x522f9c[_0x42c2b9(0x19f)](_0x25f807);}export{xe as createHeadlessBoardLayoutRuntime,$ as createStandardHeadlessUniverFacade,Se as createStandardHeadlessUniverFactory};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/headless-univer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,66 +18,67 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@univerjs-pro/bases
|
|
23
|
-
"@univerjs-pro/
|
|
24
|
-
"@univerjs-pro/boards
|
|
25
|
-
"@univerjs-pro/boards-
|
|
26
|
-
"@univerjs-pro/boards-
|
|
27
|
-
"@univerjs-pro/boards-
|
|
28
|
-
"@univerjs-pro/
|
|
29
|
-
"@univerjs-pro/
|
|
30
|
-
"@univerjs-pro/docs-
|
|
31
|
-
"@univerjs-pro/docs-
|
|
32
|
-
"@univerjs-pro/docs-
|
|
33
|
-
"@univerjs-pro/docs-
|
|
34
|
-
"@univerjs-pro/docs-
|
|
35
|
-
"@univerjs-pro/docs-
|
|
36
|
-
"@univerjs-pro/docs-
|
|
37
|
-
"@univerjs-pro/docs-
|
|
38
|
-
"@univerjs-pro/
|
|
39
|
-
"@univerjs-pro/
|
|
40
|
-
"@univerjs-pro/engine-
|
|
41
|
-
"@univerjs-pro/engine-formula
|
|
42
|
-
"@univerjs-pro/engine-
|
|
43
|
-
"@univerjs-pro/engine-
|
|
44
|
-
"@univerjs-pro/
|
|
45
|
-
"@univerjs-pro/
|
|
46
|
-
"@univerjs-pro/
|
|
47
|
-
"@univerjs-pro/
|
|
48
|
-
"@univerjs-pro/
|
|
49
|
-
"@univerjs-pro/
|
|
50
|
-
"@univerjs-pro/sheets-
|
|
51
|
-
"@univerjs-pro/sheets-
|
|
52
|
-
"@univerjs-pro/sheets-
|
|
53
|
-
"@univerjs-pro/sheets-
|
|
54
|
-
"@univerjs-pro/sheets-
|
|
55
|
-
"@univerjs-pro/
|
|
56
|
-
"@univerjs-pro/slides
|
|
57
|
-
"@univerjs-pro/slides-
|
|
58
|
-
"@univerjs-pro/slides-
|
|
59
|
-
"@univerjs/
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/docs
|
|
63
|
-
"@univerjs/docs-
|
|
64
|
-
"@univerjs/docs-
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/engine-
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/sheets
|
|
71
|
-
"@univerjs/sheets-
|
|
72
|
-
"@univerjs/sheets-
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/thread-comment": "1.
|
|
21
|
+
"@univer-cli/univer-render-runtime": "1.5.2",
|
|
22
|
+
"@univerjs-pro/bases": "1.5.2",
|
|
23
|
+
"@univerjs-pro/bases-thread-comment": "1.5.2",
|
|
24
|
+
"@univerjs-pro/boards": "1.5.2",
|
|
25
|
+
"@univerjs-pro/boards-chart": "1.5.2",
|
|
26
|
+
"@univerjs-pro/boards-mind": "1.5.2",
|
|
27
|
+
"@univerjs-pro/boards-table": "1.5.2",
|
|
28
|
+
"@univerjs-pro/boards-thread-comment": "1.5.2",
|
|
29
|
+
"@univerjs-pro/chart-embed": "1.5.2",
|
|
30
|
+
"@univerjs-pro/docs-callout": "1.5.2",
|
|
31
|
+
"@univerjs-pro/docs-chart": "1.5.2",
|
|
32
|
+
"@univerjs-pro/docs-code": "1.5.2",
|
|
33
|
+
"@univerjs-pro/docs-column": "1.5.2",
|
|
34
|
+
"@univerjs-pro/docs-latex": "1.5.2",
|
|
35
|
+
"@univerjs-pro/docs-list": "1.5.2",
|
|
36
|
+
"@univerjs-pro/docs-quote": "1.5.2",
|
|
37
|
+
"@univerjs-pro/docs-shape": "1.5.2",
|
|
38
|
+
"@univerjs-pro/docs-table": "1.5.2",
|
|
39
|
+
"@univerjs-pro/embed": "1.5.2",
|
|
40
|
+
"@univerjs-pro/engine-chart": "1.5.2",
|
|
41
|
+
"@univerjs-pro/engine-formula": "1.5.2",
|
|
42
|
+
"@univerjs-pro/engine-formula-rust": "1.5.2",
|
|
43
|
+
"@univerjs-pro/engine-pivot": "1.5.2",
|
|
44
|
+
"@univerjs-pro/engine-shape": "1.5.2",
|
|
45
|
+
"@univerjs-pro/ink": "1.5.2",
|
|
46
|
+
"@univerjs-pro/license": "1.5.2",
|
|
47
|
+
"@univerjs-pro/pdfs": "1.5.2",
|
|
48
|
+
"@univerjs-pro/range-preprocess": "1.5.2",
|
|
49
|
+
"@univerjs-pro/shape-editor": "1.5.2",
|
|
50
|
+
"@univerjs-pro/sheets-chart": "1.5.2",
|
|
51
|
+
"@univerjs-pro/sheets-outline": "1.5.2",
|
|
52
|
+
"@univerjs-pro/sheets-pivot": "1.5.2",
|
|
53
|
+
"@univerjs-pro/sheets-shape": "1.5.2",
|
|
54
|
+
"@univerjs-pro/sheets-slicer": "1.5.2",
|
|
55
|
+
"@univerjs-pro/sheets-sparkline": "1.5.2",
|
|
56
|
+
"@univerjs-pro/slides": "1.5.2",
|
|
57
|
+
"@univerjs-pro/slides-chart": "1.5.2",
|
|
58
|
+
"@univerjs-pro/slides-table": "1.5.2",
|
|
59
|
+
"@univerjs-pro/slides-thread-comment": "1.5.2",
|
|
60
|
+
"@univerjs/core": "1.5.2",
|
|
61
|
+
"@univerjs/data-validation": "1.5.2",
|
|
62
|
+
"@univerjs/docs": "1.5.2",
|
|
63
|
+
"@univerjs/docs-drawing": "1.5.2",
|
|
64
|
+
"@univerjs/docs-hyper-link": "1.5.2",
|
|
65
|
+
"@univerjs/docs-thread-comment": "1.5.2",
|
|
66
|
+
"@univerjs/drawing": "1.5.2",
|
|
67
|
+
"@univerjs/engine-formula": "1.5.2",
|
|
68
|
+
"@univerjs/engine-render": "1.5.2",
|
|
69
|
+
"@univerjs/network": "1.5.2",
|
|
70
|
+
"@univerjs/sheets": "1.5.2",
|
|
71
|
+
"@univerjs/sheets-conditional-formatting": "1.5.2",
|
|
72
|
+
"@univerjs/sheets-data-validation": "1.5.2",
|
|
73
|
+
"@univerjs/sheets-drawing": "1.5.2",
|
|
74
|
+
"@univerjs/sheets-filter": "1.5.2",
|
|
75
|
+
"@univerjs/sheets-formula": "1.5.2",
|
|
76
|
+
"@univerjs/sheets-hyper-link": "1.5.2",
|
|
77
|
+
"@univerjs/sheets-note": "1.5.2",
|
|
78
|
+
"@univerjs/sheets-numfmt": "1.5.2",
|
|
79
|
+
"@univerjs/sheets-sort": "1.5.2",
|
|
80
|
+
"@univerjs/sheets-table": "1.5.2",
|
|
81
|
+
"@univerjs/sheets-thread-comment": "1.5.2",
|
|
82
|
+
"@univerjs/thread-comment": "1.5.2"
|
|
82
83
|
}
|
|
83
84
|
}
|