@etrepum/lexical-builder-core 0.0.33 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/definePlan.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/shallowMergeConfig.d.ts +0 -1
- package/dist/types.d.ts +6 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -8
package/dist/definePlan.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { AnyLexicalPlan, LexicalPlan, LexicalPlanConfig, NormalizedLexicalPlanArgument, NormalizedPeerDependency, PlanConfigBase, RegisterCleanup } from './types';
|
2
|
-
|
3
2
|
/**
|
4
3
|
* Define a LexicalPlan from the given object literal. TypeScript will
|
5
4
|
* infer Config and Name in most cases, but you may want to use
|
package/dist/index.d.ts
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
export declare const PACKAGE_VERSION: string;
|
9
9
|
export { configPlan, definePlan, provideOutput, declarePeerDependency, } from './definePlan';
|
10
|
-
export { type AnyLexicalPlan, type AnyLexicalPlanArgument, type LexicalEditorWithDispose, type InitialEditorConfig, type InitialEditorStateType, type LexicalPlan, type LexicalPlanArgument, type LexicalPlanConfig, type LexicalPlanInit, type LexicalPlanName, type LexicalPlanOutput, type OutputComponentPlan, type LexicalPlanDependency, type
|
10
|
+
export { type AnyLexicalPlan, type AnyLexicalPlanArgument, type AnyNormalizedLexicalPlanArgument, type LexicalEditorWithDispose, type InitialEditorConfig, type InitialEditorStateType, type LexicalPlan, type LexicalPlanArgument, type LexicalPlanConfig, type LexicalPlanInit, type LexicalPlanName, type LexicalPlanOutput, type OutputComponentPlan, type LexicalPlanDependency, type NormalizedLexicalPlanArgument, type PlanConfigBase, type PlanInitState, type PlanRegisterState, type RegisterCleanup, type NormalizedPeerDependency, } from './types';
|
11
11
|
export { type LexicalPlanInternal, type initTypeSymbol, type configTypeSymbol, type outputTypeSymbol, } from './internal';
|
12
12
|
export { safeCast } from './safeCast';
|
13
13
|
export { shallowMergeConfig } from './shallowMergeConfig';
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AAEvE,OAAO,EACL,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AAEvE,OAAO,EACL,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,wBAAwB,GAC9B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/types.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { CreateEditorArgs, EditorState, LexicalEditor } from 'lexical';
|
2
2
|
import { LexicalPlanInternal, peerDependencySymbol, configTypeSymbol, outputTypeSymbol, initTypeSymbol } from './internal';
|
3
|
-
|
4
3
|
/**
|
5
4
|
* Any concrete {@link LexicalPlan}
|
6
5
|
*/
|
@@ -8,7 +7,7 @@ export type AnyLexicalPlan = LexicalPlan<any, string, any, any>;
|
|
8
7
|
/**
|
9
8
|
* Any {@link LexicalPlan} or {@link NormalizedLexicalPlanArgument}
|
10
9
|
*/
|
11
|
-
export type AnyLexicalPlanArgument =
|
10
|
+
export type AnyLexicalPlanArgument = AnyLexicalPlan | AnyNormalizedLexicalPlanArgument;
|
12
11
|
/**
|
13
12
|
* The default plan configuration of an empty object
|
14
13
|
*/
|
@@ -20,9 +19,13 @@ export type NormalizedPeerDependency<Plan extends AnyLexicalPlan> = [
|
|
20
19
|
readonly [peerDependencySymbol]: Plan;
|
21
20
|
};
|
22
21
|
/**
|
23
|
-
*
|
22
|
+
* Any {@link NormalizedLexicalPlanArgument}
|
24
23
|
*/
|
25
24
|
export type NormalizedLexicalPlanArgument<in out Config extends PlanConfigBase, out Name extends string, in out Output, in out Init> = [LexicalPlan<Config, Name, Output, Init>, ...Partial<Config>[]];
|
25
|
+
/**
|
26
|
+
* A tuple of [plan, ...configOverrides]
|
27
|
+
*/
|
28
|
+
export type AnyNormalizedLexicalPlanArgument = NormalizedLexicalPlanArgument<any, string, any, any>;
|
26
29
|
/**
|
27
30
|
* An object that the register method can use to detect unmount and access the
|
28
31
|
* configuration for plan dependencies
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB;;GAEG;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAChE;;GAEG;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB;;GAEG;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAChE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,cAAc,GACd,gCAAgC,CAAC;AACrC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAElD,MAAM,MAAM,wBAAwB,CAAC,IAAI,SAAS,cAAc,IAAI;IAClE,IAAI,CAAC,MAAM,CAAC;IACZ,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS;CAC7C,GAAG;IAAE,QAAQ,CAAC,CAAC,oBAAoB,CAAC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",
|
16
16
|
"test:watch": "vitest"
|
17
17
|
},
|
18
|
-
"version": "0.0.
|
18
|
+
"version": "0.0.35",
|
19
19
|
"license": "MIT",
|
20
20
|
"repository": {
|
21
21
|
"type": "git",
|
@@ -38,14 +38,18 @@
|
|
38
38
|
"eslint": "^8.57.0",
|
39
39
|
"jsdom": "^24.1.0",
|
40
40
|
"tslib": "^2.6.2",
|
41
|
-
"typescript": "^5.
|
42
|
-
"vite": "^5.
|
43
|
-
"vite-plugin-dts": "
|
44
|
-
"vite-plugin-package-version": "
|
45
|
-
"vitest": "
|
41
|
+
"typescript": "^5.5.2",
|
42
|
+
"vite": "^5.4.0",
|
43
|
+
"vite-plugin-dts": "^4.0.2",
|
44
|
+
"vite-plugin-package-version": "^1.1.0",
|
45
|
+
"vitest": "^2.0.5"
|
46
|
+
},
|
47
|
+
"exports": {
|
48
|
+
".": {
|
49
|
+
"types": "./dist/index.d.ts",
|
50
|
+
"default": "./dist/index.js"
|
51
|
+
}
|
46
52
|
},
|
47
|
-
"module": "dist/index.js",
|
48
|
-
"types": "dist/index.d.ts",
|
49
53
|
"files": [
|
50
54
|
"dist"
|
51
55
|
]
|