New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cloudquery/plugin-config-ui-lib

Package Overview
Dependencies
Maintainers
0
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudquery/plugin-config-ui-lib - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

1

dist/index.d.ts

@@ -35,2 +35,3 @@ import { FormMessagePayload } from '@cloudquery/plugin-config-ui-connector';

initialValues: FormMessagePayload['init']['initialValues'] | undefined;
apiAuthorizationToken: string;
};

@@ -37,0 +38,0 @@

2

dist/index.js

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

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var n="object"==typeof exports?t(require("react")):t(e.react);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,(e=>(()=>{"use strict";var t={155:t=>{t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{useFormHeightChange:()=>s,useFormInit:()=>u,useFormSubmit:()=>c});var i=o(155);function s(e){const t=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var n,o,r;const i=new ResizeObserver((()=>{var n,o;e.sendMessage("height_changed",{height:null!==(o=null===(n=t.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==o?o:0})}));return i.observe(null!==(n=t.current)&&void 0!==n?n:document.body),e.sendMessage("height_changed",{height:null!==(r=null===(o=t.current)||void 0===o?void 0:o.offsetHeight)&&void 0!==r?r:0}),()=>{i.disconnect()}}),[e]),t}function u(e,t){const[n,o]=(0,i.useState)(!1),[r,s]=(0,i.useState)();return(0,i.useEffect)((()=>e.subscribeToMessage("init",(({initialValues:n})=>{var r;(null===(r=null==n?void 0:n.spec)||void 0===r?void 0:r.connection_string)&&s(n),o(!0),e.sendMessage("ready",{hideSubmitButton:t})}))),[]),{initialized:n,initialValues:r}}var a=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{a(o.next(e))}catch(e){i(e)}}function u(e){try{a(o.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,u)}a((o=o.apply(e,t||[])).next())}))};function c(e,t){(0,i.useEffect)((()=>t.subscribeToMessage("validate",(()=>a(this,void 0,void 0,(function*(){const{errors:n,values:o}=yield e();n?t.sendMessage("validation_failed",{errors:n}):t.sendMessage("validation_passed",{values:o})}))))),[e,t])}return r})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var n="object"==typeof exports?t(require("react")):t(e.react);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,(e=>(()=>{"use strict";var t={155:t=>{t.exports=e}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};o.r(i),o.d(i,{useFormHeightChange:()=>s,useFormInit:()=>a,useFormSubmit:()=>c});var r=o(155);function s(e){const t=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var n,o,i;const r=new ResizeObserver((()=>{var n,o;e.sendMessage("height_changed",{height:null!==(o=null===(n=t.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==o?o:0})}));return r.observe(null!==(n=t.current)&&void 0!==n?n:document.body),e.sendMessage("height_changed",{height:null!==(i=null===(o=t.current)||void 0===o?void 0:o.offsetHeight)&&void 0!==i?i:0}),()=>{r.disconnect()}}),[e]),t}function a(e,t){const[n,o]=(0,r.useState)(!1),[i,s]=(0,r.useState)(""),[a,u]=(0,r.useState)();return(0,r.useEffect)((()=>e.subscribeToMessageOnce("init",(({initialValues:n,apiAuthorizationToken:i})=>{var r;(null===(r=null==n?void 0:n.spec)||void 0===r?void 0:r.connection_string)&&u(n),o(!0),s(i),e.sendMessage("ready",{hideSubmitButton:t}),e.subscribeToMessage("api_authorization_token_changed",(({token:e})=>{s(e)}))}))),[]),{initialized:n,initialValues:a,apiAuthorizationToken:i}}var u=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{u(o.next(e))}catch(e){r(e)}}function a(e){try{u(o.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))};function c(e,t){(0,r.useEffect)((()=>t.subscribeToMessage("validate",(()=>u(this,void 0,void 0,(function*(){const{errors:n,values:o}=yield e();n?t.sendMessage("validation_failed",{errors:n}):t.sendMessage("validation_passed",{values:o})}))))),[e,t])}return i})()));
//# sourceMappingURL=index.js.map
{
"name": "@cloudquery/plugin-config-ui-lib",
"description": "Plugin configuration UI library for CloudQuery Cloud App",
"version": "0.0.3",
"version": "0.0.4",
"private": false,

@@ -43,3 +43,3 @@ "main": "./dist/index.js",

"peerDependencies": {
"@cloudquery/plugin-config-ui-connector": "^0.1.0",
"@cloudquery/plugin-config-ui-connector": "^0.1.2",
"react": "^18.3.1",

@@ -52,3 +52,3 @@ "react-dom": "^18.3.1"

"@babel/preset-typescript": "^7.24.7",
"@cloudquery/plugin-config-ui-connector": "^0.1.0",
"@cloudquery/plugin-config-ui-connector": "^0.1.2",
"@microsoft/api-extractor": "^7.47.0",

@@ -55,0 +55,0 @@ "@testing-library/jest-dom": "^6.4.6",

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