@looker/extension-utils 0.1.62 → 0.1.64

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 (75) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/lib/APIErrorDisplay/APIErrorContent.js +3 -4
  3. package/lib/APIErrorDisplay/APIErrorContent.js.map +1 -1
  4. package/lib/APIErrorDisplay/APIErrorDetails.js +1 -1
  5. package/lib/APIErrorDisplay/APIErrorDetails.js.map +1 -1
  6. package/lib/APIErrorDisplay/APIErrorDialog.js +1 -1
  7. package/lib/APIErrorDisplay/APIErrorDialog.js.map +1 -1
  8. package/lib/APIErrorDisplay/APIErrorDisplay.js +1 -1
  9. package/lib/APIErrorDisplay/APIErrorDisplay.js.map +1 -1
  10. package/lib/APIErrorDisplay/APIErrorDocLink.js +1 -1
  11. package/lib/APIErrorDisplay/APIErrorDocLink.js.map +1 -1
  12. package/lib/APIErrorDisplay/index.js.map +1 -1
  13. package/lib/APIErrorDisplay/utils.js +2 -2
  14. package/lib/APIErrorDisplay/utils.js.map +1 -1
  15. package/lib/ExtMarkdown.js +1 -1
  16. package/lib/ExtMarkdown.js.map +1 -1
  17. package/lib/OAuthForm/index.js.map +1 -1
  18. package/lib/OAuthForm/src/components/CollapserCard.js +1 -1
  19. package/lib/OAuthForm/src/components/CollapserCard.js.map +1 -1
  20. package/lib/OAuthForm/src/components/ConfigHeading.js +1 -1
  21. package/lib/OAuthForm/src/components/ConfigHeading.js.map +1 -1
  22. package/lib/OAuthForm/src/components/OAuthForm.js +3 -4
  23. package/lib/OAuthForm/src/components/OAuthForm.js.map +1 -1
  24. package/lib/OAuthForm/src/components/index.js.map +1 -1
  25. package/lib/OAuthForm/src/index.js.map +1 -1
  26. package/lib/OAuthForm/src/state/index.js.map +1 -1
  27. package/lib/OAuthForm/src/state/sagas.js.map +1 -1
  28. package/lib/OAuthForm/src/state/slice.js +3 -3
  29. package/lib/OAuthForm/src/state/slice.js.map +1 -1
  30. package/lib/OAuthForm/src/utils.js +4 -4
  31. package/lib/OAuthForm/src/utils.js.map +1 -1
  32. package/lib/OAuthScene.js +3 -4
  33. package/lib/OAuthScene.js.map +1 -1
  34. package/lib/adaptorUtils.js.map +1 -1
  35. package/lib/authUtils.js +2 -2
  36. package/lib/authUtils.js.map +1 -1
  37. package/lib/browserAdaptor.js +4 -4
  38. package/lib/browserAdaptor.js.map +1 -1
  39. package/lib/esm/APIErrorDisplay/APIErrorContent.js +2 -2
  40. package/lib/esm/APIErrorDisplay/APIErrorContent.js.map +1 -1
  41. package/lib/esm/APIErrorDisplay/APIErrorDetails.js.map +1 -1
  42. package/lib/esm/APIErrorDisplay/APIErrorDialog.js.map +1 -1
  43. package/lib/esm/APIErrorDisplay/APIErrorDisplay.js.map +1 -1
  44. package/lib/esm/APIErrorDisplay/APIErrorDocLink.js.map +1 -1
  45. package/lib/esm/APIErrorDisplay/index.js.map +1 -1
  46. package/lib/esm/APIErrorDisplay/utils.js +2 -2
  47. package/lib/esm/APIErrorDisplay/utils.js.map +1 -1
  48. package/lib/esm/ExtMarkdown.js.map +1 -1
  49. package/lib/esm/OAuthForm/index.js.map +1 -1
  50. package/lib/esm/OAuthForm/src/components/CollapserCard.js.map +1 -1
  51. package/lib/esm/OAuthForm/src/components/ConfigHeading.js.map +1 -1
  52. package/lib/esm/OAuthForm/src/components/OAuthForm.js +2 -2
  53. package/lib/esm/OAuthForm/src/components/OAuthForm.js.map +1 -1
  54. package/lib/esm/OAuthForm/src/components/index.js.map +1 -1
  55. package/lib/esm/OAuthForm/src/index.js.map +1 -1
  56. package/lib/esm/OAuthForm/src/state/index.js.map +1 -1
  57. package/lib/esm/OAuthForm/src/state/sagas.js.map +1 -1
  58. package/lib/esm/OAuthForm/src/state/slice.js +2 -2
  59. package/lib/esm/OAuthForm/src/state/slice.js.map +1 -1
  60. package/lib/esm/OAuthForm/src/utils.js +4 -4
  61. package/lib/esm/OAuthForm/src/utils.js.map +1 -1
  62. package/lib/esm/OAuthScene.js +2 -2
  63. package/lib/esm/OAuthScene.js.map +1 -1
  64. package/lib/esm/adaptorUtils.js.map +1 -1
  65. package/lib/esm/authUtils.js +2 -2
  66. package/lib/esm/authUtils.js.map +1 -1
  67. package/lib/esm/browserAdaptor.js +4 -4
  68. package/lib/esm/browserAdaptor.js.map +1 -1
  69. package/lib/esm/extensionAdaptor.js +4 -4
  70. package/lib/esm/extensionAdaptor.js.map +1 -1
  71. package/lib/esm/index.js.map +1 -1
  72. package/lib/extensionAdaptor.js +4 -4
  73. package/lib/extensionAdaptor.js.map +1 -1
  74. package/lib/index.js.map +1 -1
  75. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -311,6 +311,24 @@
311
311
  * @looker/sdk bumped from 26.6.0 to 26.6.1
312
312
  * @looker/sdk-rtl bumped from 21.6.4 to 21.6.5
313
313
 
314
+ ### Dependencies
315
+
316
+ * The following workspace dependencies were updated
317
+ * dependencies
318
+ * @looker/code-editor bumped from 0.1.52 to 0.1.53
319
+ * @looker/extension-sdk bumped from 26.6.1 to 26.8.0
320
+ * @looker/extension-sdk-react bumped from 26.6.1 to 26.8.0
321
+ * @looker/sdk bumped from 26.6.1 to 26.8.0
322
+
323
+ ### Dependencies
324
+
325
+ * The following workspace dependencies were updated
326
+ * dependencies
327
+ * @looker/code-editor bumped from 0.1.53 to 0.1.54
328
+ * @looker/extension-sdk bumped from 26.8.0 to 26.10.0
329
+ * @looker/extension-sdk-react bumped from 26.8.0 to 26.10.0
330
+ * @looker/sdk bumped from 26.8.0 to 26.10.0
331
+
314
332
  ## [0.1.49](https://github.com/looker-open-source/sdk-codegen/compare/extension-utils-v0.1.48...extension-utils-v0.1.49) (2025-02-06)
315
333
 
316
334
 
@@ -11,10 +11,9 @@ var _ExtMarkdown = require("../ExtMarkdown");
11
11
  var _APIErrorDetails = require("./APIErrorDetails");
12
12
  var _APIErrorDocLink = require("./APIErrorDocLink");
