@edifice.io/wiki 3.6.9 → 3.6.10

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.
@@ -4,8 +4,11 @@ import { IAction } from '@edifice.io/client';
4
4
  * @param actions (expects an array of actions)
5
5
  * @returns queryOptions with key, fn, and selected data
6
6
  */
7
- export declare const actionsQueryOptions: (actions: IAction[]) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Record<string, boolean>, Error, IAction[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
8
- queryFn?: import('@tanstack/react-query').QueryFunction<Record<string, boolean>, import('@tanstack/react-query').QueryKey, never> | undefined;
7
+ export declare const actionsQueryOptions: (actions: IAction[]) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Record<string, boolean>, Error, IAction[], string[]>, "queryFn"> & {
8
+ queryFn?: import('@tanstack/react-query').QueryFunction<Record<string, boolean>, string[], never> | undefined;
9
9
  } & {
10
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, Record<string, boolean>>;
10
+ queryKey: string[] & {
11
+ [dataTagSymbol]: Record<string, boolean>;
12
+ [dataTagErrorSymbol]: Error;
13
+ };
11
14
  };
@@ -70,7 +70,11 @@ export declare const pageQueryOptions: {
70
70
  }];
71
71
  parentId?: string;
72
72
  position?: number;
73
- }, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
73
+ }, readonly ["page", {
74
+ readonly id: string;
75
+ }, {
76
+ readonly originalformat: boolean | undefined;
77
+ }]>, "queryFn"> & {
74
78
  queryFn?: import('@tanstack/react-query').QueryFunction<{
75
79
  comments: {
76
80
  id: string;
@@ -102,79 +106,141 @@ export declare const pageQueryOptions: {
102
106
  }];
103
107
  parentId?: string;
104
108
  position?: number;
105
- }, import('@tanstack/react-query').QueryKey, never> | undefined;
109
+ }, readonly ["page", {
110
+ readonly id: string;
111
+ }, {
112
+ readonly originalformat: boolean | undefined;
113
+ }], never> | undefined;
106
114
  } & {
107
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, {
108
- comments: {
109
- id: string;
110
- comment: string;
111
- authorId: string;
112
- authorName: string;
113
- createdAt: number;
114
- updatedAt: number;
115
- replyTo: string | undefined;
116
- deleted: boolean | undefined;
117
- }[] | undefined;
118
- isVisible: boolean;
119
- _id: string;
120
- title: string;
121
- content: string;
122
- contentPlain: string;
123
- contentVersion: number;
124
- author: string;
125
- authorName: string;
126
- created?: import('../../../models').Created;
127
- modified: import('../../../models').Modified;
128
- lastContributer?: string;
129
- lastContributerName?: string;
130
- children?: [{
115
+ queryKey: readonly ["page", {
116
+ readonly id: string;
117
+ }, {
118
+ readonly originalformat: boolean | undefined;
119
+ }] & {
120
+ [dataTagSymbol]: {
121
+ comments: {
122
+ id: string;
123
+ comment: string;
124
+ authorId: string;
125
+ authorName: string;
126
+ createdAt: number;
127
+ updatedAt: number;
128
+ replyTo: string | undefined;
129
+ deleted: boolean | undefined;
130
+ }[] | undefined;
131
+ isVisible: boolean;
131
132
  _id: string;
132
133
  title: string;
133
- isVisible: boolean;
134
+ content: string;
135
+ contentPlain: string;
136
+ contentVersion: number;
137
+ author: string;
138
+ authorName: string;
139
+ created?: import('../../../models').Created;
140
+ modified: import('../../../models').Modified;
141
+ lastContributer?: string;
142
+ lastContributerName?: string;
143
+ children?: [{
144
+ _id: string;
145
+ title: string;
146
+ isVisible: boolean;
147
+ position?: number;
148
+ }];
149
+ parentId?: string;
134
150
  position?: number;
135
- }];
136
- parentId?: string;
137
- position?: number;
138
- }>;
151
+ };
152
+ [dataTagErrorSymbol]: Error;
153
+ };
139
154
  };
140
155
  findAllFromWiki: ({ wikiId, content, }: {
141
156
  wikiId: string;
142
157
  content: boolean;
143
- }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').Page[], Error, import('../../../models').Page[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
144
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').Page[], import('@tanstack/react-query').QueryKey, never> | undefined;
158
+ }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').Page[], Error, import('../../../models').Page[], readonly ["page", {
159
+ readonly id: string;
160
+ }]>, "queryFn"> & {
161
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').Page[], readonly ["page", {
162
+ readonly id: string;
163
+ }], never> | undefined;
145
164
  } & {
146
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models').Page[]>;
165
+ queryKey: readonly ["page", {
166
+ readonly id: string;
167
+ }] & {
168
+ [dataTagSymbol]: import('../../../models').Page[];
169
+ [dataTagErrorSymbol]: Error;
170
+ };
147
171
  };
