@looker/extension-sdk-react 23.16.0 → 23.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +0 -5
  3. package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
  4. package/lib/components/ExtensionConnector/ExtensionConnector.js.map +1 -1
  5. package/lib/components/ExtensionProvider/ExtensionProvider.js +4 -9
  6. package/lib/components/ExtensionProvider/ExtensionProvider.js.map +1 -1
  7. package/lib/components/ExtensionProvider/types.d.ts +1 -3
  8. package/lib/components/ExtensionProvider/types.js.map +1 -1
  9. package/lib/components/ExtensionProvider2/ExtensionProvider2.js.map +1 -1
  10. package/lib/components/ExtensionProvider40/ExtensionProvider40.js.map +1 -1
  11. package/lib/components/ExtensionProviderBase/ExtensionProviderBase.js.map +1 -1
  12. package/lib/components/RouteChangeListener/RouteChangeListener.js.map +1 -1
  13. package/lib/components/utils/setup_close_popovers.js.map +1 -1
  14. package/lib/esm/components/ErrorMessage/ErrorMessage.js +3 -11
  15. package/lib/esm/components/ErrorMessage/ErrorMessage.js.map +1 -1
  16. package/lib/esm/components/ErrorMessage/index.js +2 -27
  17. package/lib/esm/components/ErrorMessage/index.js.map +1 -1
  18. package/lib/esm/components/ExtensionConnector/ExtensionConnector.js +29 -39
  19. package/lib/esm/components/ExtensionConnector/ExtensionConnector.js.map +1 -1
  20. package/lib/esm/components/ExtensionConnector/index.js +2 -27
  21. package/lib/esm/components/ExtensionConnector/index.js.map +1 -1
  22. package/lib/esm/components/ExtensionProvider/ExtensionProvider.js +13 -28
  23. package/lib/esm/components/ExtensionProvider/ExtensionProvider.js.map +1 -1
  24. package/lib/esm/components/ExtensionProvider/index.js +2 -27
  25. package/lib/esm/components/ExtensionProvider/index.js.map +1 -1
  26. package/lib/esm/components/ExtensionProvider/types.js.map +1 -1
  27. package/lib/esm/components/ExtensionProvider2/ExtensionProvider2.js +13 -23
  28. package/lib/esm/components/ExtensionProvider2/ExtensionProvider2.js.map +1 -1
  29. package/lib/esm/components/ExtensionProvider2/index.js +1 -16
  30. package/lib/esm/components/ExtensionProvider2/index.js.map +1 -1
  31. package/lib/esm/components/ExtensionProvider40/ExtensionProvider40.js +12 -22
  32. package/lib/esm/components/ExtensionProvider40/ExtensionProvider40.js.map +1 -1
  33. package/lib/esm/components/ExtensionProvider40/index.js +1 -16
  34. package/lib/esm/components/ExtensionProvider40/index.js.map +1 -1
  35. package/lib/esm/components/ExtensionProviderBase/ExtensionProviderBase.js +7 -17
  36. package/lib/esm/components/ExtensionProviderBase/ExtensionProviderBase.js.map +1 -1
  37. package/lib/esm/components/ExtensionProviderBase/index.js +1 -16
  38. package/lib/esm/components/ExtensionProviderBase/index.js.map +1 -1
  39. package/lib/esm/components/RouteChangeListener/RouteChangeListener.js +10 -20
  40. package/lib/esm/components/RouteChangeListener/RouteChangeListener.js.map +1 -1
  41. package/lib/esm/components/RouteChangeListener/index.js +2 -27
  42. package/lib/esm/components/RouteChangeListener/index.js.map +1 -1
  43. package/lib/esm/components/utils/get_initial_route_entries.js +2 -11
  44. package/lib/esm/components/utils/get_initial_route_entries.js.map +1 -1
  45. package/lib/esm/components/utils/setup_close_popovers.js +1 -8
  46. package/lib/esm/components/utils/setup_close_popovers.js.map +1 -1
  47. package/lib/esm/index.js +9 -115
  48. package/lib/esm/index.js.map +1 -1
  49. package/lib/esm/sdk/core_sdk.js +4 -13
  50. package/lib/esm/sdk/core_sdk.js.map +1 -1
  51. package/lib/esm/sdk/core_sdk2.js +3 -11
  52. package/lib/esm/sdk/core_sdk2.js.map +1 -1
  53. package/lib/esm/sdk/core_sdk_40.js +3 -12
  54. package/lib/esm/sdk/core_sdk_40.js.map +1 -1
  55. package/lib/index.d.ts +0 -1
  56. package/lib/index.js +1 -12
  57. package/lib/index.js.map +1 -1
  58. package/lib/sdk/core_sdk.d.ts +2 -2
  59. package/lib/sdk/core_sdk.js +4 -4
  60. package/lib/sdk/core_sdk.js.map +1 -1
  61. package/package.json +4 -4
  62. package/lib/esm/sdk/core_sdk_31.js +0 -24
  63. package/lib/esm/sdk/core_sdk_31.js.map +0 -1
  64. package/lib/sdk/core_sdk_31.d.ts +0 -4
  65. package/lib/sdk/core_sdk_31.js +0 -24
  66. package/lib/sdk/core_sdk_31.js.map +0 -1
