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

@rocket.chat/ui-kit

Package Overview
Dependencies
Maintainers
9
Versions
727
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rocket.chat/ui-kit - npm Package Compare versions

Comparing version 0.2.0-ui-kit.82 to 0.2.0-ui-kit.84

2

dist/index.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("RocketChatUiKit",[],t):"object"==typeof exports?exports.RocketChatUiKit=t():e.RocketChatUiKit=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r,o,E,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=this&&this.__assign||function(){return(T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.version="DEVELOPMENT",function(e){e.IMAGE="image",e.BUTTON="button",e.STATIC_SELECT="static_select",e.MULTI_STATIC_SELECT="multi_static_select",e.CONVERSATION_SELECT="conversations_select",e.CHANNEL_SELECT="channels_select",e.USER_SELECT="users_select",e.OVERFLOW="overflow",e.DATEPICKER="datepicker",e.PLAIN_TEXT_INPUT="plain_text_input",e.SECTION="section",e.DIVIDER="divider",e.ACTIONS="actions",e.CONTEXT="context",e.FIELDS="fields",e.INPUT="input",e.TEXT="text",e.MARKDOWN="mrkdwn"}(o=t.ELEMENT_TYPES||(t.ELEMENT_TYPES={})),function(e){e[e.BLOCK=0]="BLOCK",e[e.SECTION=1]="SECTION",e[e.ACTION=2]="ACTION",e[e.FORM=3]="FORM",e[e.CONTEXT=4]="CONTEXT"}(E=t.BLOCK_CONTEXT||(t.BLOCK_CONTEXT={}));var u=function(){this.renderAccessories=t.createRenderElement([o.IMAGE,o.BUTTON,o.STATIC_SELECT,o.MULTI_STATIC_SELECT,o.CONVERSATION_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.USER_SELECT,o.DATEPICKER,o.OVERFLOW]),this.renderActions=t.createRenderElement([o.BUTTON,o.STATIC_SELECT,o.MULTI_STATIC_SELECT,o.CONVERSATION_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.USER_SELECT,o.DATEPICKER]),this.renderContext=t.createRenderElement([o.IMAGE,o.TEXT,o.MARKDOWN])};t.UiKitParserMessage=u;var s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderInputs=t.createRenderElement([o.STATIC_SELECT,o.PLAIN_TEXT_INPUT,o.MULTI_STATIC_SELECT,o.CONVERSATION_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.USER_SELECT,o.DATEPICKER]),n}return i(n,e),n}(u);t.UiKitParserModal=s,t.uiKitGeneric=function(e){return function(t){return function(n){var r=n.blocks;return(void 0===r?[]:r).filter((function(t){var n=t.type;return!e||e.includes(n)})).map((function(e,n){var r=e.type,o=c(e,["type"]);return t[r]?t[r](o,E.BLOCK,n):r}))}}};t.createRenderElement=function(e){return function(t,n,r,E){return e&&!e.includes(t.type)?null:function(e,t,n,r){var E=e.type,i=c(e,["type"]);switch(E){case o.OVERFLOW:return n.overflow(T({type:E},i),t,r);case o.MARKDOWN:case o.TEXT:return n.text(T({type:E},i),t,r);case o.BUTTON:return n.button(i,t,r);case o.IMAGE:return n.image(i,t,r);case o.STATIC_SELECT:return n.staticSelect(i,t,r);case o.MULTI_STATIC_SELECT:return n.multiStaticSelect(i,t,r);case o.DATEPICKER:return n.datePicker(i,t,r);case o.PLAIN_TEXT_INPUT:return n.plainInput(i,t,r);case o.CONVERSATION_SELECT:case o.CHANNEL_SELECT:case o.USER_SELECT:return n.selectInput(T({type:E},i),t,r)}}(t,n,r,E)}},t.uiKitMessage=t.uiKitGeneric([o.SECTION,o.DIVIDER,o.IMAGE,o.ACTIONS,o.CONTEXT]),t.uiKitModal=t.uiKitGeneric([o.SECTION,o.DIVIDER,o.IMAGE,o.ACTIONS,o.CONTEXT,o.INPUT])}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("RocketChatUiKit",[],t):"object"==typeof exports?exports.RocketChatUiKit=t():e.RocketChatUiKit=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r,o,i,E=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=this&&this.__assign||function(){return(T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.version="DEVELOPMENT",function(e){e.IMAGE="image",e.BUTTON="button",e.STATIC_SELECT="static_select",e.MULTI_STATIC_SELECT="multi_static_select",e.CONVERSATION_SELECT="conversations_select",e.CHANNEL_SELECT="channels_select",e.USER_SELECT="users_select",e.OVERFLOW="overflow",e.DATEPICKER="datepicker",e.PLAIN_TEXT_INPUT="plain_text_input",e.SECTION="section",e.DIVIDER="divider",e.ACTIONS="actions",e.CONTEXT="context",e.FIELDS="fields",e.INPUT="input",e.TEXT="plain_text",e.MARKDOWN="mrkdwn"}(o=t.ELEMENT_TYPES||(t.ELEMENT_TYPES={})),function(e){e[e.BLOCK=0]="BLOCK",e[e.SECTION=1]="SECTION",e[e.ACTION=2]="ACTION",e[e.FORM=3]="FORM",e[e.CONTEXT=4]="CONTEXT"}(i=t.BLOCK_CONTEXT||(t.BLOCK_CONTEXT={}));var u=function(){this.renderAccessories=t.createRenderElement([o.BUTTON,o.IMAGE,o.MULTI_STATIC_SELECT,o.STATIC_SELECT,o.CONVERSATION_SELECT,o.USER_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.DATEPICKER,o.OVERFLOW]),this.renderActions=t.createRenderElement([o.BUTTON,o.STATIC_SELECT,o.MULTI_STATIC_SELECT,o.CONVERSATION_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.USER_SELECT,o.DATEPICKER]),this.renderContext=t.createRenderElement([o.IMAGE,o.TEXT,o.MARKDOWN])};t.UiKitParserMessage=u;var s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderInputs=t.createRenderElement([o.STATIC_SELECT,o.PLAIN_TEXT_INPUT,o.MULTI_STATIC_SELECT,o.CONVERSATION_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.USER_SELECT,o.DATEPICKER]),n}return E(n,e),n}(u);t.UiKitParserModal=s,t.uiKitGeneric=function(e){return function(t){return function(n){var r=n.blocks;return(void 0===r?[]:r).filter((function(t){var n=t.type;return!e||e.includes(n)})).map((function(e,n){var r=e.type,o=c(e,["type"]);return t[r]?t[r](o,i.BLOCK,n):r}))}}};t.createRenderElement=function(e){return function(t,n,r,i){return e&&!e.includes(t.type)?null:function(e,t,n,r){var i=e.type,E=c(e,["type"]);switch(i){case o.OVERFLOW:return n.overflow(T({type:i},E),t,r);case o.MARKDOWN:case o.TEXT:return n.text(T({type:i},E),t,r);case o.BUTTON:return n.button(E,t,r);case o.IMAGE:return n.image(E,t,r);case o.STATIC_SELECT:return n.staticSelect(E,t,r);case o.MULTI_STATIC_SELECT:return n.multiStaticSelect(E,t,r);case o.DATEPICKER:return n.datePicker(E,t,r);case o.PLAIN_TEXT_INPUT:return n.plainInput(E,t,r);case o.CONVERSATION_SELECT:case o.CHANNEL_SELECT:case o.USER_SELECT:return n.selectInput(T({type:i},E),t,r)}}(t,n,r,i)}},t.uiKitText=t.uiKitGeneric([o.TEXT,o.MARKDOWN]),t.uiKitMessage=t.uiKitGeneric([o.DIVIDER,o.SECTION,o.IMAGE,o.ACTIONS,o.CONTEXT]),t.uiKitModal=t.uiKitGeneric([o.SECTION,o.DIVIDER,o.IMAGE,o.ACTIONS,o.CONTEXT,o.INPUT])}])}));
//# sourceMappingURL=index.js.map
{
"name": "@rocket.chat/ui-kit",
"version": "0.2.0-ui-kit.82+560e00b",
"version": "0.2.0-ui-kit.84+2b83b0e",
"description": "Package Fuselage ui kit ",

@@ -41,3 +41,3 @@ "author": "Guilherme Gazzo <guilhermegazzo@gmail.com>",

},
"gitHead": "560e00b67dd85dcaaa19be6755d4921b85d6f569"
"gitHead": "2b83b0ee9e3275d12446d64228034743bdbc6e32"
}
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