Skip to content

Commit fd513ad

Browse files
committed
chore: bump version to 4.4.1 and update type exports
1 parent 7666628 commit fd513ad

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mind-elixir",
3-
"version": "4.4.0",
3+
"version": "4.4.1",
44
"type": "module",
55
"description": "Mind elixir is a free open source mind map core.",
66
"keywords": [

src/docs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Summary, SummarySvgGroup } from './summary'
55
import type { MindElixirData, MindElixirInstance, NodeObj, NodeObjExport, Options, Theme } from './types'
66
import type { MainLineParams, SubLineParams } from './utils/generateBranch'
77
import type { Locale } from './i18n'
8-
98
export {
109
methods,
1110
Theme,
@@ -23,4 +22,5 @@ export {
2322
Locale,
2423
}
2524

26-
export * from './types/dom'
25+
export type * from './types/dom'
26+
export type * from './utils/pubsub'

src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import Bus from './utils/pubsub'
77
import { findEle } from './utils/dom'
88
import { createLinkSvg, createLine } from './utils/svg'
99
import dragMoveHelper from './utils/dragMoveHelper'
10-
// types
11-
export * from './types/index'
12-
export * from './types/dom'
1310
import type { MindElixirData, MindElixirInstance, MindElixirMethods, Options } from './types/index'
1411
import methods from './methods'
1512
import { sub, main } from './utils/generateBranch'
@@ -178,3 +175,8 @@ export interface MindElixirCtor {
178175
}
179176

180177
export default MindElixir as unknown as MindElixirCtor
178+
179+
// types
180+
export type * from './utils/pubsub'
181+
export type * from './types/index'
182+
export type * from './types/dom'

src/summary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MindElixirInstance, Topic } from '.'
2-
import { DirectionClass } from '.'
2+
import { DirectionClass } from './types/index'
33
import { generateUUID, getOffsetLT, setAttributes } from './utils'
44
import { findEle } from './utils/dom'
55
import { editSvgText } from './utils/svg'

src/utils/generateBranch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MindElixirInstance } from '..'
2-
import { DirectionClass } from '..'
2+
import { DirectionClass } from '../types/index'
33

44
export interface MainLineParams {
55
pT: number

0 commit comments

Comments
 (0)