@ynput/ayon-frontend-shared 0.3.1 → 0.3.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.
Files changed (363) hide show
  1. package/dist/node_modules/web-namespaces/index.cjs.js +1 -1
  2. package/dist/node_modules/web-namespaces/index.cjs.js.map +1 -1
  3. package/dist/node_modules/web-namespaces/index.es.js +3 -8
  4. package/dist/node_modules/web-namespaces/index.es.js.map +1 -1
  5. package/dist/shared/src/api/generated/graphql.cjs.js +12 -8
  6. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  7. package/dist/shared/src/api/generated/graphql.es.js +11 -7
  8. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  9. package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
  10. package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
  11. package/dist/shared/src/api/queries/entities/updateEntity.cjs.js +1 -1
  12. package/dist/shared/src/api/queries/entities/updateEntity.cjs.js.map +1 -1
  13. package/dist/shared/src/api/queries/entities/updateEntity.es.js +125 -120
  14. package/dist/shared/src/api/queries/entities/updateEntity.es.js.map +1 -1
  15. package/dist/shared/src/api/queries/views/updateViews.cjs.js +1 -1
  16. package/dist/shared/src/api/queries/views/updateViews.cjs.js.map +1 -1
  17. package/dist/shared/src/api/queries/views/updateViews.es.js +68 -63
  18. package/dist/shared/src/api/queries/views/updateViews.es.js.map +1 -1
  19. package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js +1 -1
  20. package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js.map +1 -1
  21. package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js +30 -28
  22. package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js.map +1 -1
  23. package/dist/shared/src/components/LinksManager/LinksManager.cjs.js +1 -1
  24. package/dist/shared/src/components/LinksManager/LinksManager.cjs.js.map +1 -1
  25. package/dist/shared/src/components/LinksManager/LinksManager.es.js +74 -56
  26. package/dist/shared/src/components/LinksManager/LinksManager.es.js.map +1 -1
  27. package/dist/shared/src/components/LinksManager/LinksManager.styled.cjs.js +2 -1
  28. package/dist/shared/src/components/LinksManager/LinksManager.styled.cjs.js.map +1 -1
  29. package/dist/shared/src/components/LinksManager/LinksManager.styled.es.js +5 -4
  30. package/dist/shared/src/components/LinksManager/LinksManager.styled.es.js.map +1 -1
  31. package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js +2 -2
  32. package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js.map +1 -1
  33. package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js +66 -61
  34. package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js.map +1 -1
  35. package/dist/shared/src/containers/Feed/Feed.cjs.js +1 -1
  36. package/dist/shared/src/containers/Feed/Feed.cjs.js.map +1 -1
  37. package/dist/shared/src/containers/Feed/Feed.es.js +123 -113
  38. package/dist/shared/src/containers/Feed/Feed.es.js.map +1 -1
  39. package/dist/shared/src/containers/Feed/hooks/useTransformActivities.cjs.js +1 -1
  40. package/dist/shared/src/containers/Feed/hooks/useTransformActivities.cjs.js.map +1 -1
  41. package/dist/shared/src/containers/Feed/hooks/useTransformActivities.es.js +6 -6
  42. package/dist/shared/src/containers/Feed/hooks/useTransformActivities.es.js.map +1 -1
  43. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js +3 -3
  44. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js.map +1 -1
  45. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js +178 -172
  46. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js.map +1 -1
  47. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js +1 -1
  48. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js.map +1 -1
  49. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js +42 -41
  50. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js.map +1 -1
  51. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js +2 -2
  52. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js.map +1 -1
  53. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js +10 -10
  54. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js +1 -1
  55. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js.map +1 -1
  56. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js +26 -26
  57. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js.map +1 -1
  58. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js +1 -1
  59. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -1
  60. package/dist/shared/src/containers/Views/context/ViewsContext.es.js +53 -51
  61. package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -1
  62. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.cjs.js +1 -1
  63. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.cjs.js.map +1 -1
  64. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.es.js +95 -52
  65. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.es.js.map +1 -1
  66. package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js +1 -1
  67. package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js.map +1 -1
  68. package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js +13 -13
  69. package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js.map +1 -1
  70. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js +1 -1
  71. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js.map +1 -1
  72. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js +38 -37
  73. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js.map +1 -1
  74. package/dist/shared/src/hooks/useLoadModules.cjs.js +1 -1
  75. package/dist/shared/src/hooks/useLoadModules.cjs.js.map +1 -1
  76. package/dist/shared/src/hooks/useLoadModules.es.js +86 -80
  77. package/dist/shared/src/hooks/useLoadModules.es.js.map +1 -1
  78. package/dist/types/api/generated/graphql.d.ts +2 -1
  79. package/dist/types/api/generated/graphqlLinks.d.ts +1 -0
  80. package/dist/types/components/LinksManager/LinkManagerItem.d.ts +1 -0
  81. package/dist/types/containers/Views/context/ViewsContext.d.ts +1 -0
  82. package/dist/types/containers/Views/hooks/useBaseViewMutations.d.ts +5 -2
  83. package/package.json +2 -1
  84. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js +0 -2
  85. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js.map +0 -1
  86. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +0 -63
  87. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +0 -1
  88. package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js +0 -2
  89. package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js.map +0 -1
  90. package/dist/node_modules/@ungap/structured-clone/esm/index.es.js +0 -12
  91. package/dist/node_modules/@ungap/structured-clone/esm/index.es.js.map +0 -1
  92. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js +0 -2
  93. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js.map +0 -1
  94. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +0 -107
  95. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +0 -1
  96. package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js +0 -2
  97. package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js.map +0 -1
  98. package/dist/node_modules/@ungap/structured-clone/esm/types.es.js +0 -14
  99. package/dist/node_modules/@ungap/structured-clone/esm/types.es.js.map +0 -1
  100. package/dist/node_modules/devlop/lib/default.cjs.js +0 -2
  101. package/dist/node_modules/devlop/lib/default.cjs.js.map +0 -1
  102. package/dist/node_modules/devlop/lib/default.es.js +0 -6
  103. package/dist/node_modules/devlop/lib/default.es.js.map +0 -1
  104. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js +0 -2
  105. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js.map +0 -1
  106. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js +0 -39
  107. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
  108. package/dist/node_modules/entities/dist/esm/decode.cjs.js +0 -2
  109. package/dist/node_modules/entities/dist/esm/decode.cjs.js.map +0 -1
  110. package/dist/node_modules/entities/dist/esm/decode.es.js +0 -246
  111. package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
  112. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js +0 -2
  113. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js.map +0 -1
  114. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js +0 -8
  115. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
  116. package/dist/node_modules/hast-util-raw/lib/index.cjs.js +0 -2
  117. package/dist/node_modules/hast-util-raw/lib/index.cjs.js.map +0 -1
  118. package/dist/node_modules/hast-util-raw/lib/index.es.js +0 -218
  119. package/dist/node_modules/hast-util-raw/lib/index.es.js.map +0 -1
  120. package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js +0 -2
  121. package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js.map +0 -1
  122. package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js +0 -146
  123. package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js.map +0 -1
  124. package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js +0 -2
  125. package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js.map +0 -1
  126. package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js +0 -21
  127. package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js.map +0 -1
  128. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js +0 -2
  129. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js.map +0 -1
  130. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js +0 -113
  131. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js.map +0 -1
  132. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js +0 -2
  133. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js.map +0 -1
  134. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js +0 -9
  135. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js.map +0 -1
  136. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js +0 -2
  137. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js.map +0 -1
  138. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js +0 -45
  139. package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js.map +0 -1
  140. package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js +0 -2
  141. package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js.map +0 -1
  142. package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js +0 -26
  143. package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js.map +0 -1
  144. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js +0 -2
  145. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js.map +0 -1
  146. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js +0 -99
  147. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js.map +0 -1
  148. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js +0 -2
  149. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js.map +0 -1
  150. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js +0 -8
  151. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js.map +0 -1
  152. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js +0 -2
  153. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js.map +0 -1
  154. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js +0 -211
  155. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js.map +0 -1
  156. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js +0 -2
  157. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js.map +0 -1
  158. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js +0 -251
  159. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js.map +0 -1
  160. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js +0 -2
  161. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js.map +0 -1
  162. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js +0 -15
  163. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js.map +0 -1
  164. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js +0 -2
  165. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js.map +0 -1
  166. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js +0 -74
  167. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js.map +0 -1
  168. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js +0 -2
  169. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js.map +0 -1
  170. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js +0 -85
  171. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js.map +0 -1
  172. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js +0 -2
  173. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js.map +0 -1
  174. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js +0 -2272
  175. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js.map +0 -1
  176. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js +0 -2
  177. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js.map +0 -1
  178. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js +0 -241
  179. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js.map +0 -1
  180. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js +0 -2
  181. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js.map +0 -1
  182. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js +0 -3
  183. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js.map +0 -1
  184. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js +0 -2
  185. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js.map +0 -1
  186. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js +0 -1941
  187. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js.map +0 -1
  188. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js +0 -2
  189. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js.map +0 -1
  190. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js +0 -89
  191. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js.map +0 -1
  192. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js +0 -2
  193. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js.map +0 -1
  194. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js +0 -163
  195. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js.map +0 -1
  196. package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js +0 -2
  197. package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js.map +0 -1
  198. package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js +0 -13
  199. package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js.map +0 -1
  200. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js +0 -2
  201. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js.map +0 -1
  202. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js +0 -62
  203. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js.map +0 -1
  204. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js +0 -2
  205. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js.map +0 -1
  206. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js +0 -34
  207. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js.map +0 -1
  208. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js +0 -2
  209. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js.map +0 -1
  210. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js +0 -369
  211. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js.map +0 -1
  212. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js +0 -2
  213. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js.map +0 -1
  214. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js +0 -7
  215. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js.map +0 -1
  216. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js +0 -2
  217. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js.map +0 -1
  218. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js +0 -567
  219. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js.map +0 -1
  220. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +0 -2
  221. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +0 -1
  222. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  223. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  224. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +0 -2
  225. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +0 -1
  226. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  227. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  228. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js +0 -2
  229. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js.map +0 -1
  230. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js +0 -20
  231. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js.map +0 -1
  232. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js +0 -2
  233. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js.map +0 -1
  234. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js +0 -37
  235. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  236. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js +0 -2
  237. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js.map +0 -1
  238. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js +0 -29
  239. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js.map +0 -1
  240. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js +0 -2
  241. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js.map +0 -1
  242. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js +0 -11
  243. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  244. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js +0 -2
  245. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js.map +0 -1
  246. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js +0 -22
  247. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  248. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js +0 -2
  249. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js.map +0 -1
  250. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js +0 -15
  251. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js.map +0 -1
  252. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js +0 -2
  253. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js.map +0 -1
  254. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js +0 -20
  255. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js.map +0 -1
  256. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js +0 -2
  257. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js.map +0 -1
  258. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js +0 -12
  259. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js.map +0 -1
  260. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js +0 -2
  261. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js.map +0 -1
  262. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js +0 -12
  263. package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  264. package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js +0 -3
  265. package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js.map +0 -1
  266. package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js +0 -43
  267. package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js.map +0 -1
  268. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js +0 -2
  269. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js.map +0 -1
  270. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +0 -119
  271. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +0 -1
  272. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js +0 -2
  273. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js.map +0 -1
  274. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
  275. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
  276. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.js +0 -2
  277. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.js.map +0 -1
  278. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
  279. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
  280. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.js +0 -2
  281. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.js.map +0 -1
  282. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
  283. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
  284. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.js +0 -2
  285. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.js.map +0 -1
  286. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
  287. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
  288. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.js +0 -2
  289. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.js.map +0 -1
  290. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
  291. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
  292. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.js +0 -2
  293. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.js.map +0 -1
  294. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
  295. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
  296. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +0 -2
  297. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +0 -1
  298. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  299. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  300. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +0 -2
  301. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +0 -1
  302. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  303. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  304. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.js +0 -2
  305. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.js.map +0 -1
  306. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -20
  307. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
  308. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.js +0 -2
  309. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.js.map +0 -1
  310. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -37
  311. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  312. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.js +0 -2
  313. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.js.map +0 -1
  314. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -29
  315. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
  316. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.js +0 -2
  317. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.js.map +0 -1
  318. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -11
  319. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  320. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.js +0 -2
  321. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.js.map +0 -1
  322. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -22
  323. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  324. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.js +0 -2
  325. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.js.map +0 -1
  326. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
  327. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
  328. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.js +0 -2
  329. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.js.map +0 -1
  330. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
  331. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
  332. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.js +0 -2
  333. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.js.map +0 -1
  334. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
  335. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
  336. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.js +0 -2
  337. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.js.map +0 -1
  338. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
  339. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  340. package/dist/node_modules/rehype-raw/lib/index.cjs.js +0 -2
  341. package/dist/node_modules/rehype-raw/lib/index.cjs.js.map +0 -1
  342. package/dist/node_modules/rehype-raw/lib/index.es.js +0 -13
  343. package/dist/node_modules/rehype-raw/lib/index.es.js.map +0 -1
  344. package/dist/node_modules/unist-util-is/lib/index.cjs.js +0 -2
  345. package/dist/node_modules/unist-util-is/lib/index.cjs.js.map +0 -1
  346. package/dist/node_modules/unist-util-is/lib/index.es.js +0 -92
  347. package/dist/node_modules/unist-util-is/lib/index.es.js.map +0 -1
  348. package/dist/node_modules/unist-util-position/lib/index.cjs.js +0 -2
  349. package/dist/node_modules/unist-util-position/lib/index.cjs.js.map +0 -1
  350. package/dist/node_modules/unist-util-position/lib/index.es.js +0 -18
  351. package/dist/node_modules/unist-util-position/lib/index.es.js.map +0 -1
  352. package/dist/node_modules/unist-util-visit/lib/index.cjs.js +0 -2
  353. package/dist/node_modules/unist-util-visit/lib/index.cjs.js.map +0 -1
  354. package/dist/node_modules/unist-util-visit/lib/index.es.js +0 -17
  355. package/dist/node_modules/unist-util-visit/lib/index.es.js.map +0 -1
  356. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js +0 -2
  357. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js.map +0 -1
  358. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js +0 -7
  359. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +0 -1
  360. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js +0 -2
  361. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js.map +0 -1
  362. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +0 -57
  363. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { j as ye } from "../../../../../_virtual/jsx-runtime.es.js";
