@looker/extension-sdk-react 23.16.0 → 23.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +0 -5
  3. package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
  4. package/lib/components/ExtensionConnector/ExtensionConnector.js.map +1 -1
  5. package/lib/components/ExtensionProvider/ExtensionProvider.js +4 -9
  6. package/lib/components/ExtensionProvider/ExtensionProvider.js.map +1 -1
  7. package/lib/components/ExtensionProvider/types.d.ts +1 -3
  8. package/lib/components/ExtensionProvider/types.js.map +1 -1
  9. package/lib/components/ExtensionProvider2/ExtensionProvider2.js.map +1 -1
  10. package/lib/components/ExtensionProvider40/ExtensionProvider40.js.map +1 -1
  11. package/lib/components/ExtensionProviderBase/ExtensionProviderBase.js.map +1 -1
  12. package/lib/components/RouteChangeListener/RouteChangeListener.js.map +1 -1
  13. package/lib/components/utils/setup_close_popovers.js.map +1 -1
  14. package/lib/esm/components/ErrorMessage/ErrorMessage.js +3 -11
  15. package/lib/esm/components/ErrorMessage/ErrorMessage.js.map +1 -1
  16. package/lib/esm/components/ErrorMessage/index.js +2 -27
  17. package/lib/esm/components/ErrorMessage/index.js.map +1 -1
  18. package/lib/esm/components/ExtensionConnector/ExtensionConnector.js +29 -39
  19. package/lib/esm/components/ExtensionConnector/ExtensionConnector.js.map +1 -1
  20. package/lib/esm/components/ExtensionConnector/index.js +2 -27
  21. package/lib/esm/components/ExtensionConnector/index.js.map +1 -1
  22. package/lib/esm/components/ExtensionProvider/ExtensionProvider.js +13 -28
  23. package/lib/esm/components/ExtensionProvider/ExtensionProvider.js.map +1 -1
  24. package/lib/esm/components/ExtensionProvider/index.js +2 -27
  25. package/lib/esm/components/ExtensionProvider/index.js.map +1 -1
  26. package/lib/esm/components/ExtensionProvider/types.js.map +1 -1
  27. package/lib/esm/components/ExtensionProvider2/ExtensionProvider2.js +13 -23
  28. package/lib/esm/components/ExtensionProvider2/ExtensionProvider2.js.map +1 -1
  29. package/lib/esm/components/ExtensionProvider2/index.js +1 -16
  30. package/lib/esm/components/ExtensionProvider2/index.js.map +1 -1
  31. package/lib/esm/components/ExtensionProvider40/ExtensionProvider40.js +12 -22
  32. package/lib/esm/components/ExtensionProvider40/ExtensionProvider40.js.map +1 -1
  33. package/lib/esm/components/ExtensionProvider40/index.js +1 -16
  34. package/lib/esm/components/ExtensionProvider40/index.js.map +1 -1
  35. package/lib/esm/components/ExtensionProviderBase/ExtensionProviderBase.js +7 -17
  36. package/lib/esm/components/ExtensionProviderBase/ExtensionProviderBase.js.map +1 -1
  37. package/lib/esm/components/ExtensionProviderBase/index.js +1 -16
  38. package/lib/esm/components/ExtensionProviderBase/index.js.map +1 -1
  39. package/lib/esm/components/RouteChangeListener/RouteChangeListener.js +10 -20
  40. package/lib/esm/components/RouteChangeListener/RouteChangeListener.js.map +1 -1
  41. package/lib/esm/components/RouteChangeListener/index.js +2 -27
  42. package/lib/esm/components/RouteChangeListener/index.js.map +1 -1
  43. package/lib/esm/components/utils/get_initial_route_entries.js +2 -11
  44. package/lib/esm/components/utils/get_initial_route_entries.js.map +1 -1
  45. package/lib/esm/components/utils/setup_close_popovers.js +1 -8
  46. package/lib/esm/components/utils/setup_close_popovers.js.map +1 -1
  47. package/lib/esm/index.js +9 -115
  48. package/lib/esm/index.js.map +1 -1
  49. package/lib/esm/sdk/core_sdk.js +4 -13
  50. package/lib/esm/sdk/core_sdk.js.map +1 -1
  51. package/lib/esm/sdk/core_sdk2.js +3 -11
  52. package/lib/esm/sdk/core_sdk2.js.map +1 -1
  53. package/lib/esm/sdk/core_sdk_40.js +3 -12
  54. package/lib/esm/sdk/core_sdk_40.js.map +1 -1
  55. package/lib/index.d.ts +0 -1
  56. package/lib/index.js +1 -12
  57. package/lib/index.js.map +1 -1
  58. package/lib/sdk/core_sdk.d.ts +2 -2
  59. package/lib/sdk/core_sdk.js +4 -4
  60. package/lib/sdk/core_sdk.js.map +1 -1
  61. package/package.json +4 -4
  62. package/lib/esm/sdk/core_sdk_31.js +0 -24
  63. package/lib/esm/sdk/core_sdk_31.js.map +0 -1
  64. package/lib/sdk/core_sdk_31.d.ts +0 -4
  65. package/lib/sdk/core_sdk_31.js +0 -24
  66. package/lib/sdk/core_sdk_31.js.map +0 -1
