@looker/extension-sdk-react 26.6.1 → 26.10.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 (72) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/lib/components/ErrorMessage/ErrorMessage.js +1 -1
  3. package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
  4. package/lib/components/ErrorMessage/index.js.map +1 -1
  5. package/lib/components/ErrorMessage/types.js +4 -0
  6. package/lib/components/ErrorMessage/types.js.map +1 -1
  7. package/lib/components/ExtensionConnector/ExtensionConnector.js +4 -5
  8. package/lib/components/ExtensionConnector/ExtensionConnector.js.map +1 -1
  9. package/lib/components/ExtensionConnector/index.js.map +1 -1
  10. package/lib/components/ExtensionConnector/types.js +4 -0
  11. package/lib/components/ExtensionConnector/types.js.map +1 -1
  12. package/lib/components/ExtensionProvider/ExtensionProvider.js +6 -7
  13. package/lib/components/ExtensionProvider/ExtensionProvider.js.map +1 -1
  14. package/lib/components/ExtensionProvider/index.js.map +1 -1
  15. package/lib/components/ExtensionProvider/types.js +4 -0
  16. package/lib/components/ExtensionProvider/types.js.map +1 -1
  17. package/lib/components/ExtensionProvider2/ExtensionProvider2.js +6 -7
  18. package/lib/components/ExtensionProvider2/ExtensionProvider2.js.map +1 -1
  19. package/lib/components/ExtensionProvider2/index.js.map +1 -1
  20. package/lib/components/ExtensionProvider40/ExtensionProvider40.js +6 -7
  21. package/lib/components/ExtensionProvider40/ExtensionProvider40.js.map +1 -1
  22. package/lib/components/ExtensionProvider40/index.js.map +1 -1
  23. package/lib/components/ExtensionProviderBase/ExtensionProviderBase.js +6 -7
  24. package/lib/components/ExtensionProviderBase/ExtensionProviderBase.js.map +1 -1
  25. package/lib/components/ExtensionProviderBase/index.js.map +1 -1
  26. package/lib/components/RouteChangeListener/RouteChangeListener.js +2 -3
  27. package/lib/components/RouteChangeListener/RouteChangeListener.js.map +1 -1
  28. package/lib/components/RouteChangeListener/index.js.map +1 -1
  29. package/lib/components/RouteChangeListener/types.js +4 -0
  30. package/lib/components/RouteChangeListener/types.js.map +1 -1
  31. package/lib/components/utils/get_initial_route_entries.js +3 -4
  32. package/lib/components/utils/get_initial_route_entries.js.map +1 -1
  33. package/lib/components/utils/setup_close_popovers.js.map +1 -1
  34. package/lib/esm/components/ErrorMessage/ErrorMessage.js.map +1 -1
  35. package/lib/esm/components/ErrorMessage/index.js.map +1 -1
  36. package/lib/esm/components/ErrorMessage/types.js +1 -1
  37. package/lib/esm/components/ErrorMessage/types.js.map +1 -1
  38. package/lib/esm/components/ExtensionConnector/ExtensionConnector.js +2 -2
  39. package/lib/esm/components/ExtensionConnector/ExtensionConnector.js.map +1 -1
  40. package/lib/esm/components/ExtensionConnector/index.js.map +1 -1
  41. package/lib/esm/components/ExtensionConnector/types.js +1 -1
  42. package/lib/esm/components/ExtensionConnector/types.js.map +1 -1
  43. package/lib/esm/components/ExtensionProvider/ExtensionProvider.js +5 -5
  44. package/lib/esm/components/ExtensionProvider/ExtensionProvider.js.map +1 -1
  45. package/lib/esm/components/ExtensionProvider/index.js.map +1 -1
  46. package/lib/esm/components/ExtensionProvider/types.js +1 -1
  47. package/lib/esm/components/ExtensionProvider/types.js.map +1 -1
  48. package/lib/esm/components/ExtensionProvider2/ExtensionProvider2.js +5 -5
  49. package/lib/esm/components/ExtensionProvider2/ExtensionProvider2.js.map +1 -1
  50. package/lib/esm/components/ExtensionProvider2/index.js.map +1 -1
  51. package/lib/esm/components/ExtensionProvider40/ExtensionProvider40.js +5 -5
  52. package/lib/esm/components/ExtensionProvider40/ExtensionProvider40.js.map +1 -1
  53. package/lib/esm/components/ExtensionProvider40/index.js.map +1 -1
  54. package/lib/esm/components/ExtensionProviderBase/ExtensionProviderBase.js +5 -5
  55. package/lib/esm/components/ExtensionProviderBase/ExtensionProviderBase.js.map +1 -1
  56. package/lib/esm/components/ExtensionProviderBase/index.js.map +1 -1
  57. package/lib/esm/components/RouteChangeListener/RouteChangeListener.js.map +1 -1
  58. package/lib/esm/components/RouteChangeListener/index.js.map +1 -1
  59. package/lib/esm/components/RouteChangeListener/types.js +1 -1
  60. package/lib/esm/components/RouteChangeListener/types.js.map +1 -1
  61. package/lib/esm/components/utils/get_initial_route_entries.js +2 -2
  62. package/lib/esm/components/utils/get_initial_route_entries.js.map +1 -1
  63. package/lib/esm/components/utils/setup_close_popovers.js.map +1 -1
  64. package/lib/esm/index.js.map +1 -1
  65. package/lib/esm/sdk/core_sdk.js.map +1 -1
  66. package/lib/esm/sdk/core_sdk2.js.map +1 -1
  67. package/lib/esm/sdk/core_sdk_40.js.map +1 -1
  68. package/lib/index.js.map +1 -1
  69. package/lib/sdk/core_sdk.js.map +1 -1
  70. package/lib/sdk/core_sdk2.js.map +1 -1
  71. package/lib/sdk/core_sdk_40.js.map +1 -1
  72. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionProvider2.js","names":["React","useState","SdkConnection","LookerExtensionSDK","ExtensionConnector","registerCoreSDK2","unregisterCoreSDK2","ExtensionContext2","createContext","undefined","ExtensionProvider2","props","children","type","rest","_objectWithoutProperties","_excluded","extensionData","setExtensionData","apiVersion","ApiVersion","connectedCallback","extensionHost","coreSDK","createClient","visualizationSDK","tileSDK","lookerHostData","visualizationData","tileHostData","previousState","_objectSpread","extensionSDK","unloadedCallback","updateContextData","updatedContextData","createElement","Provider","value","_extends","contextData"],"sources":["../../../../src/components/ExtensionProvider2/ExtensionProvider2.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 { SdkConnection } from '@looker/extension-sdk';\nimport { LookerExtensionSDK } from '@looker/sdk';\nimport type {\n BaseExtensionContextData,\n ExtensionProviderProps,\n} from '../ExtensionConnector';\nimport { ExtensionConnector } from '../ExtensionConnector';\nimport { registerCoreSDK2, unregisterCoreSDK2 } from '../../sdk/core_sdk2';\n\nexport interface ExtensionContextData2<T> extends BaseExtensionContextData {\n coreSDK: T;\n}\n\n/**\n * React context provider for extension API and SDK\n */\nexport const ExtensionContext2 = React.createContext<\n ExtensionContextData2<any>\n>(\n undefined as any // no one will ever see this undefined!\n);\n\nexport interface ExtensionProvider2Props<T> extends ExtensionProviderProps {\n type: T;\n}\n\n/**\n * ExtensionProvider component. Provides access to the extension API and SDK (use\n * ExtensionContext) and react routing services.\n */\nexport function ExtensionProvider2<T>(props: ExtensionProvider2Props<T>) {\n const { children, type, ...rest } = props;\n const [extensionData, setExtensionData] = useState<ExtensionContextData2<T>>(\n {} as ExtensionContextData2<T>\n );\n const apiVersion = (type as any).ApiVersion;\n\n const connectedCallback = (extensionHost: ExtensionHostApi) => {\n let coreSDK: any;\n if (apiVersion) {\n coreSDK = LookerExtensionSDK.createClient(\n new SdkConnection(extensionHost, apiVersion),\n type as any\n );\n }\n registerCoreSDK2(coreSDK);\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 unregisterCoreSDK2();\n };\n\n const updateContextData = (\n updatedContextData: Partial<BaseExtensionContextData>\n ) => {\n setExtensionData((previousState: ExtensionContextData2<T>) => {\n return {\n ...previousState,\n ...updatedContextData,\n };\n });\n };\n\n return (\n <ExtensionContext2.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 </ExtensionContext2.Provider>\n );\n}\n"],"mappings":";;;;;;;;;AA0BA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,kBAAkB,QAAQ,aAAa;AAKhD,SAASC,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,qBAAqB;AAS1E,OAAO,IAAMC,iBAAiB,GAAGP,KAAK,CAACQ,aAAa,CAGlDC,SACF,CAAC;AAUD,OAAO,SAASC,kBAAkBA,CAAIC,KAAiC,EAAE;EACvE,IAAM;MAAEC,QAAQ;MAAEC;IAAc,CAAC,GAAGF,KAAK;IAAdG,IAAI,GAAAC,wBAAA,CAAKJ,KAAK,EAAAK,SAAA;EACzC,IAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGjB,QAAQ,CAChD,CAAC,CACH,CAAC;EACD,IAAMkB,UAAU,GAAIN,IAAI,CAASO,UAAU;EAE3C,IAAMC,iBAAiB,GAAIC,aAA+B,IAAK;IAC7D,IAAIC,OAAY;IAChB,IAAIJ,UAAU,EAAE;MACdI,OAAO,GAAGpB,kBAAkB,CAACqB,YAAY,CACvC,IAAItB,aAAa,CAACoB,aAAa,EAAEH,UAAU,CAAC,EAC5CN,IACF,CAAC;IACH;IACAR,gBAAgB,CAACkB,OAAO,CAAC;IACzB,IAAM;MAAEE,gBAAgB;MAAEC,OAAO;MAAEC;IAAe,CAAC,GAAGL,aAAa;IACnE,IAAM;MAAEM;IAAkB,CAAC,GAAGH,gBAAgB;IAC9C,IAAM;MAAEI;IAAa,CAAC,GAAGH,OAAO;IAChCR,gBAAgB,CAAEY,aAAkB,IAAK;MACvC,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa;QAChBE,YAAY,EAAEV,aAAa;QAC3BC,OAAO;QACPE,gBAAgB;QAChBC,OAAO;QACPE,iBAAiB;QACjBC,YAAY;QACZF;MAAc;IAElB,CAAC,CAAC;EACJ,CAAC;EAED,IAAMM,gBAAgB,GAAGA,CAAA,KAAM;IAC7B3B,kBAAkB,CAAC,CAAC;EACtB,CAAC;EAED,IAAM4B,iBAAiB,GACrBC,kBAAqD,IAClD;IACHjB,gBAAgB,CAAEY,aAAuC,IAAK;MAC5D,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa,GACbK,kBAAkB;IAEzB,CAAC,CAAC;EACJ,CAAC;EAED,OACEnC,KAAA,CAAAoC,aAAA,CAAC7B,iBAAiB,CAAC8B,QAAQ;IAACC,KAAK,EAAErB;EAAc,GAC/CjB,KAAA,CAAAoC,aAAA,CAAChC,kBAAkB,EAAAmC,QAAA,KACbzB,IAAI;IACR0B,WAAW,EAAEvB,aAAc;IAC3BI,iBAAiB,EAAEA,iBAAkB;IACrCa,iBAAiB,EAAEA,iBAAkB;IACrCD,gBAAgB,EAAEA;EAAiB,IAElCrB,QACiB,CACM,CAAC;AAEjC"}
1
+ {"version":3,"file":"ExtensionProvider2.js","names":["React","useState","SdkConnection","LookerExtensionSDK","ExtensionConnector","registerCoreSDK2","unregisterCoreSDK2","ExtensionContext2","createContext","undefined","ExtensionProvider2","props","children","type","rest","_objectWithoutProperties","_excluded","extensionData","setExtensionData","apiVersion","ApiVersion","connectedCallback","extensionHost","coreSDK","createClient","visualizationSDK","tileSDK","lookerHostData","visualizationData","tileHostData","previousState","_objectSpread","extensionSDK","unloadedCallback","updateContextData","updatedContextData","createElement","Provider","value","_extends","contextData"],"sources":["../../../../src/components/ExtensionProvider2/ExtensionProvider2.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 { SdkConnection } from '@looker/extension-sdk';\nimport { LookerExtensionSDK } from '@looker/sdk';\nimport type {\n BaseExtensionContextData,\n ExtensionProviderProps,\n} from '../ExtensionConnector';\nimport { ExtensionConnector } from '../ExtensionConnector';\nimport { registerCoreSDK2, unregisterCoreSDK2 } from '../../sdk/core_sdk2';\n\nexport interface ExtensionContextData2<T> extends BaseExtensionContextData {\n coreSDK: T;\n}\n\n/**\n * React context provider for extension API and SDK\n */\nexport const ExtensionContext2 = React.createContext<\n ExtensionContextData2<any>\n>(\n undefined as any // no one will ever see this undefined!\n);\n\nexport interface ExtensionProvider2Props<T> extends ExtensionProviderProps {\n type: T;\n}\n\n/**\n * ExtensionProvider component. Provides access to the extension API and SDK (use\n * ExtensionContext) and react routing services.\n */\nexport function ExtensionProvider2<T>(props: ExtensionProvider2Props<T>) {\n const { children, type, ...rest } = props;\n const [extensionData, setExtensionData] = useState<ExtensionContextData2<T>>(\n {} as ExtensionContextData2<T>\n );\n const apiVersion = (type as any).ApiVersion;\n\n const connectedCallback = (extensionHost: ExtensionHostApi) => {\n let coreSDK: any;\n if (apiVersion) {\n coreSDK = LookerExtensionSDK.createClient(\n new SdkConnection(extensionHost, apiVersion),\n type as any\n );\n }\n registerCoreSDK2(coreSDK);\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 unregisterCoreSDK2();\n };\n\n const updateContextData = (\n updatedContextData: Partial<BaseExtensionContextData>\n ) => {\n setExtensionData((previousState: ExtensionContextData2<T>) => {\n return {\n ...previousState,\n ...updatedContextData,\n };\n });\n };\n\n return (\n <ExtensionContext2.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 </ExtensionContext2.Provider>\n );\n}\n"],"mappings":";;;;;;;;;AA0BA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,kBAAkB,QAAQ,aAAa;AAKhD,SAASC,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,qBAAqB;AAS1E,OAAO,IAAMC,iBAAiB,GAAGP,KAAK,CAACQ,aAAa,CAGlDC,SACF,CAAC;AAUD,OAAO,SAASC,kBAAkBA,CAAIC,KAAiC,EAAE;EACvE,IAAM;MAAEC,QAAQ;MAAEC;IAAc,CAAC,GAAGF,KAAK;IAAdG,IAAI,GAAAC,wBAAA,CAAKJ,KAAK,EAAAK,SAAA;EACzC,IAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGjB,QAAQ,CAChD,CAAC,CACH,CAAC;EACD,IAAMkB,UAAU,GAAIN,IAAI,CAASO,UAAU;EAE3C,IAAMC,iBAAiB,GAAIC,aAA+B,IAAK;IAC7D,IAAIC,OAAY;IAChB,IAAIJ,UAAU,EAAE;MACdI,OAAO,GAAGpB,kBAAkB,CAACqB,YAAY,CACvC,IAAItB,aAAa,CAACoB,aAAa,EAAEH,UAAU,CAAC,EAC5CN,IACF,CAAC;IACH;IACAR,gBAAgB,CAACkB,OAAO,CAAC;IACzB,IAAM;MAAEE,gBAAgB;MAAEC,OAAO;MAAEC;IAAe,CAAC,GAAGL,aAAa;IACnE,IAAM;MAAEM;IAAkB,CAAC,GAAGH,gBAAgB;IAC9C,IAAM;MAAEI;IAAa,CAAC,GAAGH,OAAO;IAChCR,gBAAgB,CAAEY,aAAkB,IAAK;MACvC,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa;QAChBE,YAAY,EAAEV,aAAa;QAC3BC,OAAO;QACPE,gBAAgB;QAChBC,OAAO;QACPE,iBAAiB;QACjBC,YAAY;QACZF;MAAc;IAElB,CAAC,CAAC;EACJ,CAAC;EAED,IAAMM,gBAAgB,GAAGA,CAAA,KAAM;IAC7B3B,kBAAkB,CAAC,CAAC;EACtB,CAAC;EAED,IAAM4B,iBAAiB,GACrBC,kBAAqD,IAClD;IACHjB,gBAAgB,CAAEY,aAAuC,IAAK;MAC5D,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa,GACbK,kBAAkB;IAEzB,CAAC,CAAC;EACJ,CAAC;EAED,OACEnC,KAAA,CAAAoC,aAAA,CAAC7B,iBAAiB,CAAC8B,QAAQ;IAACC,KAAK,EAAErB;EAAc,GAC/CjB,KAAA,CAAAoC,aAAA,CAAChC,kBAAkB,EAAAmC,QAAA,KACbzB,IAAI;IACR0B,WAAW,EAAEvB,aAAc;IAC3BI,iBAAiB,EAAEA,iBAAkB;IACrCa,iBAAiB,EAAEA,iBAAkB;IACrCD,gBAAgB,EAAEA;EAAiB,IAElCrB,QACiB,CACM,CAAC;AAEjC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ExtensionProvider2/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 './ExtensionProvider2';\n"],"mappings":"AA0BA,cAAc,sBAAsB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ExtensionProvider2/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 './ExtensionProvider2';\n"],"mappings":"AA0BA,cAAc,sBAAsB","ignoreList":[]}
@@ -1,12 +1,12 @@
1
1
  var _excluded = ["children"];
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); }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- 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; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
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; }
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; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import React, { useState } from 'react';
11
11
  import { LookerExtensionSDK } from '@looker/extension-sdk';
