@ynput/ayon-frontend-shared 0.5.0 → 0.6.1

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.
Files changed (92) hide show
  1. package/dist/ContextMenu.es.js +34 -16
  2. package/dist/DetailsPanel.es.js +307 -311
  3. package/dist/Feed.es.js +179 -50
  4. package/dist/ListTable.es.js +99 -92
  5. package/dist/NewEntity.es.js +1256 -11
  6. package/dist/ProjectTreeTable.es.js +4459 -2959
  7. package/dist/SimpleTable.es.js +8 -7
  8. package/dist/Slicer.es.js +451 -147
  9. package/dist/Views.es.js +918 -310
  10. package/dist/api.es.js +331 -329
  11. package/dist/chunks/Actions.es.js +32 -27
  12. package/dist/chunks/ColumnDropIndicator.es.js +174 -328
  13. package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
  14. package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
  15. package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
  16. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
  17. package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
  18. package/dist/chunks/DetailsDialog.es.js +3 -3
  19. package/dist/chunks/EmptyPlaceholder.es.js +4 -4
  20. package/dist/chunks/EntityPath.es.js +74 -69
  21. package/dist/chunks/EntityPickerDialog.es.js +25 -21
  22. package/dist/chunks/EntityTooltip.es.js +29 -22
  23. package/dist/chunks/EntityUpdatesContext.es.js +38 -96
  24. package/dist/chunks/Feed.es.js +2321 -2668
  25. package/dist/chunks/FilterErrorActions.es.js +25 -229
  26. package/dist/chunks/Menu.es.js +21 -17
  27. package/dist/chunks/MenuContext.es.js +14 -256
  28. package/dist/chunks/MenuItem.es.js +34 -24
  29. package/dist/chunks/MetaWidget.es.js +2895 -4919
  30. package/dist/chunks/NewEntityContextInstance.es.js +11 -0
  31. package/dist/chunks/PlayableIcon.es.js +4215 -1179
  32. package/dist/chunks/ProjectContext.es.js +102 -66
  33. package/dist/chunks/RepresentationsList.es.js +4 -4
  34. package/dist/chunks/ReviewablesSelector.es.js +468 -460
  35. package/dist/chunks/SimpleForm.es.js +18 -18
  36. package/dist/chunks/SimpleTable.es.js +15 -13
  37. package/dist/chunks/Slicer.es.js +109 -98
  38. package/dist/chunks/TableSettingsFallback.es.js +22 -10
  39. package/dist/chunks/ThumbnailSimple.es.js +290 -52
  40. package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
  41. package/dist/chunks/VideoPlayer.es.js +24 -28
  42. package/dist/chunks/Watchers.es.js +669 -644
  43. package/dist/chunks/entityDefinitions.es.js +2 -350
  44. package/dist/chunks/expandRelativeDates.es.js +27 -0
  45. package/dist/chunks/extractVersionFromFilename.es.js +28 -0
  46. package/dist/chunks/getBundleMode.es.js +1 -1
  47. package/dist/chunks/getUris.es.js +737 -710
  48. package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
  49. package/dist/chunks/searchTerms.es.js +179 -174
  50. package/dist/chunks/useAttributeEnums.es.js +9 -9
  51. package/dist/chunks/useCreateContextMenu.es.js +66 -90
  52. package/dist/chunks/useDateRangeFilter.es.js +3 -3
  53. package/dist/chunks/useHierarchySelection.es.js +24 -0
  54. package/dist/chunks/useLoadModule.es.js +74 -0
  55. package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
  56. package/dist/chunks/versionUploadHelpers.es.js +16 -42
  57. package/dist/chunks/viewUpdateHelper.es.js +74 -57
  58. package/dist/components.es.js +1432 -1001
  59. package/dist/context.es.js +791 -78
  60. package/dist/hooks.es.js +95 -94
  61. package/dist/index.es.js +27 -26
  62. package/dist/types/Actions.d.ts +15 -15
  63. package/dist/types/ContextMenu.d.ts +19 -16
  64. package/dist/types/DetailsPanel.d.ts +110 -17
  65. package/dist/types/EntityPickerDialog.d.ts +15 -15
  66. package/dist/types/Feed.d.ts +19 -16
  67. package/dist/types/ListTable.d.ts +15 -15
  68. package/dist/types/NewEntity.d.ts +24 -18
  69. package/dist/types/ProjectTreeTable.d.ts +34 -123
  70. package/dist/types/RepresentationsList.d.ts +15 -15
  71. package/dist/types/SimpleTable.d.ts +19 -16
  72. package/dist/types/Slicer.d.ts +18 -15
  73. package/dist/types/Views.d.ts +19 -16
  74. package/dist/types/api.d.ts +515 -207
  75. package/dist/types/components.d.ts +84 -20
  76. package/dist/types/context.d.ts +108 -25
  77. package/dist/types/hooks.d.ts +15 -15
  78. package/dist/types/index.d.ts +15 -15
  79. package/dist/types/util.d.ts +20 -15
  80. package/dist/util.es.js +117 -105
  81. package/package.json +16 -4
  82. package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
  83. package/dist/chunks/GlobalContext.es.js +0 -52
  84. package/dist/chunks/NewEntityContext.es.js +0 -1242
  85. package/dist/chunks/ProjectFoldersContext.es.js +0 -134
  86. package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
  87. package/dist/chunks/VersionUploadContext.es.js +0 -232
  88. package/dist/chunks/ViewsContext.es.js +0 -878
  89. package/dist/chunks/mentionTypeOptions.es.js +0 -15
  90. package/dist/chunks/useColumnDragRestriction.es.js +0 -148
  91. package/dist/chunks/useLocalStorage.es.js +0 -355
  92. /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
