@manuscripts/transform 1.4.2 → 1.4.3

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.
@@ -17,7 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.bibliographyElement = void 0;
19
19
  exports.bibliographyElement = {
20
- content: '(bibliography_item | placeholder)+',
20
+ content: 'bibliography_item*',
21
21
  attrs: {
22
22
  id: { default: '' },
23
23
  contents: { default: '' },
@@ -140,9 +140,6 @@ class Decoder {
140
140
  return references.push(this.decode(referenceModel));
141
141
  }
142
142
  });
143
- if (!references.length) {
144
- references.push(schema_1.schema.nodes.placeholder.createAndFill());
145
- }
146
143
  return schema_1.schema.nodes.bibliography_element.createChecked({
147
144
  id: model._id,
148
145
  contents: '',
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const bibliographyElement = {
17
- content: '(bibliography_item | placeholder)+',
17
+ content: 'bibliography_item*',
18
18
  attrs: {
19
19
  id: { default: '' },
20
20
  contents: { default: '' },
@@ -130,9 +130,6 @@ export class Decoder {
130
130
  return references.push(this.decode(referenceModel));
131
131
  }
132
132
  });
133
- if (!references.length) {
134
- references.push(schema.nodes.placeholder.createAndFill());
135
- }
136
133
  return schema.nodes.bibliography_element.createChecked({
137
134
  id: model._id,
138
135
  contents: '',
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.4.2",
4
+ "version": "1.4.3",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",