13
13
  var _utils = require("./utils");
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
17
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
16
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
18
17
  var APIErrorContent = _ref => {
19
18
  var _error$documentation_;
20
19
  var {
@@ -1 +1 @@
1
- {"version":3,"file":"APIErrorContent.js","names":["_react","_interopRequireWildcard","require","_sdkRtl","_adaptorUtils","_ExtMarkdown","_APIErrorDetails","_APIErrorDocLink","_utils","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","APIErrorContent","_ref","_error$documentation_","showDoc","doc","setDoc","useState","getDoc","useCallback","_ref2","docUrl","adaptor","getEnvAdaptor","errDoc","ErrorDoc","sdk","apiErrorDisplayFetch","content","_x","useEffect","documentation_url","createElement","Fragment","APIErrorDetails","APIErrorDocLink","ExtMarkdown","source","exports"],"sources":["../../src/APIErrorDisplay/APIErrorContent.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { ErrorDoc } from '@looker/sdk-rtl';\nimport { getEnvAdaptor } from '../adaptorUtils';\nimport { ExtMarkdown } from '../ExtMarkdown';\nimport { APIErrorDetails } from './APIErrorDetails';\nimport { APIErrorDocLink } from './APIErrorDocLink';\nimport type { APIErrorDisplayProps } from './APIErrorDisplay';\nimport { apiErrorDisplayFetch } from './utils';\n\n/**\n * Shows available content of an API Error response\n * @param error to display\n * @param showDoc true to retrieve the corresponding error markdown\n */\nexport const APIErrorContent = ({ error, showDoc }: APIErrorDisplayProps) => {\n const [doc, setDoc] = useState<string>('');\n const getDoc = useCallback(\n async (docUrl: string) => {\n const adaptor = getEnvAdaptor();\n const errDoc = new ErrorDoc(adaptor.sdk, apiErrorDisplayFetch);\n setDoc(await errDoc.content(docUrl));\n },\n [error]\n );\n\n useEffect(() => {\n if (showDoc && error && error.documentation_url) {\n getDoc(error.documentation_url);\n }\n }, [error, showDoc]);\n\n return (\n <>\n <APIErrorDetails error={error} />\n {!showDoc && <APIErrorDocLink docUrl={error.documentation_url ?? ''} />}\n {showDoc && doc && <ExtMarkdown source={doc} />}\n </>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAA+C,SAAAO,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Z,KAAA,OAAAD,SAAA;IAAA;EAAA,KACD,CAACR,KAAK,CACR,CAAC;EAED,IAAA+B,gBAAS,EAAC,MAAM;IACd,IAAIhB,OAAO,IAAIf,KAAK,IAAIA,KAAK,CAACgC,iBAAiB,EAAE;MAC/Cb,MAAM,CAACnB,KAAK,CAACgC,iBAAiB,CAAC;IACjC;EACF,CAAC,EAAE,CAAChC,KAAK,EAAEe,OAAO,CAAC,CAAC;EAEpB,OACEvD,MAAA,CAAAe,OAAA,CAAA0D,aAAA,CAAAzE,MAAA,CAAAe,OAAA,CAAA2D,QAAA,QACE1E,MAAA,CAAAe,OAAA,CAAA0D,aAAA,CAACnE,gBAAA,CAAAqE,eAAe;IAACnC,KAAK,EAAEA;EAAM,CAAE,CAAC,EAChC,CAACe,OAAO,IAAIvD,MAAA,CAAAe,OAAA,CAAA0D,aAAA,CAAClE,gBAAA,CAAAqE,eAAe;IAACd,MAAM,GAAAR,qBAAA,GAAEd,KAAK,CAACgC,iBAAiB,cAAAlB,qBAAA,cAAAA,qBAAA,GAAI;EAAG,CAAE,CAAC,EACtEC,OAAO,IAAIC,GAAG,IAAIxD,MAAA,CAAAe,OAAA,CAAA0D,aAAA,CAACpE,YAAA,CAAAwE,WAAW;IAACC,MAAM,EAAEtB;EAAI,CAAE,CAC9C,CAAC;AAEP,CAAC;AAACuB,OAAA,CAAA3B,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"file":"APIErrorContent.js","names":["_react","_interopRequireWildcard","require","_sdkRtl","_adaptorUtils","_ExtMarkdown","_APIErrorDetails","_APIErrorDocLink","_utils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","asyncGeneratorStep","a","c","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","APIErrorContent","_ref","_error$documentation_","error","showDoc","doc","setDoc","useState","getDoc","useCallback","_ref2","docUrl","adaptor","getEnvAdaptor","errDoc","ErrorDoc","sdk","apiErrorDisplayFetch","content","_x","useEffect","documentation_url","createElement","Fragment","APIErrorDetails","APIErrorDocLink","ExtMarkdown","source","exports"],"sources":["../../src/APIErrorDisplay/APIErrorContent.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { ErrorDoc } from '@looker/sdk-rtl';\nimport { getEnvAdaptor } from '../adaptorUtils';\nimport { ExtMarkdown } from '../ExtMarkdown';\nimport { APIErrorDetails } from './APIErrorDetails';\nimport { APIErrorDocLink } from './APIErrorDocLink';\nimport type { APIErrorDisplayProps } from './APIErrorDisplay';\nimport { apiErrorDisplayFetch } from './utils';\n\n/**\n * Shows available content of an API Error response\n * @param error to display\n * @param showDoc true to retrieve the corresponding error markdown\n */\nexport const APIErrorContent = ({ error, showDoc }: APIErrorDisplayProps) => {\n const [doc, setDoc] = useState<string>('');\n const getDoc = useCallback(\n async (docUrl: string) => {\n const adaptor = getEnvAdaptor();\n const errDoc = new ErrorDoc(adaptor.sdk, apiErrorDisplayFetch);\n setDoc(await errDoc.content(docUrl));\n },\n [error]\n );\n\n useEffect(() => {\n if (showDoc && error && error.documentation_url) {\n getDoc(error.documentation_url);\n }\n }, [error, showDoc]);\n\n return (\n <>\n <APIErrorDetails error={error} />\n {!showDoc && <APIErrorDocLink docUrl={error.documentation_url ?? ''} />}\n {showDoc && doc && <ExtMarkdown source={doc} />}\n </>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAA+C,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,wBAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IA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AAM,EAAEtB;EAAI,CAAE,CAC9C,CAAC;AAEP,CAAC;AAACuB,OAAA,CAAA5B,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.APIErrorDetails = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _components = require("@looker/components");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  var APIErrorDetails = _ref => {
11
11
  var {
12
12
  error
@@ -1 +1 @@
1
- {"version":3,"file":"APIErrorDetails.js","names":["_react","_interopRequireDefault","require","_components","obj","__esModule","default","APIErrorDetails","_ref","error","errors","createElement","Fragment","Table","TableHead","TableRow","TableHeaderCell","p","TableBody","map","_ref2","index","field","code","message","key","concat","TableDataCell","Span","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDetails.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { LookerSDKError } from '@looker/sdk-rtl';\nimport React from 'react';\nimport {\n Span,\n Table,\n TableBody,\n TableDataCell,\n TableHead,\n TableHeaderCell,\n TableRow,\n} from '@looker/components';\n\ninterface APIErrorDetailsProps {\n error: LookerSDKError;\n}\n\n/**\n * Shows the detailed API errors table\n *\n * Because documentation_url is currently identical with the main documentation_url\n * it is not included in the table\n *\n * @param error to display\n */\nexport const APIErrorDetails = ({ error }: APIErrorDetailsProps) => {\n if (!error?.errors) return <></>;\n\n return (\n <Table>\n <TableHead>\n <TableRow>\n <TableHeaderCell p=\"xsmall\">Field</TableHeaderCell>\n <TableHeaderCell p=\"xsmall\">Code</TableHeaderCell>\n <TableHeaderCell p=\"xsmall\">Message</TableHeaderCell>\n </TableRow>\n </TableHead>\n <TableBody>\n {error.errors.map(({ field, code, message }, index) => (\n <TableRow key={`${field}${index}`}>\n <TableDataCell p=\"xsmall\">{field}</TableDataCell>\n <TableDataCell p=\"xsmall\">{code}</TableDataCell>\n <TableDataCell p=\"xsmall\">\n <Span>{message}</Span>\n </TableDataCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAQ4B,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAcrB,IAAMG,eAAe,GAAGC,IAAA,IAAqC;EAAA,IAApC;IAAEC;EAA4B,CAAC,GAAAD,IAAA;EAC7D,IAAI,EAACC,KAAK,aAALA,KAAK,eAALA,KAAK,CAAEC,MAAM,GAAE,OAAOV,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAAAX,MAAA,CAAAM,OAAA,CAAAM,QAAA,MAAI,CAAC;EAEhC,OACEZ,MAAA,CAAAM,OA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,WAAA,CAAAyB,IAAI,QAAEJ,OAAc,CACR,CACP,CAAC;EAAA,CACZ,CACQ,CACN,CAAC;AAEZ,CAAC;AAACK,OAAA,CAAAtB,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"file":"APIErrorDetails.js","names":["_react","_interopRequireDefault","require","_components","e","__esModule","default","APIErrorDetails","_ref","error","errors","createElement","Fragment","Table","TableHead","TableRow","TableHeaderCell","p","TableBody","map","_ref2","index","field","code","message","key","concat","TableDataCell","Span","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDetails.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { LookerSDKError } from '@looker/sdk-rtl';\nimport React from 'react';\nimport {\n Span,\n Table,\n TableBody,\n TableDataCell,\n TableHead,\n TableHeaderCell,\n TableRow,\n} from '@looker/components';\n\ninterface APIErrorDetailsProps {\n error: LookerSDKError;\n}\n\n/**\n * Shows the detailed API errors table\n *\n * Because documentation_url is currently identical with the main documentation_url\n * it is not included in the table\n *\n * @param error to display\n */\nexport const APIErrorDetails = ({ error }: APIErrorDetailsProps) => {\n if (!error?.errors) return <></>;\n\n return (\n <Table>\n <TableHead>\n <TableRow>\n <TableHeaderCell p=\"xsmall\">Field</TableHeaderCell>\n <TableHeaderCell p=\"xsmall\">Code</TableHeaderCell>\n <TableHeaderCell p=\"xsmall\">Message</TableHeaderCell>\n </TableRow>\n </TableHead>\n <TableBody>\n {error.errors.map(({ field, code, message }, index) => (\n <TableRow key={`${field}${index}`}>\n <TableDataCell p=\"xsmall\">{field}</TableDataCell>\n <TableDataCell p=\"xsmall\">{code}</TableDataCell>\n <TableDataCell p=\"xsmall\">\n <Span>{message}</Span>\n </TableDataCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAQ4B,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAcrB,IAAMG,eAAe,GAAGC,IAAA,IAAqC;EAAA,IAApC;IAAEC;EAA4B,CAAC,GAAAD,IAAA;EAC7D,IAAI,EAACC,KAAK,aAALA,KAAK,eAALA,KAAK,CAAEC,MAAM,GAAE,OAAOV,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAAAX,MAAA,CAAAM,OAAA,CAAAM,QAAA,MAAI,CAAC;EAEhC,OACEZ,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAU,KAAK,QACJb,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAW,SAAS,QACRd,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAY,QAAQ,QACPf,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAa,eAAe;IAACC,CAAC,EAAC;EAAQ,GAAC,OAAsB,CAAC,EACnDjB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAa,eAAe;IAACC,CAAC,EAAC;EAAQ,GAAC,MAAqB,CAAC,EAClDjB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAa,eAAe;IAACC,CAAC,EAAC;EAAQ,GAAC,SAAwB,CAC5C,CACD,CAAC,EACZjB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAe,SAAS,QACPT,KAAK,CAACC,MAAM,CAACS,GAAG,CAAC,CAAAC,KAAA,EAA2BC,KAAK;IAAA,IAA/B;MAAEC,KAAK;MAAEC,IAAI;MAAEC;IAAQ,CAAC,GAAAJ,KAAA;IAAA,OACzCpB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAY,QAAQ;MAACU,GAAG,KAAAC,MAAA,CAAKJ,KAAK,EAAAI,MAAA,CAAGL,KAAK;IAAG,GAChCrB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAwB,aAAa;MAACV,CAAC,EAAC;IAAQ,GAAEK,KAAqB,CAAC,EACjDtB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAwB,aAAa;MAACV,CAAC,EAAC;IAAQ,GAAEM,IAAoB,CAAC,EAChDvB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAwB,aAAa;MAACV,CAAC,EAAC;IAAQ,GACvBjB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAyB,IAAI,QAAEJ,OAAc,CACR,CACP,CAAC;EAAA,CACZ,CACQ,CACN,CAAC;AAEZ,CAAC;AAACK,OAAA,CAAAtB,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _components = require("@looker/components");
9
9
  var _APIErrorContent = require("./APIErrorContent");
10
10
  var _utils = require("./utils");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  var APIErrorDialog = _ref => {
13
13
  var {
14
14
  error,
@@ -1 +1 @@
1
- {"version":3,"file":"APIErrorDialog.js","names":["_react","_interopRequireDefault","require","_components","_APIErrorContent","_utils","obj","__esModule","default","APIErrorDialog","_ref","error","isOpen","setOpen","showDoc","createElement","Dialog","content","DialogLayout","header","errorHeading","footer","Button","size","onClick","APIErrorContent","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDialog.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React from 'react';\nimport { Button, Dialog, DialogLayout } from '@looker/components';\nimport type { APIErrorDisplayProps } from './APIErrorDisplay';\nimport { APIErrorContent } from './APIErrorContent';\nimport { errorHeading } from './utils';\n\ninterface APIErrorDialogProps extends APIErrorDisplayProps {\n /** toggle for dialog being open */\n isOpen: boolean;\n /** callback for toggling the dialog display */\n setOpen: (open: boolean) => void;\n}\n\nexport const APIErrorDialog = ({\n error,\n isOpen,\n setOpen,\n showDoc = false,\n}: APIErrorDialogProps) => (\n <Dialog\n isOpen={isOpen}\n content={\n <DialogLayout\n header={errorHeading(error)}\n footer={\n <Button size=\"xsmall\" onClick={() => setOpen && setOpen(false)}>\n OK\n </Button>\n }\n >\n <APIErrorContent error={error} showDoc={showDoc} />\n </DialogLayout>\n }\n />\n);\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAuC,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAShC,IAAMG,cAAc,GAAGC,IAAA;EAAA,IAAC;IAC7BC,KAAK;IACLC,MAAM;IACNC,OAAO;IACPC,OAAO,GAAG;EACS,CAAC,GAAAJ,IAAA;EAAA,OACpBV,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACZ,WAAA,CAAAa,MAAM;IACLJ,MAAM,EAAEA,MAAO;IACfK,OAAO,EACLjB,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACZ,WAAA,CAAAe,YAAY;MACXC,MAAM,EAAE,IAAAC,mBAAY,EAACT,KAAK,CAAE;MAC5BU,MAAM,EACJrB,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACZ,WAAA,CAAAmB,MAAM;QAACC,IAAI,EAAC,QAAQ;QAACC,OAAO,EAAEA,CAAA,KAAMX,OAAO,IAAIA,OAAO,CAAC,KAAK;MAAE,GAAC,IAExD;IACT,GAEDb,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACX,gBAAA,CAAAqB,eAAe;MAACd,KAAK,EAAEA,KAAM;MAACG,OAAO,EAAEA;IAAQ,CAAE,CACtC;EACf,CACF,CAAC;AAAA,CACH;AAACY,OAAA,CAAAjB,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"file":"APIErrorDialog.js","names":["_react","_interopRequireDefault","require","_components","_APIErrorContent","_utils","e","__esModule","default","APIErrorDialog","_ref","error","isOpen","setOpen","showDoc","createElement","Dialog","content","DialogLayout","header","errorHeading","footer","Button","size","onClick","APIErrorContent","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDialog.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React from 'react';\nimport { Button, Dialog, DialogLayout } from '@looker/components';\nimport type { APIErrorDisplayProps } from './APIErrorDisplay';\nimport { APIErrorContent } from './APIErrorContent';\nimport { errorHeading } from './utils';\n\ninterface APIErrorDialogProps extends APIErrorDisplayProps {\n /** toggle for dialog being open */\n isOpen: boolean;\n /** callback for toggling the dialog display */\n setOpen: (open: boolean) => void;\n}\n\nexport const APIErrorDialog = ({\n error,\n isOpen,\n setOpen,\n showDoc = false,\n}: APIErrorDialogProps) => (\n <Dialog\n isOpen={isOpen}\n content={\n <DialogLayout\n header={errorHeading(error)}\n footer={\n <Button size=\"xsmall\" onClick={() => setOpen && setOpen(false)}>\n OK\n </Button>\n }\n >\n <APIErrorContent error={error} showDoc={showDoc} />\n </DialogLayout>\n }\n />\n);\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAuC,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAShC,IAAMG,cAAc,GAAGC,IAAA;EAAA,IAAC;IAC7BC,KAAK;IACLC,MAAM;IACNC,OAAO;IACPC,OAAO,GAAG;EACS,CAAC,GAAAJ,IAAA;EAAA,OACpBV,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACZ,WAAA,CAAAa,MAAM;IACLJ,MAAM,EAAEA,MAAO;IACfK,OAAO,EACLjB,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACZ,WAAA,CAAAe,YAAY;MACXC,MAAM,EAAE,IAAAC,mBAAY,EAACT,KAAK,CAAE;MAC5BU,MAAM,EACJrB,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACZ,WAAA,CAAAmB,MAAM;QAACC,IAAI,EAAC,QAAQ;QAACC,OAAO,EAAEA,CAAA,KAAMX,OAAO,IAAIA,OAAO,CAAC,KAAK;MAAE,GAAC,IAExD;IACT,GAEDb,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACX,gBAAA,CAAAqB,eAAe;MAACd,KAAK,EAAEA,KAAM;MAACG,OAAO,EAAEA;IAAQ,CAAE,CACtC;EACf,CACF,CAAC;AAAA,CACH;AAACY,OAAA,CAAAjB,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _components = require("@looker/components");
9
9
  var _APIErrorContent = require("./APIErrorContent");
10
10
  var _utils = require("./utils");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  var APIErrorDisplay = _ref => {
13
13
  var {
14
14
  error,
@@ -1 +1 @@
1
- {"version":3,"file":"APIErrorDisplay.js","names":["_react","_interopRequireDefault","require","_components","_APIErrorContent","_utils","obj","__esModule","default","APIErrorDisplay","_ref","error","showDoc","createElement","Fragment","SpaceVertical","Heading","type","errorHeading","APIErrorContent","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDisplay.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React from 'react';\nimport type { LookerSDKError } from '@looker/sdk-rtl';\nimport { Heading, SpaceVertical } from '@looker/components';\nimport { APIErrorContent } from './APIErrorContent';\nimport { errorHeading } from './utils';\n\nexport interface APIErrorDisplayProps {\n /** Populated SDK error information, which may contain detailed errors */\n error: LookerSDKError;\n /** true to retrieve the markdown error document from the CDN and display it instead of a link */\n showDoc?: boolean;\n}\n\n/**\n * Show API error information in the parent React component\n * @param error to display\n * @param showDoc true to fetch the error document markdown. false for a clickable link\n */\nexport const APIErrorDisplay = ({\n error,\n showDoc = false,\n}: APIErrorDisplayProps) => {\n return (\n <>\n {error && (\n <SpaceVertical>\n <Heading type=\"h2\">{errorHeading(error)}</Heading>\n <APIErrorContent error={error} showDoc={showDoc} />\n </SpaceVertical>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAuC,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAchC,IAAMG,eAAe,GAAGC,IAAA,IAGH;EAAA,IAHI;IAC9BC,KAAK;IACLC,OAAO,GAAG;EACU,CAAC,GAAAF,IAAA;EACrB,OACEV,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAAAb,MAAA,CAAAQ,OAAA,CAAAM,QAAA,QACGH,KAAK,IACJX,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAY,aAAa,QACZf,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAa,OAAO;IAACC,IAAI,EAAC;EAAI,GAAE,IAAAC,mBAAY,EAACP,KAAK,CAAW,CAAC,EAClDX,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACT,gBAAA,CAAAe,eAAe;IAACR,KAAK,EAAEA,KAAM;IAACC,OAAO,EAAEA;EAAQ,CAAE,CACrC,CAEjB,CAAC;AAEP,CAAC;AAACQ,OAAA,CAAAX,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"file":"APIErrorDisplay.js","names":["_react","_interopRequireDefault","require","_components","_APIErrorContent","_utils","e","__esModule","default","APIErrorDisplay","_ref","error","showDoc","createElement","Fragment","SpaceVertical","Heading","type","errorHeading","APIErrorContent","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDisplay.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React from 'react';\nimport type { LookerSDKError } from '@looker/sdk-rtl';\nimport { Heading, SpaceVertical } from '@looker/components';\nimport { APIErrorContent } from './APIErrorContent';\nimport { errorHeading } from './utils';\n\nexport interface APIErrorDisplayProps {\n /** Populated SDK error information, which may contain detailed errors */\n error: LookerSDKError;\n /** true to retrieve the markdown error document from the CDN and display it instead of a link */\n showDoc?: boolean;\n}\n\n/**\n * Show API error information in the parent React component\n * @param error to display\n * @param showDoc true to fetch the error document markdown. false for a clickable link\n */\nexport const APIErrorDisplay = ({\n error,\n showDoc = false,\n}: APIErrorDisplayProps) => {\n return (\n <>\n {error && (\n <SpaceVertical>\n <Heading type=\"h2\">{errorHeading(error)}</Heading>\n <APIErrorContent error={error} showDoc={showDoc} />\n </SpaceVertical>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAuC,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAchC,IAAMG,eAAe,GAAGC,IAAA,IAGH;EAAA,IAHI;IAC9BC,KAAK;IACLC,OAAO,GAAG;EACU,CAAC,GAAAF,IAAA;EACrB,OACEV,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAAAb,MAAA,CAAAQ,OAAA,CAAAM,QAAA,QACGH,KAAK,IACJX,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAY,aAAa,QACZf,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAa,OAAO;IAACC,IAAI,EAAC;EAAI,GAAE,IAAAC,mBAAY,EAACP,KAAK,CAAW,CAAC,EAClDX,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACT,gBAAA,CAAAe,eAAe;IAACR,KAAK,EAAEA,KAAM;IAACC,OAAO,EAAEA;EAAQ,CAAE,CACrC,CAEjB,CAAC;AAEP,CAAC;AAACQ,OAAA,CAAAX,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -7,7 +7,7 @@ exports.APIErrorDocLink = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _components = require("@looker/components");
9
9
  var _adaptorUtils = require("../adaptorUtils");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  var APIErrorDocLink = _ref => {
12
12
  var {
13
13
  docUrl
@@ -1 +1 @@
1
- {"version":3,"file":"APIErrorDocLink.js","names":["_react","_interopRequireDefault","require","_components","_adaptorUtils","obj","__esModule","default","APIErrorDocLink","_ref","docUrl","onClick","e","preventDefault","adaptor","getEnvAdaptor","openBrowserWindow","currentTarget","href","createElement","Fragment","Link","key","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDocLink.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React from 'react';\nimport { Link } from '@looker/components';\nimport { getEnvAdaptor } from '../adaptorUtils';\n\ninterface APIErrorDocLinkProps {\n docUrl?: string;\n}\n\nexport const APIErrorDocLink = ({ docUrl }: APIErrorDocLinkProps) => {\n const onClick = (e: React.MouseEvent<HTMLAnchorElement>) => {\n e.preventDefault();\n const adaptor = getEnvAdaptor();\n adaptor.openBrowserWindow(e.currentTarget.href);\n };\n\n if (!docUrl) return <></>;\n return (\n <Link href={docUrl} key={docUrl} onClick={onClick}>\n More information\n </Link>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAAgD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAMzC,IAAMG,eAAe,GAAGC,IAAA,IAAsC;EAAA,IAArC;IAAEC;EAA6B,CAAC,GAAAD,IAAA;EAC9D,IAAME,OAAO,GAAIC,CAAsC,IAAK;IAC1DA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClB,IAAMC,OAAO,GAAG,IAAAC,2BAAa,EAAC,CAAC;IAC/BD,OAAO,CAACE,iBAAiB,CAACJ,CAAC,CAACK,aAAa,CAACC,IAAI,CAAC;EACjD,CAAC;EAED,IAAI,CAACR,MAAM,EAAE,OAAOV,MAAA,CAAAO,OAAA,CAAAY,aAAA,CAAAnB,MAAA,CAAAO,OAAA,CAAAa,QAAA,MAAI,CAAC;EACzB,OACEpB,MAAA,CAAAO,OAAA,CAAAY,aAAA,CAAChB,WAAA,CAAAkB,IAAI;IAACH,IAAI,EAAER,MAAO;IAACY,GAAG,EAAEZ,MAAO;IAACC,OAAO,EAAEA;EAAQ,GAAC,kBAE7C,CAAC;AAEX,CAAC;AAACY,OAAA,CAAAf,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"file":"APIErrorDocLink.js","names":["_react","_interopRequireDefault","require","_components","_adaptorUtils","e","__esModule","default","APIErrorDocLink","_ref","docUrl","onClick","preventDefault","adaptor","getEnvAdaptor","openBrowserWindow","currentTarget","href","createElement","Fragment","Link","key","exports"],"sources":["../../src/APIErrorDisplay/APIErrorDocLink.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React from 'react';\nimport { Link } from '@looker/components';\nimport { getEnvAdaptor } from '../adaptorUtils';\n\ninterface APIErrorDocLinkProps {\n docUrl?: string;\n}\n\nexport const APIErrorDocLink = ({ docUrl }: APIErrorDocLinkProps) => {\n const onClick = (e: React.MouseEvent<HTMLAnchorElement>) => {\n e.preventDefault();\n const adaptor = getEnvAdaptor();\n adaptor.openBrowserWindow(e.currentTarget.href);\n };\n\n if (!docUrl) return <></>;\n return (\n <Link href={docUrl} key={docUrl} onClick={onClick}>\n More information\n </Link>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAAgD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMzC,IAAMG,eAAe,GAAGC,IAAA,IAAsC;EAAA,IAArC;IAAEC;EAA6B,CAAC,GAAAD,IAAA;EAC9D,IAAME,OAAO,GAAIN,CAAsC,IAAK;IAC1DA,CAAC,CAACO,cAAc,CAAC,CAAC;IAClB,IAAMC,OAAO,GAAG,IAAAC,2BAAa,EAAC,CAAC;IAC/BD,OAAO,CAACE,iBAAiB,CAACV,CAAC,CAACW,aAAa,CAACC,IAAI,CAAC;EACjD,CAAC;EAED,IAAI,CAACP,MAAM,EAAE,OAAOV,MAAA,CAAAO,OAAA,CAAAW,aAAA,CAAAlB,MAAA,CAAAO,OAAA,CAAAY,QAAA,MAAI,CAAC;EACzB,OACEnB,MAAA,CAAAO,OAAA,CAAAW,aAAA,CAACf,WAAA,CAAAiB,IAAI;IAACH,IAAI,EAAEP,MAAO;IAACW,GAAG,EAAEX,MAAO;IAACC,OAAO,EAAEA;EAAQ,GAAC,kBAE7C,CAAC;AAEX,CAAC;AAACW,OAAA,CAAAd,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_APIErrorDialog","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_APIErrorDisplay","_utils"],"sources":["../../src/APIErrorDisplay/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './APIErrorDialog';\nexport * from './APIErrorDisplay';\nexport { apiErrorDisplayFetch } from './utils';\n"],"mappings":";;;;;;;;;;;;;;AA0BA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAb,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,gBAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,gBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,gBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,gBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,MAAA,GAAAd,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_APIErrorDialog","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_APIErrorDisplay","_utils"],"sources":["../../src/APIErrorDisplay/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './APIErrorDialog';\nexport * from './APIErrorDisplay';\nexport { apiErrorDisplayFetch } from './utils';\n"],"mappings":";;;;;;;;;;;;;;AA0BA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAb,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,gBAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,gBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,gBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,gBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,MAAA,GAAAd,OAAA","ignoreList":[]}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.errorHeading = exports.apiErrorDisplayFetch = void 0;
7
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
8
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
9
9
  var errorHeading = error => error.message || 'Unknown error';
10
10
  exports.errorHeading = errorHeading;
11
11
  var apiErrorDisplayFetch = exports.apiErrorDisplayFetch = function () {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["errorHeading","error","message","exports","apiErrorDisplayFetch","_ref","_asyncToGenerator","_sdk","url","fetched","fetch","mode","result","text","stop","indexOf","substring","trim","_x","_x2","apply","arguments"],"sources":["../../src/APIErrorDisplay/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { IAPIMethods, LookerSDKError } from '@looker/sdk-rtl';\n\n/**\n * Default the heading to 'Unknown error' if error.message is blank for any reason\n * @param error for heading\n */\nexport const errorHeading = (error: LookerSDKError) =>\n error.message || 'Unknown error';\n\n/**\n * this callback function used by the ErrorDoc constructor gets and truncates\n * API error documents for use within API Explorer\n * @param _sdk required as a parameter, but it's ignored in this function\n * @param url of document (either index.json or md) to fetch\n */\nexport const apiErrorDisplayFetch = async (_sdk: IAPIMethods, url: string) => {\n const fetched = await fetch(url, { mode: 'cors' });\n let result = await fetched.text();\n const stop = result.indexOf('## API Response Type');\n if (stop > 0) {\n result = result.substring(0, stop - 1).trim();\n }\n return result;\n};\n"],"mappings":";;;;;;;;AAgCO,IAAMA,YAAY,GAAIC,KAAqB,IAChDA,KAAK,CAACC,OAAO,IAAI,eAAe;AAACC,OAAA,CAAAH,YAAA,GAAAA,YAAA;AAQ5B,IAAMI,oBAAoB,GAAAD,OAAA,CAAAC,oBAAA;EAAA,IAAAC,IAAA,GAAAC,iBAAA,CAAG,WAAOC,IAAiB,EAAEC,GAAW,EAAK;IAC5E,IAAMC,OAAO,SAASC,KAAK,CAACF,GAAG,EAAE;MAAEG,IAAI,EAAE;IAAO,CAAC,CAAC;IAClD,IAAIC,MAAM,SAASH,OAAO,CAACI,IAAI,CAAC,CAAC;IACjC,IAAMC,IAAI,GAAGF,MAAM,CAACG,OAAO,CAAC,sBAAsB,CAAC;IACnD,IAAID,IAAI,GAAG,CAAC,EAAE;MACZF,MAAM,GAAGA,MAAM,CAACI,SAAS,CAAC,CAAC,EAAEF,IAAI,GAAG,CAAC,CAAC,CAACG,IAAI,CAAC,CAAC;IAC/C;IACA,OAAOL,MAAM;EACf,CAAC;EAAA,gBARYR,oBAAoBA,CAAAc,EAAA,EAAAC,GAAA;IAAA,OAAAd,IAAA,CAAAe,KAAA,OAAAC,SAAA;EAAA;AAAA,GAQhC"}
1
+ {"version":3,"file":"utils.js","names":["errorHeading","error","message","exports","apiErrorDisplayFetch","_ref","_asyncToGenerator","_sdk","url","fetched","fetch","mode","result","text","stop","indexOf","substring","trim","_x","_x2","apply","arguments"],"sources":["../../src/APIErrorDisplay/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { IAPIMethods, LookerSDKError } from '@looker/sdk-rtl';\n\n/**\n * Default the heading to 'Unknown error' if error.message is blank for any reason\n * @param error for heading\n */\nexport const errorHeading = (error: LookerSDKError) =>\n error.message || 'Unknown error';\n\n/**\n * this callback function used by the ErrorDoc constructor gets and truncates\n * API error documents for use within API Explorer\n * @param _sdk required as a parameter, but it's ignored in this function\n * @param url of document (either index.json or md) to fetch\n */\nexport const apiErrorDisplayFetch = async (_sdk: IAPIMethods, url: string) => {\n const fetched = await fetch(url, { mode: 'cors' });\n let result = await fetched.text();\n const stop = result.indexOf('## API Response Type');\n if (stop > 0) {\n result = result.substring(0, stop - 1).trim();\n }\n return result;\n};\n"],"mappings":";;;;;;;;AAgCO,IAAMA,YAAY,GAAIC,KAAqB,IAChDA,KAAK,CAACC,OAAO,IAAI,eAAe;AAACC,OAAA,CAAAH,YAAA,GAAAA,YAAA;AAQ5B,IAAMI,oBAAoB,GAAAD,OAAA,CAAAC,oBAAA;EAAA,IAAAC,IAAA,GAAAC,iBAAA,CAAG,WAAOC,IAAiB,EAAEC,GAAW,EAAK;IAC5E,IAAMC,OAAO,SAASC,KAAK,CAACF,GAAG,EAAE;MAAEG,IAAI,EAAE;IAAO,CAAC,CAAC;IAClD,IAAIC,MAAM,SAASH,OAAO,CAACI,IAAI,CAAC,CAAC;IACjC,IAAMC,IAAI,GAAGF,MAAM,CAACG,OAAO,CAAC,sBAAsB,CAAC;IACnD,IAAID,IAAI,GAAG,CAAC,EAAE;MACZF,MAAM,GAAGA,MAAM,CAACI,SAAS,CAAC,CAAC,EAAEF,IAAI,GAAG,CAAC,CAAC,CAACG,IAAI,CAAC,CAAC;IAC/C;IACA,OAAOL,MAAM;EACf,CAAC;EAAA,gBARYR,oBAAoBA,CAAAc,EAAA,EAAAC,GAAA;IAAA,OAAAd,IAAA,CAAAe,KAAA,OAAAC,SAAA;EAAA;AAAA,GAQhC","ignoreList":[]}
@@ -7,7 +7,7 @@ exports.ExtMarkdown = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _codeEditor = require("@looker/code-editor");
9
9
  var _adaptorUtils = require("./adaptorUtils");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  var ExtMarkdown = _ref => {
12
12
  var {
13
13
  source,
@@ -1 +1 @@
1
- {"version":3,"file":"ExtMarkdown.js","names":["_react","_interopRequireDefault","require","_codeEditor","_adaptorUtils","obj","__esModule","default","ExtMarkdown","_ref","source","pattern","transformLinkUri","linkClickHandler","paragraphOverride","openBrowserWindow","_pathname","href","adaptor","getEnvAdaptor","createElement","Markdown","exports"],"sources":["../src/ExtMarkdown.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { FC, ReactNode } from 'react';\nimport React from 'react';\nimport { Markdown } from '@looker/code-editor';\nimport { getEnvAdaptor } from './adaptorUtils';\n\ninterface ExtMarkdownProps {\n source: string;\n pattern?: string;\n transformLinkUri?: (url: string) => string;\n linkClickHandler?: (pathname: string, href: string) => void;\n paragraphOverride?: ({ children }: { children: ReactNode }) => ReactNode;\n}\n\n/**\n * Simple wrapper on the standard Markdown component to handle link clicks in an extension\n * @param source markdown to render\n * @param pattern search pattern\n * @param transformLinkUri link pattern transformer override\n * @param linkClickHandler defaults to ExtensionSDK.openBrowserWindow()\n * @param paragraphOverride override paragraph display handling\n */\nexport const ExtMarkdown: FC<ExtMarkdownProps> = ({\n source,\n pattern = '',\n transformLinkUri,\n linkClickHandler,\n paragraphOverride,\n}) => {\n const openBrowserWindow = (_pathname: string, href: string) => {\n const adaptor = getEnvAdaptor();\n adaptor.openBrowserWindow(href);\n };\n\n return (\n <Markdown\n source={source}\n pattern={pattern}\n transformLinkUri={transformLinkUri}\n linkClickHandler={linkClickHandler || openBrowserWindow}\n paragraphOverride={paragraphOverride}\n />\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAA+C,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAkBxC,IAAMG,WAAiC,GAAGC,IAAA,IAM3C;EAAA,IAN4C;IAChDC,MAAM;IACNC,OAAO,GAAG,EAAE;IACZC,gBAAgB;IAChBC,gBAAgB;IAChBC;EACF,CAAC,GAAAL,IAAA;EACC,IAAMM,iBAAiB,GAAGA,CAACC,SAAiB,EAAEC,IAAY,KAAK;IAC7D,IAAMC,OAAO,GAAG,IAAAC,2BAAa,EAAC,CAAC;IAC/BD,OAAO,CAACH,iBAAiB,CAACE,IAAI,CAAC;EACjC,CAAC;EAED,OACEjB,MAAA,CAAAO,OAAA,CAAAa,aAAA,CAACjB,WAAA,CAAAkB,QAAQ;IACPX,MAAM,EAAEA,MAAO;IACfC,OAAO,EAAEA,OAAQ;IACjBC,gBAAgB,EAAEA,gBAAiB;IACnCC,gBAAgB,EAAEA,gBAAgB,IAAIE,iBAAkB;IACxDD,iBAAiB,EAAEA;EAAkB,CACtC,CAAC;AAEN,CAAC;AAACQ,OAAA,CAAAd,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"file":"ExtMarkdown.js","names":["_react","_interopRequireDefault","require","_codeEditor","_adaptorUtils","e","__esModule","default","ExtMarkdown","_ref","source","pattern","transformLinkUri","linkClickHandler","paragraphOverride","openBrowserWindow","_pathname","href","adaptor","getEnvAdaptor","createElement","Markdown","exports"],"sources":["../src/ExtMarkdown.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { FC, ReactNode } from 'react';\nimport React from 'react';\nimport { Markdown } from '@looker/code-editor';\nimport { getEnvAdaptor } from './adaptorUtils';\n\ninterface ExtMarkdownProps {\n source: string;\n pattern?: string;\n transformLinkUri?: (url: string) => string;\n linkClickHandler?: (pathname: string, href: string) => void;\n paragraphOverride?: ({ children }: { children: ReactNode }) => ReactNode;\n}\n\n/**\n * Simple wrapper on the standard Markdown component to handle link clicks in an extension\n * @param source markdown to render\n * @param pattern search pattern\n * @param transformLinkUri link pattern transformer override\n * @param linkClickHandler defaults to ExtensionSDK.openBrowserWindow()\n * @param paragraphOverride override paragraph display handling\n */\nexport const ExtMarkdown: FC<ExtMarkdownProps> = ({\n source,\n pattern = '',\n transformLinkUri,\n linkClickHandler,\n paragraphOverride,\n}) => {\n const openBrowserWindow = (_pathname: string, href: string) => {\n const adaptor = getEnvAdaptor();\n adaptor.openBrowserWindow(href);\n };\n\n return (\n <Markdown\n source={source}\n pattern={pattern}\n transformLinkUri={transformLinkUri}\n linkClickHandler={linkClickHandler || openBrowserWindow}\n paragraphOverride={paragraphOverride}\n />\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAA+C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAkBxC,IAAMG,WAAiC,GAAGC,IAAA,IAM3C;EAAA,IAN4C;IAChDC,MAAM;IACNC,OAAO,GAAG,EAAE;IACZC,gBAAgB;IAChBC,gBAAgB;IAChBC;EACF,CAAC,GAAAL,IAAA;EACC,IAAMM,iBAAiB,GAAGA,CAACC,SAAiB,EAAEC,IAAY,KAAK;IAC7D,IAAMC,OAAO,GAAG,IAAAC,2BAAa,EAAC,CAAC;IAC/BD,OAAO,CAACH,iBAAiB,CAACE,IAAI,CAAC;EACjC,CAAC;EAED,OACEjB,MAAA,CAAAO,OAAA,CAAAa,aAAA,CAACjB,WAAA,CAAAkB,QAAQ;IACPX,MAAM,EAAEA,MAAO;IACfC,OAAO,EAAEA,OAAQ;IACjBC,gBAAgB,EAAEA,gBAAiB;IACnCC,gBAAgB,EAAEA,gBAAgB,IAAIE,iBAAkB;IACxDD,iBAAiB,EAAEA;EAAkB,CACtC,CAAC;AAEN,CAAC;AAACQ,OAAA,CAAAd,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_src","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/OAuthForm/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './src';\n"],"mappings":";;;;;AAyBA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_src","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/OAuthForm/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './src';\n"],"mappings":";;;;;AAyBA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _components = require("@looker/components");
9
9
  var _material = require("@styled-icons/material");
10
10
  var _ConfigHeading = require("./ConfigHeading");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  var CollapserCard = _ref => {
13
13
  var {
14
14
  id,
@@ -1 +1 @@
1
- {"version":3,"file":"CollapserCard.js","names":["_react","_interopRequireDefault","require","_components","_material","_ConfigHeading","obj","__esModule","default","CollapserCard","_ref","id","heading","children","defaultOpen","divider","level","value","toggle","useToggle","createElement","Box2","display","flexDirection","Divider","appearance","Accordion2","indicatorPosition","isOpen","toggleOpen","indicatorIcons","close","ArrowRight","open","ArrowDropDown","label","ConfigHeading","as","pb","exports"],"sources":["../../../../src/OAuthForm/src/components/CollapserCard.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { FC, ReactElement } from 'react';\nimport React from 'react';\nimport { Accordion2, Box2, Divider, useToggle } from '@looker/components';\nimport { ArrowDropDown, ArrowRight } from '@styled-icons/material';\nimport { ConfigHeading } from './ConfigHeading';\n\ninterface CollapserCardProps {\n id?: string;\n heading: string;\n children: ReactElement;\n defaultOpen?: boolean;\n divider?: boolean;\n}\n\n/**\n * Render a collapsable header and children\n */\nexport const CollapserCard: FC<CollapserCardProps> = ({\n id,\n heading,\n children,\n defaultOpen = true,\n divider = true,\n}) => {\n const level = divider ? 'h3' : 'h4';\n const { value, toggle } = useToggle(defaultOpen);\n\n return (\n <Box2 display=\"flex\" flexDirection=\"column\">\n {divider && <Divider appearance=\"light\" />}\n <Accordion2\n id={id}\n indicatorPosition=\"left\"\n isOpen={value}\n toggleOpen={toggle}\n indicatorIcons={{ close: <ArrowRight />, open: <ArrowDropDown /> }}\n label={<ConfigHeading as={level}>{heading}</ConfigHeading>}\n >\n <Box2 pb=\"xlarge\">{children}</Box2>\n </Accordion2>\n </Box2>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAAgD,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAazC,IAAMG,aAAqC,GAAGC,IAAA,IAM/C;EAAA,IANgD;IACpDC,EAAE;IACFC,OAAO;IACPC,QAAQ;IACRC,WAAW,GAAG,IAAI;IAClBC,OAAO,GAAG;EACZ,CAAC,GAAAL,IAAA;EACC,IAAMM,KAAK,GAAGD,OAAO,GAAG,IAAI,GAAG,IAAI;EACnC,IAAM;IAAEE,KAAK;IAAEC;EAAO,CAAC,GAAG,IAAAC,qBAAS,EAACL,WAAW,CAAC;EAEhD,OACEd,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACjB,WAAA,CAAAkB,IAAI;IAACC,OAAO,EAAC,MAAM;IAACC,aAAa,EAAC;EAAQ,GACxCR,OAAO,IAAIf,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACjB,WAAA,CAAAqB,OAAO;IAACC,UAAU,EAAC;EAAO,CAAE,CAAC,EAC1CzB,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACjB,WAAA,CAAAuB,UAAU;IACTf,EAAE,EAAEA,EAAG;IACPgB,iBAAiB,EAAC,MAAM;IACxBC,MAAM,EAAEX,KAAM;IACdY,UAAU,EAAEX,MAAO;IACnBY,cAAc,EAAE;MAAEC,KAAK,EAAE/B,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAAChB,SAAA,CAAA4B,UAAU,MAAE,CAAC;MAAEC,IAAI,EAAEjC,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAAChB,SAAA,CAAA8B,aAAa,MAAE;IAAE,CAAE;IACnEC,KAAK,EAAEnC,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACf,cAAA,CAAA+B,aAAa;MAACC,EAAE,EAAErB;IAAM,GAAEJ,OAAuB;EAAE,GAE3DZ,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACjB,WAAA,CAAAkB,IAAI;IAACiB,EAAE,EAAC;EAAQ,GAAEzB,QAAe,CACxB,CACR,CAAC;AAEX,CAAC;AAAC0B,OAAA,CAAA9B,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"file":"CollapserCard.js","names":["_react","_interopRequireDefault","require","_components","_material","_ConfigHeading","e","__esModule","default","CollapserCard","_ref","id","heading","children","defaultOpen","divider","level","value","toggle","useToggle","createElement","Box2","display","flexDirection","Divider","appearance","Accordion2","indicatorPosition","isOpen","toggleOpen","indicatorIcons","close","ArrowRight","open","ArrowDropDown","label","ConfigHeading","as","pb","exports"],"sources":["../../../../src/OAuthForm/src/components/CollapserCard.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { FC, ReactElement } from 'react';\nimport React from 'react';\nimport { Accordion2, Box2, Divider, useToggle } from '@looker/components';\nimport { ArrowDropDown, ArrowRight } from '@styled-icons/material';\nimport { ConfigHeading } from './ConfigHeading';\n\ninterface CollapserCardProps {\n id?: string;\n heading: string;\n children: ReactElement;\n defaultOpen?: boolean;\n divider?: boolean;\n}\n\n/**\n * Render a collapsable header and children\n */\nexport const CollapserCard: FC<CollapserCardProps> = ({\n id,\n heading,\n children,\n defaultOpen = true,\n divider = true,\n}) => {\n const level = divider ? 'h3' : 'h4';\n const { value, toggle } = useToggle(defaultOpen);\n\n return (\n <Box2 display=\"flex\" flexDirection=\"column\">\n {divider && <Divider appearance=\"light\" />}\n <Accordion2\n id={id}\n indicatorPosition=\"left\"\n isOpen={value}\n toggleOpen={toggle}\n indicatorIcons={{ close: <ArrowRight />, open: <ArrowDropDown /> }}\n label={<ConfigHeading as={level}>{heading}</ConfigHeading>}\n >\n <Box2 pb=\"xlarge\">{children}</Box2>\n </Accordion2>\n </Box2>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAAgD,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,E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9B,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ConfigHeading = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _components = require("@looker/components");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  var ConfigHeading = exports.ConfigHeading = (0, _styledComponents.default)(_components.Heading).attrs(_ref => {
11
11
  var {
12
12
  mb = 'xsmall',
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigHeading.js","names":["_styledComponents","_interopRequireDefault","require","_components","obj","__esModule","default","ConfigHeading","exports","styled","Heading","attrs","_ref","mb","pt","withConfig","displayName","componentId"],"sources":["../../../../src/OAuthForm/src/components/ConfigHeading.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport styled from 'styled-components';\nimport { Heading } from '@looker/components';\nimport type { HeadingProps } from '@looker/components';\n\nexport const ConfigHeading = styled(Heading).attrs(\n ({ mb = 'xsmall', pt = 'xsmall' }: HeadingProps) => ({ mb, pt })\n)``;\n"],"mappings":";;;;;;AAyBA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAA6C,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGtC,IAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,yBAAM,EAACC,mBAAO,CAAC,CAACC,KAAK,CAChDC,IAAA;EAAA,IAAC;IAAEC,EAAE,GAAG,QAAQ;IAAEC,EAAE,GAAG;EAAuB,CAAC,GAAAF,IAAA;EAAA,OAAM;IAAEC,EAAE;IAAEC;EAAG,CAAC;AAAA,CACjE,CAAC,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE"}
1
+ {"version":3,"file":"ConfigHeading.js","names":["_styledComponents","_interopRequireDefault","require","_components","e","__esModule","default","ConfigHeading","exports","styled","Heading","attrs","_ref","mb","pt","withConfig","displayName","componentId"],"sources":["../../../../src/OAuthForm/src/components/ConfigHeading.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport styled from 'styled-components';\nimport { Heading } from '@looker/components';\nimport type { HeadingProps } from '@looker/components';\n\nexport const ConfigHeading = styled(Heading).attrs(\n ({ mb = 'xsmall', pt = 'xsmall' }: HeadingProps) => ({ mb, pt })\n)``;\n"],"mappings":";;;;;;AAyBA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGtC,IAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,yBAAM,EAACC,mBAAO,CAAC,CAACC,KAAK,CAChDC,IAAA;EAAA,IAAC;IAAEC,EAAE,GAAG,QAAQ;IAAEC,EAAE,GAAG;EAAuB,CAAC,GAAAF,IAAA;EAAA,OAAM;IAAEC,EAAE;IAAEC;EAAG,CAAC;AAAA,CACjE,CAAC,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE","ignoreList":[]}
@@ -12,10 +12,9 @@ var _ = require("../../..");
12
12
  var _slice = require("../state/slice");
13
13
  var _CollapserCard = require("./CollapserCard");
14
14
  var _ConfigHeading = require("./ConfigHeading");
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
18
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
17
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
19
18
  var readyToLogin = exports.readyToLogin = 'OAuth is configured but your browser session is not authenticated. Click Login.';
20
19
  var OAuthForm = _ref => {
21
20
  var {
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthForm.js","names":["_react","_interopRequireWildcard","require","_components","_codeEditor","_reactRouterDom","_","_slice","_CollapserCard","_ConfigHeading","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","readyToLogin","exports","OAuthForm","_ref","setHasConfig","clientId","clientLabel","configKey","location","useLocation","redirect_uri","appPath","appConfig","concat","adaptor","getEnvAdaptor","sdk","initAction","setUrlAction","clearConfigAction","verifyConfigAction","clearMessageBarAction","saveConfigAction","useOAuthFormActions","apiServerUrl","fetchedUrl","webUrl","messageBar","validationMessages","savedConfig","useOAuthFormState","isConfigured","base_url","looker_url","handleSave","client_id","handleVerify","handleClear","_ref2","isAuthenticated","handleUrlChange","event","name","currentTarget","authSession","verifyButtonDisabled","trim","length","keys","saveButtonDisabled","clearButtonDisabled","loginButtonDisabled","handleLogin","_ref3","preventDefault","login","_x","useEffect","createElement","SpaceVertical","gap","ConfigHeading","Span","fontSize","MessageBar","intent","onPrimaryClick","visible","text","CollapserCard","heading","id","divider","defaultOpen","pt","px","Form","Fieldset","legend","FieldText","required","label","placeholder","onChange","disabled","Fragment","Paragraph","Link","href","target","window","origin","CodeCopy","language","code","Space","Tooltip","content","ButtonTransparent","onClick","mr","Button","Divider","appearance"],"sources":["../../../../src/OAuthForm/src/components/OAuthForm.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { BaseSyntheticEvent, Dispatch, FormEvent } from 'react';\nimport React, { useEffect } from 'react';\nimport {\n Button,\n ButtonTransparent,\n Divider,\n FieldText,\n Fieldset,\n Form,\n Link,\n MessageBar,\n Paragraph,\n Space,\n SpaceVertical,\n Span,\n Tooltip,\n} from '@looker/components';\nimport { CodeCopy } from '@looker/code-editor';\nimport { useLocation } from 'react-router-dom';\nimport { appPath, getEnvAdaptor } from '../../..';\nimport { useOAuthFormActions, useOAuthFormState } from '../state/slice';\nimport { CollapserCard } from './CollapserCard';\nimport { ConfigHeading } from './ConfigHeading';\nexport const readyToLogin =\n 'OAuth is configured but your browser session is not authenticated. Click Login.';\n\ninterface ConfigFormProps {\n /** A set state callback which allows for editing, setting or clearing OAuth configuration parameters if present */\n setHasConfig?: Dispatch<boolean>;\n /** Local storage key value for storing config parameters */\n configKey: string;\n /** OAuth client id */\n clientId: string;\n /** OAuth client display label */\n clientLabel: string;\n}\n\nexport const OAuthForm = ({\n setHasConfig,\n clientId,\n clientLabel,\n configKey,\n}: ConfigFormProps) => {\n const location = useLocation();\n const redirect_uri = appPath(location, '/oauth');\n const appConfig = `// client_guid=${clientId}\n {\n \"redirect_uri\": \"${redirect_uri}\",\n \"display_name\": \"CORS ${clientLabel}\",\n \"description\": \"Looker ${clientLabel} using CORS\",\n \"enabled\": true\n }\n `;\n const adaptor = getEnvAdaptor();\n const sdk = adaptor.sdk;\n\n const {\n initAction,\n setUrlAction,\n clearConfigAction,\n verifyConfigAction,\n clearMessageBarAction,\n saveConfigAction,\n } = useOAuthFormActions();\n const {\n apiServerUrl,\n fetchedUrl,\n webUrl,\n messageBar,\n validationMessages,\n savedConfig,\n } = useOAuthFormState();\n\n const isConfigured = () => {\n return (\n apiServerUrl === savedConfig.base_url &&\n webUrl === savedConfig.looker_url &&\n apiServerUrl !== '' &&\n webUrl !== ''\n );\n };\n\n const handleSave = () => {\n saveConfigAction({\n configKey,\n setHasConfig,\n client_id: clientId,\n redirect_uri,\n });\n };\n\n const handleVerify = () => {\n verifyConfigAction();\n };\n\n const handleClear = async () => {\n clearConfigAction({\n configKey,\n setHasConfig: setHasConfig,\n isAuthenticated: isAuthenticated(),\n });\n };\n\n const handleUrlChange = (event: FormEvent<HTMLInputElement>) => {\n setUrlAction({\n name: event.currentTarget.name,\n value: event.currentTarget.value,\n });\n };\n\n const isAuthenticated = () => sdk.authSession.isAuthenticated();\n\n const verifyButtonDisabled =\n apiServerUrl.trim().length === 0 ||\n Object.keys(validationMessages).length > 0;\n\n const saveButtonDisabled =\n verifyButtonDisabled || webUrl.trim().length === 0 || isConfigured();\n\n const clearButtonDisabled = apiServerUrl.trim().length === 0;\n\n const loginButtonDisabled =\n verifyButtonDisabled || !isConfigured() || isAuthenticated();\n\n const handleLogin = async (e: BaseSyntheticEvent) => {\n e.preventDefault();\n // This will set storage variables and return to OAuthScene when successful\n await adaptor.login();\n };\n\n useEffect(() => {\n initAction(configKey);\n }, [configKey, initAction]);\n\n return (\n <SpaceVertical gap=\"u2\">\n <ConfigHeading>Looker OAuth Configuration</ConfigHeading>\n <Span fontSize=\"small\">\n To configure Looker OAuth, you need to supply your API server URL, then\n authenticate into your Looker Instance\n </Span>\n <MessageBar\n intent={messageBar.intent}\n onPrimaryClick={clearMessageBarAction}\n visible={messageBar.text !== ''}\n >\n {messageBar.text}\n </MessageBar>\n <CollapserCard\n heading=\"1. Supply API Server URL\"\n id=\"server_config\"\n divider={false}\n defaultOpen={!isAuthenticated()}\n >\n <SpaceVertical gap=\"u2\" pt=\"u3\" px=\"u6\">\n <Form validationMessages={validationMessages}>\n <Fieldset legend=\"Server locations\">\n <FieldText\n required\n label=\"API server URL\"\n placeholder=\"typically https://myserver.looker.com:19999\"\n name=\"baseUrl\"\n value={apiServerUrl}\n onChange={handleUrlChange}\n />\n <FieldText\n label=\"OAuth server URL\"\n placeholder=\"Click 'Verify' to retrieve\"\n name=\"webUrl\"\n value={webUrl}\n disabled\n />\n </Fieldset>\n </Form>\n {fetchedUrl && (\n <>\n <Paragraph fontSize=\"small\">\n On {fetchedUrl}, enable {clientLabel} as a{' '}\n <Link\n href=\"https://github.com/looker-open-source/sdk-codegen/blob/main/docs/cors.md#reference-implementation\"\n target=\"_blank\"\n >\n Looker OAuth client\n </Link>{' '}\n by adding \"{(window as any).location.origin}\" to the{' '}\n <Link href={`${webUrl}/admin/embed`} target=\"_blank\">\n Embedded Domain Allowlist\n </Link>\n . If API Explorer is also installed, the configuration below can\n be used to{' '}\n <Link\n href={`${fetchedUrl}/extensions/marketplace_extension_api_explorer::api-explorer/4.0/methods/Auth/register_oauth_client_app`}\n target=\"_blank\"\n >\n register this API Explorer instance\n </Link>{' '}\n as an OAuth client.\n </Paragraph>\n <CodeCopy key=\"appConfig\" language=\"json\" code={appConfig} />\n </>\n )}\n <Space>\n <Tooltip content=\"Clear the configuration values\">\n <ButtonTransparent\n onClick={handleClear}\n disabled={clearButtonDisabled}\n >\n Clear\n </ButtonTransparent>\n </Tooltip>\n <Tooltip content={`Verify ${apiServerUrl}`}>\n <ButtonTransparent\n disabled={verifyButtonDisabled}\n onClick={handleVerify}\n mr=\"small\"\n >\n Verify\n </ButtonTransparent>\n </Tooltip>\n <Tooltip content=\"Save the configuration for this browser\">\n <Button\n disabled={saveButtonDisabled}\n onClick={handleSave}\n mr=\"small\"\n >\n Save\n </Button>\n </Tooltip>\n </Space>\n </SpaceVertical>\n </CollapserCard>\n <Divider appearance=\"light\" />\n <CollapserCard\n heading=\"2. Login to instance\"\n divider={false}\n id=\"login_section\"\n defaultOpen={!isAuthenticated()}\n >\n <SpaceVertical pt=\"u3\" px=\"u6\">\n {isAuthenticated() ? (\n <Span>You are already logged in. Reload the page to log out.</Span>\n ) : isConfigured() ? (\n <>\n <Span>{readyToLogin}</Span>\n </>\n ) : (\n <Span>\n You will be able to login after you Verify your API Server URL\n </Span>\n )}\n <Tooltip content={`Login to ${webUrl} using OAuth`}>\n <Button onClick={handleLogin} disabled={loginButtonDisabled}>\n Login\n </Button>\n </Tooltip>\n </SpaceVertical>\n </CollapserCard>\n </SpaceVertical>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAeA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,CAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AAAgD,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CA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AAA,CAAAgB,OAAA,CAAA+F,aAAA,CAAC5G,WAAA,CAAAkJ,OAAO;IAACC,OAAO,cAAApF,MAAA,CAAca,MAAM;EAAe,GACjD/E,MAAA,CAAAgB,OAAA,CAAA+F,aAAA,CAAC5G,WAAA,CAAAuJ,MAAM;IAACF,OAAO,EAAE/C,WAAY;IAACgC,QAAQ,EAAEjC;EAAoB,GAAC,OAErD,CACD,CACI,CACF,CACF,CAAC;AAEpB,CAAC;AAAClD,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"OAuthForm.js","names":["_react","_interopRequireWildcard","require","_components","_codeEditor","_reactRouterDom","_","_slice","_CollapserCard","_ConfigHeading","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","asyncGeneratorStep","a","c","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","readyToLogin","exports","OAuthForm","_ref","setHasConfig","clientId","clientLabel","configKey","location","useLocation","redirect_uri","appPath","appConfig","concat","adaptor","getEnvAdaptor","sdk","initAction","setUrlAction","clearConfigAction","verifyConfigAction","clearMessageBarAction","saveConfigAction","useOAuthFormActions","apiServerUrl","fetchedUrl","webUrl","messageBar","validationMessages","savedConfig","useOAuthFormState","isConfigured","base_url","looker_url","handleSave","client_id","handleVerify","handleClear","_ref2","isAuthenticated","handleUrlChange","event","name","currentTarget","authSession","verifyButtonDisabled","trim","length","keys","saveButtonDisabled","clearButtonDisabled","loginButtonDisabled","handleLogin","_ref3","preventDefault","login","_x","useEffect","createElement","SpaceVertical","gap","ConfigHeading","Span","fontSize","MessageBar","intent","onPrimaryClick","visible","text","CollapserCard","heading","id","divider","defaultOpen","pt","px","Form","Fieldset","legend","FieldText","required","label","placeholder","onChange","disabled","Fragment","Paragraph","Link","href","target","window","origin","CodeCopy","key","language","code","Space","Tooltip","content","ButtonTransparent","onClick","mr","Button","Divider","appearance"],"sources":["../../../../src/OAuthForm/src/components/OAuthForm.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { BaseSyntheticEvent, Dispatch, FormEvent } from 'react';\nimport React, { useEffect } from 'react';\nimport {\n Button,\n ButtonTransparent,\n Divider,\n FieldText,\n Fieldset,\n Form,\n Link,\n MessageBar,\n Paragraph,\n Space,\n SpaceVertical,\n Span,\n Tooltip,\n} from '@looker/components';\nimport { CodeCopy } from '@looker/code-editor';\nimport { useLocation } from 'react-router-dom';\nimport { appPath, getEnvAdaptor } from '../../..';\nimport { useOAuthFormActions, useOAuthFormState } from '../state/slice';\nimport { CollapserCard } from './CollapserCard';\nimport { ConfigHeading } from './ConfigHeading';\nexport const readyToLogin =\n 'OAuth is configured but your browser session is not authenticated. Click Login.';\n\ninterface ConfigFormProps {\n /** A set state callback which allows for editing, setting or clearing OAuth configuration parameters if present */\n setHasConfig?: Dispatch<boolean>;\n /** Local storage key value for storing config parameters */\n configKey: string;\n /** OAuth client id */\n clientId: string;\n /** OAuth client display label */\n clientLabel: string;\n}\n\nexport const OAuthForm = ({\n setHasConfig,\n clientId,\n clientLabel,\n configKey,\n}: ConfigFormProps) => {\n const location = useLocation();\n const redirect_uri = appPath(location, '/oauth');\n const appConfig = `// client_guid=${clientId}\n {\n \"redirect_uri\": \"${redirect_uri}\",\n \"display_name\": \"CORS ${clientLabel}\",\n \"description\": \"Looker ${clientLabel} using CORS\",\n \"enabled\": true\n }\n `;\n const adaptor = getEnvAdaptor();\n const sdk = adaptor.sdk;\n\n const {\n initAction,\n setUrlAction,\n clearConfigAction,\n verifyConfigAction,\n clearMessageBarAction,\n saveConfigAction,\n } = useOAuthFormActions();\n const {\n apiServerUrl,\n fetchedUrl,\n webUrl,\n messageBar,\n validationMessages,\n savedConfig,\n } = useOAuthFormState();\n\n const isConfigured = () => {\n return (\n apiServerUrl === savedConfig.base_url &&\n webUrl === savedConfig.looker_url &&\n apiServerUrl !== '' &&\n webUrl !== ''\n );\n };\n\n const handleSave = () => {\n saveConfigAction({\n configKey,\n setHasConfig,\n client_id: clientId,\n redirect_uri,\n });\n };\n\n const handleVerify = () => {\n verifyConfigAction();\n };\n\n const handleClear = async () => {\n clearConfigAction({\n configKey,\n setHasConfig: setHasConfig,\n isAuthenticated: isAuthenticated(),\n });\n };\n\n const handleUrlChange = (event: FormEvent<HTMLInputElement>) => {\n setUrlAction({\n name: event.currentTarget.name,\n value: event.currentTarget.value,\n });\n };\n\n const isAuthenticated = () => sdk.authSession.isAuthenticated();\n\n const verifyButtonDisabled =\n apiServerUrl.trim().length === 0 ||\n Object.keys(validationMessages).length > 0;\n\n const saveButtonDisabled =\n verifyButtonDisabled || webUrl.trim().length === 0 || isConfigured();\n\n const clearButtonDisabled = apiServerUrl.trim().length === 0;\n\n const loginButtonDisabled =\n verifyButtonDisabled || !isConfigured() || isAuthenticated();\n\n const handleLogin = async (e: BaseSyntheticEvent) => {\n e.preventDefault();\n // This will set storage variables and return to OAuthScene when successful\n await adaptor.login();\n };\n\n useEffect(() => {\n initAction(configKey);\n }, [configKey, initAction]);\n\n return (\n <SpaceVertical gap=\"u2\">\n <ConfigHeading>Looker OAuth Configuration</ConfigHeading>\n <Span fontSize=\"small\">\n To configure Looker OAuth, you need to supply your API server URL, then\n authenticate into your Looker Instance\n </Span>\n <MessageBar\n intent={messageBar.intent}\n onPrimaryClick={clearMessageBarAction}\n visible={messageBar.text !== ''}\n >\n {messageBar.text}\n </MessageBar>\n <CollapserCard\n heading=\"1. Supply API Server URL\"\n id=\"server_config\"\n divider={false}\n defaultOpen={!isAuthenticated()}\n >\n <SpaceVertical gap=\"u2\" pt=\"u3\" px=\"u6\">\n <Form validationMessages={validationMessages}>\n <Fieldset legend=\"Server locations\">\n <FieldText\n required\n label=\"API server URL\"\n placeholder=\"typically https://myserver.looker.com:19999\"\n name=\"baseUrl\"\n value={apiServerUrl}\n onChange={handleUrlChange}\n />\n <FieldText\n label=\"OAuth server URL\"\n placeholder=\"Click 'Verify' to retrieve\"\n name=\"webUrl\"\n value={webUrl}\n disabled\n />\n </Fieldset>\n </Form>\n {fetchedUrl && (\n <>\n <Paragraph fontSize=\"small\">\n On {fetchedUrl}, enable {clientLabel} as a{' '}\n <Link\n href=\"https://github.com/looker-open-source/sdk-codegen/blob/main/docs/cors.md#reference-implementation\"\n target=\"_blank\"\n >\n Looker OAuth client\n </Link>{' '}\n by adding \"{(window as any).location.origin}\" to the{' '}\n <Link href={`${webUrl}/admin/embed`} target=\"_blank\">\n Embedded Domain Allowlist\n </Link>\n . If API Explorer is also installed, the configuration below can\n be used to{' '}\n <Link\n href={`${fetchedUrl}/extensions/marketplace_extension_api_explorer::api-explorer/4.0/methods/Auth/register_oauth_client_app`}\n target=\"_blank\"\n >\n register this API Explorer instance\n </Link>{' '}\n as an OAuth client.\n </Paragraph>\n <CodeCopy key=\"appConfig\" language=\"json\" code={appConfig} />\n </>\n )}\n <Space>\n <Tooltip content=\"Clear the configuration values\">\n <ButtonTransparent\n onClick={handleClear}\n disabled={clearButtonDisabled}\n >\n Clear\n </ButtonTransparent>\n </Tooltip>\n <Tooltip content={`Verify ${apiServerUrl}`}>\n <ButtonTransparent\n disabled={verifyButtonDisabled}\n onClick={handleVerify}\n mr=\"small\"\n >\n Verify\n </ButtonTransparent>\n </Tooltip>\n <Tooltip content=\"Save the configuration for this browser\">\n <Button\n disabled={saveButtonDisabled}\n onClick={handleSave}\n mr=\"small\"\n >\n Save\n </Button>\n </Tooltip>\n </Space>\n </SpaceVertical>\n </CollapserCard>\n <Divider appearance=\"light\" />\n <CollapserCard\n heading=\"2. Login to instance\"\n divider={false}\n id=\"login_section\"\n defaultOpen={!isAuthenticated()}\n >\n <SpaceVertical pt=\"u3\" px=\"u6\">\n {isAuthenticated() ? (\n <Span>You are already logged in. Reload the page to log out.</Span>\n ) : isConfigured() ? (\n <>\n <Span>{readyToLogin}</Span>\n </>\n ) : (\n <Span>\n You will be able to login after you Verify your API Server URL\n </Span>\n )}\n <Tooltip content={`Login to ${webUrl} using OAuth`}>\n <Button onClick={handleLogin} disabled={loginButtonDisabled}>\n Login\n </Button>\n </Tooltip>\n </SpaceVertical>\n </CollapserCard>\n </SpaceVertical>\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAeA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,CAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AAAgD,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,wBAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAA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CAACnG,WAAA,CAAA0I,OAAO;IAACC,OAAO,cAAArF,MAAA,CAAca,MAAM;EAAe,GACjDtE,MAAA,CAAAoB,OAAA,CAAAkF,aAAA,CAACnG,WAAA,CAAA+I,MAAM;IAACF,OAAO,EAAEhD,WAAY;IAACgC,QAAQ,EAAEjC;EAAoB,GAAC,OAErD,CACD,CACI,CACF,CACF,CAAC;AAEpB,CAAC;AAAClD,OAAA,CAAAC,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_OAuthForm","require"],"sources":["../../../../src/OAuthForm/src/components/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { OAuthForm } from './OAuthForm';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_OAuthForm","require"],"sources":["../../../../src/OAuthForm/src/components/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { OAuthForm } from './OAuthForm';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_state"],"sources":["../../../src/OAuthForm/src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './components';\nexport * from './state';\n"],"mappings":";;;;;AAyBA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_state"],"sources":["../../../src/OAuthForm/src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './components';\nexport * from './state';\n"],"mappings":";;;;;AAyBA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_slice","require"],"sources":["../../../../src/OAuthForm/src/state/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { OAuthFormSlice } from './slice';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_slice","require"],"sources":["../../../../src/OAuthForm/src/state/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { OAuthFormSlice } from './slice';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA","ignoreList":[]}