@bigfootai/bigfoot-types 3.8.2 → 3.8.4

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
@@ -48,21 +48,21 @@ const tag = {
48
48
  const checklist = {
49
49
  content: 'checklistItem+',
50
50
  group: 'block',
51
- attrs: { taskListId: { default: (0, uuid_1.v4)() } },
51
+ attrs: { editorGroupId: { default: (0, uuid_1.v4)() } },
52
52
  //@ts-expect-error Not sure why this is throwing an error, but will revisit
53
53
  toDOM: (node) => [
54
54
  'ul',
55
55
  {
56
- 'data-task-parent-id': node?.attrs?.taskListId,
56
+ 'data-editor-group-id': node?.attrs?.editorGroupId,
57
57
  },
58
58
  0,
59
59
  ],
60
60
  parseDOM: [
61
61
  {
62
- tag: 'ul.checklist[data-task-parent-id]',
62
+ tag: 'ul.checklist[data-editor-group-id]',
63
63
  getAttrs(dom) {
64
64
  return {
65
- taskListId: dom.getAttribute('data-tag-id'),
65
+ editorGroupId: dom.getAttribute('data-editor-group-id'),
66
66
  };
67
67
  },
68
68
  },
@@ -70,14 +70,14 @@ const checklist = {
70
70
  };
71
71
  const checklistItem = {
72
72
  content: 'text*',
73
- attrs: { checked: { default: false }, taskId: { default: (0, uuid_1.v4)() } },
73
+ attrs: { checked: { default: false }, editorId: { default: (0, uuid_1.v4)() } },
74
74
  //@ts-expect-error Not sure why this is throwing an error, but will revisit
75
75
  toDOM: (node) => [
76
76
  [
77
77
  'li',
78
78
  {
79
79
  'data-checked': node?.attrs?.checked ? true : false,
80
- 'data-task-id': node?.attrs?.taskId,
80
+ 'data-editor-id': node?.attrs?.editorId,
81
81
  },
82
82
  ],
83
83
  [
@@ -92,11 +92,11 @@ const checklistItem = {
92
92
  ],
93
93
  parseDOM: [
94
94
  {
95
- tag: 'li[data-checked][data-task-id]',
95
+ tag: 'li[data-checked][data-editor-id]',
96
96
  getAttrs(dom) {
97
97
  return {
98
- checked: dom.getAttribute('data-checked') === 'true',
99
- taskId: dom.getAttribute('data-task-id'),
98
+ checked: dom.getAttribute('data-checked'),
99
+ editorId: dom.getAttribute('data-editor-id'),
100
100
  };
101
101
  },
102
102
  },
package/editor.ts CHANGED
@@ -53,21 +53,21 @@ const tag: MarkSpec = {
53
53
  const checklist: NodeSpec = {
54
54
  content: 'checklistItem+',
55
55
  group: 'block',
56
- attrs: { taskListId: { default: uuidv4() } },
56
+ attrs: { editorGroupId: { default: uuidv4() } },
57
57
  //@ts-expect-error Not sure why this is throwing an error, but will revisit
58
58
  toDOM: (node: NodeSpec) => [
59
59
  'ul',
60
60
  {
61
- 'data-task-parent-id': node?.attrs?.taskListId,
61
+ 'data-editor-group-id': node?.attrs?.editorGroupId,
62
62
  },
63
63
  0,
64
64
  ],
65
65
  parseDOM: [
66
66
  {
67
- tag: 'ul.checklist[data-task-parent-id]',
67
+ tag: 'ul.checklist[data-editor-group-id]',
68
68
  getAttrs(dom: HTMLElement) {
69
69
  return {
70
- taskListId: dom.getAttribute('data-tag-id'),
70
+ editorGroupId: dom.getAttribute('data-editor-group-id'),
71
71
  };
72
72
  },
73
73
  },
@@ -76,14 +76,14 @@ const checklist: NodeSpec = {
76
76
 
77
77
  const checklistItem: NodeSpec = {
78
78
  content: 'text*',
79
- attrs: { checked: { default: false }, taskId: { default: uuidv4() } },
79
+ attrs: { checked: { default: false }, editorId: { default: uuidv4() } },
80
80
  //@ts-expect-error Not sure why this is throwing an error, but will revisit
81
81
  toDOM: (node: NodeSpec) => [
82
82
  [
83
83
  'li',
84
84
  {
85
85
  'data-checked': node?.attrs?.checked ? true : false,
86
- 'data-task-id': node?.attrs?.taskId,
86
+ 'data-editor-id': node?.attrs?.editorId,
87
87
  },
88
88
  ],
89
89
  [
@@ -98,11 +98,11 @@ const checklistItem: NodeSpec = {
98
98
  ],
99
99
  parseDOM: [
100
100
  {
101
- tag: 'li[data-checked][data-task-id]',
101
+ tag: 'li[data-checked][data-editor-id]',
102
102
  getAttrs(dom: HTMLElement) {
103
103
  return {
104
- checked: dom.getAttribute('data-checked') === 'true',
105
- taskId: dom.getAttribute('data-task-id'),
104
+ checked: dom.getAttribute('data-checked'),
105
+ editorId: dom.getAttribute('data-editor-id'),
106
106
  };
107
107
  },
108
108
  },
package/model.js CHANGED
@@ -514,6 +514,8 @@ type Article {${exports.PrimitiveFields}
514
514
  favorite: Boolean!
515
515
  status: Int
516
516
  originNoteId: String
517
+ editorId: String
518
+ editorGroupId: String
517
519
  parentId: String
518
520
  }`;
519
521
  class Article extends Primitive {
@@ -569,8 +571,7 @@ exports.BusinessObjectFields = `${exports.SharedPrimitiveFields}
569
571
  dateProcessed: Float!
570
572
  externalId: String!
571
573
  processingReason: String
572
- iconUrl: String
573
- parentId: String`;
574
+ iconUrl: String`;
574
575
  exports.BusinessObjectQL = `
575
576
  type BusinessObject {${exports.BusinessObjectFields}
576
577
  }`;
@@ -934,6 +935,8 @@ input UpsertSearchInput {
934
935
  orderByDateDue: String
935
936
  orderByAlias: String
936
937
  status: Int
938
+ editorId: String
939
+ editorGroupId: String
937
940
  parentId: String
938
941
  favorite: Boolean
939
942
  size: Int
@@ -968,6 +971,8 @@ input SearchInput {
968
971
  orderByAlias: String
969
972
  status: Int
970
973
  originNoteId: String
974
+ editorId: String
975
+ editorGroupId: String
971
976
  parentId: String
972
977
  favorite: Boolean
973
978
  page: Int
package/model.ts CHANGED
@@ -764,6 +764,8 @@ type Article {${PrimitiveFields}
764
764
  favorite: Boolean!
765
765
  status: Int
766
766
  originNoteId: String
767
+ editorId: String
768
+ editorGroupId: String
767
769
  parentId: String
768
770
  }`;
769
771
  export class Article extends Primitive {
@@ -782,6 +784,8 @@ export class Article extends Primitive {
782
784
  favorite: boolean;
783
785
  status: TaskStatus;
784
786
  originNoteId?: string;
787
+ editorId?: string;
788
+ editorGroupId?: string;
785
789
  parentId?: string;
786
790
  _changes?: Changes;
787
791
  _tasks?: Task[];
@@ -869,8 +873,7 @@ export const BusinessObjectFields = `${SharedPrimitiveFields}
869
873
  dateProcessed: Float!
870
874
  externalId: String!
871
875
  processingReason: String
872
- iconUrl: String
873
- parentId: String`;
876
+ iconUrl: String`;
874
877
  export const BusinessObjectQL = `
875
878
  type BusinessObject {${BusinessObjectFields}
876
879
  }`;
@@ -1694,6 +1697,8 @@ input UpsertSearchInput {
1694
1697
  orderByDateDue: String
1695
1698
  orderByAlias: String
1696
1699
  status: Int
1700
+ editorId: String
1701
+ editorGroupId: String
1697
1702
  parentId: String
1698
1703
  favorite: Boolean
1699
1704
  size: Int
@@ -1709,6 +1714,8 @@ export interface UpsertSearchInput {
1709
1714
  orderByDateDue?: OrderByDirection;
1710
1715
  orderByAlias?: OrderByDirection;
1711
1716
  status?: number;
1717
+ editorId?: string;
1718
+ editorGroupId?: string;
1712
1719
  parentId?: string;
1713
1720
  favorite?: boolean;
1714
1721
  size?: number;
@@ -1763,6 +1770,8 @@ input SearchInput {
1763
1770
  orderByAlias: String
1764
1771
  status: Int
1765
1772
  originNoteId: String
1773
+ editorId: String
1774
+ editorGroupId: String
1766
1775
  parentId: String
1767
1776
  favorite: Boolean
1768
1777
  page: Int
@@ -1778,6 +1787,8 @@ export interface SearchInput {
1778
1787
  orderByAlias?: OrderByDirection;
1779
1788
  status?: number;
1780
1789
  originNoteId?: string;
1790
+ editorId?: string;
1791
+ editorGroupId?: string;
1781
1792
  parentId?: string;
1782
1793
  favorite?: boolean;
1783
1794
  page?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "3.8.2",
4
+ "version": "3.8.4",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",