@bigfootai/bigfoot-types 3.5.4 → 3.5.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.
package/editor.js CHANGED
@@ -15,28 +15,31 @@ exports.bigfootSchema = new prosemirror_model_1.Schema({
15
15
  tagId: { default: null },
16
16
  tagType: { default: null },
17
17
  recommendationId: { default: null },
18
+ ignore: { default: null },
18
19
  },
19
20
  inclusive: false,
20
21
  parseDOM: [
21
22
  {
22
- tag: 'span[data-tag-id][data-recommendation-id][data-tag-type]',
23
+ tag: 'span[data-tag-id][data-tag-type][data-recommendation-id][data-ignore]',
23
24
  getAttrs(dom) {
24
25
  return {
25
26
  tagId: dom.getAttribute('data-tag-id'),
26
27
  tagType: dom.getAttribute('data-tag-type'),
27
28
  recommendationId: dom.getAttribute('data-recommendation-id'),
29
+ ignore: dom.getAttribute('data-ignore'),
28
30
  };
29
31
  },
30
32
  },
31
33
  ],
32
34
  toDOM(node) {
33
- const { tagId, tagType, recommendationId } = node.attrs;
35
+ const { tagId, tagType, recommendationId, ignore } = node.attrs;
34
36
  return [
35
37
  'span',
36
38
  {
37
39
  'data-tag-id': tagId,
38
40
  'data-tag-type': tagType,
39
41
  'data-recommendation-id': recommendationId,
42
+ 'data-ignore': ignore,
40
43
  },
41
44
  0,
42
45
  ];
package/editor.ts CHANGED
@@ -10,11 +10,12 @@ export const bigfootSchema = new Schema({
10
10
  tagId: { default: null },
11
11
  tagType: { default: null },
12
12
  recommendationId: { default: null },
13
+ ignore: { default: null },
13
14
  },
14
15
  inclusive: false,
15
16
  parseDOM: [
16
17
  {
17
- tag: 'span[data-tag-id][data-recommendation-id][data-tag-type]',
18
+ tag: 'span[data-tag-id][data-tag-type][data-recommendation-id][data-ignore]',
18
19
  getAttrs(dom) {
19
20
  return {
20
21
  tagId: (dom as HTMLElement).getAttribute('data-tag-id'),
@@ -24,18 +25,22 @@ export const bigfootSchema = new Schema({
24
25
  recommendationId: (dom as HTMLElement).getAttribute(
25
26
  'data-recommendation-id'
26
27
  ),
28
+ ignore: (dom as HTMLElement).getAttribute(
29
+ 'data-ignore'
30
+ ),
27
31
  };
28
32
  },
29
33
  },
30
34
  ],
31
35
  toDOM(node) {
32
- const { tagId, tagType, recommendationId } = node.attrs;
36
+ const { tagId, tagType, recommendationId, ignore } = node.attrs;
33
37
  return [
34
38
  'span',
35
39
  {
36
40
  'data-tag-id': tagId,
37
41
  'data-tag-type': tagType,
38
42
  'data-recommendation-id': recommendationId,
43
+ 'data-ignore': ignore,
39
44
  },
40
45
  0,
41
46
  ];
package/model.js CHANGED
@@ -384,6 +384,7 @@ exports.TagFields = `${exports.PrimitiveFields}
384
384
  email: String
385
385
  avatar: String
386
386
  inviteStatus: Int
387
+ originNoteId: String
387
388
  tenantIdVerified: String`;
388
389
  exports.TagQL = `
389
390
  type Tag {${exports.TagFields}
package/model.ts CHANGED
@@ -573,6 +573,7 @@ export const TagFields = `${PrimitiveFields}
573
573
  email: String
574
574
  avatar: String
575
575
  inviteStatus: Int
576
+ originNoteId: String
576
577
  tenantIdVerified: String`;
577
578
  export const TagQL = `
578
579
  type Tag {${TagFields}
@@ -589,6 +590,7 @@ export class Tag extends Primitive {
589
590
  email?: string;
590
591
  avatar?: string;
591
592
  inviteStatus?: InviteStatus;
593
+ originNoteId?: string; // If the tag originated from a note, we store that here
592
594
  tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
593
595
 
594
596
  constructor(tenantIdCreated: string, alias: string, tagType: TagType) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "3.5.4",
4
+ "version": "3.5.6",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",