2
- import { createContext as Ie, useCallback as H, useEffect as ge, useMemo as me, useContext as we } from "react";
3
- import { useSelectionCellsContext as be, ROW_SELECTION_COLUMN_ID as V } from "./SelectionCellsContext.es.js";
4
- import { useCellEditing as he } from "./CellEditingContext.es.js";
5
- import { parseCellId as j, getLinkEntityIdsByColumnId as Te, getCellValue as xe, getEntityDataById as ne } from "../utils/cellUtils.es.js";
2
+ import { createContext as Ie, useCallback as H, useEffect as ge, useMemo as me, useContext as be } from "react";
3
+ import { useSelectionCellsContext as we, ROW_SELECTION_COLUMN_ID as R } from "./SelectionCellsContext.es.js";
4
+ import { useCellEditing as Te } from "./CellEditingContext.es.js";
5
+ import { parseCellId as B, getLinkEntityIdsByColumnId as he, getCellValue as xe, getEntityDataById as ne } from "../utils/cellUtils.es.js";
6
6
  import Ce from "../hooks/usePasteLinks.es.js";
7
7
  import { getEntityPath as ve, clipboardError as P, parseClipboardText as re, processFieldValue as Ee } from "./clipboard/clipboardUtils.es.js";
8
8
  import { validateClipboardData as ke } from "./clipboard/clipboardValidation.es.js";