12
12
  import { ExtensionConnector } from '../ExtensionConnector';
@@ -1 +1 @@
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","createClient","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.createClient(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;AAY9E,OAAO,IAAMC,kBAAkB,GAAGN,KAAK,CAACO,aAAa,CACnDC,SACF,CAAC;AAQD,OAAO,SAASC,mBAAmBA,CAACC,KAA+B,EAAE;EACnE,IAAM;MAAEC;IAAkB,CAAC,GAAGD,KAAK;IAAdE,IAAI,GAAAC,wBAAA,CAAKH,KAAK,EAAAI,SAAA;EACnC,IAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGf,QAAQ,CAChD,CAAC,CACH,CAAC;EAED,IAAMgB,iBAAiB,GAAIC,aAA+B,IAAK;IAC7D,IAAMC,OAAqB,GACzBjB,kBAAkB,CAACkB,YAAY,CAACF,aAAa,CAAC;IAChDd,iBAAiB,CAACe,OAAsB,CAAC;IACzC,IAAM;MAAEE,gBAAgB;MAAEC,OAAO;MAAEC;IAAe,CAAC,GAAGL,aAAa;IACnE,IAAM;MAAEM;IAAkB,CAAC,GAAGH,gBAAgB;IAC9C,IAAM;MAAEI;IAAa,CAAC,GAAGH,OAAO;IAChCN,gBAAgB,CAAEU,aAAkB,IAAK;MACvC,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa;QAChBE,YAAY,EAAEV,aAAa;QAC3BC,OAAO;QACPE,gBAAgB;QAChBC,OAAO;QACPE,iBAAiB;QACjBC,YAAY;QACZF;MAAc;IAElB,CAAC,CAAC;EACJ,CAAC;EAED,IAAMM,gBAAgB,GAAGA,CAAA,KAAM;IAC7BxB,mBAAmB,CAAC,CAAC;EACvB,CAAC;EAED,IAAMyB,iBAAiB,GACrBC,kBAAqD,IAClD;IACHf,gBAAgB,CAAEU,aAAqC,IAAK;MAC1D,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa,GACbK,kBAAkB;IAEzB,CAAC,CAAC;EACJ,CAAC;EAED,OACE/B,KAAA,CAAAgC,aAAA,CAAC1B,kBAAkB,CAAC2B,QAAQ;IAACC,KAAK,EAAEnB;EAAc,GAChDf,KAAA,CAAAgC,aAAA,CAAC7B,kBAAkB,EAAAgC,QAAA,KACbvB,IAAI;IACRwB,WAAW,EAAErB,aAAc;IAC3BE,iBAAiB,EAAEA,iBAAkB;IACrCa,iBAAiB,EAAEA,iBAAkB;IACrCD,gBAAgB,EAAEA;EAAiB,IAElClB,QACiB,CACO,CAAC;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","createClient","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.createClient(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;AAY9E,OAAO,IAAMC,kBAAkB,GAAGN,KAAK,CAACO,aAAa,CACnDC,SACF,CAAC;AAQD,OAAO,SAASC,mBAAmBA,CAACC,KAA+B,EAAE;EACnE,IAAM;MAAEC;IAAkB,CAAC,GAAGD,KAAK;IAAdE,IAAI,GAAAC,wBAAA,CAAKH,KAAK,EAAAI,SAAA;EACnC,IAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGf,QAAQ,CAChD,CAAC,CACH,CAAC;EAED,IAAMgB,iBAAiB,GAAIC,aAA+B,IAAK;IAC7D,IAAMC,OAAqB,GACzBjB,kBAAkB,CAACkB,YAAY,CAACF,aAAa,CAAC;IAChDd,iBAAiB,CAACe,OAAsB,CAAC;IACzC,IAAM;MAAEE,gBAAgB;MAAEC,OAAO;MAAEC;IAAe,CAAC,GAAGL,aAAa;IACnE,IAAM;MAAEM;IAAkB,CAAC,GAAGH,gBAAgB;IAC9C,IAAM;MAAEI;IAAa,CAAC,GAAGH,OAAO;IAChCN,gBAAgB,CAAEU,aAAkB,IAAK;MACvC,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa;QAChBE,YAAY,EAAEV,aAAa;QAC3BC,OAAO;QACPE,gBAAgB;QAChBC,OAAO;QACPE,iBAAiB;QACjBC,YAAY;QACZF;MAAc;IAElB,CAAC,CAAC;EACJ,CAAC;EAED,IAAMM,gBAAgB,GAAGA,CAAA,KAAM;IAC7BxB,mBAAmB,CAAC,CAAC;EACvB,CAAC;EAED,IAAMyB,iBAAiB,GACrBC,kBAAqD,IAClD;IACHf,gBAAgB,CAAEU,aAAqC,IAAK;MAC1D,OAAAC,aAAA,CAAAA,aAAA,KACKD,aAAa,GACbK,kBAAkB;IAEzB,CAAC,CAAC;EACJ,CAAC;EAED,OACE/B,KAAA,CAAAgC,aAAA,CAAC1B,kBAAkB,CAAC2B,QAAQ;IAACC,KAAK,EAAEnB;EAAc,GAChDf,KAAA,CAAAgC,aAAA,CAAC7B,kBAAkB,EAAAgC,QAAA,KACbvB,IAAI;IACRwB,WAAW,EAAErB,aAAc;IAC3BE,iBAAiB,EAAEA,iBAAkB;IACrCa,iBAAiB,EAAEA,iBAAkB;IACrCD,gBAAgB,EAAEA;EAAiB,IAElClB,QACiB,CACO,CAAC;AAElC","ignoreList":[]}
@@ -1 +1 @@
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
+ {"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","ignoreList":[]}
@@ -1,12 +1,12 @@
1
1
  var _excluded = ["children"];
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); }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- 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; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
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; }
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; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import React, { useState } from 'react';
11
11
  import { ExtensionConnector } from '../ExtensionConnector';
