@ynput/ayon-frontend-shared 0.6.8 → 0.6.9

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.
@@ -1,24 +1,25 @@
1
- import { jsx as D, jsxs as ge } from "react/jsx-runtime";
1
+ import { jsx as j, jsxs as ge } from "react/jsx-runtime";
2
2
  import { useState as w, useRef as re, useEffect as $, useCallback as E, useMemo as T } from "react";
3
3
  import { registerRemotes as me } from "@module-federation/enhanced/runtime";
4
4
  import { toast as M } from "react-toastify";
5
- import { d as ie, z as he, R as ye, a as ae, p as Pe, A as ve, B as be, G as we, H as Ce, I as Se, J as Ie, K as ke, L as Le, N as xe, O as Ee, Q as Fe, U as De, V as je, W as Te } from "./chunks/DeleteEntitiesContextInstance.es.js";
5
+ import { d as ie, z as he, R as ye, a as ae, p as Pe, A as ve, B as be, G as we, H as Ce, I as Se, J as Ie, K as ke, L as Le, N as xe, O as Ee, Q as Fe, U as je, V as De, W as Te } from "./chunks/DeleteEntitiesContextInstance.es.js";
6
6
  import { E as Rt, M as At, X as Mt, P as Ut, Y as Nt, Z as $t, T as Gt, _ as _t, $ as Bt, g as Wt, a0 as Qt, m as Vt, c as qt, a1 as zt, t as Ht, a2 as Yt, a3 as Kt, a4 as Jt, a5 as Xt, a6 as Zt, o as en, u as tn, n as nn, a7 as on, x as sn, y as rn, b as an, a8 as ln, a9 as cn, aa as dn, ab as un, ac as pn, ad as fn } from "./chunks/DeleteEntitiesContextInstance.es.js";
7
7
  import { az as Oe, bj as Re } from "./chunks/searchTerms.es.js";
8
8
  import { cT as Ae, c4 as Me, ci as Ue, bq as Ne, cV as $e, cE as Ge, bK as _e, c$ as Be, dp as We, cL as Qe } from "./chunks/getUris.es.js";
9
9
  import "primereact/confirmdialog";
10
10
  import "lodash";
11
11
  import { v4 as J } from "uuid";
12
- import { g as Ve, p as qe, b as ze } from "./chunks/getBundleMode.es.js";
12
+ import { g as Ve, c as qe, p as ze, b as He } from "./chunks/getBundleMode.es.js";
13
+ import { U as mn } from "./chunks/getBundleMode.es.js";
13
14
  import { u as le } from "./chunks/useLoadModule.es.js";
14
- import { P as mn, T as hn } from "./chunks/ProjectContext.es.js";
15
+ import { P as yn, T as Pn } from "./chunks/ProjectContext.es.js";
15
16
  import "react-dom";
16
- import { p as He, c as Ye, d as Ke, e as Je, b as oe } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
17
- import { a as Pn } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
18
- import { M as bn } from "./chunks/MenuContext.es.js";
19
- import { u as Xe } from "./chunks/useQueryArgumentChangeLoading.es.js";
20
- import { E as Cn, F as Sn } from "./chunks/EntityUpdatesContext.es.js";
21
- const vt = ({ children: d, skip: i }) => {
17
+ import { p as Ye, c as Ke, d as Je, e as Xe, b as oe } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
18
+ import { a as bn } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
19
+ import { M as Cn } from "./chunks/MenuContext.es.js";
20
+ import { u as Ze } from "./chunks/useQueryArgumentChangeLoading.es.js";
21
+ import { E as In, F as kn } from "./chunks/EntityUpdatesContext.es.js";
22
+ const bt = ({ children: d, skip: i }) => {
22
23
  const {
23
24
  data: r = [],
24
25
  isLoading: t,
@@ -39,7 +40,7 @@ const vt = ({ children: d, skip: i }) => {
39
40
  M.dismiss(e);
40
41
  return;
41
42
  }
42
- const n = l.map((p) => `${p.addonName} ${p.addonVersion}`).join(", "), u = /* @__PURE__ */ D(ye, { message: `Addons updated (${n}). Refresh to load them.` });
43
+ const n = l.map((p) => `${p.addonName} ${p.addonVersion}`).join(", "), u = /* @__PURE__ */ j(ye, { message: `Addons updated (${n}). Refresh to load them.` });
43
44
  M.isActive(e) ? M.update(e, { render: u }) : M.info(u, { toastId: e, autoClose: !1, closeOnClick: !1 });
44
45
  }, [r, a, y]), $(() => {
45
46
  if (t || f || y) return;
@@ -66,7 +67,7 @@ const vt = ({ children: d, skip: i }) => {
66
67
  type: "module"
67
68
  }))
68
69
  ), P(!0);
