Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datadog/ui-extensions-react

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/ui-extensions-react - npm Package Compare versions

Comparing version 0.27.2-canary.108.78cbbdb.0 to 0.27.2-canary.109.7a7d318.0

dist/use-template-variable.d.ts

2

dist/index.d.ts
export * from './use-context';
export * from './use-custom-widget-options';
export * from './use-template-variable';

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@datadog/ui-extensions-sdk"),require("react")):"function"==typeof define&&define.amd?define(["@datadog/ui-extensions-sdk","react"],t):"object"==typeof exports?exports.DD_REACT=t(require("@datadog/ui-extensions-sdk"),require("react")):e.DD_REACT=t(e["@datadog/ui-extensions-sdk"],e.react)}(self,(function(e,t){return function(){"use strict";var n={920:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(54),t),o(n(266),t)},54:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useContext=void 0;var u=r(n(669)),a=r(n(156));t.useContext=function(e){var t=function(e){var t=a.useState({type:"initializing"}),n=t[0],i=t[1];return a.useEffect((function(){var t=!1;e.getContext().then((function(e){t||i({type:"initialized",context:e})})).catch((function(e){t||i({type:"handshake failure",error:e})}));var n=e.events.on(u.EventType.CONTEXT_CHANGE,(function(e){i({type:"initialized",context:e})}));return function(){t=!0,n()}}),[e]),n}(e);switch(t.type){case"handshake failure":case"initializing":return;case"initialized":return t.context}}},266:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useCustomWidgetOptions=void 0;var u=r(n(669)),a=r(n(156)),c=r(n(54));t.useCustomWidgetOptions=function(e,t){var n,i=c.useContext(e),o=a.useState(null!=t?t:{}),r=o[0],f=o[1];return a.useEffect((function(){var e;null!=(null===(e=null==i?void 0:i.widget)||void 0===e?void 0:e.definition.options)&&f(i.widget.definition.options)}),[null===(n=null==i?void 0:i.widget)||void 0===n?void 0:n.definition.options]),a.useEffect((function(){var t=e.events.on(u.EventType.DASHBOARD_CUSTOM_WIDGET_OPTIONS_CHANGE,f);return function(){t()}}),[e.events]),r}},669:function(t){t.exports=e},156:function(e){e.exports=t}},i={};return function e(t){var o=i[t];if(void 0!==o)return o.exports;var r=i[t]={exports:{}};return n[t].call(r.exports,r,r.exports,e),r.exports}(920)}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@datadog/ui-extensions-sdk"),require("react")):"function"==typeof define&&define.amd?define(["@datadog/ui-extensions-sdk","react"],t):"object"==typeof exports?exports.DD_REACT=t(require("@datadog/ui-extensions-sdk"),require("react")):e.DD_REACT=t(e["@datadog/ui-extensions-sdk"],e.react)}(self,(function(e,t){return function(){"use strict";var n={920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(54),t),i(n(657),t)},54:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useContext=void 0;var u=o(n(669)),a=o(n(156));t.useContext=function(e){var t=function(e){var t=a.useState({type:"initializing"}),n=t[0],r=t[1];return a.useEffect((function(){var t=!1;e.getContext().then((function(e){t||r({type:"initialized",context:e})})).catch((function(e){t||r({type:"handshake failure",error:e})}));var n=e.events.on(u.EventType.CONTEXT_CHANGE,(function(e){r({type:"initialized",context:e})}));return function(){t=!0,n()}}),[e]),n}(e);switch(t.type){case"handshake failure":case"initializing":return;case"initialized":return t.context}}},657:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useTemplateVariable=void 0;var u=o(n(156)),a=o(n(54));t.useTemplateVariable=function(e,t){var n,r=a.useContext(e),i=u.useMemo((function(){var e,n=null===(e=null==r?void 0:r.dashboard)||void 0===e?void 0:e.templateVars.find((function(e){return e.name===t}));return null==n?void 0:n.value}),[null===(n=null==r?void 0:r.dashboard)||void 0===n?void 0:n.templateVars,t]);return i}},669:function(t){t.exports=e},156:function(e){e.exports=t}},r={};return function e(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,e),o.exports}(920)}()}));
//# sourceMappingURL=ui-extensions-react.min.js.map
{
"name": "@datadog/ui-extensions-react",
"version": "0.27.2-canary.108.78cbbdb.0",
"version": "0.27.2-canary.109.7a7d318.0",
"description": "Datadog UI Extensions - React helpers",

@@ -44,3 +44,3 @@ "homepage": "https://github.com/DataDog/apps/tree/master/packages/ui-extensions-react",

"typedocMain": "src/index.ts",
"gitHead": "78cbbdb9b8ea631d2222fe63c9b84f4336019977"
"gitHead": "7a7d318b980253b494238280707dd93cbd80cbae"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc