@veeqo/transfigure 2.1.2 → 2.2.0

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 (203) hide show
  1. package/dist/components/Views/OptionsDropdown/styled.d.ts +2 -2
  2. package/dist/components/Views/PillNotifications/variants/styled.d.ts +2 -2
  3. package/dist/constants/helpGuideUrls.d.ts +3 -0
  4. package/dist/constants/index.d.ts +1 -0
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.js +81 -79
  7. package/dist/index100.cjs +1 -1
  8. package/dist/index100.js +49 -14
  9. package/dist/index101.cjs +1 -1
  10. package/dist/index101.js +29 -21
  11. package/dist/index102.cjs +1 -12
  12. package/dist/index102.js +21 -16
  13. package/dist/index103.cjs +19 -1
  14. package/dist/index103.js +24 -7
  15. package/dist/index104.cjs +1 -1
  16. package/dist/index104.js +16 -48
  17. package/dist/index105.cjs +1 -1
  18. package/dist/index105.js +7 -29
  19. package/dist/index106.cjs +10 -78
  20. package/dist/index106.js +13 -95
  21. package/dist/index107.cjs +1 -1
  22. package/dist/index107.js +1 -1
  23. package/dist/index108.cjs +80 -1
  24. package/dist/index108.js +98 -2
  25. package/dist/index11.cjs +1 -1
  26. package/dist/index11.js +1 -1
  27. package/dist/index111.cjs +1 -1
  28. package/dist/index111.js +39 -42
  29. package/dist/index114.cjs +1 -1
  30. package/dist/index114.js +2 -26
  31. package/dist/index115.cjs +1 -1
  32. package/dist/index115.js +22 -32
  33. package/dist/index116.cjs +1 -7
  34. package/dist/index116.js +36 -10
  35. package/dist/index118.cjs +1 -1
  36. package/dist/index118.js +1 -1
  37. package/dist/index119.cjs +7 -1
  38. package/dist/index119.js +10 -47
  39. package/dist/index120.cjs +1 -0
  40. package/dist/index120.js +49 -0
  41. package/dist/index13.cjs +1 -1
  42. package/dist/index13.js +2 -2
  43. package/dist/index14.cjs +1 -1
  44. package/dist/index14.js +1 -1
  45. package/dist/index15.cjs +1 -1
  46. package/dist/index15.js +1 -1
  47. package/dist/index16.cjs +1 -1
  48. package/dist/index16.js +2 -2
  49. package/dist/index17.cjs +1 -1
  50. package/dist/index17.js +2 -2
  51. package/dist/index18.cjs +1 -1
  52. package/dist/index18.js +1 -1
  53. package/dist/index19.cjs +1 -1
  54. package/dist/index19.js +4 -4
  55. package/dist/index20.cjs +1 -1
  56. package/dist/index20.js +2 -2
  57. package/dist/index21.cjs +1 -1
  58. package/dist/index21.js +2 -2
  59. package/dist/index22.cjs +1 -1
  60. package/dist/index22.js +2 -2
  61. package/dist/index23.cjs +1 -1
  62. package/dist/index23.js +3 -3
  63. package/dist/index26.cjs +1 -1
  64. package/dist/index26.js +4 -4
  65. package/dist/index27.cjs +1 -1
  66. package/dist/index27.js +4 -4
  67. package/dist/index28.cjs +1 -1
  68. package/dist/index28.js +1 -1
  69. package/dist/index29.cjs +1 -1
  70. package/dist/index29.js +2 -2
  71. package/dist/index3.cjs +1 -1
  72. package/dist/index3.js +2 -2
  73. package/dist/index30.cjs +1 -1
  74. package/dist/index30.js +3 -3
  75. package/dist/index31.cjs +1 -1
  76. package/dist/index31.js +3 -3
  77. package/dist/index32.cjs +1 -1
  78. package/dist/index32.js +1 -1
  79. package/dist/index33.cjs +1 -1
  80. package/dist/index33.js +1 -1
  81. package/dist/index35.cjs +1 -1
  82. package/dist/index35.js +1 -1
  83. package/dist/index36.cjs +1 -1
  84. package/dist/index36.js +6 -6
  85. package/dist/index37.cjs +1 -1
  86. package/dist/index37.js +1 -1
  87. package/dist/index38.cjs +1 -1
  88. package/dist/index38.js +1 -1
  89. package/dist/index39.cjs +1 -1
  90. package/dist/index39.js +3 -3
  91. package/dist/index4.cjs +1 -1
  92. package/dist/index4.js +2 -2
  93. package/dist/index40.cjs +1 -1
  94. package/dist/index40.js +3 -3
  95. package/dist/index41.cjs +1 -1
  96. package/dist/index41.js +4 -4
  97. package/dist/index42.cjs +1 -1
  98. package/dist/index42.js +2 -2
  99. package/dist/index44.cjs +1 -1
  100. package/dist/index44.js +4 -4
  101. package/dist/index46.cjs +1 -1
  102. package/dist/index46.js +5 -5
  103. package/dist/index47.cjs +1 -1
  104. package/dist/index47.js +3 -3
  105. package/dist/index49.cjs +1 -1
  106. package/dist/index49.js +4 -9
  107. package/dist/index5.cjs +1 -1
  108. package/dist/index5.js +2 -2
  109. package/dist/index50.cjs +1 -1
  110. package/dist/index50.js +9 -23
  111. package/dist/index51.cjs +1 -1
  112. package/dist/index51.js +23 -2
  113. package/dist/index52.cjs +1 -1
  114. package/dist/index52.js +2 -4
  115. package/dist/index53.cjs +1 -1
  116. package/dist/index53.js +4 -11
  117. package/dist/index54.cjs +1 -1
  118. package/dist/index54.js +10 -12
  119. package/dist/index55.cjs +1 -1
  120. package/dist/index55.js +12 -11
  121. package/dist/index56.cjs +1 -1
  122. package/dist/index56.js +11 -184
  123. package/dist/index57.cjs +1 -1
  124. package/dist/index57.js +183 -25
  125. package/dist/index58.cjs +1 -1
  126. package/dist/index58.js +26 -24
  127. package/dist/index59.cjs +1 -1
  128. package/dist/index59.js +19 -22
  129. package/dist/index6.cjs +1 -1
  130. package/dist/index6.js +2 -2
  131. package/dist/index60.cjs +1 -1
  132. package/dist/index60.js +25 -97
  133. package/dist/index61.cjs +1 -1
  134. package/dist/index61.js +99 -8
  135. package/dist/index62.cjs +1 -1
  136. package/dist/index62.js +8 -33
  137. package/dist/index63.cjs +1 -1
  138. package/dist/index63.js +33 -63
  139. package/dist/index64.cjs +1 -1
  140. package/dist/index64.js +59 -19
  141. package/dist/index65.cjs +1 -1
  142. package/dist/index65.js +23 -18
  143. package/dist/index66.cjs +1 -1
  144. package/dist/index66.js +16 -29
  145. package/dist/index67.cjs +1 -1
  146. package/dist/index67.js +30 -59
  147. package/dist/index68.cjs +1 -1
  148. package/dist/index68.js +60 -349
  149. package/dist/index69.cjs +1 -1
  150. package/dist/index69.js +345 -53
  151. package/dist/index7.cjs +1 -1
  152. package/dist/index7.js +4 -4
  153. package/dist/index70.cjs +1 -1
  154. package/dist/index70.js +48 -47
  155. package/dist/index71.cjs +1 -1
  156. package/dist/index71.js +51 -32
  157. package/dist/index72.cjs +1 -1
  158. package/dist/index72.js +30 -24
  159. package/dist/index73.cjs +1 -1
  160. package/dist/index73.js +26 -32
  161. package/dist/index74.cjs +1 -1
  162. package/dist/index74.js +38 -4
  163. package/dist/index75.cjs +1 -1
  164. package/dist/index75.js +4 -13
  165. package/dist/index76.cjs +1 -1
  166. package/dist/index76.js +12 -16
  167. package/dist/index77.cjs +1 -1
  168. package/dist/index77.js +14 -16
  169. package/dist/index78.cjs +1 -1
  170. package/dist/index78.js +18 -65
  171. package/dist/index79.cjs +1 -1
  172. package/dist/index79.js +66 -24
  173. package/dist/index80.cjs +1 -1
  174. package/dist/index80.js +24 -21
  175. package/dist/index81.cjs +1 -1
  176. package/dist/index81.js +20 -6
  177. package/dist/index82.cjs +1 -1
  178. package/dist/index82.js +7 -2
  179. package/dist/index83.cjs +1 -1
  180. package/dist/index83.js +2 -9
  181. package/dist/index84.cjs +1 -3
  182. package/dist/index84.js +8 -13
  183. package/dist/index85.cjs +3 -1
  184. package/dist/index85.js +13 -8
  185. package/dist/index86.cjs +1 -1
  186. package/dist/index86.js +9 -2
  187. package/dist/index87.cjs +1 -1
  188. package/dist/index87.js +116 -4
  189. package/dist/index88.cjs +1 -1
  190. package/dist/index88.js +39 -114
  191. package/dist/index89.cjs +1 -1
  192. package/dist/index89.js +9 -41
  193. package/dist/index90.cjs +1 -1
  194. package/dist/index90.js +2 -9
  195. package/dist/index91.cjs +1 -1
  196. package/dist/index91.js +4 -17
  197. package/dist/index94.cjs +1 -1
  198. package/dist/index94.js +2 -2
  199. package/dist/index97.cjs +1 -1
  200. package/dist/index97.js +4 -4
  201. package/dist/index99.cjs +1 -19
  202. package/dist/index99.js +14 -23
  203. package/package.json +5 -5