148
172
  findAllRevisionsForPage: ({ wikiId, pageId, }: {
149
173
  wikiId: string;
150
174
  pageId: string;
151
- }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models/revision').Revision[], Error, import('../../../models/revision').Revision[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
152
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models/revision').Revision[], import('@tanstack/react-query').QueryKey, never> | undefined;
175
+ }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models/revision').Revision[], Error, import('../../../models/revision').Revision[], readonly ["page", "revision", {
176
+ readonly id: string;
177
+ }]>, "queryFn"> & {
178
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models/revision').Revision[], readonly ["page", "revision", {
179
+ readonly id: string;
180
+ }], never> | undefined;
153
181
  } & {
154
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models/revision').Revision[]>;
182
+ queryKey: readonly ["page", "revision", {
183
+ readonly id: string;
184
+ }] & {
185
+ [dataTagSymbol]: import('../../../models/revision').Revision[];
186
+ [dataTagErrorSymbol]: Error;
187
+ };
155
188
  };
156
189
  findOneRevision: ({ wikiId, pageId, revisionId, }: {
157
190
  wikiId: string;
158
191
  pageId: string;
159
192
  revisionId?: string;
160
- }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models/revision').Revision, Error, import('../../../models/revision').Revision, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
161
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models/revision').Revision, import('@tanstack/react-query').QueryKey, never> | undefined;
193
+ }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models/revision').Revision, Error, import('../../../models/revision').Revision, readonly ["page", "revision", {
194
+ readonly id: string;
195
+ }, {
196
+ readonly id: string | undefined;
197
+ }]>, "queryFn"> & {
198
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models/revision').Revision, readonly ["page", "revision", {
199
+ readonly id: string;
200
+ }, {
201
+ readonly id: string | undefined;
202
+ }], never> | undefined;
162
203
  } & {
163
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models/revision').Revision>;
204
+ queryKey: readonly ["page", "revision", {
205
+ readonly id: string;
206
+ }, {
207
+ readonly id: string | undefined;
208
+ }] & {
209
+ [dataTagSymbol]: import('../../../models/revision').Revision;
210
+ [dataTagErrorSymbol]: Error;
211
+ };
164
212
  };
165
213
  findPagesViewsCounter: ({ pageIds }: {
166
214
  pageIds: string[];
167
- }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').ViewsCounters, Error, import('@edifice.io/client').ViewsCounters, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
168
- queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').ViewsCounters, import('@tanstack/react-query').QueryKey, never> | undefined;
215
+ }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').ViewsCounters, Error, import('@edifice.io/client').ViewsCounters, readonly ["page", "viewsCounter", {
216
+ readonly id: string[];
217
+ }]>, "queryFn"> & {
218
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').ViewsCounters, readonly ["page", "viewsCounter", {
219
+ readonly id: string[];
220
+ }], never> | undefined;
169
221
  } & {
170
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('@edifice.io/client').ViewsCounters>;
222
+ queryKey: readonly ["page", "viewsCounter", {
223
+ readonly id: string[];
224
+ }] & {
225
+ [dataTagSymbol]: import('@edifice.io/client').ViewsCounters;
226
+ [dataTagErrorSymbol]: Error;
227
+ };
171
228
  };
172
229
  findPageViewsDetails: ({ pageId }: {
173
230
  pageId: string;
174
- }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').ViewsDetails | undefined, Error, import('@edifice.io/client').ViewsDetails | undefined, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
175
- queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').ViewsDetails | undefined, import('@tanstack/react-query').QueryKey, never> | undefined;
231
+ }) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').ViewsDetails | undefined, Error, import('@edifice.io/client').ViewsDetails | undefined, readonly ["page", "viewsDetails", {
232
+ readonly id: string;
233
+ }]>, "queryFn"> & {
234
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').ViewsDetails | undefined, readonly ["page", "viewsDetails", {
235
+ readonly id: string;
236
+ }], never> | undefined;
176
237
  } & {
177
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('@edifice.io/client').ViewsDetails | undefined>;
238
+ queryKey: readonly ["page", "viewsDetails", {
239
+ readonly id: string;
240
+ }] & {
241
+ [dataTagSymbol]: import('@edifice.io/client').ViewsDetails | undefined;
242
+ [dataTagErrorSymbol]: Error;
243
+ };
178
244
  };