12
12
  export var ExtensionContextBase = React.createContext(undefined);
@@ -1 +1 @@
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,CAACc,mBAAmB,IAAAL,aAAA,CAAAA,aAAA,KAC/BK,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
+ {"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,CAACc,mBAAmB,IAAAL,aAAA,CAAAA,aAAA,KAC/BK,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","ignoreList":[]}
@@ -1 +1 @@
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
+ {"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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"RouteChangeListener.js","names":["React","useEffect","useHistory","useLocation","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 { useHistory, useLocation } 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,UAAU,EAAEC,WAAW,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,GAAGV,UAAU,CAAC,CAAC;EAC5B,IAAMW,QAAQ,GAAGV,WAAW,CAAC,CAAC;EAE9BF,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;IACCP,aAAa,CAAsBQ,kBAAkB,CACpDJ,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
+ {"version":3,"file":"RouteChangeListener.js","names":["React","useEffect","useHistory","useLocation","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 { useHistory, useLocation } 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,UAAU,EAAEC,WAAW,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,GAAGV,UAAU,CAAC,CAAC;EAC5B,IAAMW,QAAQ,GAAGV,WAAW,CAAC,CAAC;EAE9BF,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;IACCP,aAAa,CAAsBQ,kBAAkB,CACpDJ,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","ignoreList":[]}
@@ -1 +1 @@
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
+ {"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
-
1
+ export {};
2
2
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../src/components/RouteChangeListener/types.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 interface RouteChangeListenerProps {\n onPathnameChange?: (pathname: string) => void;\n onRouteChange?: (route: string, routeState?: any) => void;\n extensionHost?: ExtensionSDK;\n hostRoute?: string;\n hostRouteState?: any;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../src/components/RouteChangeListener/types.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 interface RouteChangeListenerProps {\n onPathnameChange?: (pathname: string) => void;\n onRouteChange?: (route: string, routeState?: any) => void;\n extensionHost?: ExtensionSDK;\n hostRoute?: string;\n hostRouteState?: any;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
2
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
5
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  import * as H from 'history';
7
7
  export var getInitialRouteEntries = initialRouteData => {
@@ -1 +1 @@
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
+ {"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","ignoreList":[]}
@@ -1 +1 @@
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"}
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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.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\nexport * from './components/ExtensionProvider/ExtensionProvider';\nexport * from './components/ExtensionProvider/types';\nexport * from './components/ExtensionProvider2/ExtensionProvider2';\nexport * from './components/ExtensionProviderBase/ExtensionProviderBase';\nexport * from './components/ExtensionProvider40/ExtensionProvider40';\nexport * from './components/ExtensionConnector/types';\nexport * from './sdk/core_sdk_40';\nexport * from './sdk/core_sdk';\nexport * from './sdk/core_sdk2';\n"],"mappings":"AA0BA,cAAc,kDAAkD;AAChE,cAAc,sCAAsC;AACpD,cAAc,oDAAoD;AAClE,cAAc,0DAA0D;AACxE,cAAc,sDAAsD;AACpE,cAAc,uCAAuC;AACrD,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.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\nexport * from './components/ExtensionProvider/ExtensionProvider';\nexport * from './components/ExtensionProvider/types';\nexport * from './components/ExtensionProvider2/ExtensionProvider2';\nexport * from './components/ExtensionProviderBase/ExtensionProviderBase';\nexport * from './components/ExtensionProvider40/ExtensionProvider40';\nexport * from './components/ExtensionConnector/types';\nexport * from './sdk/core_sdk_40';\nexport * from './sdk/core_sdk';\nexport * from './sdk/core_sdk2';\n"],"mappings":"AA0BA,cAAc,kDAAkD;AAChE,cAAc,sCAAsC;AACpD,cAAc,oDAAoD;AAClE,cAAc,0DAA0D;AACxE,cAAc,sDAAsD;AACpE,cAAc,uCAAuC;AACrD,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk.js","names":["getCore40SDK","registerCore40SDK","unregisterCore40SDK","registerCoreSDK","unregisterCoreSDK","getCoreSDK"],"sources":["../../../src/sdk/core_sdk.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 {\n getCore40SDK,\n registerCore40SDK,\n unregisterCore40SDK,\n} from './core_sdk_40';\n\n/**\n * Register the core SDK. The ExtensionProvider will automatically\n * call this when connection with the host succeeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n * @deprecated use registerCore40SDK instead\n */\nexport const registerCoreSDK = registerCore40SDK;\n\n/**\n * Unregister the core SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n * @deprecated use unregisterCore40SDK instead\n */\nexport const unregisterCoreSDK = unregisterCore40SDK;\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * @deprecated use getCore40SDK instead\n */\nexport const getCoreSDK = getCore40SDK;\n"],"mappings":"AA0BA,SACEA,YAAY,EACZC,iBAAiB,EACjBC,mBAAmB,QACd,eAAe;AAStB,OAAO,IAAMC,eAAe,GAAGF,iBAAiB;AAQhD,OAAO,IAAMG,iBAAiB,GAAGF,mBAAmB;AAMpD,OAAO,IAAMG,UAAU,GAAGL,YAAY"}
1
+ {"version":3,"file":"core_sdk.js","names":["getCore40SDK","registerCore40SDK","unregisterCore40SDK","registerCoreSDK","unregisterCoreSDK","getCoreSDK"],"sources":["../../../src/sdk/core_sdk.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 {\n getCore40SDK,\n registerCore40SDK,\n unregisterCore40SDK,\n} from './core_sdk_40';\n\n/**\n * Register the core SDK. The ExtensionProvider will automatically\n * call this when connection with the host succeeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n * @deprecated use registerCore40SDK instead\n */\nexport const registerCoreSDK = registerCore40SDK;\n\n/**\n * Unregister the core SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n * @deprecated use unregisterCore40SDK instead\n */\nexport const unregisterCoreSDK = unregisterCore40SDK;\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * @deprecated use getCore40SDK instead\n */\nexport const getCoreSDK = getCore40SDK;\n"],"mappings":"AA0BA,SACEA,YAAY,EACZC,iBAAiB,EACjBC,mBAAmB,QACd,eAAe;AAStB,OAAO,IAAMC,eAAe,GAAGF,iBAAiB;AAQhD,OAAO,IAAMG,iBAAiB,GAAGF,mBAAmB;AAMpD,OAAO,IAAMG,UAAU,GAAGL,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk2.js","names":["registered","_coreSdk","registerCoreSDK2","coreSdk","Error","unregisterCoreSDK2","undefined","getCoreSDK2"],"sources":["../../../src/sdk/core_sdk2.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\nlet registered = false;\nlet _coreSdk: any;\n\n/**\n * Register the SDK. The ExtensionProvider will automatically\n * call this when connection is first requested.\n * @param coreSDK core sdk\n */\nexport function registerCoreSDK2(coreSdk: any) {\n if (_coreSdk) {\n throw new Error('coreSDK can only be registered once');\n }\n _coreSdk = coreSdk;\n registered = true;\n}\n\n/**\n * Unregister theSDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport function unregisterCoreSDK2() {\n registered = false;\n _coreSdk = undefined;\n}\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * Note that provider does not have to provide a LookerSdk type. In this case\n * this method will return undefined.\n */\nexport function getCoreSDK2<T>(): T {\n if (!registered) {\n throw new Error('Looker host connection not established');\n }\n return _coreSdk;\n}\n"],"mappings":"AA0BA,IAAIA,UAAU,GAAG,KAAK;AACtB,IAAIC,QAAa;AAOjB,OAAO,SAASC,gBAAgBA,CAACC,OAAY,EAAE;EAC7C,IAAIF,QAAQ,EAAE;IACZ,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,QAAQ,GAAGE,OAAO;EAClBH,UAAU,GAAG,IAAI;AACnB;AAOA,OAAO,SAASK,kBAAkBA,CAAA,EAAG;EACnCL,UAAU,GAAG,KAAK;EAClBC,QAAQ,GAAGK,SAAS;AACtB;AAOA,OAAO,SAASC,WAAWA,CAAA,EAAS;EAClC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAII,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,QAAQ;AACjB"}
1
+ {"version":3,"file":"core_sdk2.js","names":["registered","_coreSdk","registerCoreSDK2","coreSdk","Error","unregisterCoreSDK2","undefined","getCoreSDK2"],"sources":["../../../src/sdk/core_sdk2.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\nlet registered = false;\nlet _coreSdk: any;\n\n/**\n * Register the SDK. The ExtensionProvider will automatically\n * call this when connection is first requested.\n * @param coreSDK core sdk\n */\nexport function registerCoreSDK2(coreSdk: any) {\n if (_coreSdk) {\n throw new Error('coreSDK can only be registered once');\n }\n _coreSdk = coreSdk;\n registered = true;\n}\n\n/**\n * Unregister theSDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport function unregisterCoreSDK2() {\n registered = false;\n _coreSdk = undefined;\n}\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * Note that provider does not have to provide a LookerSdk type. In this case\n * this method will return undefined.\n */\nexport function getCoreSDK2<T>(): T {\n if (!registered) {\n throw new Error('Looker host connection not established');\n }\n return _coreSdk;\n}\n"],"mappings":"AA0BA,IAAIA,UAAU,GAAG,KAAK;AACtB,IAAIC,QAAa;AAOjB,OAAO,SAASC,gBAAgBA,CAACC,OAAY,EAAE;EAC7C,IAAIF,QAAQ,EAAE;IACZ,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,QAAQ,GAAGE,OAAO;EAClBH,UAAU,GAAG,IAAI;AACnB;AAOA,OAAO,SAASK,kBAAkBA,CAAA,EAAG;EACnCL,UAAU,GAAG,KAAK;EAClBC,QAAQ,GAAGK,SAAS;AACtB;AAOA,OAAO,SAASC,WAAWA,CAAA,EAAS;EAClC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAII,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,QAAQ;AACjB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk_40.js","names":["_core40SDK","registerCore40SDK","coreSDK","Error","unregisterCore40SDK","undefined","getCore40SDK"],"sources":["../../../src/sdk/core_sdk_40.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 { Looker40SDK } from '@looker/sdk';\n\nlet _core40SDK: Looker40SDK | undefined;\n\n/**\n * Register the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when connection with the host suceeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n */\nexport const registerCore40SDK = (coreSDK: Looker40SDK) => {\n if (_core40SDK) {\n throw new Error('coreSDK can only be registered once');\n }\n _core40SDK = coreSDK;\n};\n\n/**\n * Unregister the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport const unregisterCore40SDK = () => (_core40SDK = undefined);\n\n/**\n * Global access to the core40SDK. An error will be thrown if accessed prematurely.\n */\nexport const getCore40SDK = () => {\n if (!_core40SDK) {\n throw new Error('Looker host connection not established');\n }\n return _core40SDK;\n};\n"],"mappings":"AA4BA,IAAIA,UAAmC;AAQvC,OAAO,IAAMC,iBAAiB,GAAIC,OAAoB,IAAK;EACzD,IAAIF,UAAU,EAAE;IACd,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,UAAU,GAAGE,OAAO;AACtB,CAAC;AAOD,OAAO,IAAME,mBAAmB,GAAGA,CAAA,KAAOJ,UAAU,GAAGK,SAAU;AAKjE,OAAO,IAAMC,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACN,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC"}
1
+ {"version":3,"file":"core_sdk_40.js","names":["_core40SDK","registerCore40SDK","coreSDK","Error","unregisterCore40SDK","undefined","getCore40SDK"],"sources":["../../../src/sdk/core_sdk_40.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 { Looker40SDK } from '@looker/sdk';\n\nlet _core40SDK: Looker40SDK | undefined;\n\n/**\n * Register the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when connection with the host suceeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n */\nexport const registerCore40SDK = (coreSDK: Looker40SDK) => {\n if (_core40SDK) {\n throw new Error('coreSDK can only be registered once');\n }\n _core40SDK = coreSDK;\n};\n\n/**\n * Unregister the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport const unregisterCore40SDK = () => (_core40SDK = undefined);\n\n/**\n * Global access to the core40SDK. An error will be thrown if accessed prematurely.\n */\nexport const getCore40SDK = () => {\n if (!_core40SDK) {\n throw new Error('Looker host connection not established');\n }\n return _core40SDK;\n};\n"],"mappings":"AA4BA,IAAIA,UAAmC;AAQvC,OAAO,IAAMC,iBAAiB,GAAIC,OAAoB,IAAK;EACzD,IAAIF,UAAU,EAAE;IACd,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,UAAU,GAAGE,OAAO;AACtB,CAAC;AAOD,OAAO,IAAME,mBAAmB,GAAGA,CAAA,KAAOJ,UAAU,GAAGK,SAAU;AAKjE,OAAO,IAAMC,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACN,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC","ignoreList":[]}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_ExtensionProvider","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_types","_ExtensionProvider2","_ExtensionProviderBase","_ExtensionProvider3","_types2","_core_sdk_","_core_sdk","_core_sdk2"],"sources":["../src/index.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\nexport * from './components/ExtensionProvider/ExtensionProvider';\nexport * from './components/ExtensionProvider/types';\nexport * from './components/ExtensionProvider2/ExtensionProvider2';\nexport * from './components/ExtensionProviderBase/ExtensionProviderBase';\nexport * from './components/ExtensionProvider40/ExtensionProvider40';\nexport * from './components/ExtensionConnector/types';\nexport * from './sdk/core_sdk_40';\nexport * from './sdk/core_sdk';\nexport * from './sdk/core_sdk2';\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.js","names":["_ExtensionProvider","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_types","_ExtensionProvider2","_ExtensionProviderBase","_ExtensionProvider3","_types2","_core_sdk_","_core_sdk","_core_sdk2"],"sources":["../src/index.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\nexport * from './components/ExtensionProvider/ExtensionProvider';\nexport * from './components/ExtensionProvider/types';\nexport * from './components/ExtensionProvider2/ExtensionProvider2';\nexport * from './components/ExtensionProviderBase/ExtensionProviderBase';\nexport * from './components/ExtensionProvider40/ExtensionProvider40';\nexport * from './components/ExtensionConnector/types';\nexport * from './sdk/core_sdk_40';\nexport * from './sdk/core_sdk';\nexport * from './sdk/core_sdk2';\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;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;AACA,IAAAM,mBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,mBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,mBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,mBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,sBAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,sBAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,sBAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAG,sBAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,mBAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,mBAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,mBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAI,mBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,OAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,OAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAK,OAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,UAAA,GAAAd,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAY,UAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAU,UAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAM,UAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,SAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,SAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,SAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAO,SAAA,CAAAX,GAAA;IAAA;EAAA;AAAA;AACA,IAAAY,UAAA,GAAAhB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAc,UAAA,EAAAb,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAY,UAAA,CAAAZ,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAQ,UAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk.js","names":["_core_sdk_","require","registerCoreSDK","exports","registerCore40SDK","unregisterCoreSDK","unregisterCore40SDK","getCoreSDK","getCore40SDK"],"sources":["../../src/sdk/core_sdk.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 {\n getCore40SDK,\n registerCore40SDK,\n unregisterCore40SDK,\n} from './core_sdk_40';\n\n/**\n * Register the core SDK. The ExtensionProvider will automatically\n * call this when connection with the host succeeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n * @deprecated use registerCore40SDK instead\n */\nexport const registerCoreSDK = registerCore40SDK;\n\n/**\n * Unregister the core SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n * @deprecated use unregisterCore40SDK instead\n */\nexport const unregisterCoreSDK = unregisterCore40SDK;\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * @deprecated use getCore40SDK instead\n */\nexport const getCoreSDK = getCore40SDK;\n"],"mappings":";;;;;;AA0BA,IAAAA,UAAA,GAAAC,OAAA;AAaO,IAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAGE,4BAAiB;AAQzC,IAAMC,iBAAiB,GAAAF,OAAA,CAAAE,iBAAA,GAAGC,8BAAmB;AAM7C,IAAMC,UAAU,GAAAJ,OAAA,CAAAI,UAAA,GAAGC,uBAAY"}
1
+ {"version":3,"file":"core_sdk.js","names":["_core_sdk_","require","registerCoreSDK","exports","registerCore40SDK","unregisterCoreSDK","unregisterCore40SDK","getCoreSDK","getCore40SDK"],"sources":["../../src/sdk/core_sdk.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 {\n getCore40SDK,\n registerCore40SDK,\n unregisterCore40SDK,\n} from './core_sdk_40';\n\n/**\n * Register the core SDK. The ExtensionProvider will automatically\n * call this when connection with the host succeeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n * @deprecated use registerCore40SDK instead\n */\nexport const registerCoreSDK = registerCore40SDK;\n\n/**\n * Unregister the core SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n * @deprecated use unregisterCore40SDK instead\n */\nexport const unregisterCoreSDK = unregisterCore40SDK;\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * @deprecated use getCore40SDK instead\n */\nexport const getCoreSDK = getCore40SDK;\n"],"mappings":";;;;;;AA0BA,IAAAA,UAAA,GAAAC,OAAA;AAaO,IAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAGE,4BAAiB;AAQzC,IAAMC,iBAAiB,GAAAF,OAAA,CAAAE,iBAAA,GAAGC,8BAAmB;AAM7C,IAAMC,UAAU,GAAAJ,OAAA,CAAAI,UAAA,GAAGC,uBAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk2.js","names":["registered","_coreSdk","registerCoreSDK2","coreSdk","Error","unregisterCoreSDK2","undefined","getCoreSDK2"],"sources":["../../src/sdk/core_sdk2.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\nlet registered = false;\nlet _coreSdk: any;\n\n/**\n * Register the SDK. The ExtensionProvider will automatically\n * call this when connection is first requested.\n * @param coreSDK core sdk\n */\nexport function registerCoreSDK2(coreSdk: any) {\n if (_coreSdk) {\n throw new Error('coreSDK can only be registered once');\n }\n _coreSdk = coreSdk;\n registered = true;\n}\n\n/**\n * Unregister theSDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport function unregisterCoreSDK2() {\n registered = false;\n _coreSdk = undefined;\n}\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * Note that provider does not have to provide a LookerSdk type. In this case\n * this method will return undefined.\n */\nexport function getCoreSDK2<T>(): T {\n if (!registered) {\n throw new Error('Looker host connection not established');\n }\n return _coreSdk;\n}\n"],"mappings":";;;;;;;;AA0BA,IAAIA,UAAU,GAAG,KAAK;AACtB,IAAIC,QAAa;AAOV,SAASC,gBAAgBA,CAACC,OAAY,EAAE;EAC7C,IAAIF,QAAQ,EAAE;IACZ,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,QAAQ,GAAGE,OAAO;EAClBH,UAAU,GAAG,IAAI;AACnB;AAOO,SAASK,kBAAkBA,CAAA,EAAG;EACnCL,UAAU,GAAG,KAAK;EAClBC,QAAQ,GAAGK,SAAS;AACtB;AAOO,SAASC,WAAWA,CAAA,EAAS;EAClC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAII,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,QAAQ;AACjB"}
1
+ {"version":3,"file":"core_sdk2.js","names":["registered","_coreSdk","registerCoreSDK2","coreSdk","Error","unregisterCoreSDK2","undefined","getCoreSDK2"],"sources":["../../src/sdk/core_sdk2.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\nlet registered = false;\nlet _coreSdk: any;\n\n/**\n * Register the SDK. The ExtensionProvider will automatically\n * call this when connection is first requested.\n * @param coreSDK core sdk\n */\nexport function registerCoreSDK2(coreSdk: any) {\n if (_coreSdk) {\n throw new Error('coreSDK can only be registered once');\n }\n _coreSdk = coreSdk;\n registered = true;\n}\n\n/**\n * Unregister theSDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport function unregisterCoreSDK2() {\n registered = false;\n _coreSdk = undefined;\n}\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * Note that provider does not have to provide a LookerSdk type. In this case\n * this method will return undefined.\n */\nexport function getCoreSDK2<T>(): T {\n if (!registered) {\n throw new Error('Looker host connection not established');\n }\n return _coreSdk;\n}\n"],"mappings":";;;;;;;;AA0BA,IAAIA,UAAU,GAAG,KAAK;AACtB,IAAIC,QAAa;AAOV,SAASC,gBAAgBA,CAACC,OAAY,EAAE;EAC7C,IAAIF,QAAQ,EAAE;IACZ,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,QAAQ,GAAGE,OAAO;EAClBH,UAAU,GAAG,IAAI;AACnB;AAOO,SAASK,kBAAkBA,CAAA,EAAG;EACnCL,UAAU,GAAG,KAAK;EAClBC,QAAQ,GAAGK,SAAS;AACtB;AAOO,SAASC,WAAWA,CAAA,EAAS;EAClC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAII,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,QAAQ;AACjB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk_40.js","names":["_core40SDK","registerCore40SDK","coreSDK","Error","exports","unregisterCore40SDK","undefined","getCore40SDK"],"sources":["../../src/sdk/core_sdk_40.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 { Looker40SDK } from '@looker/sdk';\n\nlet _core40SDK: Looker40SDK | undefined;\n\n/**\n * Register the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when connection with the host suceeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n */\nexport const registerCore40SDK = (coreSDK: Looker40SDK) => {\n if (_core40SDK) {\n throw new Error('coreSDK can only be registered once');\n }\n _core40SDK = coreSDK;\n};\n\n/**\n * Unregister the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport const unregisterCore40SDK = () => (_core40SDK = undefined);\n\n/**\n * Global access to the core40SDK. An error will be thrown if accessed prematurely.\n */\nexport const getCore40SDK = () => {\n if (!_core40SDK) {\n throw new Error('Looker host connection not established');\n }\n return _core40SDK;\n};\n"],"mappings":";;;;;;AA4BA,IAAIA,UAAmC;AAQhC,IAAMC,iBAAiB,GAAIC,OAAoB,IAAK;EACzD,IAAIF,UAAU,EAAE;IACd,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,UAAU,GAAGE,OAAO;AACtB,CAAC;AAACE,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAOK,IAAMI,mBAAmB,GAAGA,CAAA,KAAOL,UAAU,GAAGM,SAAU;AAACF,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAK3D,IAAME,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC;AAACI,OAAA,CAAAG,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"file":"core_sdk_40.js","names":["_core40SDK","registerCore40SDK","coreSDK","Error","exports","unregisterCore40SDK","undefined","getCore40SDK"],"sources":["../../src/sdk/core_sdk_40.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 { Looker40SDK } from '@looker/sdk';\n\nlet _core40SDK: Looker40SDK | undefined;\n\n/**\n * Register the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when connection with the host suceeds. An extension using\n * the ExtensionProvider should never call this.\n * @param coreSDK core sdk\n */\nexport const registerCore40SDK = (coreSDK: Looker40SDK) => {\n if (_core40SDK) {\n throw new Error('coreSDK can only be registered once');\n }\n _core40SDK = coreSDK;\n};\n\n/**\n * Unregister the core 4.0 SDK. The ExtensionProvider will automatically\n * call this when it is unloaded. An extension using\n * the ExtensionProvider should never call this.\n */\nexport const unregisterCore40SDK = () => (_core40SDK = undefined);\n\n/**\n * Global access to the core40SDK. An error will be thrown if accessed prematurely.\n */\nexport const getCore40SDK = () => {\n if (!_core40SDK) {\n throw new Error('Looker host connection not established');\n }\n return _core40SDK;\n};\n"],"mappings":";;;;;;AA4BA,IAAIA,UAAmC;AAQhC,IAAMC,iBAAiB,GAAIC,OAAoB,IAAK;EACzD,IAAIF,UAAU,EAAE;IACd,MAAM,IAAIG,KAAK,CAAC,qCAAqC,CAAC;EACxD;EACAH,UAAU,GAAGE,OAAO;AACtB,CAAC;AAACE,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAOK,IAAMI,mBAAmB,GAAGA,CAAA,KAAOL,UAAU,GAAGM,SAAU;AAACF,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAK3D,IAAME,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC;AAACI,OAAA,CAAAG,YAAA,GAAAA,YAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@looker/extension-sdk-react",
3
- "version": "26.6.1",
3
+ "version": "26.10.0",
4
4
  "description": "Looker Extension SDK for React",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -44,8 +44,8 @@
44
44
  "react-router-dom": "^5.3.4"
45
45
  },
46
46
  "dependencies": {
47
- "@looker/extension-sdk": "26.6.1",
48
- "@looker/sdk": "26.6.1",
47
+ "@looker/extension-sdk": "26.10.0",
48
+ "@looker/sdk": "26.10.0",
49
49
  "@looker/sdk-rtl": "21.6.5",
50
50
  "history": "^4.10.1",
51
51
  "lodash": "4.17.21"
@@ -59,5 +59,5 @@
59
59
  "Looker",
60
60
  "extension-sdk"
61
61
  ],
62
- "gitHead": "77fc3b4d67ce3c1f12a0a0670f3d04f4b07d9d63"
62
+ "gitHead": "f6ce5284341b7a0da6651f8f8122e69e96e28acc"
63
63
  }