@ynput/ayon-frontend-shared 0.6.1 → 0.6.3

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.
@@ -610,6 +610,20 @@ export declare const writeSessionStorage: <T>(key: string, value: T) => void;
610
610
  export { }
611
611
 
612
612
 
613
+ declare module '@tanstack/react-table' {
614
+ interface TableMeta<TData extends RowData> {
615
+ options?: BuiltInFieldOptions;
616
+ readOnly?: ProjectTreeTableProps['readOnly'];
617
+ projectName?: string;
618
+ updateEntities?: CellUpdate;
619
+ toggleExpandAll?: ToggleExpandAll;
620
+ selection?: string[];
621
+ columnsConfig?: ColumnsConfig;
622
+ loadingLinksEntityIds?: Set<string>;
623
+ }
624
+ }
625
+
626
+
613
627
  declare module '@tanstack/react-table' {
614
628
  interface FilterFns {
615
629
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -626,20 +640,6 @@ declare module '@tanstack/react-table' {
626
640
  }
627
641
 
628
642
 
629
- declare module '@tanstack/react-table' {
630
- interface TableMeta<TData extends RowData> {
631
- options?: BuiltInFieldOptions;
632
- readOnly?: ProjectTreeTableProps['readOnly'];
633
- projectName?: string;
634
- updateEntities?: CellUpdate;
635
- toggleExpandAll?: ToggleExpandAll;
636
- selection?: string[];
637
- columnsConfig?: ColumnsConfig;
638
- loadingLinksEntityIds?: Set<string>;
639
- }
640
- }
641
-
642
-
643
643
  declare global {
644
644
  interface Window {
645
645
  senderId: string;
@@ -62,6 +62,20 @@ declare interface UserImageProps {
62
62
  export { }
63
63
 
64
64
 
65
+ declare module '@tanstack/react-table' {
66
+ interface TableMeta<TData extends RowData> {
67
+ options?: BuiltInFieldOptions;
68
+ readOnly?: ProjectTreeTableProps['readOnly'];
69
+ projectName?: string;
70
+ updateEntities?: CellUpdate;
71
+ toggleExpandAll?: ToggleExpandAll;
72
+ selection?: string[];
73
+ columnsConfig?: ColumnsConfig;
74
+ loadingLinksEntityIds?: Set<string>;
75
+ }
76
+ }
77
+
78
+
65
79
  declare module '@tanstack/react-table' {
66
80
  interface FilterFns {
67
81
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -78,20 +92,6 @@ declare module '@tanstack/react-table' {
78
92
  }
79
93
 
80
94
 
81
- declare module '@tanstack/react-table' {
82
- interface TableMeta<TData extends RowData> {
83
- options?: BuiltInFieldOptions;
84
- readOnly?: ProjectTreeTableProps['readOnly'];
85
- projectName?: string;
86
- updateEntities?: CellUpdate;
87
- toggleExpandAll?: ToggleExpandAll;
88
- selection?: string[];
89
- columnsConfig?: ColumnsConfig;
90
- loadingLinksEntityIds?: Set<string>;
91
- }
92
- }
93
-
94
-
95
95
  declare global {
96
96
  interface Window {
97
97
  senderId: string;
@@ -729,6 +729,8 @@ export declare const parseUri: (uri: string) => {
729
729
  entity?: EntityUri;
730
730
  };
731
731
 
732
+ export declare const pastedListToSearch: (text: string) => string | null;
733
+
732
734
  export declare const pluralize: (count: number, singular: string) => string;
733
735
 
734
736
  export declare interface ProductCreationData {
@@ -947,6 +949,20 @@ export declare const waitForRealtimeJitter: () => Promise<void>;
947
949
  export { }
948
950
 
949
951
 
952
+ declare module '@tanstack/react-table' {
953
+ interface TableMeta<TData extends RowData> {
954
+ options?: BuiltInFieldOptions;
955
+ readOnly?: ProjectTreeTableProps['readOnly'];
956
+ projectName?: string;
957
+ updateEntities?: CellUpdate;
958
+ toggleExpandAll?: ToggleExpandAll;
959
+ selection?: string[];
960
+ columnsConfig?: ColumnsConfig;
961
+ loadingLinksEntityIds?: Set<string>;
962
+ }
963
+ }
964
+
965
+
950
966
  declare module '@tanstack/react-table' {
951
967
  interface FilterFns {
952
968
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -963,20 +979,6 @@ declare module '@tanstack/react-table' {
963
979
  }
964
980
 
965
981
 
966
- declare module '@tanstack/react-table' {
967
- interface TableMeta<TData extends RowData> {
968
- options?: BuiltInFieldOptions;
969
- readOnly?: ProjectTreeTableProps['readOnly'];
970
- projectName?: string;
971
- updateEntities?: CellUpdate;
972
- toggleExpandAll?: ToggleExpandAll;
973
- selection?: string[];
974
- columnsConfig?: ColumnsConfig;
975
- loadingLinksEntityIds?: Set<string>;
976
- }
977
- }
978
-
979
-
980
982
  declare global {
981
983
  interface Window {
982
984
  senderId: string;
package/dist/util.es.js CHANGED
@@ -2,26 +2,26 @@ 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
3
  import { a as C } from "./chunks/confirmDelete.es.js";
4
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";
5
+ import { g as L, r as U } from "./chunks/replaceRoot.es.js";
6
6
  import { e as v, g as N } from "./chunks/extractEntityHierarchyFromParents.es.js";
7
7
  import { c as k } from "./chunks/copyToClipboard.es.js";
8
8
  import { g as O, h as B } from "./chunks/humanizeFieldName.es.js";
9
9
  import { c as K, a as z, g as q, p as J, b as Q } from "./chunks/parseHtmlToPlainTextWithLinks.es.js";
10
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";
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, bw as pe } from "./chunks/searchTerms.es.js";
12
+ import { a as ge, b as be, d as ue, e as fe, c as Ee, g as he, f as Te, s as xe, v as ye, w as Se } from "./chunks/realtimeUpdatesUtils.es.js";
13
+ import { e as Pe } from "./chunks/extractVersionFromFilename.es.js";
14
+ import { c as Ce, a as Re, b as Ae, g as Me, h as De, s as Le, v as Ue, d as _e, e as ve } from "./chunks/versionUploadHelpers.es.js";
15
+ import { c as we, a as ke } from "./chunks/columnConfigConverter.es.js";
16
+ import { p as Oe } from "./chunks/pluralize.es.js";
17
+ import { b as Ve, a as Ke, h as ze, p as qe, r as Je } from "./chunks/colorUtils.es.js";
18
+ import { g as We } from "./chunks/getGroupByDataType.es.js";
19
+ import { b as je, g as Ge, a as Xe, c as Ye, p as Ze, u as ea } from "./chunks/getBundleMode.es.js";
20
+ import { b as ta, s as ra } from "./chunks/buildHierarchicalTableRows.es.js";
21
+ import { g as sa, a as na } from "./chunks/getThumbnailUrl.es.js";
22
+ import { p as la } from "./chunks/parseFilename.es.js";
23
+ import { i as ca } from "./chunks/isHTMLElement.es.js";
24
+ import { ConfirmDialog as da } from "primereact/confirmdialog";
25
25
  const f = (e) => {
26
26
  const t = /* @__PURE__ */ new Map(), o = [];
27
27
  for (const a of e)
@@ -64,87 +64,88 @@ const f = (e) => {
64
64
  }
65
65
  };
66
66
  export {
67
- pa as ConfirmDialog,
67
+ da as ConfirmDialog,
68
68
  $ as ENUM_CONTEXT_PARAMS,
69
69
  S as KeyMode,
70
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,
71
+ ge as REALTIME_REST_CALL_LIMIT,
72
+ be as REALTIME_REST_JITTER,
73
+ ue as REALTIME_TASK_SUPPORTED_VALUE_FIELDS,
74
+ fe as REALTIME_UPDATE_DEBOUNCE,
75
+ Ve as blendCategoryColor,
76
+ Ke as blendColors,
77
+ je as buildEntityUri,
78
78
  f as buildFolderHierarchy,
79
- aa as buildHierarchicalTableRows,
79
+ ta as buildHierarchicalTableRows,
80
80
  K as checkLabel,
81
81
  z as checkName,
82
82
  d as confirmDelete,
83
83
  C as confirmDeleteDialog,
84
- Ne as convertColumnConfigToTanstackStates,
85
- we as convertTanstackStatesToColumnConfig,
84
+ we as convertColumnConfigToTanstackStates,
85
+ ke as convertTanstackStatesToColumnConfig,
86
86
  k as copyToClipboard,
87
- Fe as createProductAndVersion,
88
- Ce as createProductHelper,
89
- fe as createRealtimeBatcher,
90
- Re as createVersionHelper,
87
+ Ce as createProductAndVersion,
88
+ Re as createProductHelper,
89
+ Ee as createRealtimeBatcher,
90
+ Ae as createVersionHelper,
91
91
  A as entityTypesWithIcons,
92
92
  v as extractEntityHierarchyFromParents,
93
- Ie as extractVersionFromFilename,
93
+ Pe as extractVersionFromFilename,
94
94
  q as getAttributeIcon,
95
- je as getBundleModeFromUser,
95
+ Ge as getBundleModeFromUser,
96
96
  I as getCurrentPlatform,
97
- Ee as getEntityId,
98
- Ge as getEntityStateFromUri,
99
- oa as getEntityThumbnailUrl,
97
+ he as getEntityId,
98
+ Xe as getEntityStateFromUri,
99
+ sa as getEntityThumbnailUrl,
100
100
  M as getEntityTypeIcon,
101
101
  G as getEnumContextParams,
102
102
  X as getEnumErrorText,
103
103
  Y as getEnumItemIcon,
104
104
  g as getErrorMessage,
105
- Qe as getGroupByDataType,
105
+ We as getGroupByDataType,
106
106
  O as getMixedState,
107
- Ae as getNextVersionNumber,
107
+ Me as getNextVersionNumber,
108
108
  P as getPlatformShortcutKey,
109
109
  N as getPriorityOptions,
110
110
  h as getProjectDisplayName,
111
- sa as getProjectThumbnailUrl,
111
+ na as getProjectThumbnailUrl,
112
112
  Z as getRequestErrorString,
113
113
  ee as getSelectableAssignees,
114
114
  ae as getSelectableEnumItems,
115
- Xe as getSettingsStateFromUri,
116
- he as getSupportedEntityPatch,
117
- U as groupResult,
115
+ Ye as getSettingsStateFromUri,
116
+ Te as getSupportedEntityPatch,
117
+ L as groupResult,
118
118
  E as handleDeleteFolders,
119
- Me as handleUploadError,
119
+ De as handleUploadError,
120
120
  te as hasEnumOptions,
121
121
  re as hasEnumResolver,
122
- Ke as hexToRgb,
122
+ ze as hexToRgb,
123
123
  B as humanizeField,
124
124
  oe as isEnumContextParam,
125
125
  se as isEnumIconImage,
126
- ma as isHTMLElement,
126
+ ca as isHTMLElement,
127
127
  ne as matchSearchQuery,
128
128
  T as mentionTypeOptions,
129
129
  ie as normalizeEnumItems,
130
130
  J as parseAndFormatName,
131
- ze as parseColor,
132
- ia as parseFilename,
131
+ qe as parseColor,
132
+ la as parseFilename,
133
133
  Q as parseHtmlToPlainTextWithLinks,
134
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,
135
+ Ze as parseUri,
136
+ me as pastedListToSearch,
137
+ Oe as pluralize,
138
+ U as replaceRoot,
139
+ Je as rgbToHex,
140
+ Le as sanitizeProductName,
141
+ ra as shouldBlockShortcuts,
142
+ ce as sortKeysDeep,
143
+ xe as subscribeToThumbnailUpdates,
144
+ pe as toDropdownErrorText,
145
+ ea as useStagingModeState,
146
+ ye as validateEntityId,
146
147
  Ue as validateFormData,
147
- Le as validateProductName,
148
- _e as validateVersion,
149
- ye as waitForRealtimeJitter
148
+ _e as validateProductName,
149
+ ve as validateVersion,
150
+ Se as waitForRealtimeJitter
150
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynput/ayon-frontend-shared",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Shared React components for AYON frontend",
5
5
  "module": "dist/index.es.js",
6
6
  "exports": {