69
- }, [r, t, f, y]), /* @__PURE__ */ D(
70
+ }, [r, t, f, y]), /* @__PURE__ */ j(
70
71
  he.Provider,
71
72
  {
72
73
  value: {
@@ -77,7 +78,7 @@ const vt = ({ children: d, skip: i }) => {
77
78
  children: d
78
79
  }
79
80
  );
80
- }, Ze = {
81
+ }, et = {
81
82
  planner: {
82
83
  label: "Planner",
83
84
  icon: "calendar_month",
@@ -122,7 +123,7 @@ const vt = ({ children: d, skip: i }) => {
122
123
  "dataPortability"
123
124
  ]
124
125
  }
125
- }, bt = ({
126
+ }, wt = ({
126
127
  children: d,
127
128
  defaultTab: i = "feed",
128
129
  hasLicense: r,
@@ -146,11 +147,11 @@ const vt = ({ children: d, skip: i }) => {
146
147
  [g, i]
147
148
  ), [v, I] = w(null), O = E((S) => {
148
149
  I(S);
149
- }, []), j = E(() => {
150
+ }, []), D = E(() => {
150
151
  I(null), v && N([]);
151
152
  }, []);
152
153
  $(() => {
153
- j();
154
+ D();
154
155
  }, [a.useLocation().pathname]);
155
156
  const [s, k] = w(null), L = E((S) => {
156
157
  k(S);
@@ -209,7 +210,7 @@ const vt = ({ children: d, skip: i }) => {
209
210
  // slide out state
210
211
  slideOut: v,
211
212
  openSlideOut: O,
212
- closeSlideOut: j,
213
+ closeSlideOut: D,
213
214
  // highlighted activities
214
215
  highlightedActivities: H,
215
216
  setHighlightedActivities: N,
@@ -230,27 +231,27 @@ const vt = ({ children: d, skip: i }) => {
230
231
  onPowerFeature: C,
231
232
  ...a
232
233
  }, K = re(z), Z = K.current, ee = Object.keys(z);
233
- return (ee.length !== Object.keys(Z).length || ee.some((S) => Z[S] !== z[S])) && (K.current = z), /* @__PURE__ */ D(we.Provider, { value: K.current, children: d });
234
- }, et = (d) => {
234
+ return (ee.length !== Object.keys(Z).length || ee.some((S) => Z[S] !== z[S])) && (K.current = z), /* @__PURE__ */ j(we.Provider, { value: K.current, children: d });
235
+ }, tt = (d) => {
235
236
  const { setPowerpackDialog: i } = ae();
236
237
  return $(() => {
237
238
  i({ addon: "planner", feature: "subtasks" }), d?.onNotFound?.();
238
239
  }, [i, d.onNotFound]), null;
239
- }, wt = ({ children: d }) => {
240
+ }, Ct = ({ children: d }) => {
240
241
  const [i, { outdated: r, isLoading: t }] = le({
241
242
  addon: "planner",
242
243
  remote: "planner",
243
244
  module: "SubtasksManager",
244
- fallback: et
245
+ fallback: tt
245
246
  });
246
- return /* @__PURE__ */ D(
247
+ return /* @__PURE__ */ j(
247
248
  Se.Provider,
248
249
  {
249
250
  value: { SubtasksManager: i, requiredVersion: r?.required, isLoading: t },
250
251
  children: d
251
252
  }
252
253
  );
253
- }, Ct = ({ children: d }) => {
254
+ }, St = ({ children: d }) => {
254
255
  const [i, r] = w(!1), [t, a] = w(null), [c, f] = w(null), y = () => {
255
256
  r(!0), a(null);
256
257
  }, P = () => {
@@ -262,7 +263,7 @@ const vt = ({ children: d, skip: i }) => {
262
263
  }, e = () => {
263
264
  a(null), f(null);
264
265
  };
265
- return /* @__PURE__ */ D(
266
+ return /* @__PURE__ */ j(
266
267
  Ie.Provider,
267
268
  {
268
269
  value: {
@@ -280,7 +281,7 @@ const vt = ({ children: d, skip: i }) => {
280
281
  }
281
282
  );
282
283
  };
283
- function St({ children: d }) {
284
+ function It({ children: d }) {
284
285
  const i = window.location.protocol === "https:" || window.location.hostname === "localhost", r = "documentPictureInPicture" in window && i, [t, a] = w(null), [c, f] = w(null), y = E(() => {
285
286
  f(null), t != null && (t.close(), a(null));
286
287
  }, [t, c]), P = E(
@@ -331,9 +332,9 @@ function St({ children: d }) {
331
332
  requestPipWindow: P,
332
333
  closePipWindow: y
333
334
  }), [y, r, t, P]);
334
- return /* @__PURE__ */ D(ke.Provider, { value: C, children: d });
335
+ return /* @__PURE__ */ j(ke.Provider, { value: C, children: d });
335
336
  }
336
- const It = ({
337
+ const kt = ({
337
338
  children: d,
338
339
  projectName: i,
339
340
  // utils
@@ -344,7 +345,7 @@ const It = ({
344
345
  { projectName: i },
345
346
  { skip: !i }
346
347
  ), { user: c } = ie();
347
- return /* @__PURE__ */ D(
348
+ return /* @__PURE__ */ j(
348
349
  Le.Provider,
349
350
  {
350
351
  value: {
@@ -357,29 +358,29 @@ const It = ({
357
358
  children: d
358
359
  }
359
360
  );
360
- }, kt = ({ children: d, ...i }) => /* @__PURE__ */ D(xe.Provider, { value: { ...i }, children: d }), ce = "powerpack-license", tt = () => {
361
+ }, Lt = ({ children: d, ...i }) => /* @__PURE__ */ j(xe.Provider, { value: { ...i }, children: d }), ce = "powerpack-license", nt = () => {
361
362
  try {
362
363
  const d = localStorage.getItem(ce);
363
364
  return d === null ? null : d === "true";
364
365
  } catch {
365
366
  return null;
366
367
  }
367
- }, nt = (d) => {
368
+ }, ot = (d) => {
368
369
  try {
369
370
  localStorage.setItem(ce, String(d));
370
371
  } catch {
371
372
  }
372
- }, Lt = ({
373
+ }, xt = ({
373
374
  children: d,
374
375
  debug: i
375
376
  }) => {
376
377
  const [r, t] = w(null), [a, c] = w(null), f = (o) => o !== null && typeof o == "object" && "addon" in o, y = E((o) => {
377
378
  o === null ? (t(null), c(null)) : f(o) ? (t(null), c(o)) : (c(null), t(o));
378
- }, []), P = (o) => o ? He[o] : null, C = (o) => {
379
+ }, []), P = (o) => o ? Ye[o] : null, C = (o) => {
379
380
  if (!o) return null;
380
- const m = Ze[o.addon];
381
+ const m = et[o.addon];
381
382
  return m ? { ...m, selectedFeature: o.feature } : null;
382
- }, [l, e] = w(!1), [n] = w(tt), [u, p] = w(!0), b = async () => !1, [h, { isLoaded: x, isLoading: F }] = le({
383
+ }, [l, e] = w(!1), [n] = w(nt), [u, p] = w(!0), b = async () => !1, [h, { isLoaded: x, isLoading: F }] = le({
383
384
  addon: "powerpack",
384
385
  remote: "license",
385
386
  module: "checkPowerLicense",
@@ -392,7 +393,7 @@ const It = ({
392
393
  else if (x || !F) {
393
394
  try {
394
395
  const m = await h();
395
- e(m), nt(m);
396
+ e(m), ot(m);
396
397
  } catch (m) {
397
398
  console.error("Error checking power license:", m), e(!1);
398
399
  } finally {
@@ -415,8 +416,8 @@ const It = ({
415
416
  }),
416
417
  [l, r, a, y, u, n]
417
418
  );
418
- return /* @__PURE__ */ D(Ee.Provider, { value: g, children: d });
419
- }, xt = ({ children: d, skip: i = !1 }) => {
419
+ return /* @__PURE__ */ j(Ee.Provider, { value: g, children: d });
420
+ }, Et = ({ children: d, skip: i = !1 }) => {
420
421
  const {
421
422
  data: r = {},
422
423
  isLoading: t,
@@ -430,7 +431,7 @@ const It = ({
430
431
  isLoading: u,
431
432
  error: p
432
433
  } = Ge(void 0, { skip: !c?.name });
433
- return /* @__PURE__ */ D(
434
+ return /* @__PURE__ */ j(
434
435
  Fe.Provider,
435
436
  {
436
437
  value: {
@@ -458,7 +459,7 @@ const It = ({
458
459
  children: d
459
460
  }
460
461
  );
461
- }, Et = ({
462
+ }, Ft = ({
462
463
  projectName: d,
463
464
  children: i
464
465
  }) => {
@@ -470,7 +471,7 @@ const It = ({
470
471
  isUninitialized: f,
471
472
  error: y,
472
473
  refetch: P
473
- } = _e({ projectName: d, attrib: !0 }), C = Xe({ projectName: d }, a || t), l = T(() => {
474
+ } = _e({ projectName: d, attrib: !0 }), C = Ze({ projectName: d }, a || t), l = T(() => {
474
475
  const g = /* @__PURE__ */ new Map();
475
476
  for (const o of r)
476
477
  g.set(o.id, o);
@@ -479,17 +480,17 @@ const It = ({
479
480
  () => (g, o, m = {}) => {
480
481
  if (!o.length) return {};
481
482
  const v = {}, I = new Set(o), O = /* @__PURE__ */ new Set();
482
- let j = g;
483
- for (; I.size > 0 && j && !O.has(j); ) {
484
- O.add(j);
485
- const s = l.get(j);
483
+ let D = g;
484
+ for (; I.size > 0 && D && !O.has(D); ) {
485
+ O.add(D);
486
+ const s = l.get(D);
486
487
  if (!s) break;
487
488
  const k = s.attrib || {};
488
489
  for (const L of Array.from(I))
489
490
  s.ownAttrib?.includes(L) && L in k && (v[L] = Object.entries(k).find(
490
491
  ([R]) => R === L
491
492
  )?.[1], I.delete(L));
492
- j = s.parentId;
493
+ D = s.parentId;
493
494
  }
494
495
  for (const s of Array.from(I))
495
496
  s in m && (v[s] = m[s], I.delete(s));
@@ -568,15 +569,15 @@ const It = ({
568
569
  x
569
570
  ]
570
571
  );
571
- return /* @__PURE__ */ D(De.Provider, { value: F, children: i });
572
- }, Ft = "uri", Dt = ({ children: d }) => {
573
- const i = location.pathname, [r, t] = w(""), a = ["projects", "settings", "dashboard/tasks"];
572
+ return /* @__PURE__ */ j(je.Provider, { value: F, children: i });
573
+ }, jt = ({ children: d }) => {
574
+ const i = location.pathname, [r, t] = w(qe), a = ["projects", "settings", "manageProjects", "dashboard/tasks"];
574
575
  $(() => {
575
576
  a.some((u) => i.startsWith(`/${u}`)) || t("");
576
577
  }, [i, t]);
577
- const { type: c, entity: f, settings: y } = qe(r), P = E(
578
+ const { type: c, entity: f, settings: y } = ze(r), P = E(
578
579
  ({ projectName: n, folderPath: u, taskName: p, productName: b, versionName: h }) => {
579
- const x = ze({ projectName: n, folderPath: u, taskName: p, productName: b, versionName: h });
580
+ const x = He({ projectName: n, folderPath: u, taskName: p, productName: b, versionName: h });
580
581
  t(x);
581
582
  },
582
583
  [t]
@@ -597,7 +598,7 @@ const It = ({
597
598
  setEntityUri: P,
598
599
  getUriEntities: l
599
600
  };
600
- return /* @__PURE__ */ D(je.Provider, { value: e, children: d });
601
+ return /* @__PURE__ */ j(De.Provider, { value: e, children: d });
601
602
  }, se = [
602
603
  "representation",
603
604
  "version",
@@ -605,7 +606,7 @@ const It = ({
605
606
  "product",
606
607
  "task",
607
608
  "folder"
608
- ], ot = "delete-folder-with-children", jt = ({ children: d }) => {
609
+ ], st = "delete-folder-with-children", Dt = ({ children: d }) => {
609
610
  const [i] = We(), [r] = Qe(), [t, a] = w(null), [c, f] = w(null), y = E(
610
611
  (e) => new Promise((n) => f({ payload: e, resolve: n })),
611
612
  []
@@ -673,20 +674,20 @@ const It = ({
673
674
  console.warn("Failed to fetch folder delete info, falling back to local data", k);
674
675
  }
675
676
  }
676
- const v = Ye(o, m), I = h.filter((s) => s.entityType === "product").length;
677
+ const v = Ke(o, m), I = h.filter((s) => s.entityType === "product").length;
677
678
  I > 0 && v.push(
678
679
  I > 1 ? "Deleting these products also deletes all their versions" : "Deleting this product also deletes all its versions"
679
680
  );
680
- const O = Ke(h), j = h.length === 1 ? h[0] : void 0;
681
+ const O = Je(h), D = h.length === 1 ? h[0] : void 0;
681
682
  a({
682
683
  payload: {
683
684
  entityLabel: O,
684
685
  childrenDetails: v,
685
- expectedCounts: Je(h, m),
686
- expectedName: j && (j.label || j.name || j.id)
686
+ expectedCounts: Xe(h, m),
687
+ expectedName: D && (D.label || D.name || D.id)
687
688
  },
688
689
  accept: F,
689
- recover: async (s) => Oe(s).includes(ot) ? await y({
690
+ recover: async (s) => Oe(s).includes(st) ? await y({
690
691
  entityLabel: O,
691
692
  message: `Are you really sure you want to delete ${O} and all of its dependencies? This cannot be undone. (NOT RECOMMENDED)`,
692
693
  childrenDetails: [],
@@ -734,7 +735,7 @@ const It = ({
734
735
  }, [t]), l = T(() => ({ deleteEntities: P }), [P]);
735
736
  return /* @__PURE__ */ ge(Te.Provider, { value: l, children: [
736
737
  d,
737
- t && /* @__PURE__ */ D(
738
+ t && /* @__PURE__ */ j(
738
739
  oe,
739
740
  {
740
741
  payload: t.payload,
@@ -742,7 +743,7 @@ const It = ({
742
743
  onCancel: () => a(null)
743
744
  }
744
745
  ),
745
- c && /* @__PURE__ */ D(
746
+ c && /* @__PURE__ */ j(
746
747
  oe,
747
748
  {
748
749
  payload: c.payload,
@@ -759,43 +760,43 @@ const It = ({
759
760
  export {
760
761
  xe as AddonContext,
761
762
  Le as AddonProjectContext,
762
- It as AddonProjectProvider,
763
- kt as AddonProvider,
763
+ kt as AddonProjectProvider,
764
+ Lt as AddonProvider,
764
765
  Te as DeleteEntitiesContext,
765
- jt as DeleteEntitiesProvider,
766
+ Dt as DeleteEntitiesProvider,
766
767
  we as DetailsPanelContext,
767
- bt as DetailsPanelProvider,
768
+ wt as DetailsPanelProvider,
768
769
  Rt as EntityUpdatesContext,
769
- Cn as EntityUpdatesProvider,
770
- Sn as FORCE_AUTO_SYNC,
770
+ In as EntityUpdatesProvider,
771
+ kn as FORCE_AUTO_SYNC,
771
772
  Fe as GlobalContext,
772
- xt as GlobalProvider,
773
+ Et as GlobalProvider,
773
774
  At as MenuContext,
774
- bn as MenuProvider,
775
+ Cn as MenuProvider,
775
776
  ke as PiPContext,
776
- St as PiPProvider,
777
+ It as PiPProvider,
777
778
  Mt as PiPWrapper,
778
779
  Ee as PowerpackContext,
779
- Lt as PowerpackProvider,
780
+ xt as PowerpackProvider,
780
781
  Ut as ProjectContext,
781
- mn as ProjectContextProvider,
782
- De as ProjectFoldersContext,
783
- Et as ProjectFoldersContextProvider,
782
+ yn as ProjectContextProvider,
783
+ je as ProjectFoldersContext,
784
+ Ft as ProjectFoldersContextProvider,
784
785
  he as RemoteModulesContext,
785
- vt as RemoteModulesProvider,
786
+ bt as RemoteModulesProvider,
786
787
  Ie as SettingsPanelContext,
787
- Ct as SettingsPanelProvider,
788
+ St as SettingsPanelProvider,
788
789
  Nt as SocketContext,
789
790
  $t as SocketProvider,
790
791
  Se as SubtasksModulesContext,
791
- wt as SubtasksModulesProvider,
792
+ Ct as SubtasksModulesProvider,
792
793
  Ce as TABS_BY_SCOPE_KEY,
793
794
  Gt as ThumbnailUploadContext,
794
- hn as ThumbnailUploadProvider,
795
- je as URIContext,
796
- Dt as URIProvider,
797
- Ft as URL_PARAM_ID,
798
- Ze as addonConfigs,
795
+ Pn as ThumbnailUploadProvider,
796
+ De as URIContext,
797
+ jt as URIProvider,
798
+ mn as URL_PARAM_ID,
799
+ et as addonConfigs,
799
800
  _t as getActivityFrameLink,
800
801
  Bt as getAutoSyncForTopic,
801
802
  Wt as getUpdateType,
@@ -803,8 +804,8 @@ export {
803
804
  ve as isDetailsPanelTab,
804
805
  Vt as matchesProject,
805
806
  qt as matchesTopic,
806
- Pn as powerpackFeatureOrder,
807
- He as powerpackFeatures,
807
+ bn as powerpackFeatureOrder,
808
+ Ye as powerpackFeatures,
808
809
  zt as setDetailsPanelTabForScope,
809
810
  Ht as toggleSyncAll,
810
811
  Yt as useAddonContext,
package/dist/hooks.es.js CHANGED
@@ -30,13 +30,13 @@ import "./chunks/PlayableIcon.es.js";
30
30
  import "./chunks/JsonViewer.es.js";
31
31
  import "lexical";
32
32
  import "@lexical/markdown";
33
- import "@lexical/react/LexicalBlockWithAlignableContents";
34
- import "@lexical/react/LexicalDecoratorBlockNode";
35
33
  import "@lexical/code";
36
34
  import "@lexical/list";
37
35
  import "@lexical/rich-text";
38
36
  import "@lexical/selection";
39
37
  import "@lexical/utils";
38
+ import "@lexical/react/LexicalBlockWithAlignableContents";
39
+ import "@lexical/react/LexicalDecoratorBlockNode";
40
40
  import "./chunks/EmptyPlaceholder.es.js";
41
41
  import "./chunks/Menu.es.js";
42
42
  import "./chunks/InfoMessage.es.js";
package/dist/index.es.js CHANGED
@@ -20,13 +20,13 @@ import "./chunks/JsonViewer.es.js";
20
20
  import "./chunks/Watchers.es.js";
21
21
  import "lexical";
22
22
  import "@lexical/markdown";
23
- import "@lexical/react/LexicalBlockWithAlignableContents";
24
- import "@lexical/react/LexicalDecoratorBlockNode";
25
23
  import "@lexical/code";
26
24
  import "@lexical/list";
27
25
  import "@lexical/rich-text";
28
26
  import "@lexical/selection";
29
27
  import "@lexical/utils";
28
+ import "@lexical/react/LexicalBlockWithAlignableContents";
29
+ import "@lexical/react/LexicalDecoratorBlockNode";
30
30
  import "@module-federation/enhanced/runtime";
31
31
  import "semver";
32
32
  import "./chunks/ContextMenuContextInstance.es.js";
@@ -44,6 +44,12 @@ declare type ActivityUser = {
44
44
  };
45
45
  };
46
46
 
47
+ export declare const blockquoteTag: ({ children }: BlockquoteTagProps) => JSX.Element;
48
+
49
+ declare interface BlockquoteTagProps {
50
+ children: default_2.ReactNode;
51
+ }
52
+
47
53
  export declare const CategoryDropdownItem: ForwardRefExoticComponent<CategoryDropdownItemProps & RefAttributes<HTMLSpanElement>>;
48
54
 
49
55
  export declare interface CategoryDropdownItemProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
@@ -74,6 +80,16 @@ declare type ChecklistCount = {
74
80
  ids: string[];
75
81
  };
76
82
 
83
+ export declare const codeTag: ({ node, className, children }: CodeTagProps) => JSX.Element;
84
+
85
+ declare interface CodeTagProps {
86
+ node: any;
87
+ className?: string;
88
+ children: default_2.ReactNode;
89
+ }
90
+
91
+ export declare const COMMENT_DIRECTIVES: string[];
92
+
77
93
  export declare type EditingState = null | typeof FEED_NEW_COMMENT | string;
78
94
 
79
95
  export declare const expandableMimeTypes: {
@@ -176,6 +192,18 @@ export declare const getMultiSelection: (selection: {
176
192
  [key: string]: boolean;
177
193
  }, newSelection: string[], orderedIds: string[], nextId: string, direction: number) => string[];
178
194
 
195
+ export declare const inputTag: ({ type, checked, ...props }: InputTagProps, { activity, onCheckChange }: InputTagOptions) => JSX.Element;
196
+
197
+ declare interface InputTagOptions {
198
+ activity: any;
199
+ onCheckChange?: (event: default_2.ChangeEvent<HTMLInputElement>, activity: any) => void;
200
+ }
201
+
202
+ declare interface InputTagProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
203
+ type: string;
204
+ checked?: boolean;
205
+ }
206
+
179
207
  export declare const isCategoryHidden: (categories: ActivityCategory[], { isGuest, isAdmin }: {
180
208
  isGuest?: boolean;
181
209
  isAdmin: boolean;
@@ -183,6 +211,21 @@ export declare const isCategoryHidden: (categories: ActivityCategory[], { isGues
183
211
 
184
212
  export declare const isFilePreviewable: (mime?: string, ext?: string) => boolean;
185
213
 
214
+ declare type MdNode = {
215
+ type: string;
216
+ name?: string;
217
+ value?: string;
218
+ children?: MdNode[];
219
+ position?: {
220
+ start: {
221
+ offset?: number;
222
+ };
223
+ end: {
224
+ offset?: number;
225
+ };
226
+ };
227
+ };
228
+
186
229
  export declare type MimeTypeDefinition = {
187
230
  component: React.FC<any> | null;
188
231
  mimeTypes: string[];
@@ -231,6 +274,17 @@ export declare interface RefTooltip {
231
274
  };
232
275
  }
233
276
 
277
+ /**
278
+ * remark-directive reads any `:name` as a directive, so `Note:fix this` or `:something` in a
279
+ * comment would become an unknown, empty element and the text would be lost. This turns every
280
+ * directive that is not in `known` back into the text that was typed.
281
+ *
282
+ * Use it after `remarkDirective` and before `remarkDirectiveRehype`.
283
+ */
284
+ export declare const remarkLiteralDirectives: (known?: string[]) => (tree: MdNode, file: {
285
+ value?: unknown;
286
+ }) => void;
287
+
234
288
  export declare type SavedAnnotationMetadata = {
235
289
  id: string;
236
290
  composite: string;
@@ -1291,11 +1291,14 @@ export declare const generateDummyAttributes: (count?: number) => AttributeModel
1291
1291
 
1292
1292
  /**
1293
1293
  * Generates an array of placeholder rows for loading state
1294
- * @param attribs - Attribute models used to populate empty attribute fields
1295
1294
  * @param count - Number of loading rows to generate (default: 50)
1295
+ * @param attrib - Attribute values for the placeholder rows
1296
+ * @param key - Makes the ids unique within the table, e.g. the id of the row they load under.
1297
+ * The ids must stay the same across renders: the table reports its visible row ids, and new ids
1298
+ * every render make the page re-render (and rebuild these rows) in a loop until loading ends.
1296
1299
  * @returns Array of TableRow objects with loading state
1297
1300
  */
1298
- export declare const generateLoadingRows: (count?: number, attrib?: {}) => TableRow[];
1301
+ export declare const generateLoadingRows: (count?: number, attrib?: {}, key?: string) => TableRow[];
1299
1302
 
1300
1303
  declare type GetAncestorsOf = (id: string) => string[];
1301
1304