@@ -1,17 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ExtensionContext40 = void 0;
7
- exports.ExtensionProvider40 = ExtensionProvider40;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _extensionSdk = require("@looker/extension-sdk");
10
- var _ExtensionConnector = require("../ExtensionConnector");
11
- var _core_sdk_ = require("../../sdk/core_sdk_40");
12
1
  var _excluded = ["children"];
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -20,17 +7,20 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
20
7
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21
8
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
- var ExtensionContext40 = _react.default.createContext(undefined);
24
- exports.ExtensionContext40 = ExtensionContext40;
25
- function ExtensionProvider40(props) {
10
+ import React, { useState } from 'react';
11
+ import { LookerExtensionSDK } from '@looker/extension-sdk';
12
+ import { ExtensionConnector } from '../ExtensionConnector';
13
+ import { registerCore40SDK, unregisterCore40SDK } from '../../sdk/core_sdk_40';
14
+ export var ExtensionContext40 = React.createContext(undefined);
15
+ export function ExtensionProvider40(props) {
26
16
  var {
27
17
  children
28
18
  } = props,
29
19
  rest = _objectWithoutProperties(props, _excluded);
30
- var [extensionData, setExtensionData] = (0, _react.useState)({});
20
+ var [extensionData, setExtensionData] = useState({});
31
21
  var connectedCallback = extensionHost => {
32
- var coreSDK = _extensionSdk.LookerExtensionSDK.create40Client(extensionHost);
33
- (0, _core_sdk_.registerCore40SDK)(coreSDK);
22
+ var coreSDK = LookerExtensionSDK.create40Client(extensionHost);
23
+ registerCore40SDK(coreSDK);
34
24
  var {
35
25
  visualizationSDK,
36
26
  tileSDK,
@@ -55,16 +45,16 @@ function ExtensionProvider40(props) {
55
45
  });
56
46
  };
57
47
  var unloadedCallback = () => {
58
- (0, _core_sdk_.unregisterCore40SDK)();
48
+ unregisterCore40SDK();
59
49
  };
60
50
  var updateContextData = updatedContextData => {
61
51
  setExtensionData(previousState => {
62
52
  return _objectSpread(_objectSpread({}, previousState), updatedContextData);
63
53
  });
64
54
  };
65
- return _react.default.createElement(ExtensionContext40.Provider, {
55
+ return React.createElement(ExtensionContext40.Provider, {
66
56
  value: extensionData
67
- }, _react.default.createElement(_ExtensionConnector.ExtensionConnector, _extends({}, rest, {
57
+ }, React.createElement(ExtensionConnector, _extends({}, rest, {
68
58
  contextData: extensionData,
69
59
  connectedCallback: connectedCallback,
70
60
  updateContextData: updateContextData,
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionProvider40.js","names":["_react","_interopRequireWildcard","require","_extensionSdk","_ExtensionConnector","_core_sdk_","_excluded","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","ExtensionContext40","React","createContext","exports","ExtensionProvider40","props","children","rest","extensionData","setExtensionData","useState","connectedCallback","extensionHost","coreSDK","LookerExtensionSDK","create40Client","registerCore40SDK","visualizationSDK","tileSDK","lookerHostData","visualizationData","tileHostData","previousState","extensionSDK","unloadedCallback","unregisterCore40SDK","updateContextData","updatedContextData","createElement","Provider","ExtensionConnector","contextData"],"sources":["../../../../src/components/ExtensionProvider40/ExtensionProvider40.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, { useState } from 'react'\nimport type { ExtensionHostApi } from '@looker/extension-sdk'\nimport { LookerExtensionSDK } from '@looker/extension-sdk'\nimport type { ILooker40SDK, Looker40SDK } from '@looker/sdk'\nimport type {\n BaseExtensionContextData,\n ExtensionProviderProps,\n} from '../ExtensionConnector'\nimport { ExtensionConnector } from '../ExtensionConnector'\nimport { registerCore40SDK, unregisterCore40SDK } from '../../sdk/core_sdk_40'\n\n/**\n * Extension context data\n */\nexport interface ExtensionContextData40 extends BaseExtensionContextData {\n coreSDK: ILooker40SDK\n}\n\n/**\n * React context provider for extension API and Looker SDK 4.0.\n */\nexport const ExtensionContext40 = React.createContext<ExtensionContextData40>(\n undefined as any // no one will ever see this undefined!\n)\n\nexport interface ExtensionProvider40Props extends ExtensionProviderProps {}\n\n/**\n * ExtensionProvider40 component. Provides access to the extension API and SDK (use\n * ExtensionContext40) and react routing services.\n */\nexport function ExtensionProvider40(props: ExtensionProvider40Props) {\n const { children, ...rest } = props\n const [extensionData, setExtensionData] = useState<ExtensionContextData40>(\n {} as ExtensionContextData40\n )\n\n const connectedCallback = (extensionHost: ExtensionHostApi) => {\n const coreSDK: ILooker40SDK =\n LookerExtensionSDK.create40Client(extensionHost)\n registerCore40SDK(coreSDK as Looker40SDK)\n const { visualizationSDK, tileSDK, lookerHostData } = extensionHost\n const { visualizationData } = visualizationSDK\n const { tileHostData } = tileSDK\n setExtensionData((previousState: any) => {\n return {\n ...previousState,\n extensionSDK: extensionHost,\n coreSDK,\n visualizationSDK,\n tileSDK,\n visualizationData,\n tileHostData,\n lookerHostData,\n }\n })\n }\n\n const unloadedCallback = () => {\n unregisterCore40SDK()\n }\n\n const updateContextData = (\n updatedContextData: Partial<BaseExtensionContextData>\n ) => {\n setExtensionData((previousState: ExtensionContextData40) => {\n return {\n ...previousState,\n ...updatedContextData,\n }\n })\n }\n\n return (\n <ExtensionContext40.Provider value={extensionData}>\n <ExtensionConnector\n {...rest}\n contextData={extensionData}\n connectedCallback={connectedCallback}\n updateContextData={updateContextData}\n unloadedCallback={unloadedCallback}\n >\n {children}\n </ExtensionConnector>\n </ExtensionContext40.Provider>\n )\n}\n"],"mappings":";;;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAMA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAA8E,IAAAI,SAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAA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AAMC,iBAAiB,GAAIC,aAA+B,IAAK;IAC7D,IAAMC,OAAqB,GACzBC,gCAAkB,CAACC,cAAc,CAACH,aAAa,CAAC;IAClD,IAAAI,4BAAiB,EAACH,OAAO,CAAgB;IACzC,IAAM;MAAEI,gBAAgB;MAAEC,OAAO;MAAEC;IAAe,CAAC,GAAGP,aAAa;IACnE,IAAM;MAAEQ;IAAkB,CAAC,GAAGH,gBAAgB;IAC9C,IAAM;MAAEI;IAAa,CAAC,GAAGH,OAAO;IAChCT,gBAAgB,CAAEa,aAAkB,IAAK;MACvC,OAAAlD,aAAA,CAAAA,aAAA,KACKkD,aAAa;QAChBC,YAAY,EAAEX,aAAa;QAC3BC,OAAO;QACPI,gBAAgB;QAChBC,OAAO;QACPE,iBAAiB;QACjBC,YAAY;QACZF;MAAc;IAElB,CAAC,CAAC;EACJ,CAAC;EAED,IAAMK,gBAAgB,GAAGA,CAAA,KAAM;IAC7B,IAAAC,8BAAmB,GAAE;EACvB,CAAC;EAED,IAAMC,iBAAiB,GACrBC,kBAAqD,IAClD;IACHlB,gBAAgB,CAAEa,aAAqC,IAAK;MAC1D,OAAAlD,aAAA,CAAAA,aAAA,KACKkD,aAAa,GACbK,kBAAkB;IAEzB,CAAC,CAAC;EACJ,CAAC;EAED,OACEvG,MAAA,CAAAc,OAAA,CAAA0F,aAAA,CAAC5B,kBAAkB,CAAC6B,QAAQ;IAACpD,KAAK,EAAE+B;EAAc,GAChDpF,MAAA,CAAAc,OAAA,CAAA0F,aAAA,CAACpG,mBAAA,CAAAsG,kBAAkB,EAAA7E,QAAA,KACbsD,IAAI;IACRwB,WAAW,EAAEvB,aAAc;IAC3BG,iBAAiB,EAAEA,iBAAkB;IACrCe,iBAAiB,EAAEA,iBAAkB;IACrCF,gBAAgB,EAAEA;EAAiB,IAElClB,QAAQ,CACU,CACO;AAElC"}
1
+ {"version":3,"file":"ExtensionProvider40.js","names":["React","useState","LookerExtensionSDK","ExtensionConnector","registerCore40SDK","unregisterCore40SDK","ExtensionContext40","createContext","undefined","ExtensionProvider40","props","children","rest","_objectWithoutProperties","_excluded","extensionData","setExtensionData","connectedCallback","extensionHost","coreSDK","create40Client","visualizationSDK","tileSDK","lookerHostData","visualizationData","tileHostData","previousState","_objectSpread","extensionSDK","unloadedCallback","updateContextData","updatedContextData","createElement","Provider","value","_extends","contextData"],"sources":["../../../../src/components/ExtensionProvider40/ExtensionProvider40.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, { useState } from 'react'\nimport type { ExtensionHostApi } from '@looker/extension-sdk'\nimport { LookerExtensionSDK } from '@looker/extension-sdk'\nimport type { ILooker40SDK, Looker40SDK } from '@looker/sdk'\nimport type {\n BaseExtensionContextData,\n ExtensionProviderProps,\n} from '../ExtensionConnector'\nimport { ExtensionConnector } from '../ExtensionConnector'\nimport { registerCore40SDK, unregisterCore40SDK } from '../../sdk/core_sdk_40'\n\n/**\n * Extension context data\n */\nexport interface ExtensionContextData40 extends BaseExtensionContextData {\n coreSDK: ILooker40SDK\n}\n\n/**\n * React context provider for extension API and Looker SDK 4.0.\n */\nexport const ExtensionContext40 = React.createContext<ExtensionContextData40>(\n undefined as any // no one will ever see this undefined!\n)\n\nexport interface ExtensionProvider40Props extends ExtensionProviderProps {}\n\n/**\n * ExtensionProvider40 component. Provides access to the extension API and SDK (use\n * ExtensionContext40) and react routing services.\n */\nexport function ExtensionProvider40(props: ExtensionProvider40Props) {\n const { children, ...rest } = props\n const [extensionData, setExtensionData] = useState<ExtensionContextData40>(\n {} as ExtensionContextData40\n )\n\n const connectedCallback = (extensionHost: ExtensionHostApi) => {\n const coreSDK: ILooker40SDK =\n LookerExtensionSDK.create40Client(extensionHost)\n registerCore40SDK(coreSDK as Looker40SDK)\n const { visualizationSDK, tileSDK, lookerHostData } = extensionHost\n const { visualizationData } = visualizationSDK\n const { tileHostData } = tileSDK\n setExtensionData((previousState: any) => {\n return {\n ...previousState,\n extensionSDK: extensionHost,\n coreSDK,\n visualizationSDK,\n tileSDK,\n visualizationData,\n tileHostData,\n lookerHostData,\n }\n })\n }\n\n const unloadedCallback = () => {\n unregisterCore40SDK()\n }\n\n const updateContextData = (\n updatedContextData: Partial<BaseExtensionContextData>\n ) => {\n setExtensionData((previousState: ExtensionContextData40) => {\n return {\n ...previousState,\n ...updatedContextData,\n }\n })\n }\n\n return (\n <ExtensionContext40.Provider value={extensionData}>\n <ExtensionConnector\n {...rest}\n contextData={extensionData}\n connectedCallback={connectedCallback}\n updateContextData={updateContextData}\n unloadedCallback={unloadedCallback}\n >\n {children}\n </ExtensionConnector>\n </ExtensionContext40.Provider>\n )\n}\n"],"mappings":";;;;;;;;;AA0BA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,kBAAkB,QAAQ,uBAAuB;AAM1D,SAASC,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,iBAAiB,EAAEC,mBAAmB,QAAQ,uBAAuB;AAY9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KACbvB,IAAI;IACRwB,WAAW,EAAErB,aAAc;IAC3BE,iBAAiB,EAAEA,iBAAkB;IACrCa,iBAAiB,EAAEA,iBAAkB;IACrCD,gBAAgB,EAAEA;EAAiB,IAElClB,QACiB,CACO,CAAC;AAElC"}
@@ -1,17 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _ExtensionProvider = require("./ExtensionProvider40");
7
- Object.keys(_ExtensionProvider).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _ExtensionProvider[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _ExtensionProvider[key];
14
- }
15
- });
16
- });
1
+ export * from './ExtensionProvider40';
17
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_ExtensionProvider","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/ExtensionProvider40/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 './ExtensionProvider40'\n"],"mappings":";;;;;AA0BA,IAAAA,kBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,kBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,kBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,kBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ExtensionProvider40/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 './ExtensionProvider40'\n"],"mappings":"AA0BA,cAAc,uBAAuB"}
@@ -1,14 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ExtensionProviderBase = exports.ExtensionContextBase = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _ExtensionConnector = require("../ExtensionConnector");
9
1
  var _excluded = ["children"];
10
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -17,14 +7,15 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
17
7
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
8
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
- var ExtensionContextBase = _react.default.createContext(undefined);
21
- exports.ExtensionContextBase = ExtensionContextBase;
22
- var ExtensionProviderBase = _ref => {
10
+ import React, { useState } from 'react';
11
+ import { ExtensionConnector } from '../ExtensionConnector';
12
+ export var ExtensionContextBase = React.createContext(undefined);
13
+ export var ExtensionProviderBase = _ref => {
23
14
  var {
24
15
  children
25
16
  } = _ref,
26
17
  props = _objectWithoutProperties(_ref, _excluded);
27
- var [extensionData, setExtensionData] = (0, _react.useState)({});
18
+ var [extensionData, setExtensionData] = useState({});
28
19
  var connectedCallback = extensionHost => {
29
20
  var {
30
21
  visualizationSDK,
@@ -52,14 +43,13 @@ var ExtensionProviderBase = _ref => {
52
43
  var updateContextData = contextData => {
53
44
  setExtensionData(previousContextData => _objectSpread(_objectSpread({}, previousContextData), contextData));
54
45
  };
55
- return _react.default.createElement(ExtensionContextBase.Provider, {
46
+ return React.createElement(ExtensionContextBase.Provider, {
56
47
  value: extensionData
57
- }, _react.default.createElement(_ExtensionConnector.ExtensionConnector, _extends({}, props, {
48
+ }, React.createElement(ExtensionConnector, _extends({}, props, {
58
49
  contextData: extensionData,
59
50
  connectedCallback: connectedCallback,
60
51
  updateContextData: updateContextData,
61
52
  unloadedCallback: unloadedCallback
62
53
  }), children));
63
54
  };
64
- exports.ExtensionProviderBase = ExtensionProviderBase;
65
55
  //# sourceMappingURL=ExtensionProviderBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionProviderBase.js","names":["_react","_interopRequireWildcard","require","_ExtensionConnector","_excluded","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","ExtensionContextBase","React","createContext","exports","ExtensionProviderBase","_ref","children","props","extensionData","setExtensionData","useState","connectedCallback","extensionHost","visualizationSDK","tileSDK","lookerHostData","visualizationData","tileHostData","previousState","extensionSDK","unloadedCallback","updateContextData","contextData","previousContextData","createElement","Provider","ExtensionConnector"],"sources":["../../../../src/components/ExtensionProviderBase/ExtensionProviderBase.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 React, { useState } from 'react'\nimport type { ExtensionHostApi } from '@looker/extension-sdk'\nimport type {\n BaseExtensionContextData,\n ExtensionProviderProps,\n} from '../ExtensionConnector'\nimport { ExtensionConnector } from '../ExtensionConnector'\n\n/**\n * React context provider for extension API and SDK\n */\nexport const ExtensionContextBase =\n React.createContext<BaseExtensionContextData>(\n undefined as any // no one will ever see this undefined!\n )\n\n/**\n * ExtensionProviderBase component. Provides access to the extension API but no SDK is\n * provided.\n */\nexport const ExtensionProviderBase: React.FC<ExtensionProviderProps> = ({\n children,\n ...props\n}) => {\n const [extensionData, setExtensionData] = useState<BaseExtensionContextData>(\n {} as BaseExtensionContextData\n )\n\n const connectedCallback = (extensionHost: ExtensionHostApi) => {\n const { visualizationSDK, tileSDK, lookerHostData } = extensionHost\n const { visualizationData } = visualizationSDK\n const { tileHostData } = tileSDK\n setExtensionData((previousState: BaseExtensionContextData) => {\n return {\n ...previousState,\n extensionSDK: extensionHost,\n visualizationSDK,\n tileSDK,\n visualizationData,\n tileHostData,\n lookerHostData,\n }\n })\n }\n\n const unloadedCallback = () => {\n // noop\n }\n\n const updateContextData = (\n contextData: Partial<BaseExtensionContextData>\n ) => {\n setExtensionData((previousContextData) => ({\n ...previousContextData,\n ...contextData,\n }))\n }\n\n return (\n <ExtensionContextBase.Provider value={extensionData}>\n <ExtensionConnector\n {...props}\n contextData={extensionData}\n connectedCallback={connectedCallback}\n updateContextData={updateContextData}\n unloadedCallback={unloadedCallback}\n >\n {children}\n </ExtensionConnector>\n </ExtensionContextBase.Provider>\n )\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAMA,IAAAC,mBAAA,GAAAD,OAAA;AAA0D,IAAAE,SAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GA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AAH,OAAA,CAAAC,qBAAA,GAAAA,qBAAA"}
1
+ {"version":3,"file":"ExtensionProviderBase.js","names":["React","useState","ExtensionConnector","ExtensionContextBase","createContext","undefined","ExtensionProviderBase","_ref","children","props","_objectWithoutProperties","_excluded","extensionData","setExtensionData","connectedCallback","extensionHost","visualizationSDK","tileSDK","lookerHostData","visualizationData","tileHostData","previousState","_objectSpread","extensionSDK","unloadedCallback","updateContextData","contextData","previousContextData","createElement","Provider","value","_extends"],"sources":["../../../../src/components/ExtensionProviderBase/ExtensionProviderBase.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 React, { useState } from 'react'\nimport type { ExtensionHostApi } from '@looker/extension-sdk'\nimport type {\n BaseExtensionContextData,\n ExtensionProviderProps,\n} from '../ExtensionConnector'\nimport { ExtensionConnector } from '../ExtensionConnector'\n\n/**\n * React context provider for extension API and SDK\n */\nexport const ExtensionContextBase =\n React.createContext<BaseExtensionContextData>(\n undefined as any // no one will ever see this undefined!\n )\n\n/**\n * ExtensionProviderBase component. Provides access to the extension API but no SDK is\n * provided.\n */\nexport const ExtensionProviderBase: React.FC<ExtensionProviderProps> = ({\n children,\n ...props\n}) => {\n const [extensionData, setExtensionData] = useState<BaseExtensionContextData>(\n {} as BaseExtensionContextData\n )\n\n const connectedCallback = (extensionHost: ExtensionHostApi) => {\n const { visualizationSDK, tileSDK, lookerHostData } = extensionHost\n const { visualizationData } = visualizationSDK\n const { tileHostData } = tileSDK\n setExtensionData((previousState: BaseExtensionContextData) => {\n return {\n ...previousState,\n extensionSDK: extensionHost,\n visualizationSDK,\n tileSDK,\n visualizationData,\n tileHostData,\n lookerHostData,\n }\n })\n }\n\n const unloadedCallback = () => {\n // noop\n }\n\n const updateContextData = (\n contextData: Partial<BaseExtensionContextData>\n ) => {\n setExtensionData((previousContextData) => ({\n ...previousContextData,\n ...contextData,\n }))\n }\n\n return (\n <ExtensionContextBase.Provider value={extensionData}>\n <ExtensionConnector\n {...props}\n contextData={extensionData}\n connectedCallback={connectedCallback}\n updateContextData={updateContextData}\n unloadedCallback={unloadedCallback}\n >\n {children}\n </ExtensionConnector>\n </ExtensionContextBase.Provider>\n )\n}\n"],"mappings":";;;;;;;;;AA0BA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAMvC,SAASC,kBAAkB,QAAQ,uBAAuB;AAK1D,OAAO,IAAMC,oBAAoB,GAC/BH,KAAK,CAACI,aAAa,CACjBC,SACF,CAAC;AAMH,OAAO,IAAMC,qBAAuD,GAAGC,IAAA,IAGjE;EAAA,IAHkE;MACtEC;IAEF,CAAC,GAAAD,IAAA;IADIE,KAAK,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA;EAER,IAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGZ,QAAQ,CAChD,CAAC,CACH,CAAC;EAED,IAAMa,iBAAiB,GAAIC,aAA+B,IAAK;IAC7D,IAAM;MAAEC,gBAAgB;MAAEC,OAAO;MAAEC;IAAe,CAAC,GAAGH,aAAa;IACnE,IAAM;MAAEI;IAAkB,CAAC,GAAGH,gBAAgB;IAC9C,IAAM;MAAEI;IAAa,CAAC,GAAGH,OAAO;IAChCJ,gBAAgB,CAAEQ,aAAuC,IAAK;MAC5D,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa;QAChBE,YAAY,EAAER,aAAa;QAC3BC,gBAAgB;QAChBC,OAAO;QACPE,iBAAiB;QACjBC,YAAY;QACZF;MAAc;IAElB,CAAC,CAAC;EACJ,CAAC;EAED,IAAMM,gBAAgB,GAAGA,CAAA,KAAM,CAE/B,CAAC;EAED,IAAMC,iBAAiB,GACrBC,WAA8C,IAC3C;IACHb,gBAAgB,CAAEc,mBAAmB,IAAAL,aAAA,CAAAA,aAAA,KAChCK,mBAAmB,GACnBD,WAAW,CACd,CAAC;EACL,CAAC;EAED,OACE1B,KAAA,CAAA4B,aAAA,CAACzB,oBAAoB,CAAC0B,QAAQ;IAACC,KAAK,EAAElB;EAAc,GAClDZ,KAAA,CAAA4B,aAAA,CAAC1B,kBAAkB,EAAA6B,QAAA,KACbtB,KAAK;IACTiB,WAAW,EAAEd,aAAc;IAC3BE,iBAAiB,EAAEA,iBAAkB;IACrCW,iBAAiB,EAAEA,iBAAkB;IACrCD,gBAAgB,EAAEA;EAAiB,IAElChB,QACiB,CACS,CAAC;AAEpC,CAAC"}
@@ -1,17 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _ExtensionProviderBase = require("./ExtensionProviderBase");
7
- Object.keys(_ExtensionProviderBase).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _ExtensionProviderBase[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _ExtensionProviderBase[key];
14
- }
15
- });
16
- });
1
+ export * from './ExtensionProviderBase';
17
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_ExtensionProviderBase","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/ExtensionProviderBase/index.ts"],"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\nexport * from './ExtensionProviderBase'\n"],"mappings":";;;;;AA0BA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,sBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,sBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ExtensionProviderBase/index.ts"],"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\nexport * from './ExtensionProviderBase'\n"],"mappings":"AA0BA,cAAc,yBAAyB"}
@@ -1,16 +1,7 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.RouteChangeListener = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactRouterDom = require("react-router-dom");
9
- var _clone = _interopRequireDefault(require("lodash/clone"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- var RouteChangeListener = _ref => {
1
+ import React, { useEffect } from 'react';
2
+ import { useLocation, useHistory } from 'react-router-dom';
3
+ import clone from 'lodash/clone';
4
+ export var RouteChangeListener = _ref => {
14
5
  var {
15
6
  onPathnameChange,
16
7
  onRouteChange,
@@ -18,24 +9,23 @@ var RouteChangeListener = _ref => {
18
9
  hostRoute,
19
10
  hostRouteState
20
11
  } = _ref;
21
- var history = (0, _reactRouterDom.useHistory)();
22
- var location = (0, _reactRouterDom.useLocation)();
23
- (0, _react.useEffect)(() => {
12
+ var history = useHistory();
13
+ var location = useLocation();
14
+ useEffect(() => {
24
15
  if (onPathnameChange) {
25
16
  onPathnameChange(location.pathname);
26
17
  }
27
18
  if (onRouteChange) {
28
- onRouteChange(location.pathname + location.search, (0, _clone.default)(location.state));
19
+ onRouteChange(location.pathname + location.search, clone(location.state));
29
20
  }
30
21
  ;
31
22
  extensionHost.clientRouteChanged(location.pathname + location.search, location.state);
32
23
  }, [location]);
33
- (0, _react.useEffect)(() => {
24
+ useEffect(() => {
34
25
  if (hostRoute) {
35
26
  history.push(hostRoute, hostRouteState);
36
27
  }
37
28
  }, [hostRoute]);
38
- return _react.default.createElement(_react.default.Fragment, null);
29
+ return React.createElement(React.Fragment, null);
39
30
  };
40
- exports.RouteChangeListener = RouteChangeListener;
41
31
  //# sourceMappingURL=RouteChangeListener.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteChangeListener.js","names":["_react","_interopRequireWildcard","require","_reactRouterDom","_clone","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RouteChangeListener","_ref","onPathnameChange","onRouteChange","extensionHost","hostRoute","hostRouteState","history","useHistory","location","useLocation","useEffect","pathname","search","clone","state","clientRouteChanged","push","createElement","Fragment","exports"],"sources":["../../../../src/components/RouteChangeListener/RouteChangeListener.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 React, { useEffect } from 'react'\nimport { useLocation, useHistory } from 'react-router-dom'\nimport type { ExtensionHostApi } from '@looker/extension-sdk'\nimport clone from 'lodash/clone'\nimport type { RouteChangeListenerProps } from './types'\n\nexport const RouteChangeListener: React.FC<RouteChangeListenerProps> = ({\n onPathnameChange,\n onRouteChange,\n extensionHost,\n hostRoute,\n hostRouteState,\n}) => {\n const history = useHistory()\n const location = useLocation()\n\n useEffect(() => {\n if (onPathnameChange) {\n onPathnameChange(location.pathname)\n }\n if (onRouteChange) {\n onRouteChange(location.pathname + location.search, clone(location.state))\n }\n ;(extensionHost as ExtensionHostApi).clientRouteChanged(\n location.pathname + location.search,\n location.state\n )\n }, [location])\n\n useEffect(() => {\n if (hostRoute) {\n history.push(hostRoute, hostRouteState)\n }\n }, [hostRoute])\n return <></>\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAgC,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAK,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,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E,OAAO,CAACU,IAAI,CAACZ,SAAS,EAAEC,cAAc,CAAC;IACzC;EACF,CAAC,EAAE,CAACD,SAAS,CAAC,CAAC;EACf,OAAOjC,MAAA,CAAAQ,OAAA,CAAAsC,aAAA,CAAA9C,MAAA,CAAAQ,OAAA,CAAAuC,QAAA,OAAK;AACd,CAAC;AAAAC,OAAA,CAAApB,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"file":"RouteChangeListener.js","names":["React","useEffect","useLocation","useHistory","clone","RouteChangeListener","_ref","onPathnameChange","onRouteChange","extensionHost","hostRoute","hostRouteState","history","location","pathname","search","state","clientRouteChanged","push","createElement","Fragment"],"sources":["../../../../src/components/RouteChangeListener/RouteChangeListener.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 React, { useEffect } from 'react'\nimport { useLocation, useHistory } from 'react-router-dom'\nimport type { ExtensionHostApi } from '@looker/extension-sdk'\nimport clone from 'lodash/clone'\nimport type { RouteChangeListenerProps } from './types'\n\nexport const RouteChangeListener: React.FC<RouteChangeListenerProps> = ({\n onPathnameChange,\n onRouteChange,\n extensionHost,\n hostRoute,\n hostRouteState,\n}) => {\n const history = useHistory()\n const location = useLocation()\n\n useEffect(() => {\n if (onPathnameChange) {\n onPathnameChange(location.pathname)\n }\n if (onRouteChange) {\n onRouteChange(location.pathname + location.search, clone(location.state))\n }\n ;(extensionHost as ExtensionHostApi).clientRouteChanged(\n location.pathname + location.search,\n location.state\n )\n }, [location])\n\n useEffect(() => {\n if (hostRoute) {\n history.push(hostRoute, hostRouteState)\n }\n }, [hostRoute])\n return <></>\n}\n"],"mappings":"AA0BA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,WAAW,EAAEC,UAAU,QAAQ,kBAAkB;AAE1D,OAAOC,KAAK,MAAM,cAAc;AAGhC,OAAO,IAAMC,mBAAuD,GAAGC,IAAA,IAMjE;EAAA,IANkE;IACtEC,gBAAgB;IAChBC,aAAa;IACbC,aAAa;IACbC,SAAS;IACTC;EACF,CAAC,GAAAL,IAAA;EACC,IAAMM,OAAO,GAAGT,UAAU,CAAC,CAAC;EAC5B,IAAMU,QAAQ,GAAGX,WAAW,CAAC,CAAC;EAE9BD,SAAS,CAAC,MAAM;IACd,IAAIM,gBAAgB,EAAE;MACpBA,gBAAgB,CAACM,QAAQ,CAACC,QAAQ,CAAC;IACrC;IACA,IAAIN,aAAa,EAAE;MACjBA,aAAa,CAACK,QAAQ,CAACC,QAAQ,GAAGD,QAAQ,CAACE,MAAM,EAAEX,KAAK,CAACS,QAAQ,CAACG,KAAK,CAAC,CAAC;IAC3E;IACA;IAAEP,aAAa,CAAsBQ,kBAAkB,CACrDJ,QAAQ,CAACC,QAAQ,GAAGD,QAAQ,CAACE,MAAM,EACnCF,QAAQ,CAACG,KACX,CAAC;EACH,CAAC,EAAE,CAACH,QAAQ,CAAC,CAAC;EAEdZ,SAAS,CAAC,MAAM;IACd,IAAIS,SAAS,EAAE;MACbE,OAAO,CAACM,IAAI,CAACR,SAAS,EAAEC,cAAc,CAAC;IACzC;EACF,CAAC,EAAE,CAACD,SAAS,CAAC,CAAC;EACf,OAAOV,KAAA,CAAAmB,aAAA,CAAAnB,KAAA,CAAAoB,QAAA,MAAI,CAAC;AACd,CAAC"}
@@ -1,28 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _types = require("./types");
7
- Object.keys(_types).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _types[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _types[key];
14
- }
15
- });
16
- });
17
- var _RouteChangeListener = require("./RouteChangeListener");
18
- Object.keys(_RouteChangeListener).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _RouteChangeListener[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _RouteChangeListener[key];
25
- }
26
- });
27
- });
1
+ export * from './types';
2
+ export * from './RouteChangeListener';
28
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_RouteChangeListener"],"sources":["../../../../src/components/RouteChangeListener/index.ts"],"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\nexport * from './types'\nexport * from './RouteChangeListener'\n"],"mappings":";;;;;AA0BA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,oBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,oBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,oBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,oBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/RouteChangeListener/index.ts"],"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\nexport * from './types'\nexport * from './RouteChangeListener'\n"],"mappings":"AA0BA,cAAc,SAAS;AACvB,cAAc,uBAAuB"}
@@ -1,18 +1,10 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getInitialRouteEntries = void 0;
7
- var H = _interopRequireWildcard(require("history"));
8
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
2
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
4
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
14
5
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
- var getInitialRouteEntries = initialRouteData => {
6
+ import * as H from 'history';
7
+ export var getInitialRouteEntries = initialRouteData => {
16
8
  var initialEntries;
17
9
  if (initialRouteData) {
18
10
  var {
@@ -25,5 +17,4 @@ var getInitialRouteEntries = initialRouteData => {
25
17
  }
26
18
  return initialEntries;
27
19
  };
28
- exports.getInitialRouteEntries = getInitialRouteEntries;
29
20
  //# sourceMappingURL=get_initial_route_entries.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get_initial_route_entries.js","names":["H","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","getInitialRouteEntries","initialRouteData","initialEntries","route","routeState","parsePath","state","exports"],"sources":["../../../../src/components/utils/get_initial_route_entries.ts"],"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 * as H from 'history'\nimport type { RouteData } from '../ExtensionConnector/types'\n\nexport const getInitialRouteEntries = (initialRouteData?: RouteData) => {\n let initialEntries: H.LocationDescriptor[] | undefined\n if (initialRouteData) {\n const { route, routeState } = initialRouteData\n initialEntries = [{ ...H.parsePath(route), state: routeState }]\n }\n return initialEntries\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA4B,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GA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B,GAAA,OAAAA,GAAA,IAAAX,GAAA,IAAAQ,MAAA,CAAAC,cAAA,CAAAT,GAAA,EAAAW,GAAA,IAAA2B,KAAA,EAAAA,KAAA,EAAAb,UAAA,QAAAe,YAAA,QAAAC,QAAA,oBAAAzC,GAAA,CAAAW,GAAA,IAAA2B,KAAA,WAAAtC,GAAA;AAAA,SAAAuC,eAAAG,GAAA,QAAA/B,GAAA,GAAAgC,YAAA,CAAAD,GAAA,2BAAA/B,GAAA,gBAAAA,GAAA,GAAAiC,MAAA,CAAAjC,GAAA;AAAA,SAAAgC,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAjC,IAAA,CAAA+B,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAC,SAAA,4DAAAN,IAAA,gBAAAF,MAAA,GAAAS,MAAA,EAAAR,KAAA;AAGrB,IAAMS,sBAAsB,GAAIC,gBAA4B,IAAK;EACtE,IAAIC,cAAkD;EACtD,IAAID,gBAAgB,EAAE;IACpB,IAAM;MAAEE,KAAK;MAAEC;IAAW,CAAC,GAAGH,gBAAgB;IAC9CC,cAAc,GAAG,CAAA5B,aAAA,CAAAA,aAAA,KAAMpC,CAAC,CAACmE,SAAS,CAACF,KAAK,CAAC;MAAEG,KAAK,EAAEF;IAAU,GAAG;EACjE;EACA,OAAOF,cAAc;AACvB,CAAC;AAAAK,OAAA,CAAAP,sBAAA,GAAAA,sBAAA"}
1
+ {"version":3,"file":"get_initial_route_entries.js","names":["H","getInitialRouteEntries","initialRouteData","initialEntries","route","routeState","_objectSpread","parsePath","state"],"sources":["../../../../src/components/utils/get_initial_route_entries.ts"],"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 * as H from 'history'\nimport type { RouteData } from '../ExtensionConnector/types'\n\nexport const getInitialRouteEntries = (initialRouteData?: RouteData) => {\n let initialEntries: H.LocationDescriptor[] | undefined\n if (initialRouteData) {\n const { route, routeState } = initialRouteData\n initialEntries = [{ ...H.parsePath(route), state: routeState }]\n }\n return initialEntries\n}\n"],"mappings":";;;;;AA0BA,OAAO,KAAKA,CAAC,MAAM,SAAS;AAG5B,OAAO,IAAMC,sBAAsB,GAAIC,gBAA4B,IAAK;EACtE,IAAIC,cAAkD;EACtD,IAAID,gBAAgB,EAAE;IACpB,IAAM;MAAEE,KAAK;MAAEC;IAAW,CAAC,GAAGH,gBAAgB;IAC9CC,cAAc,GAAG,CAAAG,aAAA,CAAAA,aAAA,KAAMN,CAAC,CAACO,SAAS,CAACH,KAAK,CAAC;MAAEI,KAAK,EAAEH;IAAU,GAAG;EACjE;EACA,OAAOF,cAAc;AACvB,CAAC"}
@@ -1,10 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.setupClosePopoversListener = void 0;
7
- var setupClosePopoversListener = extensionSDK => {
1
+ export var setupClosePopoversListener = extensionSDK => {
8
2
  var onBodyMousedown = () => {
9
3
  if (extensionSDK) {
10
4
  extensionSDK.closeHostPopovers();
@@ -20,5 +14,4 @@ var setupClosePopoversListener = extensionSDK => {
20
14
  }
21
15
  };
22
16
  };
23
- exports.setupClosePopoversListener = setupClosePopoversListener;
24
17
  //# sourceMappingURL=setup_close_popovers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup_close_popovers.js","names":["setupClosePopoversListener","extensionSDK","onBodyMousedown","closeHostPopovers","body","document","querySelector","addEventListener","removeEventListener","exports"],"sources":["../../../../src/components/utils/setup_close_popovers.ts"],"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 { ExtensionSDK } from '@looker/extension-sdk'\n\nexport const setupClosePopoversListener = (extensionSDK?: ExtensionSDK) => {\n const onBodyMousedown = () => {\n if (extensionSDK) {\n extensionSDK.closeHostPopovers()\n }\n }\n const body: HTMLBodyElement | undefined | null =\n document.querySelector('body')\n if (body) {\n body.addEventListener('mousedown', onBodyMousedown)\n }\n return () => {\n if (body) {\n body.removeEventListener('mousedown', onBodyMousedown)\n }\n }\n}\n"],"mappings":";;;;;;AA4BO,IAAMA,0BAA0B,GAAIC,YAA2B,IAAK;EACzE,IAAMC,eAAe,GAAGA,CAAA,KAAM;IAC5B,IAAID,YAAY,EAAE;MAChBA,YAAY,CAACE,iBAAiB,EAAE;IAClC;EACF,CAAC;EACD,IAAMC,IAAwC,GAC5CC,QAAQ,CAACC,aAAa,CAAC,MAAM,CAAC;EAChC,IAAIF,IAAI,EAAE;IACRA,IAAI,CAACG,gBAAgB,CAAC,WAAW,EAAEL,eAAe,CAAC;EACrD;EACA,OAAO,MAAM;IACX,IAAIE,IAAI,EAAE;MACRA,IAAI,CAACI,mBAAmB,CAAC,WAAW,EAAEN,eAAe,CAAC;IACxD;EACF,CAAC;AACH,CAAC;AAAAO,OAAA,CAAAT,0BAAA,GAAAA,0BAAA"}
1
+ {"version":3,"file":"setup_close_popovers.js","names":["setupClosePopoversListener","extensionSDK","onBodyMousedown","closeHostPopovers","body","document","querySelector","addEventListener","removeEventListener"],"sources":["../../../../src/components/utils/setup_close_popovers.ts"],"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 { ExtensionSDK } from '@looker/extension-sdk'\n\nexport const setupClosePopoversListener = (extensionSDK?: ExtensionSDK) => {\n const onBodyMousedown = () => {\n if (extensionSDK) {\n extensionSDK.closeHostPopovers()\n }\n }\n const body: HTMLBodyElement | undefined | null =\n document.querySelector('body')\n if (body) {\n body.addEventListener('mousedown', onBodyMousedown)\n }\n return () => {\n if (body) {\n body.removeEventListener('mousedown', onBodyMousedown)\n }\n }\n}\n"],"mappings":"AA4BA,OAAO,IAAMA,0BAA0B,GAAIC,YAA2B,IAAK;EACzE,IAAMC,eAAe,GAAGA,CAAA,KAAM;IAC5B,IAAID,YAAY,EAAE;MAChBA,YAAY,CAACE,iBAAiB,CAAC,CAAC;IAClC;EACF,CAAC;EACD,IAAMC,IAAwC,GAC5CC,QAAQ,CAACC,aAAa,CAAC,MAAM,CAAC;EAChC,IAAIF,IAAI,EAAE;IACRA,IAAI,CAACG,gBAAgB,CAAC,WAAW,EAAEL,eAAe,CAAC;EACrD;EACA,OAAO,MAAM;IACX,IAAIE,IAAI,EAAE;MACRA,IAAI,CAACI,mBAAmB,CAAC,WAAW,EAAEN,eAAe,CAAC;IACxD;EACF,CAAC;AACH,CAAC"}
package/lib/esm/index.js CHANGED
@@ -1,116 +1,10 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _ExtensionProvider = require("./components/ExtensionProvider/ExtensionProvider");
7
- Object.keys(_ExtensionProvider).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _ExtensionProvider[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _ExtensionProvider[key];
14
- }
15
- });
16
- });
17
- var _types = require("./components/ExtensionProvider/types");
18
- Object.keys(_types).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _types[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _types[key];
25
- }
26
- });
27
- });
28
- var _ExtensionProvider2 = require("./components/ExtensionProvider2/ExtensionProvider2");
29
- Object.keys(_ExtensionProvider2).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _ExtensionProvider2[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _ExtensionProvider2[key];
36
- }
37
- });
38
- });
39
- var _ExtensionProviderBase = require("./components/ExtensionProviderBase/ExtensionProviderBase");
40
- Object.keys(_ExtensionProviderBase).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _ExtensionProviderBase[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _ExtensionProviderBase[key];
47
- }
48
- });
49
- });
50
- var _ExtensionProvider3 = require("./components/ExtensionProvider40/ExtensionProvider40");
51
- Object.keys(_ExtensionProvider3).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _ExtensionProvider3[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function get() {
57
- return _ExtensionProvider3[key];
58
- }
59
- });
60
- });
61
- var _types2 = require("./components/ExtensionConnector/types");
62
- Object.keys(_types2).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _types2[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function get() {
68
- return _types2[key];
69
- }
70
- });
71
- });
72
- var _core_sdk_ = require("./sdk/core_sdk_31");
73
- Object.keys(_core_sdk_).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _core_sdk_[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function get() {
79
- return _core_sdk_[key];
80
- }
81
- });
82
- });
83
- var _core_sdk_2 = require("./sdk/core_sdk_40");
84
- Object.keys(_core_sdk_2).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _core_sdk_2[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function get() {
90
- return _core_sdk_2[key];
91
- }
92
- });
93
- });
94
- var _core_sdk = require("./sdk/core_sdk");
95
- Object.keys(_core_sdk).forEach(function (key) {
96
- if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _core_sdk[key]) return;
98
- Object.defineProperty(exports, key, {
99
- enumerable: true,
100
- get: function get() {
101
- return _core_sdk[key];
102
- }
103
- });
104
- });
105
- var _core_sdk2 = require("./sdk/core_sdk2");
106
- Object.keys(_core_sdk2).forEach(function (key) {
107
- if (key === "default" || key === "__esModule") return;
108
- if (key in exports && exports[key] === _core_sdk2[key]) return;
109
- Object.defineProperty(exports, key, {
110
- enumerable: true,
111
- get: function get() {
112
- return _core_sdk2[key];
113
- }
114
- });
115
- });
1
+ export * from './components/ExtensionProvider/ExtensionProvider';
2
+ export * from './components/ExtensionProvider/types';
3
+ export * from './components/ExtensionProvider2/ExtensionProvider2';
4
+ export * from './components/ExtensionProviderBase/ExtensionProviderBase';
5
+ export * from './components/ExtensionProvider40/ExtensionProvider40';
6
+ export * from './components/ExtensionConnector/types';
7
+ export * from './sdk/core_sdk_40';
8
+ export * from './sdk/core_sdk';
9
+ export * from './sdk/core_sdk2';
116
10
  //# sourceMappingURL=index.js.map