package/dist/index94.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index93.cjs"),q=require("@veeqo/ui"),C=require("./index52.cjs"),E=require("./index111.cjs"),p=require("./index112.cjs"),A=require("./index12.cjs"),b=require("./index51.cjs"),x={droppable:{strategy:e.MeasuringStrategy.Always}},M={sideEffects:e.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.5"}}})},j=({items:o,setItems:s,children:a,renderDragOverlay:n})=>{const{closeModal:i,openModal:l}=C.useModal(),c=e.useSensors(e.useSensor(e.PointerSensor),e.useSensor(e.KeyboardSensor,{coordinateGetter:S.sortableKeyboardCoordinates})),{activeId:t,handleDragCancel:d,handleDragEnd:u,handleDragOver:g,handleDragStart:D}=E.useDragHandlers({items:o,setItems:s}),{collisionDetectionStrategy:y}=p.useCollisionDetectionStrategy({items:o});return r.jsx(A.ErrorBoundary,{errorComponent:r.jsx(q.Alert,{variant:"error",title:"An error occurred",rightActions:[{label:"Reload",onClick:()=>{i(),l(b.ModalId.ORDERS_TABLE_MANAGEMENT)}}]}),children:r.jsxs(e.DndContext,{sensors:c,measuring:x,collisionDetection:y,onDragStart:D,onDragOver:g,onDragEnd:u,onDragCancel:d,children:[a,r.jsx(h.DndDragOverlayDialog,{open:!0,children:r.jsx(e.DragOverlay,{dropAnimation:M,zIndex:2001,children:t&&n?n(t):null})})]})})};exports.DndContainer=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index93.cjs"),q=require("@veeqo/ui"),C=require("./index53.cjs"),E=require("./index111.cjs"),p=require("./index112.cjs"),A=require("./index12.cjs"),b=require("./index52.cjs"),x={droppable:{strategy:e.MeasuringStrategy.Always}},M={sideEffects:e.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.5"}}})},j=({items:o,setItems:s,children:a,renderDragOverlay:n})=>{const{closeModal:i,openModal:l}=C.useModal(),c=e.useSensors(e.useSensor(e.PointerSensor),e.useSensor(e.KeyboardSensor,{coordinateGetter:S.sortableKeyboardCoordinates})),{activeId:t,handleDragCancel:d,handleDragEnd:u,handleDragOver:g,handleDragStart:D}=E.useDragHandlers({items:o,setItems:s}),{collisionDetectionStrategy:y}=p.useCollisionDetectionStrategy({items:o});return r.jsx(A.ErrorBoundary,{errorComponent:r.jsx(q.Alert,{variant:"error",title:"An error occurred",rightActions:[{label:"Reload",onClick:()=>{i(),l(b.ModalId.ORDERS_TABLE_MANAGEMENT)}}]}),children:r.jsxs(e.DndContext,{sensors:c,measuring:x,collisionDetection:y,onDragStart:D,onDragOver:g,onDragEnd:u,onDragCancel:d,children:[a,r.jsx(h.DndDragOverlayDialog,{open:!0,children:r.jsx(e.DragOverlay,{dropAnimation:M,zIndex:2001,children:t&&n?n(t):null})})]})})};exports.DndContainer=j;
package/dist/index94.js CHANGED
@@ -3,11 +3,11 @@ import { useSensors as u, useSensor as n, PointerSensor as y, KeyboardSensor as
3
3
  import { sortableKeyboardCoordinates as M } from "@dnd-kit/sortable";
4
4
  import { DndDragOverlayDialog as v } from "./index93.js";
5
5
  import { Alert as b } from "@veeqo/ui";
6
- import { useModal as x } from "./index52.js";
6
+ import { useModal as x } from "./index53.js";
7
7
  import { useDragHandlers as O } from "./index111.js";
8
8
  import { useCollisionDetectionStrategy as I } from "./index112.js";
9
9
  import { ErrorBoundary as R } from "./index12.js";
10
- import { ModalId as j } from "./index51.js";
10
+ import { ModalId as j } from "./index52.js";
11
11
  const B = {
12
12
  droppable: {
13
13
  strategy: A.Always
package/dist/index97.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),f=require("./index62.cjs"),y=require("./index61.cjs"),g=require("./index52.cjs"),h=require("./index60.cjs"),p=require("./index5.cjs"),w=({pinnedLeftColumnIds:r,pinnedRightColumnIds:a})=>{const{Filters:{activeViewId:t},Notifications:{notify:e}}=y.useStores(),{closeModal:i}=g.useModal(),{mutate:c}=f.useViews(),{getActiveViewInAPIFormat:l}=h.usePersistUnsavedChanges(),[m,o]=C.useState(!1);return{saveColumns:async({visibleColumns:n})=>{if(t)try{if(o(!0),n.length<1){e({type:"error",text:"You must have at least one visible column."});return}const u=[...r,...n,...a],{arg:d,currentView:s}=l(),v={...d,columns:{...s==null?void 0:s.columns,columnIds:u}};await p.patchCustomView(t,{attributes:v}),await c(),i(),e({type:"success",text:"Columns updated successfully"})}catch{e({type:"error",text:"Failed to save columns"})}finally{o(!1)}},isSavingColumns:m}};exports.usePersistColumns=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),f=require("./index63.cjs"),y=require("./index62.cjs"),g=require("./index53.cjs"),h=require("./index61.cjs"),p=require("./index5.cjs"),w=({pinnedLeftColumnIds:r,pinnedRightColumnIds:a})=>{const{Filters:{activeViewId:t},Notifications:{notify:e}}=y.useStores(),{closeModal:i}=g.useModal(),{mutate:c}=f.useViews(),{getActiveViewInAPIFormat:l}=h.usePersistUnsavedChanges(),[m,o]=C.useState(!1);return{saveColumns:async({visibleColumns:n})=>{if(t)try{if(o(!0),n.length<1){e({type:"error",text:"You must have at least one visible column."});return}const u=[...r,...n,...a],{arg:d,currentView:s}=l(),v={...d,columns:{...s==null?void 0:s.columns,columnIds:u}};await p.patchCustomView(t,{attributes:v}),await c(),i(),e({type:"success",text:"Columns updated successfully"})}catch{e({type:"error",text:"Failed to save columns"})}finally{o(!1)}},isSavingColumns:m}};exports.usePersistColumns=w;
package/dist/index97.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { useState as d } from "react";
2
- import { useViews as v } from "./index62.js";
3
- import { useStores as y } from "./index61.js";
4
- import { useModal as C } from "./index52.js";
5
- import { usePersistUnsavedChanges as g } from "./index60.js";
2
+ import { useViews as v } from "./index63.js";
3
+ import { useStores as y } from "./index62.js";
4
+ import { useModal as C } from "./index53.js";
5
+ import { usePersistUnsavedChanges as g } from "./index61.js";
6
6
  import { patchCustomView as h } from "./index5.js";
7
7
  const b = ({ pinnedLeftColumnIds: a, pinnedRightColumnIds: i }) => {
8
8
  const {
package/dist/index99.cjs CHANGED
@@ -1,19 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),e=require("@veeqo/ui"),s=t=>t&&t.__esModule?t:{default:t},o=s(r),i=o.default(e.Button).attrs(()=>({role:"option",variant:"flat"}))`
2
- margin: ${e.theme.sizes.xs};
3
- min-width: 180px;
4
- justify-content: flex-start;
5
- font-size: ${e.theme.text.body.fontSize};
6
-
7
- &:hover {
8
- background-color: ${e.theme.colors.neutral.grey.lightest};
9
- color: ${e.theme.colors.secondary.blue.base};
10
- cursor: pointer;
11
- }
12
- `,n=o.default(e.Card.Surface).attrs(()=>({role:"listbox",elevation:4}))`
13
- margin-top: ${e.theme.sizes.xs};
14
- background-color: white;
15
- `,l=o.default.hr`
16
- width: 100%;
17
- border-top: 1px solid ${e.theme.colors.neutral.grey.dark};
18
- margin: 0;
19
- `;exports.Divider=l;exports.Item=i;exports.MenuItems=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("./index113.cjs"),o=e=>i.jsx(l.StyledSortableViews,{...e,onChange:t=>{t.filter(r=>{var n;return(n=r.children)==null?void 0:n.length}).length||e.onChange(t)}});exports.LegacySortableViews=o;
package/dist/index99.js CHANGED
@@ -1,26 +1,17 @@
1
- import t from "styled-components";
2
- import { theme as o, Card as r, Button as e } from "@veeqo/ui";
3
- const n = t(e).attrs(() => ({ role: "option", variant: "flat" }))`
4
- margin: ${o.sizes.xs};
5
- min-width: 180px;
6
- justify-content: flex-start;
7
- font-size: ${o.text.body.fontSize};
8
-
9
- &:hover {
10
- background-color: ${o.colors.neutral.grey.lightest};
11
- color: ${o.colors.secondary.blue.base};
12
- cursor: pointer;
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { StyledSortableViews as i } from "./index113.js";
3
+ const h = (e) => /* @__PURE__ */ o(
4
+ i,
5
+ {
6
+ ...e,
7
+ onChange: (t) => {
8
+ t.filter((n) => {
9
+ var r;
10
+ return (r = n.children) == null ? void 0 : r.length;
11
+ }).length || e.onChange(t);
12
+ }
13
13
  }
14
- `, a = t(r.Surface).attrs(() => ({ role: "listbox", elevation: 4 }))`
15
- margin-top: ${o.sizes.xs};
16
- background-color: white;
17
- `, l = t.hr`
18
- width: 100%;
19
- border-top: 1px solid ${o.colors.neutral.grey.dark};
20
- margin: 0;
21
- `;
14
+ );
22
15
  export {
23
- l as Divider,
24
- n as Item,
25
- a as MenuItems
16
+ h as LegacySortableViews
26
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/transfigure",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.cjs",
@@ -38,9 +38,9 @@
38
38
  "@material-ui/core": "^4.11.0",
39
39
  "@tanstack/react-table": "^8.21.2",
40
40
  "@veeqo/components": "6.1.1",
41
- "@veeqo/ui": "13.10.0",
41
+ "@veeqo/ui": "14.0.3",
42
42
  "ajv-keywords": "^5.1.0",
43
- "axios": "^1.6.2",
43
+ "axios": "^1.15.0",
44
44
  "framer-motion": "^6.5.1",
45
45
  "kitsu-core": "^8.3.1",
46
46
  "lodash": "^4.17.19",
@@ -93,7 +93,7 @@
93
93
  "@typescript-eslint/eslint-plugin": "^8.37.0",
94
94
  "@typescript-eslint/parser": "^8.37.0",
95
95
  "@veeqo/components": "6.1.1",
96
- "@veeqo/ui": "13.10.0",
96
+ "@veeqo/ui": "14.0.3",
97
97
  "qs": "^6.10.3",
98
98
  "@vitejs/plugin-react": "^4.3.4",
99
99
  "@vitest/browser": "^3.1.2",
@@ -101,7 +101,7 @@
101
101
  "@vitest/ui": "^3.1.2",
102
102
  "ajv": "^8.17.1",
103
103
  "ajv-keywords": "^5.1.0",
104
- "axios": "^1.6.2",
104
+ "axios": "^1.15.0",
105
105
  "babel-plugin-styled-components": "^2.1.4",
106
106
  "eslint": "^9.21.0",
107
107
  "eslint-plugin-import": "^2.32.0",