179
245
  };
180
246
  /**
@@ -1,9 +1,18 @@
1
1
  export declare const pollQueryOptions: {
2
2
  base: readonly ["poll"];
3
- findOne: (pollName: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../api/poll/poll.types').Poll, Error, import('../../api/poll/poll.types').Poll, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
4
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../../api/poll/poll.types').Poll, import('@tanstack/react-query').QueryKey, never> | undefined;
3
+ findOne: (pollName: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../api/poll/poll.types').Poll, Error, import('../../api/poll/poll.types').Poll, readonly ["poll", {
4
+ readonly name: string;
5
+ }]>, "queryFn"> & {
6
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../api/poll/poll.types').Poll, readonly ["poll", {
7
+ readonly name: string;
8
+ }], never> | undefined;
5
9
  } & {
6
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../api/poll/poll.types').Poll>;
10
+ queryKey: readonly ["poll", {
11
+ readonly name: string;
12
+ }] & {
13
+ [dataTagSymbol]: import('../../api/poll/poll.types').Poll;
14
+ [dataTagErrorSymbol]: Error;
15
+ };
7
16
  };
8
17
  };
9
18
  export declare const useGetPoll: (pollName: string) => import('@tanstack/react-query').UseQueryResult<import('../../api/poll/poll.types').Poll, Error>;
@@ -3,20 +3,29 @@
3
3
  */
4
4
  export declare const wikiQueryOptions: {
5
5
  base: readonly ["wiki"];
6
- findAllAsResources: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').IResource[], Error, import('@edifice.io/client').IResource[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
7
- queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').IResource[], import('@tanstack/react-query').QueryKey, never> | undefined;
6
+ findAllAsResources: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').IResource[], Error, import('@edifice.io/client').IResource[], readonly ["wiki", "resources"]>, "queryFn"> & {
7
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').IResource[], readonly ["wiki", "resources"], never> | undefined;
8
8
  } & {
9
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('@edifice.io/client').IResource[]>;
9
+ queryKey: readonly ["wiki", "resources"] & {
10
+ [dataTagSymbol]: import('@edifice.io/client').IResource[];
11
+ [dataTagErrorSymbol]: Error;
12
+ };
10
13
  };
11
- findAll: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').PickedWiki[], Error, import('../../../models').PickedWiki[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
12
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').PickedWiki[], import('@tanstack/react-query').QueryKey, never> | undefined;
14
+ findAll: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').PickedWiki[], Error, import('../../../models').PickedWiki[], readonly ["wiki", "list"]>, "queryFn"> & {
15
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').PickedWiki[], readonly ["wiki", "list"], never> | undefined;
13
16
  } & {
14
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models').PickedWiki[]>;
17
+ queryKey: readonly ["wiki", "list"] & {
18
+ [dataTagSymbol]: import('../../../models').PickedWiki[];
19
+ [dataTagErrorSymbol]: Error;
20
+ };
15
21
  };
16
- findAllWithPages: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').Wiki[], Error, import('../../../models').Wiki[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
17
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').Wiki[], import('@tanstack/react-query').QueryKey, never> | undefined;
22
+ findAllWithPages: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').Wiki[], Error, import('../../../models').Wiki[], readonly ["wiki", "listallpages"]>, "queryFn"> & {
23
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').Wiki[], readonly ["wiki", "listallpages"], never> | undefined;
18
24
  } & {
19
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models').Wiki[]>;
25
+ queryKey: readonly ["wiki", "listallpages"] & {
26
+ [dataTagSymbol]: import('../../../models').Wiki[];
27
+ [dataTagErrorSymbol]: Error;
28
+ };
20
29
  };