@@ -1 +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_2","_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_31'\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;IA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IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAS,UAAA,CAAAb,GAAA;IAAA;EAAA;AAAA"}
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,14 +1,5 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.unregisterCoreSDK = exports.registerCoreSDK = exports.getCoreSDK = void 0;
7
- var _core_sdk_ = require("./core_sdk_31");
8
- var registerCoreSDK = _core_sdk_.registerCore31SDK;
9
- exports.registerCoreSDK = registerCoreSDK;
10
- var unregisterCoreSDK = _core_sdk_.unregisterCore31SDK;
11
- exports.unregisterCoreSDK = unregisterCoreSDK;
12
- var getCoreSDK = _core_sdk_.getCore31SDK;
13
- exports.getCoreSDK = getCoreSDK;
1
+ import { registerCore40SDK, unregisterCore40SDK, getCore40SDK } from './core_sdk_40';
2
+ export var registerCoreSDK = registerCore40SDK;
3
+ export var unregisterCoreSDK = unregisterCore40SDK;
4
+ export var getCoreSDK = getCore40SDK;
14
5
  //# sourceMappingURL=core_sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk.js","names":["_core_sdk_","require","registerCoreSDK","registerCore31SDK","exports","unregisterCoreSDK","unregisterCore31SDK","getCoreSDK","getCore31SDK"],"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 registerCore31SDK,\n unregisterCore31SDK,\n getCore31SDK,\n} from './core_sdk_31'\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 registerCore31SDK or registerCore40SDK instead\n */\nexport const registerCoreSDK = registerCore31SDK\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 unregisterCore31SDK or unregisterCore40SDK instead\n */\nexport const unregisterCoreSDK = unregisterCore31SDK\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * @deprecated use getCore31SDK or getCore40SDK instead\n */\nexport const getCoreSDK = getCore31SDK\n"],"mappings":";;;;;;AA0BA,IAAAA,UAAA,GAAAC,OAAA;AAaO,IAAMC,eAAe,GAAGC,4BAAiB;AAAAC,OAAA,CAAAF,eAAA,GAAAA,eAAA;AAQzC,IAAMG,iBAAiB,GAAGC,8BAAmB;AAAAF,OAAA,CAAAC,iBAAA,GAAAA,iBAAA;AAM7C,IAAME,UAAU,GAAGC,uBAAY;AAAAJ,OAAA,CAAAG,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"file":"core_sdk.js","names":["registerCore40SDK","unregisterCore40SDK","getCore40SDK","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 registerCore40SDK,\n unregisterCore40SDK,\n getCore40SDK,\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,iBAAiB,EACjBC,mBAAmB,EACnBC,YAAY,QACP,eAAe;AAStB,OAAO,IAAMC,eAAe,GAAGH,iBAAiB;AAQhD,OAAO,IAAMI,iBAAiB,GAAGH,mBAAmB;AAMpD,OAAO,IAAMI,UAAU,GAAGH,YAAY"}
@@ -1,25 +1,17 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getCoreSDK2 = getCoreSDK2;
7
- exports.registerCoreSDK2 = registerCoreSDK2;
8
- exports.unregisterCoreSDK2 = unregisterCoreSDK2;
9
1
  var registered = false;
10
2
  var _coreSdk;
