@univerjs/core 0.1.0-alpha.1 → 0.1.0-alpha.3
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/LICENSE.txt +178 -0
- package/README.md +1 -1
- package/lib/cjs/index.js +11 -15323
- package/lib/es/index.js +7453 -0
- package/lib/types/basics/index.d.ts +15 -1
- package/lib/types/basics/plugin-holder.d.ts +30 -0
- package/lib/types/basics/registry.d.ts +12 -4
- package/lib/types/basics/univer-doc.d.ts +22 -12
- package/lib/types/basics/univer-sheet.d.ts +22 -22
- package/lib/types/basics/univer-slide.d.ts +21 -20
- package/lib/types/basics/univer.d.ts +30 -11
- package/lib/types/common/array.d.ts +13 -5
- package/lib/types/common/const.d.ts +15 -1
- package/lib/types/common/interceptor.d.ts +15 -1
- package/lib/types/common/memory-cursor.d.ts +16 -1
- package/lib/types/common/request-immediate-macro-task.d.ts +16 -0
- package/lib/types/common/sequence.d.ts +15 -1
- package/lib/types/common/shims.d.ts +16 -0
- package/lib/types/common/type-utils.d.ts +13 -2
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/common.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts +15 -1
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +15 -1
- package/lib/types/docs/data-model/document-data-model.d.ts +15 -1
- package/lib/types/docs/data-model/index.d.ts +16 -1
- package/lib/types/docs/data-model/mutation-types.d.ts +15 -1
- package/lib/types/docs/data-model/preset-list-type.d.ts +50 -0
- package/lib/types/docs/data-model/types.d.ts +15 -1
- package/lib/types/docs/index.d.ts +15 -1
- package/lib/types/index.d.ts +19 -3
- package/lib/types/observer/index.d.ts +15 -1
- package/lib/types/observer/observable-hooks.d.ts +15 -1
- package/lib/types/observer/observable.d.ts +15 -1
- package/lib/types/plugin/plugin.d.ts +19 -4
- package/lib/types/services/auth/auth.service.d.ts +15 -1
- package/lib/types/services/command/command.service.d.ts +32 -5
- package/lib/types/services/command/command.service.spec.d.ts +15 -1
- package/lib/types/services/config/config.service.d.ts +15 -1
- package/lib/types/services/context/context.d.ts +15 -1
- package/lib/types/services/context/context.service.d.ts +15 -1
- package/lib/types/services/error/error.service.d.ts +15 -1
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts +15 -1
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts +15 -1
- package/lib/types/services/instance/instance.service.d.ts +15 -1
- package/lib/types/services/lifecycle/lifecycle.d.ts +15 -1
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +15 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts +15 -1
- package/lib/types/services/locale/locale.service.d.ts +15 -1
- package/lib/types/services/log/log.service.d.ts +32 -12
- package/lib/types/services/permission/index.d.ts +15 -1
- package/lib/types/services/permission/permission-point.d.ts +15 -1
- package/lib/types/services/permission/permission.service.d.ts +15 -1
- package/lib/types/services/permission/univer.permission.service.d.ts +15 -1
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +15 -1
- package/lib/types/services/resource-manager/type.d.ts +21 -1
- package/lib/types/services/theme/theme.service.d.ts +15 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +15 -1
- package/lib/types/shared/__test__/object-matrix.spec.d.ts +15 -1
- package/lib/types/shared/__test__/ref-alias.spec.d.ts +15 -1
- package/lib/types/shared/array-search.d.ts +15 -1
- package/lib/types/shared/blob.d.ts +16 -0
- package/lib/types/shared/color/color-kit.d.ts +64 -0
- package/lib/types/shared/color/color.d.ts +32 -4
- package/lib/types/shared/command-enum.d.ts +15 -1
- package/lib/types/shared/common.d.ts +16 -4
- package/lib/types/shared/compare.d.ts +15 -1
- package/lib/types/shared/doc-tool.d.ts +15 -1
- package/lib/types/shared/gen-name.d.ts +15 -1
- package/lib/types/shared/generate.d.ts +15 -1
- package/lib/types/shared/hash-algorithm.d.ts +15 -1
- package/lib/types/shared/index.d.ts +17 -14
- package/lib/types/shared/lifecycle.d.ts +15 -1
- package/lib/types/shared/locale.d.ts +16 -5
- package/lib/types/shared/lru/index.d.ts +15 -1
- package/lib/types/shared/lru/lru-helper.d.ts +15 -1
- package/lib/types/shared/lru/lru-map.d.ts +15 -1
- package/lib/types/shared/object-matrix.d.ts +67 -30
- package/lib/types/shared/permission/index.d.ts +15 -1
- package/lib/types/shared/props-from.d.ts +15 -1
- package/lib/types/shared/rectangle.d.ts +16 -1
- package/lib/types/shared/ref-alias.d.ts +13 -9
- package/lib/types/shared/row-col-iter.d.ts +15 -1
- package/lib/types/shared/sequence.d.ts +13 -4
- package/lib/types/shared/sort-rules.d.ts +17 -3
- package/lib/types/shared/tools.d.ts +15 -6
- package/lib/types/shared/types.d.ts +13 -2
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +15 -1
- package/lib/types/sheets/__tests__/styles.spec.d.ts +15 -1
- package/lib/types/sheets/column-manager.d.ts +22 -16
- package/lib/types/sheets/range.d.ts +19 -19
- package/lib/types/sheets/reference.d.ts +15 -1
- package/lib/types/sheets/row-manager.d.ts +22 -8
- package/lib/types/sheets/styles.d.ts +21 -9
- package/lib/types/sheets/view-model.d.ts +19 -5
- package/lib/types/sheets/workbook.d.ts +22 -4
- package/lib/types/sheets/worksheet.d.ts +23 -4
- package/lib/types/slides/domain/index.d.ts +15 -1
- package/lib/types/slides/domain/slide-model.d.ts +15 -1
- package/lib/types/types/const/action-names.d.ts +15 -1
- package/lib/types/types/const/const.d.ts +15 -1
- package/lib/types/types/const/doc-action-names.d.ts +15 -1
- package/lib/types/types/const/extension-names.d.ts +13 -2
- package/lib/types/types/const/index.d.ts +15 -1
- package/lib/types/types/const/theme-color-map.d.ts +15 -1
- package/lib/types/types/enum/auto-fill-series.d.ts +11 -5
- package/lib/types/types/enum/border-style-types.d.ts +13 -2
- package/lib/types/types/enum/color-type.d.ts +13 -2
- package/lib/types/types/enum/common-hide-types.d.ts +13 -2
- package/lib/types/types/enum/condition-type.d.ts +13 -2
- package/lib/types/types/enum/copy-paste-type.d.ts +12 -4
- package/lib/types/types/enum/developer-metadata-visibility.d.ts +13 -2
- package/lib/types/types/enum/dimension.d.ts +12 -3
- package/lib/types/types/enum/direction.d.ts +15 -1
- package/lib/types/types/enum/format-type.d.ts +13 -2
- package/lib/types/types/enum/group-control-toggle-position.d.ts +13 -2
- package/lib/types/types/enum/index.d.ts +15 -1
- package/lib/types/types/enum/interpolation-point-type.d.ts +13 -2
- package/lib/types/types/enum/locale-type.d.ts +12 -3
- package/lib/types/types/enum/place-holder-type.d.ts +15 -1
- package/lib/types/types/enum/protection-type.d.ts +13 -2
- package/lib/types/types/enum/relative-date.d.ts +13 -2
- package/lib/types/types/enum/shape-type.d.ts +15 -1
- package/lib/types/types/enum/sheet-types.d.ts +13 -2
- package/lib/types/types/enum/text-style.d.ts +16 -5
- package/lib/types/types/enum/theme-color-type.d.ts +10 -19
- package/lib/types/types/interfaces/i-cell-data.d.ts +25 -9
- package/lib/types/types/interfaces/i-column-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +18 -3
- package/lib/types/types/interfaces/i-extra-model-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-freeze.d.ts +13 -3
- package/lib/types/types/interfaces/i-image-properties.d.ts +13 -2
- package/lib/types/types/interfaces/i-placeholder.d.ts +15 -1
- package/lib/types/types/interfaces/i-range.d.ts +28 -12
- package/lib/types/types/interfaces/i-row-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-selection-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-service-data.d.ts +13 -2
- package/lib/types/types/interfaces/i-shape-properties.d.ts +15 -1
- package/lib/types/types/interfaces/i-slide-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-style-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-univer-data.d.ts +17 -1
- package/lib/types/types/interfaces/i-workbook-data.d.ts +15 -1
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +23 -6
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +13 -2
- package/lib/types/types/interfaces/index.d.ts +15 -1
- package/lib/umd/index.js +11 -0
- package/package.json +20 -15
- package/LICENSE +0 -21
- package/lib/esm/index.js +0 -14601
- package/lib/types/basics/index.d.ts.map +0 -1
- package/lib/types/basics/registry.d.ts.map +0 -1
- package/lib/types/basics/univer-doc.d.ts.map +0 -1
- package/lib/types/basics/univer-sheet.d.ts.map +0 -1
- package/lib/types/basics/univer-slide.d.ts.map +0 -1
- package/lib/types/basics/univer.d.ts.map +0 -1
- package/lib/types/common/array.d.ts.map +0 -1
- package/lib/types/common/color/color-builder.d.ts +0 -1
- package/lib/types/common/color/color-builder.d.ts.map +0 -1
- package/lib/types/common/const.d.ts.map +0 -1
- package/lib/types/common/interceptor.d.ts.map +0 -1
- package/lib/types/common/memory-cursor.d.ts.map +0 -1
- package/lib/types/common/sequence.d.ts.map +0 -1
- package/lib/types/common/type-utils.d.ts.map +0 -1
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/common.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts.map +0 -1
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts.map +0 -1
- package/lib/types/docs/data-model/document-data-model.d.ts.map +0 -1
- package/lib/types/docs/data-model/index.d.ts.map +0 -1
- package/lib/types/docs/data-model/mutation-types.d.ts.map +0 -1
- package/lib/types/docs/data-model/types.d.ts.map +0 -1
- package/lib/types/docs/index.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/observer/index.d.ts.map +0 -1
- package/lib/types/observer/observable-hooks.d.ts.map +0 -1
- package/lib/types/observer/observable.d.ts.map +0 -1
- package/lib/types/plugin/plugin.d.ts.map +0 -1
- package/lib/types/services/auth/auth.service.d.ts.map +0 -1
- package/lib/types/services/command/command.service.d.ts.map +0 -1
- package/lib/types/services/command/command.service.spec.d.ts.map +0 -1
- package/lib/types/services/config/config.service.d.ts.map +0 -1
- package/lib/types/services/context/context.d.ts.map +0 -1
- package/lib/types/services/context/context.service.d.ts.map +0 -1
- package/lib/types/services/error/error.service.d.ts.map +0 -1
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts.map +0 -1
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts.map +0 -1
- package/lib/types/services/instance/instance.service.d.ts.map +0 -1
- package/lib/types/services/lifecycle/lifecycle.d.ts.map +0 -1
- package/lib/types/services/lifecycle/lifecycle.service.d.ts.map +0 -1
- package/lib/types/services/local-storage/local-storage.service.d.ts.map +0 -1
- package/lib/types/services/locale/locale.service.d.ts.map +0 -1
- package/lib/types/services/log/log.service.d.ts.map +0 -1
- package/lib/types/services/permission/index.d.ts.map +0 -1
- package/lib/types/services/permission/permission-point.d.ts.map +0 -1
- package/lib/types/services/permission/permission.service.d.ts.map +0 -1
- package/lib/types/services/permission/univer.permission.service.d.ts.map +0 -1
- package/lib/types/services/resource-manager/resource-manager.service.d.ts.map +0 -1
- package/lib/types/services/resource-manager/type.d.ts.map +0 -1
- package/lib/types/services/theme/theme.service.d.ts.map +0 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts.map +0 -1
- package/lib/types/shared/__test__/object-matrix.spec.d.ts.map +0 -1
- package/lib/types/shared/__test__/ref-alias.spec.d.ts.map +0 -1
- package/lib/types/shared/array-search.d.ts.map +0 -1
- package/lib/types/shared/color/color-builder.d.ts +0 -21
- package/lib/types/shared/color/color-builder.d.ts.map +0 -1
- package/lib/types/shared/color/color.d.ts.map +0 -1
- package/lib/types/shared/color-builder.d.ts +0 -1
- package/lib/types/shared/color-builder.d.ts.map +0 -1
- package/lib/types/shared/command-enum.d.ts.map +0 -1
- package/lib/types/shared/common.d.ts.map +0 -1
- package/lib/types/shared/compare.d.ts.map +0 -1
- package/lib/types/shared/date-time.d.ts +0 -6
- package/lib/types/shared/date-time.d.ts.map +0 -1
- package/lib/types/shared/doc-tool.d.ts.map +0 -1
- package/lib/types/shared/drop-cell.d.ts +0 -1
- package/lib/types/shared/drop-cell.d.ts.map +0 -1
- package/lib/types/shared/excel-date-time.d.ts +0 -6
- package/lib/types/shared/excel-date-time.d.ts.map +0 -1
- package/lib/types/shared/gen-name.d.ts.map +0 -1
- package/lib/types/shared/generate.d.ts.map +0 -1
- package/lib/types/shared/group-model.d.ts +0 -4
- package/lib/types/shared/group-model.d.ts.map +0 -1
- package/lib/types/shared/hash-algorithm.d.ts.map +0 -1
- package/lib/types/shared/index.d.ts.map +0 -1
- package/lib/types/shared/io-http.d.ts +0 -84
- package/lib/types/shared/io-http.d.ts.map +0 -1
- package/lib/types/shared/io-socket.d.ts +0 -48
- package/lib/types/shared/io-socket.d.ts.map +0 -1
- package/lib/types/shared/lifecycle.d.ts.map +0 -1
- package/lib/types/shared/locale.d.ts.map +0 -1
- package/lib/types/shared/logger.d.ts +0 -12
- package/lib/types/shared/logger.d.ts.map +0 -1
- package/lib/types/shared/lru/index.d.ts.map +0 -1
- package/lib/types/shared/lru/lru-helper.d.ts.map +0 -1
- package/lib/types/shared/lru/lru-map.d.ts.map +0 -1
- package/lib/types/shared/migrate/border.d.ts +0 -3
- package/lib/types/shared/migrate/border.d.ts.map +0 -1
- package/lib/types/shared/migrate/index.d.ts +0 -2
- package/lib/types/shared/migrate/index.d.ts.map +0 -1
- package/lib/types/shared/migrate/migrate.d.ts +0 -3
- package/lib/types/shared/migrate/migrate.d.ts.map +0 -1
- package/lib/types/shared/object-array.d.ts +0 -96
- package/lib/types/shared/object-array.d.ts.map +0 -1
- package/lib/types/shared/object-matrix.d.ts.map +0 -1
- package/lib/types/shared/permission/index.d.ts.map +0 -1
- package/lib/types/shared/props-from.d.ts.map +0 -1
- package/lib/types/shared/random.d.ts +0 -7
- package/lib/types/shared/random.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/border-tree.d.ts +0 -30
- package/lib/types/shared/rect-tree/border-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts +0 -9
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/merge-tree.d.ts +0 -1
- package/lib/types/shared/rect-tree/merge-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/quick-select.d.ts +0 -3
- package/lib/types/shared/rect-tree/quick-select.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/rect-tree.d.ts +0 -60
- package/lib/types/shared/rect-tree/rect-tree.d.ts.map +0 -1
- package/lib/types/shared/rect-tree/styles-tree.d.ts +0 -1
- package/lib/types/shared/rect-tree/styles-tree.d.ts.map +0 -1
- package/lib/types/shared/rectangle.d.ts.map +0 -1
- package/lib/types/shared/ref-alias.d.ts.map +0 -1
- package/lib/types/shared/row-col-iter.d.ts.map +0 -1
- package/lib/types/shared/sequence.d.ts.map +0 -1
- package/lib/types/shared/serialize/index.d.ts +0 -5
- package/lib/types/shared/serialize/index.d.ts.map +0 -1
- package/lib/types/shared/serialize/sequence.d.ts +0 -4
- package/lib/types/shared/serialize/sequence.d.ts.map +0 -1
- package/lib/types/shared/serialize/serialize-manager.d.ts +0 -17
- package/lib/types/shared/serialize/serialize-manager.d.ts.map +0 -1
- package/lib/types/shared/serialize/serialize.d.ts +0 -8
- package/lib/types/shared/serialize/serialize.d.ts.map +0 -1
- package/lib/types/shared/serialize/serializer.d.ts +0 -14
- package/lib/types/shared/serialize/serializer.d.ts.map +0 -1
- package/lib/types/shared/sort-rules.d.ts.map +0 -1
- package/lib/types/shared/tools.d.ts.map +0 -1
- package/lib/types/shared/tuples.d.ts +0 -12
- package/lib/types/shared/tuples.d.ts.map +0 -1
- package/lib/types/shared/type-store.d.ts +0 -10
- package/lib/types/shared/type-store.d.ts.map +0 -1
- package/lib/types/shared/types.d.ts.map +0 -1
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts.map +0 -1
- package/lib/types/sheets/__tests__/styles.spec.d.ts.map +0 -1
- package/lib/types/sheets/column-manager.d.ts.map +0 -1
- package/lib/types/sheets/range.d.ts.map +0 -1
- package/lib/types/sheets/reference.d.ts.map +0 -1
- package/lib/types/sheets/row-manager.d.ts.map +0 -1
- package/lib/types/sheets/styles.d.ts.map +0 -1
- package/lib/types/sheets/view-model.d.ts.map +0 -1
- package/lib/types/sheets/workbook.d.ts.map +0 -1
- package/lib/types/sheets/worksheet.d.ts.map +0 -1
- package/lib/types/slides/domain/index.d.ts.map +0 -1
- package/lib/types/slides/domain/slide-model.d.ts.map +0 -1
- package/lib/types/types/const/action-names.d.ts.map +0 -1
- package/lib/types/types/const/const.d.ts.map +0 -1
- package/lib/types/types/const/doc-action-names.d.ts.map +0 -1
- package/lib/types/types/const/extension-names.d.ts.map +0 -1
- package/lib/types/types/const/index.d.ts.map +0 -1
- package/lib/types/types/const/theme-color-map.d.ts.map +0 -1
- package/lib/types/types/enum/auto-fill-series.d.ts.map +0 -1
- package/lib/types/types/enum/border-style-types.d.ts.map +0 -1
- package/lib/types/types/enum/color-type.d.ts.map +0 -1
- package/lib/types/types/enum/common-hide-types.d.ts.map +0 -1
- package/lib/types/types/enum/condition-type.d.ts.map +0 -1
- package/lib/types/types/enum/copy-paste-type.d.ts.map +0 -1
- package/lib/types/types/enum/developer-metadata-visibility.d.ts.map +0 -1
- package/lib/types/types/enum/dimension.d.ts.map +0 -1
- package/lib/types/types/enum/direction.d.ts.map +0 -1
- package/lib/types/types/enum/format-type.d.ts.map +0 -1
- package/lib/types/types/enum/group-control-toggle-position.d.ts.map +0 -1
- package/lib/types/types/enum/index.d.ts.map +0 -1
- package/lib/types/types/enum/interpolation-point-type.d.ts.map +0 -1
- package/lib/types/types/enum/locale-type.d.ts.map +0 -1
- package/lib/types/types/enum/place-holder-type.d.ts.map +0 -1
- package/lib/types/types/enum/protection-type.d.ts.map +0 -1
- package/lib/types/types/enum/relative-date.d.ts.map +0 -1
- package/lib/types/types/enum/shape-type.d.ts.map +0 -1
- package/lib/types/types/enum/sheet-types.d.ts.map +0 -1
- package/lib/types/types/enum/text-style.d.ts.map +0 -1
- package/lib/types/types/enum/theme-color-type.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-cell-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-column-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-document-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-extra-model-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-freeze.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-image-properties.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-placeholder.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-range.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-row-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-selection-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-service-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-shape-properties.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-slide-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-style-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-univer-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-workbook-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-worksheet-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts.map +0 -1
- package/lib/types/types/interfaces/index.d.ts.map +0 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export * from './registry';
|
|
2
17
|
export * from './univer';
|
|
3
18
|
export * from './univer-doc';
|
|
4
19
|
export * from './univer-sheet';
|
|
5
20
|
export * from './univer-slide';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { Injector } from '@wendellhu/redi';
|
|
17
|
+
import type { Plugin, PluginCtor } from '../plugin/plugin';
|
|
18
|
+
import { LifecycleStages } from '../services/lifecycle/lifecycle';
|
|
19
|
+
import type { LifecycleInitializerService, LifecycleService } from '../services/lifecycle/lifecycle.service';
|
|
20
|
+
import { Disposable } from '../shared/lifecycle';
|
|
21
|
+
export declare abstract class PluginHolder extends Disposable {
|
|
22
|
+
protected abstract get _lifecycleService(): LifecycleService;
|
|
23
|
+
protected abstract get _lifecycleInitializerService(): LifecycleInitializerService;
|
|
24
|
+
protected abstract get _injector(): Injector;
|
|
25
|
+
protected _started: boolean;
|
|
26
|
+
addPlugins(plugins: Array<[PluginCtor<any>, any]>): void;
|
|
27
|
+
protected _takePluginsThroughLifecycle(plugins: Plugin[], skipStarting?: boolean): void;
|
|
28
|
+
protected _pluginsRunLifecycle(plugins: Plugin[], lifecycle: LifecycleStages): void;
|
|
29
|
+
protected _initPlugin<T extends Plugin>(plugin: PluginCtor<T>, options: any): Plugin;
|
|
30
|
+
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
export declare class Registry {
|
|
8
17
|
private _data;
|
|
@@ -24,4 +33,3 @@ export declare class RegistryAsMap {
|
|
|
24
33
|
delete(id: string): void;
|
|
25
34
|
getData(): Map<string, any>;
|
|
26
35
|
}
|
|
27
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { Injector } from '@wendellhu/redi';
|
|
2
17
|
import { DocumentDataModel } from '../docs/data-model/document-data-model';
|
|
3
|
-
import
|
|
4
|
-
import { LifecycleInitializerService } from '../services/lifecycle/lifecycle.service';
|
|
5
|
-
import { Disposable } from '../shared/lifecycle';
|
|
18
|
+
import { LifecycleInitializerService, LifecycleService } from '../services/lifecycle/lifecycle.service';
|
|
6
19
|
import type { IDocumentData } from '../types/interfaces/i-document-data';
|
|
20
|
+
import { PluginHolder } from './plugin-holder';
|
|
7
21
|
/**
|
|
8
22
|
* Externally provided UniverDoc root instance
|
|
9
23
|
*/
|
|
10
|
-
export declare class UniverDoc extends
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
constructor(_injector: Injector,
|
|
15
|
-
start(): void;
|
|
16
|
-
ready(): void;
|
|
24
|
+
export declare class UniverDoc extends PluginHolder {
|
|
25
|
+
protected readonly _injector: Injector;
|
|
26
|
+
protected readonly _lifecycleService: LifecycleService;
|
|
27
|
+
protected readonly _lifecycleInitializerService: LifecycleInitializerService;
|
|
28
|
+
constructor(_injector: Injector, _lifecycleService: LifecycleService, _lifecycleInitializerService: LifecycleInitializerService);
|
|
17
29
|
createDoc(docData: Partial<IDocumentData>): DocumentDataModel;
|
|
18
|
-
addPlugin<T extends Plugin>(pluginCtor: PluginCtor<T>, options: any): void;
|
|
19
30
|
}
|
|
20
|
-
//# sourceMappingURL=univer-doc.d.ts.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDisposable } from '@wendellhu/redi';
|
|
2
17
|
import { Injector } from '@wendellhu/redi';
|
|
3
|
-
import
|
|
4
|
-
import { LifecycleInitializerService } from '../services/lifecycle/lifecycle.service';
|
|
5
|
-
import { Disposable } from '../shared/lifecycle';
|
|
18
|
+
import { LifecycleInitializerService, LifecycleService } from '../services/lifecycle/lifecycle.service';
|
|
6
19
|
import { Workbook } from '../sheets/workbook';
|
|
7
20
|
import type { IWorkbookData } from '../types/interfaces/i-workbook-data';
|
|
21
|
+
import { PluginHolder } from './plugin-holder';
|
|
8
22
|
/**
|
|
9
23
|
* Externally provided UniverSheet root instance
|
|
10
24
|
*/
|
|
11
|
-
export declare class UniverSheet extends
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor(_injector: Injector,
|
|
16
|
-
start(): void;
|
|
17
|
-
ready(): void;
|
|
25
|
+
export declare class UniverSheet extends PluginHolder implements IDisposable {
|
|
26
|
+
protected readonly _injector: Injector;
|
|
27
|
+
protected readonly _lifecycleService: LifecycleService;
|
|
28
|
+
protected readonly _lifecycleInitializerService: LifecycleInitializerService;
|
|
29
|
+
constructor(_injector: Injector, _lifecycleService: LifecycleService, _lifecycleInitializerService: LifecycleInitializerService);
|
|
18
30
|
createSheet(workbookConfig: Partial<IWorkbookData>): Workbook;
|
|
19
|
-
dispose(): void;
|
|
20
|
-
/**
|
|
21
|
-
* Add a plugin into UniverSheet. UniverSheet should add dependencies exposed from this plugin to its DI system.
|
|
22
|
-
*
|
|
23
|
-
* @param plugin constructor of the plugin class
|
|
24
|
-
* @param options options to this plugin
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
addPlugin<T extends Plugin>(plugin: PluginCtor<T>, options: any): void;
|
|
29
|
-
private _initDependencies;
|
|
30
31
|
}
|
|
31
|
-
//# sourceMappingURL=univer-sheet.d.ts.map
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
-
import type { Plugin, PluginCtor } from '../plugin/plugin';
|
|
3
17
|
import { LifecycleInitializerService, LifecycleService } from '../services/lifecycle/lifecycle.service';
|
|
4
|
-
import { Disposable } from '../shared/lifecycle';
|
|
5
18
|
import { Slide } from '../slides/domain/slide-model';
|
|
6
19
|
import type { ISlideData } from '../types/interfaces/i-slide-data';
|
|
20
|
+
import { PluginHolder } from './plugin-holder';
|
|
7
21
|
/**
|
|
8
22
|
* Externally provided UniverSlide root instance
|
|
9
23
|
*/
|
|
10
|
-
export declare class UniverSlide extends
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor(_injector: Injector, _lifecycleService: LifecycleService, _initializerService: LifecycleInitializerService);
|
|
16
|
-
start(): void;
|
|
17
|
-
ready(): void;
|
|
24
|
+
export declare class UniverSlide extends PluginHolder {
|
|
25
|
+
protected readonly _injector: Injector;
|
|
26
|
+
protected readonly _lifecycleService: LifecycleService;
|
|
27
|
+
protected readonly _lifecycleInitializerService: LifecycleInitializerService;
|
|
28
|
+
constructor(_injector: Injector, _lifecycleService: LifecycleService, _lifecycleInitializerService: LifecycleInitializerService);
|
|
18
29
|
createSlide(data: Partial<ISlideData>): Slide;
|
|
19
|
-
/**
|
|
20
|
-
* Add a plugin into UniverSlide. UniverSlide should add dependencies exposed from this plugin to its DI system.
|
|
21
|
-
*
|
|
22
|
-
* @param plugin constructor of the plugin class
|
|
23
|
-
* @param options options to this plugin
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
addPlugin<T extends Plugin>(plugin: PluginCtor<T>, options: any): void;
|
|
28
30
|
}
|
|
29
|
-
//# sourceMappingURL=univer-slide.d.ts.map
|
|
@@ -1,26 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { Injector } from '@wendellhu/redi';
|
|
2
17
|
import type { DocumentDataModel } from '../docs/data-model/document-data-model';
|
|
3
18
|
import type { Plugin, PluginCtor } from '../plugin/plugin';
|
|
19
|
+
import { LifecycleInitializerService, LifecycleService } from '../services/lifecycle/lifecycle.service';
|
|
4
20
|
import type { Workbook } from '../sheets/workbook';
|
|
5
21
|
import type { Slide } from '../slides/domain/slide-model';
|
|
6
22
|
import type { LocaleType } from '../types/enum/locale-type';
|
|
7
23
|
import type { IDocumentData, ISlideData, IUniverData, IWorkbookData } from '../types/interfaces';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare class Univer {
|
|
12
|
-
private readonly _rootInjector;
|
|
24
|
+
import { PluginHolder } from './plugin-holder';
|
|
25
|
+
export declare class Univer extends PluginHolder {
|
|
26
|
+
protected readonly _injector: Injector;
|
|
13
27
|
private readonly _univerPluginStore;
|
|
14
28
|
private readonly _univerPluginRegistry;
|
|
15
29
|
private _univerSheet;
|
|
16
30
|
private _univerDoc;
|
|
17
31
|
private _univerSlide;
|
|
18
32
|
private get _univerInstanceService();
|
|
33
|
+
protected get _lifecycleService(): LifecycleService;
|
|
34
|
+
protected get _lifecycleInitializerService(): LifecycleInitializerService;
|
|
19
35
|
constructor(univerData?: Partial<IUniverData>);
|
|
20
36
|
__getInjector(): Injector;
|
|
21
37
|
dispose(): void;
|
|
22
|
-
/** Register a plugin into univer. */
|
|
23
|
-
registerPlugin<T extends Plugin>(plugin: PluginCtor<T>, configs?: any): void;
|
|
24
38
|
setLocale(locale: LocaleType): void;
|
|
25
39
|
/**
|
|
26
40
|
* Create a univer sheet instance with internal dependency injection.
|
|
@@ -29,13 +43,18 @@ export declare class Univer {
|
|
|
29
43
|
createUniverDoc(config: Partial<IDocumentData>): DocumentDataModel;
|
|
30
44
|
createUniverSlide(config: Partial<ISlideData>): Slide;
|
|
31
45
|
private _initDependencies;
|
|
32
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Initialize modules provided by Univer-type plugins.
|
|
48
|
+
*/
|
|
49
|
+
private _tryProgressToStart;
|
|
33
50
|
private _tryProgressToReady;
|
|
51
|
+
/** Register a plugin into univer. */
|
|
52
|
+
registerPlugin<T extends Plugin>(plugin: PluginCtor<T>, config?: any): void;
|
|
53
|
+
private _initLazyPluginsTimer?;
|
|
54
|
+
private _scheduleInitPluginAfterStarted;
|
|
55
|
+
private _flushLazyPlugins;
|
|
34
56
|
private _registerUniverPlugin;
|
|
35
57
|
private _registerSheetsPlugin;
|
|
36
58
|
private _registerDocsPlugin;
|
|
37
59
|
private _registerSlidesPlugin;
|
|
38
|
-
private _initializePluginsForDoc;
|
|
39
|
-
private _initializePluginsForSlide;
|
|
40
60
|
}
|
|
41
|
-
//# sourceMappingURL=univer.d.ts.map
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
6
15
|
*/
|
|
7
16
|
export declare function remove<T>(arr: T[], item: T): boolean;
|
|
8
17
|
/**
|
|
@@ -12,4 +21,3 @@ export declare function remove<T>(arr: T[], item: T): boolean;
|
|
|
12
21
|
*/
|
|
13
22
|
export declare function dedupe<T>(arr: T[]): T[];
|
|
14
23
|
export declare function findLast<T>(arr: T[], callback: (item: T, index: number) => boolean): T | null;
|
|
15
|
-
//# sourceMappingURL=array.d.ts.map
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare const DOCS_NORMAL_EDITOR_UNIT_ID_KEY = "__defaultDocumentNormalEditorSpecialUnitId_20231006__";
|
|
2
17
|
export declare const DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__";
|
|
3
18
|
export declare const DEFAULT_EMPTY_DOCUMENT_VALUE = "\r\n";
|
|
4
|
-
//# sourceMappingURL=const.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { Nullable } from './type-utils';
|
|
2
17
|
export type InterceptorHandler<M = unknown, C = unknown> = (value: Nullable<M>, context: C, next: (value: Nullable<M>) => Nullable<M>) => Nullable<M>;
|
|
3
18
|
export interface IInterceptor<M, C> {
|
|
@@ -18,4 +33,3 @@ export declare class InterceptorManager<P extends Record<string, IInterceptor<an
|
|
|
18
33
|
intercept<T extends IInterceptor<any, any>>(name: T, interceptor: T): () => boolean;
|
|
19
34
|
getInterceptPoints(): P;
|
|
20
35
|
}
|
|
21
|
-
//# sourceMappingURL=interceptor.d.ts.map
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare class MemoryCursor {
|
|
2
17
|
cursor: number;
|
|
3
18
|
reset(): this;
|
|
4
19
|
moveCursor(pos: number): void;
|
|
20
|
+
moveCursorTo(pos: number): void;
|
|
5
21
|
}
|
|
6
|
-
//# sourceMappingURL=memory-cursor.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare function requestImmediateMacroTask(callback: (value?: unknown) => void): () => void;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export interface ISequenceExecuteResult {
|
|
2
17
|
index: number;
|
|
3
18
|
result: boolean;
|
|
@@ -15,4 +30,3 @@ export declare function sequenceAsync(tasks: Array<() => Promise<boolean> | bool
|
|
|
15
30
|
* @returns Returns `true` if all tasks are executed successfully, otherwise `false` and index of the task that returns false.
|
|
16
31
|
*/
|
|
17
32
|
export declare function sequence(tasks: Array<() => boolean>): ISequenceExecuteResult;
|
|
18
|
-
//# sourceMappingURL=sequence.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare function installShims(): void;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
3
15
|
*/
|
|
4
16
|
export type Nullable<T> = T | null | undefined | void;
|
|
5
|
-
//# sourceMappingURL=type-utils.d.ts.map
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=apply-utils.spec.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { ICustomBlock, ICustomRange, IDocumentBody, IParagraph, ISectionBreak, ITable, ITextRun } from '../../../types/interfaces';
|
|
2
17
|
export declare function normalizeTextRuns(textRuns: ITextRun[]): ITextRun[];
|
|
3
18
|
/**
|
|
@@ -27,4 +42,3 @@ export declare function deleteSectionBreaks(body: IDocumentBody, textLength: num
|
|
|
27
42
|
export declare function deleteCustomBlocks(body: IDocumentBody, textLength: number, currentIndex: number): ICustomBlock[];
|
|
28
43
|
export declare function deleteTables(body: IDocumentBody, textLength: number, currentIndex: number): ITable[];
|
|
29
44
|
export declare function deleteCustomRanges(body: IDocumentBody, textLength: number, currentIndex: number): ICustomRange[];
|
|
30
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentBody } from '../../../types/interfaces';
|
|
2
17
|
export declare function updateAttributeByDelete(body: IDocumentBody, textLength: number, currentIndex: number): IDocumentBody;
|
|
3
|
-
//# sourceMappingURL=delete-apply.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentBody } from '../../../types/interfaces';
|
|
2
17
|
export declare function updateAttributeByInsert(body: IDocumentBody, insertBody: IDocumentBody, textLength: number, currentIndex: number): void;
|
|
3
|
-
//# sourceMappingURL=insert-apply.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { UpdateDocsAttributeType } from '../../../shared';
|
|
2
17
|
import type { IDocumentBody, ITextRun } from '../../../types/interfaces';
|
|
3
18
|
export declare function updateAttribute(body: IDocumentBody, updateBody: IDocumentBody, textLength: number, currentIndex: number, coverType: UpdateDocsAttributeType): IDocumentBody;
|
|
4
19
|
export declare function coverTextRuns(updateDataTextRuns: ITextRun[], removeTextRuns: ITextRun[], coverType: UpdateDocsAttributeType): ITextRun[];
|
|
5
|
-
//# sourceMappingURL=update-apply.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentBody, IDocumentData, IDocumentRenderConfig } from '../../types/interfaces/i-document-data';
|
|
2
17
|
import { type IPaddingData } from '../../types/interfaces/i-style-data';
|
|
3
18
|
import { type DocMutationParams } from './mutation-types';
|
|
@@ -54,4 +69,3 @@ export declare class DocumentDataModel extends DocumentDataModelSimple {
|
|
|
54
69
|
updateDocumentId(unitId: string): void;
|
|
55
70
|
}
|
|
56
71
|
export {};
|
|
57
|
-
//# sourceMappingURL=document-data-model.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export * from './document-data-model';
|
|
17
|
+
export * from './preset-list-type';
|
|
2
18
|
export * from './types';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { UpdateDocsAttributeType } from '../../shared/command-enum';
|
|
2
17
|
import type { IDocumentBody } from '../../types/interfaces/i-document-data';
|
|
3
18
|
/**
|
|
@@ -30,4 +45,3 @@ export interface IDeleteMutationParams {
|
|
|
30
45
|
segmentId?: string;
|
|
31
46
|
}
|
|
32
47
|
export type DocMutationParams = IRetainMutationParams | IInsertMutationParams | IDeleteMutationParams;
|
|
33
|
-
//# sourceMappingURL=mutation-types.d.ts.map
|