@manuscripts/transform 1.1.5-vite-support → 1.1.6

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.
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.keyword = void 0;
19
19
  exports.keyword = {
20
20
  atom: true,
21
- content: 'text*',
21
+ content: 'inline*',
22
22
  attrs: {
23
23
  id: { default: '' },
24
24
  contents: { default: '' },
@@ -37,6 +37,7 @@ exports.keywordsSection = {
37
37
  id: keywordsSectionNode.attrs.id,
38
38
  class: 'keywords',
39
39
  spellcheck: 'false',
40
+ contenteditable: false,
40
41
  },
41
42
  0,
42
43
  ];
@@ -25,12 +25,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.loadIssnBundleIndex = exports.loadBundlesMap = void 0;
27
27
  const loadBundlesMap = async () => {
28
- const { default: bundles } = await Promise.resolve().then(() => __importStar(require('../../node_modules/@manuscripts/data/dist/shared/bundles.json')));
28
+ const { default: bundles } = await Promise.resolve().then(() => __importStar(require('@manuscripts/data/dist/shared/bundles.json')));
29
29
  return new Map(bundles.map((bundle) => [bundle._id, bundle]));
30
30
  };
31
31
  exports.loadBundlesMap = loadBundlesMap;
32
32
  const loadIssnBundleIndex = async () => {
33
- const { default: issnBundleIndex } = await Promise.resolve().then(() => __importStar(require('../../node_modules/@manuscripts/data/dist/shared/issn-bundle-index.json')));
33
+ const { default: issnBundleIndex } = await Promise.resolve().then(() => __importStar(require('@manuscripts/data/dist/shared/issn-bundle-index.json')));
34
34
  return issnBundleIndex;
35
35
  };
36
36
  exports.loadIssnBundleIndex = loadIssnBundleIndex;
@@ -260,6 +260,7 @@ class HTMLTransformer {
260
260
  };
261
261
  return ['span', attrs];
262
262
  };
263
+ nodes.comment_list = () => '';
263
264
  const serializer = new prosemirror_model_1.DOMSerializer(nodes, marks);
264
265
  return serializer.serializeFragment(fragment, { document });
265
266
  };
@@ -26,6 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.loadSharedData = void 0;
27
27
  const loadSharedData = (file) => {
28
28
  var _a;
29
- return (_a = `../../node_modules/@manuscripts/data/dist/shared/${file}.json`, Promise.resolve().then(() => __importStar(require(_a)))).then((module) => module.default);
29
+ return (_a = `@manuscripts/data/dist/shared/${file}.json`, Promise.resolve().then(() => __importStar(require(_a)))).then((module) => module.default);
30
30
  };
31
31
  exports.loadSharedData = loadSharedData;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  export const keyword = {
17
17
  atom: true,
18
- content: 'text*',
18
+ content: 'inline*',
19
19
  attrs: {
20
20
  id: { default: '' },
21
21
  contents: { default: '' },
@@ -34,6 +34,7 @@ export const keywordsSection = {
34
34
  id: keywordsSectionNode.attrs.id,
35
35
  class: 'keywords',
36
36
  spellcheck: 'false',
37
+ contenteditable: false,
37
38
  },
38
39
  0,
39
40
  ];
@@ -1,8 +1,8 @@
1
1
  export const loadBundlesMap = async () => {
2
- const { default: bundles } = await import('../../node_modules/@manuscripts/data/dist/shared/bundles.json');
2
+ const { default: bundles } = await import('@manuscripts/data/dist/shared/bundles.json');
3
3
  return new Map(bundles.map((bundle) => [bundle._id, bundle]));
4
4
  };
5
5
  export const loadIssnBundleIndex = async () => {
6
- const { default: issnBundleIndex } = await import('../../node_modules/@manuscripts/data/dist/shared/issn-bundle-index.json');
6
+ const { default: issnBundleIndex } = await import('@manuscripts/data/dist/shared/issn-bundle-index.json');
7
7
  return issnBundleIndex;
8
8
  };
@@ -254,6 +254,7 @@ export class HTMLTransformer {
254
254
  };
255
255
  return ['span', attrs];
256
256
  };
257
+ nodes.comment_list = () => '';
257
258
  const serializer = new DOMSerializer(nodes, marks);
258
259
  return serializer.serializeFragment(fragment, { document });
259
260
  };
@@ -1 +1 @@
1
- export const loadSharedData = (file) => import(`../../node_modules/@manuscripts/data/dist/shared/${file}.json`).then((module) => module.default);
1
+ export const loadSharedData = (file) => import(`@manuscripts/data/dist/shared/${file}.json`).then((module) => module.default);
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": "1.1.5-vite-support",
4
+ "version": "1.1.6",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",