@manuscripts/transform 2.0.0 → 2.0.1-LEAN-3083
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.
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.isManuscriptNode = exports.manuscript = void 0;
|
|
19
|
-
const index_1 = require("../index");
|
|
20
19
|
exports.manuscript = {
|
|
21
20
|
content: 'title? contributors? affiliations? keywords? abstracts body backmatter comments',
|
|
22
21
|
attrs: {
|
|
@@ -45,5 +44,5 @@ exports.manuscript = {
|
|
|
45
44
|
];
|
|
46
45
|
},
|
|
47
46
|
};
|
|
48
|
-
const isManuscriptNode = (node) => node.type ===
|
|
47
|
+
const isManuscriptNode = (node) => node.type === node.type.schema.nodes.manuscript;
|
|
49
48
|
exports.isManuscriptNode = isManuscriptNode;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { schema } from '../index';
|
|
17
16
|
export const manuscript = {
|
|
18
17
|
content: 'title? contributors? affiliations? keywords? abstracts body backmatter comments',
|
|
19
18
|
attrs: {
|
|
@@ -42,4 +41,4 @@ export const manuscript = {
|
|
|
42
41
|
];
|
|
43
42
|
},
|
|
44
43
|
};
|
|
45
|
-
export const isManuscriptNode = (node) => node.type === schema.nodes.manuscript;
|
|
44
|
+
export const isManuscriptNode = (node) => node.type === node.type.schema.nodes.manuscript;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/transform",
|
|
3
3
|
"description": "ProseMirror transformer for Manuscripts applications",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1-LEAN-3083",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|