@quillsql/react 1.7.3 → 1.7.5

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.
@@ -59,7 +59,7 @@ interface ReportBuilderProps {
59
59
  ModalComponent?: (props: ModalComponentProps) => JSX.Element;
60
60
  ModalTriggerComponent?: (props: ModalTriggerComponentProps) => JSX.Element;
61
61
  TextInputComponent?: (props: TextInputComponentProps) => JSX.Element;
62
- tagStyle: React.CSSProperties;
62
+ tagStyle?: React.CSSProperties;
63
63
  }
64
64
 
65
65
  function QuillModal({ children, isOpen, onClose, title, theme }) {
@@ -161,15 +161,21 @@ export default function ReportBuilder({
161
161
  }, []);
162
162
 
163
163
  const runQuery = async query => {
164
- const { publicKey, customerId, environment, queryEndpoint, queryHeaders } =
165
- client;
164
+ const {
165
+ publicKey,
166
+ customerId,
167
+ environment,
168
+ queryEndpoint,
169
+ queryHeaders,
170
+ withCredentials,
171
+ } = client;
166
172
 
167
173
  let response;
168
174
  if (queryEndpoint) {
169
175
  response = await axios.post(
170
176
  queryEndpoint,
171
177
  { metadata: { query, task: 'query' } },
172
- { headers: queryHeaders }
178
+ { headers: queryHeaders, withCredentials }
173
179
  );
174
180
  } else {
175
181
  response = await axios.post(
package/src/SQLEditor.tsx CHANGED
@@ -255,8 +255,14 @@ export default function QueryEditor({
255
255
  };
256
256
 
257
257
  const handleRunQuery = async () => {
258
- const { publicKey, customerId, environment, queryEndpoint, queryHeaders } =
259
- client;
258
+ const {
259
+ publicKey,
260
+ customerId,
261
+ environment,
262
+ queryEndpoint,
263
+ queryHeaders,
264
+ withCredentials,
265
+ } = client;
260
266
  try {
261
267
  let response;
262
268
  setSqlQueryLoading(true);
@@ -264,7 +270,7 @@ export default function QueryEditor({
264
270
  response = await axios.post(
265
271
  queryEndpoint,
266
272
  { metadata: { query, task: 'query' } },
267
- { headers: queryHeaders }
273
+ { headers: queryHeaders, withCredentials }
268
274
  );
269
275
  } else {
270
276
  response = await axios.post(
package/src/Table.tsx CHANGED
@@ -7,7 +7,6 @@ import { ClientContext, DashboardContext, ThemeContext } from './Context';
7
7
  import { valueFormatter } from './Chart';
8
8
  // import { SpecialTable } from './SQLEditor';
9
9
  import { QuillTheme } from './QuillProvider';
10
- import { TailSpin } from 'react-loader-spinner';
11
10
 
12
11
  interface TableColumn {
13
12
  label: string;
@@ -201,7 +200,54 @@ export function SpecialTable({
201
200
  >
202
201
  {LoadingComponent && <LoadingComponent />}
203
202
  {!LoadingComponent && (
204
- <TailSpin height={36} width={36} color="#364153" />
203
+ <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
204
+ <defs>
205
+ <linearGradient
206
+ id="circleGradient"
207
+ gradientUnits="objectBoundingBox"
208
+ >
209
+ <stop offset="0%" stop-color="#F9F9FA" />
210
+ <stop offset="5%" stop-color="#F9F9FA" />
211
+ <stop offset="100%" stop-color="#D1D1D1" />
212
+ </linearGradient>
213
+ <mask id="mask">
214
+ <circle cx="12" cy="12" r="12" fill="white" />
215
+ <path
216
+ id="sector"
217
+ fill="black"
218
+ d="M15,15 L15,1.8 A13.2,13.2 0 0,1 15,1.8 Z"
219
+ >
220
+ <animate
221
+ attributeName="d"
222
+ from="M15,15 L15,1.8 A13.2,13.2 0 0,0 15,1.8 Z"
223
+ to="M15,15 L15,1.8 A13.2,13.2 0 1,1 15,1.8 Z"
224
+ dur="2s"
225
+ repeatCount="indefinite"
226
+ />
227
+ </path>
228
+ </mask>
229
+ </defs>
230
+ <g transform="rotate(0 15 15)">
231
+ <animateTransform
232
+ attributeName="transform"
233
+ attributeType="XML"
234
+ type="rotate"
235
+ from="0 12 12"
236
+ to="360 12 12"
237
+ dur="2s"
238
+ repeatCount="indefinite"
239
+ />
240
+ <circle
241
+ cx="12"
242
+ cy="12"
243
+ r="12"
244
+ fill="none"
245
+ stroke="url(#circleGradient)"
246
+ stroke-width="8"
247
+ mask="url(#mask)"
248
+ />
249
+ </g>
250
+ </svg>
205
251
  )}
206
252
  </div>
207
253
  </div>
@@ -74,13 +74,14 @@ export const useQuill = (
74
74
  environment,
75
75
  queryEndpoint,
76
76
  queryHeaders,
77
+ withCredentials,
77
78
  } = client;
78
79
  try {
79
80
  if (queryEndpoint) {
80
81
  const resp = await axios.post(
81
82
  queryEndpoint,
82
83
  { metadata: { id: chartId, task: 'item' } },
83
- { headers: queryHeaders }
84
+ { headers: queryHeaders, withCredentials }
84
85
  );
85
86
  setLoading(false);
86
87
  setData({