package/dist/util.es.js CHANGED
@@ -1,28 +1,28 @@
1
- import { K as y, g as S, a as I } from "./chunks/platform.es.js";
1
+ import { K as S, g as I, a as P } from "./chunks/platform.es.js";
2
2
  import { c as d } from "./chunks/confirmDelete.es.js";
3
- import { a as F } from "./chunks/confirmDelete.es.js";
4
- import { e as C, g as M } from "./chunks/getEntityTypeIcon.es.js";
5
- import { g as D, r as U } from "./chunks/replaceRoot.es.js";
6
- import { e as _, g as N } from "./chunks/extractEntityHierarchyFromParents.es.js";
7
- import { c as w } from "./chunks/copyToClipboard.es.js";
8
- import { g as k, h as O } from "./chunks/humanizeFieldName.es.js";
9
- import { c as V, a as K, g as z, p as q, b as J } from "./chunks/parseHtmlToPlainTextWithLinks.es.js";
10
- import { bj as g } from "./chunks/searchTerms.es.js";
11
- import { bk as W, bd as $, bl as j, bh as G, bm as X, be as Y, bn as Z, bf as ee, bg as ae, bo as te, bp as re, bq as oe, bi as se, br as ne, bs as le, bt as ie } from "./chunks/searchTerms.es.js";
12
- import { a as ce, b as pe, d as de, e as ge, c as be, g as fe, f as ue, s as Ee, v as he, w as Te } from "./chunks/realtimeUpdatesUtils.es.js";
13
- import { a as ye, b as Se, c as Ie, e as Pe, g as Fe, h as Re, s as Ce, v as Me, d as Ae, f as De } from "./chunks/versionUploadHelpers.es.js";
14
- import { c as Le, a as _e } from "./chunks/columnConfigConverter.es.js";
15
- import { p as ve } from "./chunks/pluralize.es.js";
16
- import { b as He, a as ke, h as Oe, p as Be, r as Ve } from "./chunks/colorUtils.es.js";
17
- import { g as ze } from "./chunks/getGroupByDataType.es.js";
18
- import { b as Je, g as Qe, a as We, c as $e, p as je, u as Ge } from "./chunks/getBundleMode.es.js";
19
- import { b as Ye, s as Ze } from "./chunks/buildHierarchicalTableRows.es.js";
20
- import { g as aa, a as ta } from "./chunks/getThumbnailUrl.es.js";
21
- import { p as oa } from "./chunks/parseFilename.es.js";
22
- import { m as na } from "./chunks/mentionTypeOptions.es.js";
23
- import { i as ia } from "./chunks/isHTMLElement.es.js";
24
- import { ConfirmDialog as ca } from "primereact/confirmdialog";
25
- const u = (e) => {
3
+ import { a as C } from "./chunks/confirmDelete.es.js";
4
+ import { e as A, g as M } from "./chunks/getEntityTypeIcon.es.js";
5
+ import { g as U, r as L } from "./chunks/replaceRoot.es.js";
6
+ import { e as v, g as N } from "./chunks/extractEntityHierarchyFromParents.es.js";
7
+ import { c as k } from "./chunks/copyToClipboard.es.js";
8
+ import { g as O, h as B } from "./chunks/humanizeFieldName.es.js";
9
+ import { c as K, a as z, g as q, p as J, b as Q } from "./chunks/parseHtmlToPlainTextWithLinks.es.js";
10
+ import { bk as g } from "./chunks/searchTerms.es.js";
11
+ import { bl as $, be as j, bm as G, bg as X, bn as Y, bi as Z, bo as ee, bp as ae, bj as te, bf as re, bq as oe, br as se, bs as ne, bh as ie, bt as le, bu as me, bv as ce } from "./chunks/searchTerms.es.js";
12
+ import { a as de, b as ge, d as be, e as ue, c as fe, g as Ee, f as he, s as Te, v as xe, w as ye } from "./chunks/realtimeUpdatesUtils.es.js";
13
+ import { e as Ie } from "./chunks/extractVersionFromFilename.es.js";
14
+ import { c as Fe, a as Ce, b as Re, g as Ae, h as Me, s as De, v as Ue, d as Le, e as _e } from "./chunks/versionUploadHelpers.es.js";
15
+ import { c as Ne, a as we } from "./chunks/columnConfigConverter.es.js";
16
+ import { p as He } from "./chunks/pluralize.es.js";
17
+ import { b as Be, a as Ve, h as Ke, p as ze, r as qe } from "./chunks/colorUtils.es.js";
18
+ import { g as Qe } from "./chunks/getGroupByDataType.es.js";
19
+ import { b as $e, g as je, a as Ge, c as Xe, p as Ye, u as Ze } from "./chunks/getBundleMode.es.js";
20
+ import { b as aa, s as ta } from "./chunks/buildHierarchicalTableRows.es.js";
21
+ import { g as oa, a as sa } from "./chunks/getThumbnailUrl.es.js";
22
+ import { p as ia } from "./chunks/parseFilename.es.js";
23
+ import { i as ma } from "./chunks/isHTMLElement.es.js";
24
+ import { ConfirmDialog as pa } from "primereact/confirmdialog";
25
+ const f = (e) => {
26
26
  const t = /* @__PURE__ */ new Map(), o = [];
27
27
  for (const a of e)
28
28
  t.set(a.id, { ...a, children: [] });
@@ -37,102 +37,114 @@ const u = (e) => {
37
37
  deleteMutation: o,
38
38
  onSelect: a,
39
39
  itemTypeName: s,
40
- messageDetail: i
40
+ messageDetail: l
41
41
  }) => {
42
- const l = Array.isArray(e) ? e : [e], n = l.map((r) => t?.find((p) => p.id === r)).filter(Boolean), m = n.length === 1 ? n[0]?.label || "Folder" : n.length > 1 ? `${n.length} folders` : "Folder", c = `Only the folder(s) will be deleted. ${s} inside the folder will remain.`;
42
+ const i = Array.isArray(e) ? e : [e], n = i.map((r) => t?.find((p) => p.id === r)).filter(Boolean), m = n.length === 1 ? n[0]?.label || "Folder" : n.length > 1 ? `${n.length} folders` : "Folder", c = `Only the folder(s) will be deleted. ${s} inside the folder will remain.`;
43
43
  d({
44
44
  accept: async () => {
45
45
  try {
46
- await Promise.all(l.map((r) => o(r))), a([]);
46
+ await Promise.all(i.map((r) => o(r))), a([]);
47
47
  } catch (r) {
48
48
  throw g(r, "Failed to delete folder(s)");
49
49
  }
50
50
  },
51
51
  label: m,
52
- message: i || c
52
+ message: l || c
53
53
  });
54
- }, h = (e) => e ? e.label?.trim() || e.name : "";
54
+ }, h = (e) => e ? e.label?.trim() || e.name : "", T = {
55
+ "@@@": {
56
+ id: "task"
57
+ },
58
+ "@@": {
59
+ id: "version"
60
+ },
61
+ "@": {
62
+ id: "user",
63
+ isCircle: !0
64
+ }
65
+ };
55
66
  export {
56
- ca as ConfirmDialog,
57
- W as ENUM_CONTEXT_PARAMS,
58
- y as KeyMode,
59
- $ as PubSub,
60
- ce as REALTIME_REST_CALL_LIMIT,
61
- pe as REALTIME_REST_JITTER,
62
- de as REALTIME_TASK_SUPPORTED_VALUE_FIELDS,
63
- ge as REALTIME_UPDATE_DEBOUNCE,
64
- He as blendCategoryColor,
65
- ke as blendColors,
66
- Je as buildEntityUri,
67
- u as buildFolderHierarchy,
68
- Ye as buildHierarchicalTableRows,
69
- V as checkLabel,
70
- K as checkName,
67
+ pa as ConfirmDialog,
68
+ $ as ENUM_CONTEXT_PARAMS,
69
+ S as KeyMode,
70
+ j as PubSub,
71
+ de as REALTIME_REST_CALL_LIMIT,
72
+ ge as REALTIME_REST_JITTER,
73
+ be as REALTIME_TASK_SUPPORTED_VALUE_FIELDS,
74
+ ue as REALTIME_UPDATE_DEBOUNCE,
75
+ Be as blendCategoryColor,
76
+ Ve as blendColors,
77
+ $e as buildEntityUri,
78
+ f as buildFolderHierarchy,
79
+ aa as buildHierarchicalTableRows,
80
+ K as checkLabel,
81
+ z as checkName,
71
82
  d as confirmDelete,
72
- F as confirmDeleteDialog,
73
- Le as convertColumnConfigToTanstackStates,
74
- _e as convertTanstackStatesToColumnConfig,
75
- w as copyToClipboard,
76
- ye as createProductAndVersion,
77
- Se as createProductHelper,
78
- be as createRealtimeBatcher,
79
- Ie as createVersionHelper,
80
- C as entityTypesWithIcons,
81
- _ as extractEntityHierarchyFromParents,
82
- Pe as extractVersionFromFilename,
83
- z as getAttributeIcon,
84
- Qe as getBundleModeFromUser,
85
- S as getCurrentPlatform,
86
- fe as getEntityId,
87
- We as getEntityStateFromUri,
88
- aa as getEntityThumbnailUrl,
83
+ C as confirmDeleteDialog,
84
+ Ne as convertColumnConfigToTanstackStates,
85
+ we as convertTanstackStatesToColumnConfig,
86
+ k as copyToClipboard,
87
+ Fe as createProductAndVersion,
88
+ Ce as createProductHelper,
89
+ fe as createRealtimeBatcher,
90
+ Re as createVersionHelper,
91
+ A as entityTypesWithIcons,
92
+ v as extractEntityHierarchyFromParents,
93
+ Ie as extractVersionFromFilename,
94
+ q as getAttributeIcon,
95
+ je as getBundleModeFromUser,
96
+ I as getCurrentPlatform,
97
+ Ee as getEntityId,
98
+ Ge as getEntityStateFromUri,
99
+ oa as getEntityThumbnailUrl,
89
100
  M as getEntityTypeIcon,
90
- j as getEnumContextParams,
91
- G as getEnumErrorText,
92
- X as getEnumItemIcon,
101
+ G as getEnumContextParams,
102
+ X as getEnumErrorText,
103
+ Y as getEnumItemIcon,
93
104
  g as getErrorMessage,
94
- ze as getGroupByDataType,
95
- k as getMixedState,
96
- Fe as getNextVersionNumber,
97
- I as getPlatformShortcutKey,
105
+ Qe as getGroupByDataType,
106
+ O as getMixedState,
107
+ Ae as getNextVersionNumber,
108
+ P as getPlatformShortcutKey,
98
109
  N as getPriorityOptions,
99
110
  h as getProjectDisplayName,
100
- ta as getProjectThumbnailUrl,
101
- Y as getRequestErrorString,
102
- Z as getSelectableEnumItems,
103
- $e as getSettingsStateFromUri,
104
- ue as getSupportedEntityPatch,
105
- D as groupResult,
111
+ sa as getProjectThumbnailUrl,
112
+ Z as getRequestErrorString,
113
+ ee as getSelectableAssignees,
114
+ ae as getSelectableEnumItems,
115
+ Xe as getSettingsStateFromUri,
116
+ he as getSupportedEntityPatch,
117
+ U as groupResult,
106
118
  E as handleDeleteFolders,
107
- Re as handleUploadError,
108
- ee as hasEnumOptions,
109
- ae as hasEnumResolver,
110
- Oe as hexToRgb,
111
- O as humanizeField,
112
- te as isEnumContextParam,
113
- re as isEnumIconImage,
114
- ia as isHTMLElement,
115
- oe as matchSearchQuery,
116
- na as mentionTypeOptions,
117
- se as normalizeEnumItems,
118
- q as parseAndFormatName,
119
- Be as parseColor,
120
- oa as parseFilename,
121
- J as parseHtmlToPlainTextWithLinks,
122
- ne as parseSearchQuery,
123
- je as parseUri,
124
- ve as pluralize,
125
- U as replaceRoot,
126
- Ve as rgbToHex,
127
- Ce as sanitizeProductName,
128
- Ze as shouldBlockShortcuts,
129
- le as sortKeysDeep,
130
- Ee as subscribeToThumbnailUpdates,
131
- ie as toDropdownErrorText,
132
- Ge as useStagingModeState,
133
- he as validateEntityId,
134
- Me as validateFormData,
135
- Ae as validateProductName,
136
- De as validateVersion,
137
- Te as waitForRealtimeJitter
119
+ Me as handleUploadError,
120
+ te as hasEnumOptions,
121
+ re as hasEnumResolver,
122
+ Ke as hexToRgb,
123
+ B as humanizeField,
124
+ oe as isEnumContextParam,
125
+ se as isEnumIconImage,
126
+ ma as isHTMLElement,
127
+ ne as matchSearchQuery,
128
+ T as mentionTypeOptions,
129
+ ie as normalizeEnumItems,
130
+ J as parseAndFormatName,
131
+ ze as parseColor,
132
+ ia as parseFilename,
133
+ Q as parseHtmlToPlainTextWithLinks,
134
+ le as parseSearchQuery,
135
+ Ye as parseUri,
136
+ He as pluralize,
137
+ L as replaceRoot,
138
+ qe as rgbToHex,
139
+ De as sanitizeProductName,
140
+ ta as shouldBlockShortcuts,
141
+ me as sortKeysDeep,
142
+ Te as subscribeToThumbnailUpdates,
143
+ ce as toDropdownErrorText,
144
+ Ze as useStagingModeState,
145
+ xe as validateEntityId,
146
+ Ue as validateFormData,
147
+ Le as validateProductName,
148
+ _e as validateVersion,
149
+ ye as waitForRealtimeJitter
138
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynput/ayon-frontend-shared",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Shared React components for AYON frontend",
5
5
  "module": "dist/index.es.js",
6
6
  "exports": {
@@ -112,6 +112,7 @@
112
112
  "@microsoft/api-extractor": "^7.59.2",
113
113
  "@module-federation/enhanced": "2.3.2",
114
114
  "@module-federation/vite": "1.14.2",
115
+ "@types/prismjs": "1.26.5",
115
116
  "@vitejs/plugin-react": "4.7.0",
116
117
  "typescript": "5.9.3",
117
118
  "unplugin-dts": "^1.1.1",
@@ -121,6 +122,17 @@
121
122
  "dependencies": {
122
123
  "@dnd-kit/modifiers": "9.0.0",
123
124
  "@dnd-kit/utilities": "3.2.2",
125
+ "@lexical/clipboard": "0.51.0",
126
+ "@lexical/code": "0.51.0",
127
+ "@lexical/code-prism": "0.51.0",
128
+ "@lexical/history": "0.51.0",
129
+ "@lexical/link": "0.51.0",
130
+ "@lexical/list": "0.51.0",
131
+ "@lexical/markdown": "0.51.0",
132
+ "@lexical/react": "0.51.0",
133
+ "@lexical/rich-text": "0.51.0",
134
+ "@lexical/selection": "0.51.0",
135
+ "@lexical/utils": "0.51.0",
124
136
  "@tanstack/match-sorter-utils": "8.19.4",
125
137
  "@tanstack/react-virtual": "3.13.23",
126
138
  "@uiw/react-textarea-code-editor": "2.1.9",
@@ -130,16 +142,17 @@
130
142
  "clsx": "2.1.1",
131
143
  "custom-protocol-check": "1.4.0",
132
144
  "date-fns": "3.6.0",
145
+ "emojilib": "2.4.0",
146
+ "lexical": "0.51.0",
133
147
  "lodash": "4.18.1",
134
148
  "match-sorter": "6.4.0",
135
149
  "primeicons": "7.0.0",
136
150
  "primereact": "9.6.2",
137
151
  "primereact-context": "npm:primereact@9.2.3",
138
- "quill-magic-url": "4.2.0",
152
+ "prismjs": "1.30.0",
139
153
  "react-intersection-observer": "9.16.0",
140
154
  "react-markdown": "10.1.0",
141
155
  "react-perfect-scrollbar": "1.5.8",
142
- "react-quill-ayon": "2.0.2",
143
156
  "react-toastify": "9.1.3",
144
157
  "react-use-websocket": "4.13.0",
145
158
  "rehype-raw": "7.0.0",
@@ -148,7 +161,6 @@
148
161
  "remark-emoji": "4.0.1",
149
162
  "remark-gfm": "4.0.1",
150
163
  "semver": "7.7.4",
151
- "turndown": "7.2.4",
152
164
  "uuid": "14.0.1"
153
165
  },
154
166
  "resolutions": {