21
30
  findOne: (wikiId: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
22
31
  pages: {
@@ -102,7 +111,9 @@ export declare const wikiQueryOptions: {
102
111
  shared?: string[];
103
112
  aiGenerated?: boolean;
104
113
  aiMetadata?: import('../../../models').AIMetadata;
105
- }, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
114
+ }, readonly ["wiki", {
115
+ readonly id: string;
116
+ }]>, "queryFn"> & {
106
117
  queryFn?: import('@tanstack/react-query').QueryFunction<{
107
118
  pages: {
108
119
  isVisible: boolean;
@@ -145,51 +156,58 @@ export declare const wikiQueryOptions: {
145
156
  shared?: string[];
146
157
  aiGenerated?: boolean;
147
158
  aiMetadata?: import('../../../models').AIMetadata;
148
- }, import('@tanstack/react-query').QueryKey, never> | undefined;
159
+ }, readonly ["wiki", {
160
+ readonly id: string;
161
+ }], never> | undefined;
149
162
  } & {
150
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, {
151
- pages: {
152
- isVisible: boolean;
153
- _id: string;
154
- title: string;
155
- content: string;
156
- jsonContent?: any;
157
- contentPlain: string;
158
- contentVersion: number;
159
- author: string;
160
- authorName: string;
161
- modified: import('../../../models').Modified;
162
- created?: import('../../../models').Created;
163
- lastContributer?: string;
164
- lastContributerName?: string;
165
- comments?: import('../../../models').Comment[];
166
- children?: [{
163
+ queryKey: readonly ["wiki", {
164
+ readonly id: string;
165
+ }] & {
166
+ [dataTagSymbol]: {
167
+ pages: {
168
+ isVisible: boolean;
167
169
  _id: string;
168
170
  title: string;
169
- isVisible: boolean;
171
+ content: string;
172
+ jsonContent?: any;
173
+ contentPlain: string;
174
+ contentVersion: number;
175
+ author: string;
176
+ authorName: string;
177
+ modified: import('../../../models').Modified;
178
+ created?: import('../../../models').Created;
179
+ lastContributer?: string;
180
+ lastContributerName?: string;
181
+ comments?: import('../../../models').Comment[];
182
+ children?: [{
183
+ _id: string;
184
+ title: string;
185
+ isVisible: boolean;
186
+ position?: number;
187
+ }];
170
188
  position?: number;
171
- }];
172
- position?: number;
173
- parentId?: string;
174
- error?: any;
175
- views?: number;
176
- aiMetadata?: {
177
- contentGenerated?: boolean;
178
- contentGeneratedDate?: import('../../../models').Created;
179
- };
180
- }[];
181
- _id: string;
182
- title: string;
183
- thumbnail: string;
184
- created: import('../../../models').Created;
185
- modified: import('../../../models').Modified;
186
- owner: import('../../../models').Owner;
187
- rights: string[];
188
- index?: string;
189
- shared?: string[];
190
- aiGenerated?: boolean;
191
- aiMetadata?: import('../../../models').AIMetadata;
192
- }>;
189
+ parentId?: string;
190
+ error?: any;
191
+ views?: number;
192
+ aiMetadata?: {
193
+ contentGenerated?: boolean;
194
+ contentGeneratedDate?: import('../../../models').Created;
195
+ };
196
+ }[];
197
+ _id: string;
198
+ title: string;
199
+ thumbnail: string;
200
+ created: import('../../../models').Created;
201
+ modified: import('../../../models').Modified;
202
+ owner: import('../../../models').Owner;
203
+ rights: string[];
204
+ index?: string;
205
+ shared?: string[];
206
+ aiGenerated?: boolean;
207
+ aiMetadata?: import('../../../models').AIMetadata;
208
+ };
209
+ [dataTagErrorSymbol]: Error;
210
+ };
193
211
  };
194
212
  };
195
213
  export declare const useGetWikis: () => import('@tanstack/react-query').UseQueryResult<import('../../../models').PickedWiki[], Error>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/wiki",
3
- "version": "3.6.9",
3
+ "version": "3.6.10",
4
4
  "description": "Wiki application",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "Edifice",
@@ -17,17 +17,17 @@
17
17
  ]
18
18
  },
19
19
  "dependencies": {
20
- "@edifice.io/bootstrap": "2.6.4",
21
- "@edifice.io/client": "2.6.4",
22
- "@edifice.io/react": "2.6.4",
20
+ "@edifice.io/bootstrap": "2.6.5",
21
+ "@edifice.io/client": "2.6.5",
22
+ "@edifice.io/react": "2.6.5",
23
23
  "@react-spring/web": "9.7.5",
24
- "@tanstack/react-query": "5.62.7",
24
+ "@tanstack/react-query": "5.81.5",
25
25
  "@uidotdev/usehooks": "2.4.1",
26
26
  "clsx": "2.1.1",
27
27
  "i18next": "23.8.1",
28
28
  "i18next-http-backend": "2.4.2",
29
29
  "lottie-react": "2.4.1",
30
- "ode-explorer": "2.6.8",
30
+ "ode-explorer": "2.6.9",
31
31
  "react": "18.3.1",
32
32
  "react-dom": "18.3.1",
33
33
  "react-error-boundary": "4.0.13",