@bigfootai/bigfoot-types 3.7.10 → 3.7.12

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.
package/editor.js CHANGED
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.bigfootSchema = void 0;
4
7
  const prosemirror_model_1 = require("prosemirror-model");
5
8
  const prosemirror_schema_basic_1 = require("prosemirror-schema-basic");
6
9
  const prosemirror_schema_list_1 = require("prosemirror-schema-list");
10
+ const orderedmap_1 = __importDefault(require("orderedmap"));
7
11
  const tag = {
8
12
  attrs: {
9
13
  tagId: { default: null },
@@ -85,8 +89,7 @@ exports.bigfootSchema = new prosemirror_model_1.Schema({
85
89
  nodes: (0, prosemirror_schema_list_1.addListNodes)(prosemirror_schema_basic_1.schema.spec.nodes, 'paragraph block*', 'block')
86
90
  .addToEnd('checklist', checklist)
87
91
  .addToEnd('checklistItem', checklistItem),
88
- //@ts-expect-error Not sure why this is throwing an error, but will revisit
89
- marks: orderedMap
92
+ marks: orderedmap_1.default
90
93
  .from(prosemirror_schema_basic_1.schema.spec.marks)
91
94
  .addToEnd('tag', tag)
92
95
  .addToEnd('strong', strong),
package/editor.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { MarkSpec, NodeSpec, Schema } from 'prosemirror-model';
2
2
  import { schema } from 'prosemirror-schema-basic';
3
3
  import { addListNodes } from 'prosemirror-schema-list';
4
+ import orderedMap from 'orderedmap';
4
5
 
5
6
  const tag: MarkSpec = {
6
7
  attrs: {
@@ -97,7 +98,6 @@ export const bigfootSchema = new Schema({
97
98
  nodes: addListNodes(schema.spec.nodes, 'paragraph block*', 'block')
98
99
  .addToEnd('checklist', checklist)
99
100
  .addToEnd('checklistItem', checklistItem),
100
- //@ts-expect-error Not sure why this is throwing an error, but will revisit
101
101
  marks: orderedMap
102
102
  .from(schema.spec.marks)
103
103
  .addToEnd('tag', tag)
package/model.js CHANGED
@@ -77,6 +77,7 @@ var TagRecommendationType;
77
77
  TagRecommendationType["TagFound"] = "found";
78
78
  TagRecommendationType["MultipleTagsFound"] = "multiple_found";
79
79
  TagRecommendationType["TagCreationFailed"] = "creation_failed";
80
+ TagRecommendationType["Ignore"] = "ignore";
80
81
  })(TagRecommendationType || (exports.TagRecommendationType = TagRecommendationType = {}));
81
82
  var TagRecommendationVariation;
82
83
  (function (TagRecommendationVariation) {
package/model.ts CHANGED
@@ -72,6 +72,7 @@ export enum TagRecommendationType {
72
72
  TagFound = 'found',
73
73
  MultipleTagsFound = 'multiple_found',
74
74
  TagCreationFailed = 'creation_failed',
75
+ Ignore = 'ignore',
75
76
  }
76
77
 
77
78
  export enum TagRecommendationVariation {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "3.7.10",
4
+ "version": "3.7.12",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",