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.30.0 to 0.30.1-canary.120.aeedb86.0

dist/use-custom-widget-option-boolean.d.ts

3

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

2

dist/ui-extensions-react.min.js

@@ -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]}),r=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}),r(n(54),t),r(n(657),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]}),r=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)&&i(t,e,n);return r(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],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}}},657: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]}),r=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)&&i(t,e,n);return r(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,i=a.useContext(e),r=u.useState(),o=r[0],c=r[1];return u.useEffect((function(){var e,n,r=null!==(n=null===(e=null==i?void 0:i.dashboard)||void 0===e?void 0:e.templateVars)&&void 0!==n?n:[],o=function(e,t){var n=t.find((function(t){return t.name===e}));if(null!=(null==n?void 0:n.value))return n.value}(t,r);null!=o&&c(o)}),[null===(n=null==i?void 0:i.dashboard)||void 0===n?void 0:n.templateVars,t]),o}},669:function(t){t.exports=e},156:function(e){e.exports=t}},i={};return function e(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return n[t].call(o.exports,o,o.exports,e),o.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 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(692),t),o(n(712),t),o(n(119),t),o(n(657),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}}},712:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useCustomWidgetOptionBoolean=void 0;var i=n(692);t.useCustomWidgetOptionBoolean=function(e,t){return(0,i.useCustomWidgetOption)(e,t,(function(e){if("boolean"==typeof e)return e}))}},119:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useCustomWidgetOptionString=void 0;var i=n(692);t.useCustomWidgetOptionString=function(e,t){return(0,i.useCustomWidgetOption)(e,t,(function(e){if("string"==typeof e)return e}))}},692: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.useCustomWidgetOption=void 0;var u=r(n(156)),a=r(n(54));t.useCustomWidgetOption=function(e,t,n){var i,o=a.useContext(e),r=u.useState(),f=r[0],c=r[1];return u.useEffect((function(){var e,i;if(null!=o){var r=null===(i=null===(e=o.widget)||void 0===e?void 0:e.definition.options)||void 0===i?void 0:i[t];if(null!=r){var u=n(r);c(u)}else c(void 0)}}),[o,null===(i=null==o?void 0:o.widget)||void 0===i?void 0:i.definition.options,t,n]),f}},657: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.useTemplateVariable=void 0;var u=r(n(156)),a=r(n(54));t.useTemplateVariable=function(e,t){var n,i=a.useContext(e),o=u.useState(),r=o[0],f=o[1];return u.useEffect((function(){var e,n,o=null!==(n=null===(e=null==i?void 0:i.dashboard)||void 0===e?void 0:e.templateVars)&&void 0!==n?n:[],r=function(e,t){var n=t.find((function(t){return t.name===e}));if(null!=(null==n?void 0:n.value))return n.value}(t,o);null!=r&&f(r)}),[null===(n=null==i?void 0:i.dashboard)||void 0===n?void 0:n.templateVars,t]),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)}()}));
//# sourceMappingURL=ui-extensions-react.min.js.map
{
"name": "@datadog/ui-extensions-react",
"version": "0.30.0",
"version": "0.30.1-canary.120.aeedb86.0",
"description": "Datadog UI Extensions - React helpers",

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

},
"typedocMain": "src/index.ts"
"typedocMain": "src/index.ts",
"gitHead": "aeedb864193718fac167b4744d4620a61a4dd218"
}

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