11
- function registerCoreSDK2(coreSdk) {
3
+ export function registerCoreSDK2(coreSdk) {
12
4
  if (_coreSdk) {
13
5
  throw new Error('coreSDK can only be registered once');
14
6
  }
15
7
  _coreSdk = coreSdk;
16
8
  registered = true;
17
9
  }
18
- function unregisterCoreSDK2() {
10
+ export function unregisterCoreSDK2() {
19
11
  registered = false;
20
12
  _coreSdk = undefined;
21
13
  }
22
- function getCoreSDK2() {
14
+ export function getCoreSDK2() {
23
15
  if (!registered) {
24
16
  throw new Error('Looker host connection not established');
25
17
  }
@@ -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;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,24 +1,15 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.unregisterCore40SDK = exports.registerCore40SDK = exports.getCore40SDK = void 0;
7
1
  var _core40SDK;
8
- var registerCore40SDK = coreSDK => {
2
+ export var registerCore40SDK = coreSDK => {
9
3
  if (_core40SDK) {
10
4
  throw new Error('coreSDK can only be registered onces');
11
5
  }
12
6
  _core40SDK = coreSDK;
13
7
  };
14
- exports.registerCore40SDK = registerCore40SDK;
15
- var unregisterCore40SDK = () => _core40SDK = undefined;
16
- exports.unregisterCore40SDK = unregisterCore40SDK;
17
- var getCore40SDK = () => {
8
+ export var unregisterCore40SDK = () => _core40SDK = undefined;
9
+ export var getCore40SDK = () => {
18
10
  if (!_core40SDK) {
19
11
  throw new Error('Looker host connection not established');
20
12
  }
21
13
  return _core40SDK;
22
14
  };
23
- exports.getCore40SDK = getCore40SDK;
24
15
  //# sourceMappingURL=core_sdk_40.js.map
@@ -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 onces')\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,sCAAsC,CAAC;EACzD;EACAH,UAAU,GAAGE,OAAO;AACtB,CAAC;AAAAE,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAOM,IAAMI,mBAAmB,GAAGA,CAAA,KAAOL,UAAU,GAAGM,SAAU;AAAAF,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAK1D,IAAME,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC;AAAAI,OAAA,CAAAG,YAAA,GAAAA,YAAA"}
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 onces')\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,sCAAsC,CAAC;EACzD;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"}
package/lib/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export * from './components/ExtensionProvider2/ExtensionProvider2';
4
4
  export * from './components/ExtensionProviderBase/ExtensionProviderBase';
5
5
  export * from './components/ExtensionProvider40/ExtensionProvider40';
6
6
  export * from './components/ExtensionConnector/types';
7
- export * from './sdk/core_sdk_31';
8
7
  export * from './sdk/core_sdk_40';
9
8
  export * from './sdk/core_sdk';
10
9
  export * from './sdk/core_sdk2';
package/lib/index.js CHANGED
@@ -69,7 +69,7 @@ Object.keys(_types2).forEach(function (key) {
69
69
  }
70
70
  });
71
71
  });
72
- var _core_sdk_ = require("./sdk/core_sdk_31");
72
+ var _core_sdk_ = require("./sdk/core_sdk_40");
73
73
  Object.keys(_core_sdk_).forEach(function (key) {
74
74
  if (key === "default" || key === "__esModule") return;
75
75
  if (key in exports && exports[key] === _core_sdk_[key]) return;
@@ -80,17 +80,6 @@ Object.keys(_core_sdk_).forEach(function (key) {
80
80
  }
81
81
  });
82
82
  });
83
- var _core_sdk_2 = require("./sdk/core_sdk_40");
84
- Object.keys(_core_sdk_2).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _core_sdk_2[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function get() {
90
- return _core_sdk_2[key];
91
- }
92
- });
93
- });
94
83
  var _core_sdk = require("./sdk/core_sdk");