@@ -12,92 +12,92 @@ import "react-toastify";
12
12
  import { validateEntityId as _e } from "../../../util/getEntityId.es.js";
13
13
  import "../../../util/pubsub.es.js";
14
14
  const se = Ie(void 0), We = ({
15
- children: O,
16
- entitiesMap: A,
15
+ children: j,
16
+ entitiesMap: _,
17
17
  columnEnums: Q,
18
18
  columnReadOnly: ie,
19
19
  visibleColumns: D
20
20
  }) => {
21
- const { selectedCells: _, gridMap: l, focusedCellId: ae } = be(), { updateEntities: Y } = he(), { pasteTableLinks: Z } = Ce(), { getEntityById: F, attribFields: K } = Ae(), X = H(
22
- async (r, i) => {
23
- const { headers: g, fullRow: m } = i || {};
21
+ const { selectedCells: v, gridMap: d, focusedCellId: ae } = we(), { updateEntities: Y } = Te(), { pasteTableLinks: Z } = Ce(), { getEntityById: F, attribFields: O } = Ae(), X = H(
22
+ async (r, a) => {
23
+ const { headers: i, fullRow: y } = a || {};
24
24
  try {
25
- const d = D.map((s) => s.id).filter((s) => s !== V), u = /* @__PURE__ */ new Map();
25
+ const l = D.map((s) => s.id).filter((s) => s !== R), I = /* @__PURE__ */ new Map();
26
26
  r.forEach((s) => {
27
- const o = j(s);
27
+ const o = B(s);
28
28
  if (!o) return;
29
- const { rowId: c, colId: y } = o;
30
- y === V || !d.includes(y) || (u.has(c) || u.set(c, /* @__PURE__ */ new Set()), u.get(c)?.add(y));
31
- }), m && r.filter(
32
- (o) => j(o)?.rowId && j(o)?.colId === V
33
- ).map((o) => j(o)?.rowId).forEach((o) => {
34
- u.has(o) || u.set(o, /* @__PURE__ */ new Set()), Array.from(l.colIdToIndex.keys()).forEach((y) => {
35
- u.get(o)?.add(y);
29
+ const { rowId: f, colId: g } = o;
30
+ g === R || !l.includes(g) || (I.has(f) || I.set(f, /* @__PURE__ */ new Set()), I.get(f)?.add(g));
31
+ }), y && r.filter(
32
+ (o) => B(o)?.rowId && B(o)?.colId === R
33
+ ).map((o) => B(o)?.rowId).forEach((o) => {
34
+ I.has(o) || I.set(o, /* @__PURE__ */ new Set()), Array.from(d.colIdToIndex.keys()).forEach((g) => {
35
+ I.get(o)?.add(g);
36
36
  });
37
37
  });
38
- const v = Array.from(u.keys()).sort((s, o) => {
39
- const c = l.rowIdToIndex.get(s) ?? 1 / 0, y = l.rowIdToIndex.get(o) ?? 1 / 0;
40
- return c - y;
38
+ const E = Array.from(I.keys()).sort((s, o) => {
39
+ const f = d.rowIdToIndex.get(s) ?? 1 / 0, g = d.rowIdToIndex.get(o) ?? 1 / 0;
40
+ return f - g;
41
41
  });
42
42
  let $ = "";
43
- const M = v[0];
43
+ const M = E[0];
44
44
  if (!M) return "";
45
- const E = Array.from(u.get(M) || []).sort((s, o) => {
46
- const c = l.colIdToIndex.get(s) ?? 1 / 0, y = l.colIdToIndex.get(o) ?? 1 / 0;
47
- return c - y;
45
+ const k = Array.from(I.get(M) || []).sort((s, o) => {
46
+ const f = d.colIdToIndex.get(s) ?? 1 / 0, g = d.colIdToIndex.get(o) ?? 1 / 0;
47
+ return f - g;
48
48
  });
49
- if (g && E.length > 0) {
49
+ if (i && k.length > 0) {
50
50
  const s = [];
51
- for (const o of E) {
52
- const c = o;
53
- s.push(`${c.replace(/"/g, '""')}`);
51
+ for (const o of k) {
52
+ const f = o;
53
+ s.push(`${f.replace(/"/g, '""')}`);
54
54
  }
55
55
  $ += s.join(" ") + `
56
56
  `;
57
57
  }
58
- for (const s of v) {
58
+ for (const s of E) {
59
59
  const o = F(s);
60
60
  if (!o) {
61
61
  console.warn(`Entity not found for rowId: ${s}`);
62
62
  continue;
63
63
  }
64
- const y = Array.from(u.get(s) || []).sort((b, T) => {
65
- const h = l.colIdToIndex.get(b) ?? 1 / 0, e = l.colIdToIndex.get(T) ?? 1 / 0;
66
- return h - e;
67
- }).filter((b) => b !== V), R = [];
68
- for (const b of y) {
69
- let T = "";
70
- if (b.startsWith("link_"))
71
- T = Te(o.links, b);
64
+ const g = Array.from(I.get(s) || []).sort((w, h) => {
65
+ const T = d.colIdToIndex.get(w) ?? 1 / 0, e = d.colIdToIndex.get(h) ?? 1 / 0;
66
+ return T - e;
67
+ }).filter((w) => w !== R), S = [];
68
+ for (const w of g) {
69
+ let h = "";
70
+ if (w.startsWith("link_"))
71
+ h = he(o.links, w);
72
72
  else {
73
- let h = xe(o, b);
74
- if (!h) {
75
- const e = K.find((t) => t.name === b.replace("attrib_", ""));
76
- e && e.data.type === "boolean" ? h = !1 : e && e.data.type.includes("list_of") && (h = []);
73
+ let T = xe(o, w);
74
+ if (!T) {
75
+ const e = O.find((t) => t.name === w.replace("attrib_", ""));
76
+ e && e.data.type === "boolean" ? T = !1 : e && e.data.type.includes("list_of") && (T = []);
77
77
  }
78
- T = h != null ? String(h) : "", b === "name" && (T = ve(o.entityId || o.id, A)), b === "subType" && ("folderType" in o && (T = o.folderType || ""), "taskType" in o && (T = o.taskType || ""));
78
+ h = T != null ? String(T) : "", w === "name" && (h = ve(o.entityId || o.id, _)), w === "subType" && ("folderType" in o && (h = o.folderType || ""), "taskType" in o && (h = o.taskType || ""));
79
79
  }
80
- R.push(`${T.replace(/"/g, '""')}`);
80
+ S.push(`${h.replace(/"/g, '""')}`);
81
81
  }
82
- $ += R.join(" ") + `
82
+ $ += S.join(" ") + `
83
83
  `;
84
84
  }
85
85
  return $;
86
- } catch (d) {
87
- console.error("Failed to copy to clipboard:", d);
86
+ } catch (l) {
87
+ console.error("Failed to copy to clipboard:", l);
88
88
  }
89
89
  },
90
- [_, ae, l, A, F, D]
90
+ [v, ae, d, _, F, D]
91
91
  ), le = async () => {
92
92
  const r = await ee();
93
93
  if (!r) return !1;
94
- const i = re(r);
95
- return i.length === 0 ? !1 : i.every((g) => g.values.every((m) => m.split(",").every((d) => _e(d))));
96
- }, N = H(
97
- async (r, i) => {
98
- if (r = r || Array.from(_), !r.length) return;
99
- const g = await X(r, { fullRow: i });
100
- if (g) {
94
+ const a = re(r);
95
+ return a.length === 0 ? !1 : a.every((i) => i.values.every((y) => y.split(",").every((l) => _e(l))));
96
+ }, K = H(
97
+ async (r, a) => {
98
+ if (r = r || Array.from(v), !r.length) return;
99
+ const i = await X(r, { fullRow: a });
100
+ if (i) {
101
101
  if (!navigator.clipboard) {
102
102
  P("Clipboard API not supported in this browser.");
103
103
  return;
@@ -107,28 +107,28 @@ const se = Ie(void 0), We = ({
107
107
  return;
108
108
  }
109
109
  try {
110
- await navigator.clipboard.writeText(g);
111
- } catch (m) {
112
- P(`Failed to copy to clipboard: ${m.message}`);
110
+ await navigator.clipboard.writeText(i);
111
+ } catch (y) {
112
+ P(`Failed to copy to clipboard: ${y.message}`);
113
113
  }
114
114
  }
115
115
  },
116
- [_, A, l]
116
+ [v, _, d]
117
117
  ), ce = H(
118
- async (r, i, g) => {
119
- if (r = r || Array.from(_), !!r.length)
118
+ async (r, a, i) => {
119
+ if (r = r || Array.from(v), !!r.length)
120
120
  try {
121
- const m = await X(r, { headers: !0, fullRow: g });
122
- if (!m) return;
123
- const d = new Blob([m], { type: "text/csv" }), u = URL.createObjectURL(d), v = document.createElement("a");
124
- v.href = u;
121
+ const y = await X(r, { headers: !0, fullRow: i });
122
+ if (!y) return;
123
+ const l = new Blob([y], { type: "text/csv" }), I = URL.createObjectURL(l), E = document.createElement("a");
124
+ E.href = I;
125
125
  const $ = r.length;
126
- v.download = `${i}-export-${$}_cells-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, v.click(), URL.revokeObjectURL(u);
127
- } catch (m) {
128
- console.error("Failed to copy to clipboard:", m);
126
+ E.download = `${a}-export-${$}_cells-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, E.click(), URL.revokeObjectURL(I);
127
+ } catch (y) {
128
+ console.error("Failed to copy to clipboard:", y);
129
129
  }
130
130
  },
131
- [_, A, l, X]
131
+ [v, _, d, X]
132
132
  ), ee = async () => {
133
133
  if (!navigator.clipboard) {
134
134
  P("Clipboard API not supported in this browser.");
@@ -141,107 +141,107 @@ const se = Ie(void 0), We = ({
141
141
  let r;
142
142
  try {
143
143
  return r = await navigator.clipboard.readText(), r;
144
- } catch (i) {
145
- P(`Failed to read from clipboard: ${i.message}`);
144
+ } catch (a) {
145
+ P(`Failed to read from clipboard: ${a.message}`);
146
146
  return;
147
147
  }
148
148
  }, W = H(
149
- async (r, i) => {
150
- const { method: g = "replace" } = i || {};
149
+ async (r, a) => {
150
+ const { method: i = "replace" } = a || {};
151
151
  if (!r.length) return;
152
- const m = await ee();
153
- if (!m) return;
154
- const d = re(m);
155
- if (!d.length) return;
156
- const u = d.length === 1 && d[0].values.length === 1, v = D.map((e) => e.id).filter((e) => e !== V), $ = (e, t, n) => {
157
- const f = {};
158
- return n && n.length > 0 ? n.forEach((a, p) => {
159
- const w = t.find(
160
- (I) => I === a || I.replace("attrib_", "") === a || I === `attrib_${a}` || I.toLowerCase() === a.toLowerCase()
152
+ const y = await ee();
153
+ if (!y) return;
154
+ const l = re(y);
155
+ if (!l.length) return;
156
+ const I = l.length === 1 && l[0].values.length === 1, E = D.map((e) => e.id).filter((e) => e !== R), $ = (e, t, n) => {
157
+ const p = {};
158
+ return n && n.length > 0 ? n.forEach((c, u) => {
159
+ const b = t.find(
160
+ (m) => m === c || m.replace("attrib_", "") === c || m === `attrib_${c}` || m.toLowerCase() === c.toLowerCase()
161
161
  );
162
- w && p < e.values.length && (f[w] = e.values[p]);
163
- }) : t.forEach((a, p) => {
164
- p < e.values.length && (f[a] = e.values[p]);
165
- }), f;
166
- }, M = d[0]?.colIds || void 0, E = /* @__PURE__ */ new Map();
162
+ b && u < e.values.length && (p[b] = e.values[u]);
163
+ }) : t.forEach((c, u) => {
164
+ u < e.values.length && (p[c] = e.values[u]);
165
+ }), p;
166
+ }, M = l[0]?.colIds || void 0, k = /* @__PURE__ */ new Map();
167
167
  Array.from(r).forEach((e) => {
168
- const t = j(e);
168
+ const t = B(e);
169
169
  if (!t) return;
170
- const { rowId: n, colId: f } = t;
171
- f === V || !v.includes(f) || (E.has(n) || E.set(n, /* @__PURE__ */ new Set()), E.get(n)?.add(f));
170
+ const { rowId: n, colId: p } = t;
171
+ p === R || !E.includes(p) || (k.has(n) || k.set(n, /* @__PURE__ */ new Set()), k.get(n)?.add(p));
172
172
  });
173
- const s = Array.from(E.keys()).sort((e, t) => {
174
- const n = l.rowIdToIndex.get(e) ?? 1 / 0, f = l.rowIdToIndex.get(t) ?? 1 / 0;
175
- return n - f;
176
- }), o = s[0], c = Array.from(E.get(o) || []).sort((e, t) => {
177
- const n = l.colIdToIndex.get(e) ?? 1 / 0, f = l.colIdToIndex.get(t) ?? 1 / 0;
178
- return n - f;
173
+ const s = Array.from(k.keys()).sort((e, t) => {
174
+ const n = d.rowIdToIndex.get(e) ?? 1 / 0, p = d.rowIdToIndex.get(t) ?? 1 / 0;
175
+ return n - p;
176
+ }), o = s[0], f = Array.from(k.get(o) || []).sort((e, t) => {
177
+ const n = d.colIdToIndex.get(e) ?? 1 / 0, p = d.colIdToIndex.get(t) ?? 1 / 0;
178
+ return n - p;
179
179
  });
180
180
  for (let e = 0; e < s.length; e++) {
181
- const t = s[e], n = ne(t, A)?.entityType === "folder", f = e % d.length, a = d[f], p = u ? { [c[0]]: d[0].values[0] } : $(a, c, M);
182
- for (const w of c) {
183
- const I = p[w] || "";
181
+ const t = s[e], n = ne(t, _)?.entityType === "folder", p = e % l.length, c = l[p], u = I ? { [f[0]]: l[0].values[0] } : $(c, f, M);
182
+ for (const b of f) {
183
+ const m = u[b] || "";
184
184
  if (!ke({
185
- colId: w,
185
+ colId: b,
186
186
  isFolder: n,
187
- pasteValue: I,
188
- parsedData: d,
187
+ pasteValue: m,
188
+ parsedData: l,
189
189
  columnEnums: Q,
190
190
  columnReadOnly: ie,
191
191
  rowIndex: e,
192
- colIndex: c.indexOf(w),
193
- isSingleCellValue: u,
194
- attribFields: K
192
+ colIndex: f.indexOf(b),
193
+ isSingleCellValue: I,
194
+ attribFields: O
195
195
  })) return;
196
196
  }
197
197
  }
198
- const y = /* @__PURE__ */ new Map();
199
- for (let e = 0; e < c.length; e++) {
200
- const t = c[e];
198
+ const g = /* @__PURE__ */ new Map();
199
+ for (let e = 0; e < f.length; e++) {
200
+ const t = f[e];
201
201
  if (t === "name") continue;
202
- let n = !1, f = !1, a = "string";
202
+ let n = !1, p = !1, c = "string";
203
203
  if (s.length > 0) {
204
- const p = s[0];
205
- if (F(p))
206
- if (n = t.startsWith("attrib_"), f = t.startsWith("link_"), t === "status" || t === "subType")
207
- a = "string", n = !1;
204
+ const u = s[0];
205
+ if (F(u))
206
+ if (n = t.startsWith("attrib_"), p = t.startsWith("link_"), t === "status" || t === "subType")
207
+ c = "string", n = !1;
208
208
  else if (t === "tags" || t === "assignees")
209
- a = "array";
209
+ c = "array";
210
210
  else if (n) {
211
- const I = t.replace("attrib_", ""), k = K.find((x) => x.name === I);
212
- if (k)
213
- switch (k.data.type) {
211
+ const m = t.replace("attrib_", ""), A = O.find((x) => x.name === m);
212
+ if (A)
213
+ switch (A.data.type) {
214
214
  case "boolean":
215
- a = "boolean";
215
+ c = "boolean";
216
216
  break;
217
217
  case "float":
218
218
  case "integer":
219
- a = "number";
219
+ c = "number";
220
220
  break;
221
221
  case "list_of_strings":
222
222
  case "list_of_any":
223
223
  case "list_of_integers":
224
224
  case "list_of_submodels":
225
- a = "array";
225
+ c = "array";
226
226
  break;
227
227
  default:
228
- a = "string";
228
+ c = "string";
229
229
  }
230
- } else f && (a = "array");
230
+ } else p && (c = "array");
231
231
  }
232
- for (let p = 0; p < s.length; p++) {
233
- const w = s[p], I = ne(w, A)?.entityType, k = I === "folder";
232
+ for (let u = 0; u < s.length; u++) {
233
+ const b = s[u], m = ne(b, _)?.entityType, A = m === "folder";
234
234
  let x;
235
- if (u)
236
- x = d[0].values[0];
235
+ if (I)
236
+ x = l[0].values[0];
237
237
  else {
238
- const te = p % d.length, C = d[te];
239
- if (C.values.length > c.length) {
240
- const U = l.colIdToIndex.get(c[0]) ?? 0, q = Array.from(l.colIdToIndex.keys()).filter((B) => B !== V).sort((B, fe) => {
241
- const pe = l.colIdToIndex.get(B) ?? 1 / 0, ue = l.colIdToIndex.get(fe) ?? 1 / 0;
238
+ const te = u % l.length, C = l[te];
239
+ if (C.values.length > f.length) {
240
+ const U = d.colIdToIndex.get(f[0]) ?? 0, q = Array.from(d.colIdToIndex.keys()).filter((N) => N !== R).sort((N, fe) => {
241
+ const pe = d.colIdToIndex.get(N) ?? 1 / 0, ue = d.colIdToIndex.get(fe) ?? 1 / 0;
242
242
  return pe - ue;
243
243
  }), G = q.findIndex(
244
- (B) => l.colIdToIndex.get(B) === U
244
+ (N) => d.colIdToIndex.get(N) === U
245
245
  ), oe = q.slice(
246
246
  G,
247
247
  G + C.values.length
@@ -252,29 +252,29 @@ const se = Ie(void 0), We = ({
252
252
  x = C.values[U];
253
253
  }
254
254
  }
255
- let S = t.split("_").pop() || t;
256
- if (t === "subType" && (S = k ? "folderType" : "taskType", n = !1, !x))
255
+ let V = t.split("_").pop() || t;
256
+ if (t === "subType" && (V = A ? "folderType" : "taskType", n = !1, !x))
257
257
  continue;
258
- const L = Ee(x, a), z = `${w}-${I}`;
259
- !y.has(z) && I && y.set(z, {
260
- rowId: w,
261
- id: w,
262
- type: I,
258
+ const L = Ee(x, c), z = `${b}-${m}`;
259
+ !g.has(z) && m && g.set(z, {
260
+ rowId: b,
261
+ id: b,
262
+ type: m,
263
263
  fields: {},
264
264
  attrib: {},
265
265
  links: {}
266
266
  });
267
- const J = y.get(z);
268
- if (f) {
267
+ const J = g.get(z);
268
+ if (p) {
269
269
  const [te, C, U, q, G] = t.split("_");
270
270
  J.links[`${C}|${U}|${q}_${G}`] = L;
271
- } else n ? J.attrib[S] = L : J.fields[S] = L;
271
+ } else n ? J.attrib[V] = L : J.fields[V] = L;
272
272
  }
273
273
  }
274
- const R = [], b = /* @__PURE__ */ new Map();
275
- y.forEach((e) => {
274
+ const S = [], w = /* @__PURE__ */ new Map();
275
+ g.forEach((e) => {
276
276
  Object.entries(e.fields).forEach(([t, n]) => {
277
- R.push({
277
+ S.push({
278
278
  rowId: e.rowId,
279
279
  id: e.id,
280
280
  type: e.type,
@@ -282,7 +282,7 @@ const se = Ie(void 0), We = ({
282
282
  value: n
283
283
  });
284
284
  }), Object.entries(e.attrib).forEach(([t, n]) => {
285
- R.push({
285
+ S.push({
286
286
  rowId: e.rowId,
287
287
  id: e.id,
288
288
  type: e.type,
@@ -291,53 +291,59 @@ const se = Ie(void 0), We = ({
291
291
  isAttrib: !0
292
292
  });
293
293
  }), Object.entries(e.links).forEach(([t, n]) => {
294
- const [f, a] = t.split("_"), p = f.split("|");
295
- if (p.length >= 3) {
296
- const w = p[0], I = p[1], k = p[2], x = `${w}|${I}|${k}`, S = a === "out" ? k : I, L = `${e.id}-${x}-${a}`;
297
- b.set(L, {
294
+ const [p, c] = t.split("_"), u = p.split("|");
295
+ if (u.length >= 3) {
296
+ const b = u[0], m = u[1], A = u[2], x = `${b}|${m}|${A}`, V = c === "out" ? A : m, L = `${e.id}-${x}-${c}`;
297
+ w.set(L, {
298
298
  rowId: e.rowId,
299
299
  sourceEntityId: e.id,
300
300
  sourceEntityType: e.type,
301
301
  linkType: x,
302
- direction: a,
303
- targetEntityType: S,
304
- operation: g,
302
+ direction: c,
303
+ targetEntityType: V,
304
+ operation: i,
305
305
  targetEntityIds: Array.isArray(n) ? n : []
306
306
  });
307
307
  }
308
308
  });
309
309
  });
310
- const T = Array.from(b.values()), h = [];
311
- if (R.length > 0 && h.push(Y(R)), T.length > 0 && h.push(Z(T)), h.length > 0)
310
+ const h = Array.from(w.values()), T = [];
311
+ if (S.length > 0 && T.push(Y(S)), h.length > 0 && T.push(Z(h)), T.length > 0)
312
312
  try {
313
- await Promise.all(h);
313
+ await Promise.all(T);
314
314
  } catch (e) {
315
315
  console.error("Error updating entities:", e), P(`Paste failed: ${e || e?.message || "Unknown error"}`);
316
316
  }
317
317
  },
318
318
  [
319
+ v,
320
+ d,
319
321
  _,
320
- l,
321
- A,
322
322
  Y,
323
323
  Z,
324
324
  Q,
325
325
  F,
326
326
  D,
327
- K
327
+ O
328
328
  ]
329
329
  );
330
330
  ge(() => {
331
- const r = async (i) => {
332
- if ((i.ctrlKey || i.metaKey) && i.key === "c" && N(), (i.ctrlKey || i.metaKey) && i.key === "v") {
333
- const g = document.activeElement;
334
- if (g && (g.tagName === "INPUT" || g.tagName === "TEXTAREA" || g.isContentEditable))
331
+ const r = async (a) => {
332
+ if ((a.ctrlKey || a.metaKey) && a.key === "c") {
333
+ const i = document.activeElement, y = i?.closest("table") !== null || i?.closest(".table-container") !== null || i?.tagName === "TD" || i?.tagName === "TH", l = i?.tagName === "INPUT" || i?.tagName === "TEXTAREA" || i?.isContentEditable;
334
+ if ((window.getSelection()?.toString().length ?? !1) && !y || l && !y)
335
+ return;
336
+ v.size > 0 && await K();
337
+ }
338
+ if ((a.ctrlKey || a.metaKey) && a.key === "v") {
339
+ const i = document.activeElement;
340
+ if (i && (i.tagName === "INPUT" || i.tagName === "TEXTAREA" || i.isContentEditable))
335
341
  if (await le())
336
- i.preventDefault();
342
+ a.preventDefault();
337
343
  else
338
344
  return;
339
- W(Array.from(_), {
340
- method: i.shiftKey ? "merge" : "replace"
345
+ W(Array.from(v), {
346
+ method: a.shiftKey ? "merge" : "replace"
341
347
  // Use shift key to determine paste method
342
348
  });
343
349
  }
@@ -345,21 +351,21 @@ const se = Ie(void 0), We = ({
345
351
  return window.addEventListener("keydown", r), () => {
346
352
  window.removeEventListener("keydown", r);
347
353
  };
348
- }, [N, W]);
354
+ }, [K, W]);
349
355
  const de = me(
350
356
  () => ({
351
- copyToClipboard: N,
357
+ copyToClipboard: K,
352
358
  pasteFromClipboard: W,
353
359
  exportCSV: ce
354
360
  }),
355
- [N, W]
361
+ [K, W]
356
362
  );
357
- return /* @__PURE__ */ ye.jsx(se.Provider, { value: de, children: O });
363
+ return /* @__PURE__ */ ye.jsx(se.Provider, { value: de, children: j });
358
364
  }, Me = () => {
359
- const O = we(se);
360
- if (O === void 0)
365
+ const j = be(se);
366
+ if (j === void 0)
361
367
  throw new Error("useClipboard must be used within a ClipboardProvider");
362
- return O;
368
+ return j;
363
369
  };
364
370
  export {
365
371
  We as ClipboardProvider,