@gen3/frontend 0.12.68 → 0.12.69

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.
@@ -29,7 +29,7 @@ const StaticNotebookIFrame = ({ notebook }) => {
29
29
  return () => iframe.removeEventListener('load', handleLoad);
30
30
  }
31
31
  }, []);
32
- return (_jsx("div", { className: "flex w-full", children: _jsx("div", { className: "flex justify-items-center w-full h-full", children: _jsx("iframe", { ref: iframeRef, sandbox: "allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox", referrerPolicy: "strict-origin-when-cross-origin", allow: "geolocation 'none'; microphone 'none'; camera 'none'", src: `${router.basePath}/${GEN3_STATIC_NOTEBOOK_DIR}/${notebook}`, width: "100%", height: "100%", title: "client notebook" }) }) }));
32
+ return (_jsx("div", { className: "flex grow", children: _jsx("div", { className: "flex justify-items-center w-full h-full", children: _jsx("iframe", { ref: iframeRef, sandbox: "allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox", referrerPolicy: "strict-origin-when-cross-origin", allow: "geolocation 'none'; microphone 'none'; camera 'none'", src: `${router.basePath}/${GEN3_STATIC_NOTEBOOK_DIR}/${notebook}`, width: "100%", height: "100%", title: "client notebook" }) }) }));
33
33
  };
34
34
  export default StaticNotebookIFrame;
35
35
  //# sourceMappingURL=StaticNotebookIFrame.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StaticNotebookIFrame.js","sourceRoot":"","sources":["../../../../src/features/StaticNotebook/StaticNotebookIFrame.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAMvD,MAAM,oBAAoB,GAAG,CAAC,EAAE,QAAQ,EAA6B,EAAE,EAAE;IACvE,MAAM,MAAM,GAAG,SAAS,EAAE,C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AAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;YACxD,CAAC;QACH,CAAC,CAAC;QAEF,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YAC5C,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,cAAK,SAAS,EAAC,WAAW,YACxB,cAAK,SAAS,EAAC,yCAAyC,YACtD,iBACE,GAAG,EAAE,SAAS,EACd,OAAO,EAAC,yFAAyF,EACjG,cAAc,EAAC,iCAAiC,EAChD,KAAK,EAAC,sDAAsD,EAC5D,GAAG,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,wBAAwB,IAAI,QAAQ,EAAE,EACjE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,EAAC,iBAAiB,GACvB,GACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var dynamic = require('next/dynamic');
5
+ require('react');
6
+ var core = require('@mantine/core');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ var dynamic__default = /*#__PURE__*/_interopDefault(dynamic);
11
+
12
+ // Wrapper function for displaying loading element before GqlQueryEditor renders
13
+ const GqlQueryEditor = dynamic__default.default(()=>Promise.resolve().then(function () { return require('./index-D0coYH7R.js'); }).then(function (n) { return n.GqlQueryEditor$1; }), {
14
+ loading: ()=>/*#__PURE__*/ jsxRuntime.jsx(core.LoadingOverlay, {
15
+ visible: true
16
+ }),
17
+ ssr: false
18
+ });
19
+ /**
20
+ * Represents the QueryPanel component responsible for rendering a GraphQL query editor.
21
+ *
22
+ * @param {QueryPanelConfiguration} config - The configuration object for the QueryPanel.
23
+ * @param {Array<{ url: string, label: string }>} [config.graphQLEndpoints=[{ url: 'guppy/graphql', label: 'Flat' }]]
24
+ * An array of GraphQL endpoint objects. Each endpoint object contains the following:
25
+ * - `url` (string): The URL of the GraphQL endpoint. Note this should only be the Gen3 service path (e.g., 'guppy/graphql').
26
+ * - `label` (string): A label for the GraphQL endpoint.
27
+ *
28
+ * @returns {React.Element} The rendered GraphQL query editor.
29
+ */ const QueryPanel = ({ graphQLEndpoints = [
30
+ {
31
+ url: 'guppy/graphql',
32
+ label: 'Flat'
33
+ }
34
+ ] })=>{
35
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
+ // @ts-ignore
37
+ return /*#__PURE__*/ jsxRuntime.jsx(GqlQueryEditor, {
38
+ graphQLEndpoints: graphQLEndpoints
39
+ });
40
+ };
41
+
42
+ exports.default = QueryPanel;
43
+ //# sourceMappingURL=QueryPanel-DUL1NIOJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryPanel-DUL1NIOJ.js","sources":["../../../src/features/Query/QueryPanel.tsx"],"sourcesContent":["import dynamic from 'next/dynamic';\nimport React from 'react';\nimport { LoadingOverlay } from '@mantine/core';\nimport type { QueryPanelConfiguration } from './types';\n\n// Wrapper function for displaying loading element before GqlQueryEditor renders\nconst GqlQueryEditor = dynamic(() => import('./GqlQueryEditor'), {\n loading: () => <LoadingOverlay visible={true} />,\n ssr: false,\n});\n\n/**\n * Represents the QueryPanel component responsible for rendering a GraphQL query editor.\n *\n * @param {QueryPanelConfiguration} config - The configuration object for the QueryPanel.\n * @param {Array<{ url: string, label: string }>} [config.graphQLEndpoints=[{ url: 'guppy/graphql', label: 'Flat' }]]\n * An array of GraphQL endpoint objects. Each endpoint object contains the following:\n * - `url` (string): The URL of the GraphQL endpoint. Note this should only be the Gen3 service path (e.g., 'guppy/graphql').\n * - `label` (string): A label for the GraphQL endpoint.\n *\n * @returns {React.Element} The rendered GraphQL query editor.\n */\n\nconst QueryPanel = ({\n graphQLEndpoints = [{ url: 'guppy/graphql', label: 'Flat' }],\n}: QueryPanelConfiguration) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return <GqlQueryEditor graphQLEndpoints={graphQLEndpoints} />;\n};\n\nexport default QueryPanel;\n"],"names":["GqlQueryEditor","dynamic","loading","_jsx","LoadingOverlay","visible","ssr","QueryPanel","graphQLEndpoints","url","label"],"mappings":";;;;;;;;;;;AAKA;AACA,MAAMA,cAAAA,GAAiBC,wBAAAA,CAAQ,IAAM,oDAAO,qBAAA,uDAAA,EAAqB;AAC/DC,IAAAA,OAAAA,EAAS,kBAAMC,cAAA,CAACC,mBAAAA,EAAAA;YAAeC,OAAAA,EAAS;;IACxCC,GAAAA,EAAK;AACP,CAAA,CAAA;AAEA;;;;;;;;;;AAUC,IAED,MAAMC,UAAAA,GAAa,CAAC,EAClBC,gBAAAA,GAAmB;AAAC,IAAA;QAAEC,GAAAA,EAAK,eAAA;QAAiBC,KAAAA,EAAO;AAAO;CAAE,EACpC,GAAA;;;AAGxB,IAAA,qBAAOP,cAAA,CAACH,cAAAA,EAAAA;QAAeQ,gBAAAA,EAAkBA;;AAC3C;;;;"}