@tiptap/extension-gapcursor
Advanced tools
Comparing version 2.0.0-beta.5 to 2.0.0-beta.6
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-beta.5...@tiptap/extension-gapcursor@2.0.0-beta.6) (2021-04-15) | ||
**Note:** Version bump only for package @tiptap/extension-gapcursor | ||
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-beta.4...@tiptap/extension-gapcursor@2.0.0-beta.5) (2021-04-12) | ||
@@ -8,0 +16,0 @@ |
@@ -17,7 +17,7 @@ 'use strict'; | ||
var _a; | ||
const context = core.createExtensionContext(extension, { | ||
const context = { | ||
options: extension.options, | ||
}); | ||
}; | ||
return { | ||
allowGapCursor: (_a = core.callOrReturn(extension.config.allowGapCursor, context)) !== null && _a !== void 0 ? _a : null, | ||
allowGapCursor: (_a = core.callOrReturn(core.getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null, | ||
}; | ||
@@ -24,0 +24,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { Extension, createExtensionContext, callOrReturn } from '@tiptap/core'; | ||
import { Extension, callOrReturn, getExtensionField } from '@tiptap/core'; | ||
import { gapCursor } from 'prosemirror-gapcursor'; | ||
@@ -13,7 +13,7 @@ | ||
var _a; | ||
const context = createExtensionContext(extension, { | ||
const context = { | ||
options: extension.options, | ||
}); | ||
}; | ||
return { | ||
allowGapCursor: (_a = callOrReturn(extension.config.allowGapCursor, context)) !== null && _a !== void 0 ? _a : null, | ||
allowGapCursor: (_a = callOrReturn(getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null, | ||
}; | ||
@@ -20,0 +20,0 @@ }, |
@@ -16,7 +16,7 @@ (function (global, factory) { | ||
var _a; | ||
const context = core.createExtensionContext(extension, { | ||
const context = { | ||
options: extension.options, | ||
}); | ||
}; | ||
return { | ||
allowGapCursor: (_a = core.callOrReturn(extension.config.allowGapCursor, context)) !== null && _a !== void 0 ? _a : null, | ||
allowGapCursor: (_a = core.callOrReturn(core.getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null, | ||
}; | ||
@@ -23,0 +23,0 @@ }, |
{ | ||
"name": "@tiptap/extension-gapcursor", | ||
"description": "gapcursor extension for tiptap", | ||
"version": "2.0.0-beta.5", | ||
"version": "2.0.0-beta.6", | ||
"homepage": "https://tiptap.dev", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "28d30a10341cb5cd10626b1b8c884c20787b5d72" | ||
"gitHead": "634c1ae4931a8a268c7251f702b2a7d5121f02d2" | ||
} |
@@ -14,2 +14,2 @@ # @tiptap/extension-gapcursor | ||
## License | ||
tiptap is open-sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap-next/blob/main/LICENSE.md). | ||
tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap-next/blob/main/LICENSE.md). |
import { | ||
Extension, | ||
callOrReturn, | ||
createExtensionContext, | ||
getExtensionField, | ||
ParentConfig, | ||
@@ -34,10 +34,10 @@ } from '@tiptap/core' | ||
extendNodeSchema(extension) { | ||
const context = createExtensionContext(extension, { | ||
const context = { | ||
options: extension.options, | ||
}) | ||
} | ||
return { | ||
allowGapCursor: callOrReturn(extension.config.allowGapCursor, context) ?? null, | ||
allowGapCursor: callOrReturn(getExtensionField(extension, 'allowGapCursor', context)) ?? null, | ||
} | ||
}, | ||
}) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
894843