@prosekit/core
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,2 +0,1 @@ | ||
export { ProseKitError } from './_tsup-dts-rollup'; | ||
export { addMark } from './_tsup-dts-rollup'; | ||
@@ -13,2 +12,3 @@ export { insertNode } from './_tsup-dts-rollup'; | ||
export { withPriority } from './_tsup-dts-rollup'; | ||
export { ProseKitError_alias_1 as ProseKitError } from './_tsup-dts-rollup'; | ||
export { defineBaseCommands } from './_tsup-dts-rollup'; | ||
@@ -68,59 +68,1 @@ export { defineCommands } from './_tsup-dts-rollup'; | ||
export { isTextSelection } from './_tsup-dts-rollup'; | ||
export { insertText } from './_tsup-dts-rollup'; | ||
export { selectAll } from './_tsup-dts-rollup'; | ||
export { wrap } from './_tsup-dts-rollup'; | ||
export { createNodeBuilder } from './_tsup-dts-rollup'; | ||
export { createMarkBuilder } from './_tsup-dts-rollup'; | ||
export { NodeChild } from './_tsup-dts-rollup'; | ||
export { NodeBuilder } from './_tsup-dts-rollup'; | ||
export { MarkBuilder } from './_tsup-dts-rollup'; | ||
export { applyAction } from './_tsup-dts-rollup'; | ||
export { insertNodeAction } from './_tsup-dts-rollup'; | ||
export { defineParagraphSpec } from './_tsup-dts-rollup'; | ||
export { UpdateHandler } from './_tsup-dts-rollup'; | ||
export { BaseExtension } from './_tsup-dts-rollup'; | ||
export { CommandPayload } from './_tsup-dts-rollup'; | ||
export { commandFacet } from './_tsup-dts-rollup'; | ||
export { getFacetCount } from './_tsup-dts-rollup'; | ||
export { FacetConverter } from './_tsup-dts-rollup'; | ||
export { FacetExtensionImpl } from './_tsup-dts-rollup'; | ||
export { updateExtension } from './_tsup-dts-rollup'; | ||
export { Payloads } from './_tsup-dts-rollup'; | ||
export { Converters } from './_tsup-dts-rollup'; | ||
export { SchemaPayload } from './_tsup-dts-rollup'; | ||
export { schemaFacet } from './_tsup-dts-rollup'; | ||
export { StatePayload } from './_tsup-dts-rollup'; | ||
export { stateFacet } from './_tsup-dts-rollup'; | ||
export { UnionExtensionImpl } from './_tsup-dts-rollup'; | ||
export { ViewPayload } from './_tsup-dts-rollup'; | ||
export { viewFacet } from './_tsup-dts-rollup'; | ||
export { assertTypeEqual } from './_tsup-dts-rollup'; | ||
export { CommandApplier } from './_tsup-dts-rollup'; | ||
export { CommandCreator } from './_tsup-dts-rollup'; | ||
export { CommandCreators } from './_tsup-dts-rollup'; | ||
export { ToCommandArgs } from './_tsup-dts-rollup'; | ||
export { ToCommandCreators } from './_tsup-dts-rollup'; | ||
export { ToCommandApplier } from './_tsup-dts-rollup'; | ||
export { ExceptEmptyValue } from './_tsup-dts-rollup'; | ||
export { ExtractNodesFromTyping } from './_tsup-dts-rollup'; | ||
export { ExtractMarksFromTyping } from './_tsup-dts-rollup'; | ||
export { ExtractCommandArgsFromTyping } from './_tsup-dts-rollup'; | ||
export { ExtractTyping } from './_tsup-dts-rollup'; | ||
export { ExtractCommandArgs } from './_tsup-dts-rollup'; | ||
export { ExtractKey } from './_tsup-dts-rollup'; | ||
export { voidFunction } from './_tsup-dts-rollup'; | ||
export { attrsMatch } from './_tsup-dts-rollup'; | ||
export { collectNodes } from './_tsup-dts-rollup'; | ||
export { NodeContent } from './_tsup-dts-rollup'; | ||
export { isMac } from './_tsup-dts-rollup'; | ||
export { getCustomSelection } from './_tsup-dts-rollup'; | ||
export { getBrowserDocument } from './_tsup-dts-rollup'; | ||
export { getBrowserWindow } from './_tsup-dts-rollup'; | ||
export { isMarkActive } from './_tsup-dts-rollup'; | ||
export { isNodeActive } from './_tsup-dts-rollup'; | ||
export { isNotNull } from './_tsup-dts-rollup'; | ||
export { objectEqual } from './_tsup-dts-rollup'; | ||
export { elementFromHTML } from './_tsup-dts-rollup'; | ||
export { uniqPush } from './_tsup-dts-rollup'; | ||
export { uniqRemove } from './_tsup-dts-rollup'; | ||
export { default_alias as default } from './_tsup-dts-rollup'; |
@@ -1161,7 +1161,18 @@ // src/commands/add-mark.ts | ||
var pluginFacet = Facet.define({ | ||
convert: (callbacks) => { | ||
return ({ schema }) => { | ||
const plugins = callbacks.flatMap((func) => func({ schema })); | ||
converter: () => { | ||
let inputs = []; | ||
const output = ({ schema }) => { | ||
const plugins = inputs.flatMap((func) => func({ schema })); | ||
return { plugins }; | ||
}; | ||
return { | ||
create: (payloads) => { | ||
inputs = payloads; | ||
return output; | ||
}, | ||
update: (payloads) => { | ||
inputs = payloads; | ||
return output; | ||
} | ||
}; | ||
}, | ||
@@ -1168,0 +1179,0 @@ next: stateFacet |
{ | ||
"name": "@prosekit/core", | ||
"type": "module", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"private": false, | ||
@@ -43,8 +43,8 @@ "author": { | ||
"orderedmap": "^2.1.1", | ||
"type-fest": "^4.8.0" | ||
"type-fest": "^4.8.2" | ||
}, | ||
"devDependencies": { | ||
"@prosekit/dev": "*", | ||
"tsup": "^7.3.0", | ||
"typescript": "^5.2.2", | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.3.2", | ||
"vitest": "^0.34.6" | ||
@@ -51,0 +51,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77382
2481
Updatedtype-fest@^4.8.2