95
84
  Object.keys(_core_sdk).forEach(function (key) {
96
85
  if (key === "default" || key === "__esModule") return;
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_2","_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_31'\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;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AAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAQ,SAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA;AACA,IAAAa,UAAA,GAAAjB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAe,UAAA,EAAAd,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAa,UAAA,CAAAb,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAS,UAAA,CAAAb,GAAA;IAAA;EAAA;AAAA"}
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,OAA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registerCoreSDK: (coreSDK: import("@looker/sdk").Looker40SDK) => void;
2
2
  export declare const unregisterCoreSDK: () => undefined;
3
- export declare const getCoreSDK: () => import("@looker/sdk").Looker31SDK;
3
+ export declare const getCoreSDK: () => import("@looker/sdk").Looker40SDK;
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.unregisterCoreSDK = exports.registerCoreSDK = exports.getCoreSDK = void 0;
7
- var _core_sdk_ = require("./core_sdk_31");
8
- var registerCoreSDK = _core_sdk_.registerCore31SDK;
7
+ var _core_sdk_ = require("./core_sdk_40");
8
+ var registerCoreSDK = _core_sdk_.registerCore40SDK;
9
9
  exports.registerCoreSDK = registerCoreSDK;
10
- var unregisterCoreSDK = _core_sdk_.unregisterCore31SDK;
10
+ var unregisterCoreSDK = _core_sdk_.unregisterCore40SDK;
11
11
  exports.unregisterCoreSDK = unregisterCoreSDK;
12
- var getCoreSDK = _core_sdk_.getCore31SDK;
12
+ var getCoreSDK = _core_sdk_.getCore40SDK;
13
13
  exports.getCoreSDK = getCoreSDK;
14
14
  //# sourceMappingURL=core_sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core_sdk.js","names":["_core_sdk_","require","registerCoreSDK","registerCore31SDK","exports","unregisterCoreSDK","unregisterCore31SDK","getCoreSDK","getCore31SDK"],"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 registerCore31SDK,\n unregisterCore31SDK,\n getCore31SDK,\n} from './core_sdk_31'\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 registerCore31SDK or registerCore40SDK instead\n */\nexport const registerCoreSDK = registerCore31SDK\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 unregisterCore31SDK or unregisterCore40SDK instead\n */\nexport const unregisterCoreSDK = unregisterCore31SDK\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n * @deprecated use getCore31SDK or getCore40SDK instead\n */\nexport const getCoreSDK = getCore31SDK\n"],"mappings":";;;;;;AA0BA,IAAAA,UAAA,GAAAC,OAAA;AAaO,IAAMC,eAAe,GAAGC,4BAAiB;AAAAC,OAAA,CAAAF,eAAA,GAAAA,eAAA;AAQzC,IAAMG,iBAAiB,GAAGC,8BAAmB;AAAAF,OAAA,CAAAC,iBAAA,GAAAA,iBAAA;AAM7C,IAAME,UAAU,GAAGC,uBAAY;AAAAJ,OAAA,CAAAG,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"file":"core_sdk.js","names":["_core_sdk_","require","registerCoreSDK","registerCore40SDK","exports","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 registerCore40SDK,\n unregisterCore40SDK,\n getCore40SDK,\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,GAAGC,4BAAiB;AAAAC,OAAA,CAAAF,eAAA,GAAAA,eAAA;AAQzC,IAAMG,iBAAiB,GAAGC,8BAAmB;AAAAF,OAAA,CAAAC,iBAAA,GAAAA,iBAAA;AAM7C,IAAME,UAAU,GAAGC,uBAAY;AAAAJ,OAAA,CAAAG,UAAA,GAAAA,UAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@looker/extension-sdk-react",
3
- "version": "23.16.0",
3
+ "version": "23.20.0",
4
4
  "description": "Looker Extension SDK for React",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -43,8 +43,8 @@
43
43
  "react-router-dom": "^5.3.4"
44
44
  },
45
45
  "dependencies": {
46
- "@looker/extension-sdk": "^23.16.0",
47
- "@looker/sdk": "^23.16.0",
46
+ "@looker/extension-sdk": "^23.20.0",
47
+ "@looker/sdk": "^23.20.0",
48
48
  "@looker/sdk-rtl": "^21.6.1",
49
49
  "history": "^4.9.0",
50
50
  "lodash": "^4.17.20"
@@ -58,5 +58,5 @@
58
58
  "Looker",
59
59
  "extension-sdk"
60
60
  ],
61
- "gitHead": "0cac0ae0947fe5ac7a902f853ab236dd19c8e896"
61
+ "gitHead": "6ddfe7d939143e194e58cdba4e58e016dd208105"
62
62
  }
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.unregisterCore31SDK = exports.registerCore31SDK = exports.getCore31SDK = void 0;
7
- var _core31SDK;
8
- var registerCore31SDK = coreSDK => {
9
- if (_core31SDK) {
10
- throw new Error('coreSDK can only be registered once');
11
- }
12
- _core31SDK = coreSDK;
13
- };
14
- exports.registerCore31SDK = registerCore31SDK;
15
- var unregisterCore31SDK = () => _core31SDK = undefined;
16
- exports.unregisterCore31SDK = unregisterCore31SDK;
17
- var getCore31SDK = () => {
18
- if (!_core31SDK) {
19
- throw new Error('Looker host connection not established');
20
- }
21
- return _core31SDK;
22
- };
23
- exports.getCore31SDK = getCore31SDK;
24
- //# sourceMappingURL=core_sdk_31.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core_sdk_31.js","names":["_core31SDK","registerCore31SDK","coreSDK","Error","exports","unregisterCore31SDK","undefined","getCore31SDK"],"sources":["../../../src/sdk/core_sdk_31.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 { Looker31SDK } from '@looker/sdk'\n\nlet _core31SDK: Looker31SDK | undefined\n\n/**\n * Register the core 3.1 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 registerCore31SDK = (coreSDK: Looker31SDK) => {\n if (_core31SDK) {\n throw new Error('coreSDK can only be registered once')\n }\n _core31SDK = coreSDK\n}\n\n/**\n * Unregister the core 3.1 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 unregisterCore31SDK = () => (_core31SDK = undefined)\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n */\nexport const getCore31SDK = () => {\n if (!_core31SDK) {\n throw new Error('Looker host connection not established')\n }\n return _core31SDK\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;AAAAE,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAOM,IAAMI,mBAAmB,GAAGA,CAAA,KAAOL,UAAU,GAAGM,SAAU;AAAAF,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAK1D,IAAME,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC;AAAAI,OAAA,CAAAG,YAAA,GAAAA,YAAA"}
@@ -1,4 +0,0 @@
1
- import type { Looker31SDK } from '@looker/sdk';
2
- export declare const registerCore31SDK: (coreSDK: Looker31SDK) => void;
3
- export declare const unregisterCore31SDK: () => undefined;
4
- export declare const getCore31SDK: () => Looker31SDK;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.unregisterCore31SDK = exports.registerCore31SDK = exports.getCore31SDK = void 0;
7
- var _core31SDK;
8
- var registerCore31SDK = coreSDK => {
9
- if (_core31SDK) {
10
- throw new Error('coreSDK can only be registered once');
11
- }
12
- _core31SDK = coreSDK;
13
- };
14
- exports.registerCore31SDK = registerCore31SDK;
15
- var unregisterCore31SDK = () => _core31SDK = undefined;
16
- exports.unregisterCore31SDK = unregisterCore31SDK;
17
- var getCore31SDK = () => {
18
- if (!_core31SDK) {
19
- throw new Error('Looker host connection not established');
20
- }
21
- return _core31SDK;
22
- };
23
- exports.getCore31SDK = getCore31SDK;
24
- //# sourceMappingURL=core_sdk_31.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core_sdk_31.js","names":["_core31SDK","registerCore31SDK","coreSDK","Error","exports","unregisterCore31SDK","undefined","getCore31SDK"],"sources":["../../src/sdk/core_sdk_31.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 { Looker31SDK } from '@looker/sdk'\n\nlet _core31SDK: Looker31SDK | undefined\n\n/**\n * Register the core 3.1 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 registerCore31SDK = (coreSDK: Looker31SDK) => {\n if (_core31SDK) {\n throw new Error('coreSDK can only be registered once')\n }\n _core31SDK = coreSDK\n}\n\n/**\n * Unregister the core 3.1 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 unregisterCore31SDK = () => (_core31SDK = undefined)\n\n/**\n * Global access to the coreSDK. An error will be thrown if accessed prematurely.\n */\nexport const getCore31SDK = () => {\n if (!_core31SDK) {\n throw new Error('Looker host connection not established')\n }\n return _core31SDK\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;AAAAE,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAOM,IAAMI,mBAAmB,GAAGA,CAAA,KAAOL,UAAU,GAAGM,SAAU;AAAAF,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAK1D,IAAME,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAI,CAACP,UAAU,EAAE;IACf,MAAM,IAAIG,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,OAAOH,UAAU;AACnB,CAAC;AAAAI,OAAA,CAAAG,YAAA,GAAAA,YAAA"}