@rocket.chat/ui-kit
Advanced tools
Comparing version 0.2.0-dev.69 to 0.2.0-dev.72
@@ -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,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="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.IMAGE,o.BUTTON,o.STATIC_SELECT,o.MULTI_STATIC_SELECT,o.CONVERSATION_SELECT,o.CHANNEL_SELECT,o.USER_SELECT,o.USER_SELECT,o.DATEPICKER]),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){var n=e.type,r=c(e,["type"]);return t[n]?t[n](r,i.BLOCK,t):n}))}}};t.createRenderElement=function(e){return function(t,n,r){return e&&!e.includes(t.type)?null:function(e,t,n){var r=e.type,i=c(e,["type"]);switch(r){case o.MARKDOWN:case o.TEXT:return n.text(T({type:r},i),t);case o.BUTTON:return n.button(i,t);case o.IMAGE:return n.image(i,t);case o.STATIC_SELECT:return n.staticSelect(i,t);case o.MULTI_STATIC_SELECT:return n.multiStaticSelect(i,t);case o.DATEPICKER:return n.datePicker(i,t);case o.PLAIN_TEXT_INPUT:return n.plainInput(i,t);case o.CONVERSATION_SELECT:case o.CHANNEL_SELECT:case o.USER_SELECT:return n.selectInput(T({type:r},i),t)}}(t,n,r)}},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 i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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,i,o,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 i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}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.PLAIN_TEXT="plain_text",e.TEXT="text",e.MARKDOWN="mrkdwn"}(i=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"}(o=t.BLOCK_CONTEXT||(t.BLOCK_CONTEXT={}));var c=function(){};t.UiKitParserButtons=c;var a=function(){};t.UiKitParserText=a;var s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderAccessories=t.createRenderElement([i.BUTTON,i.IMAGE,i.MULTI_STATIC_SELECT,i.STATIC_SELECT,i.CONVERSATION_SELECT,i.USER_SELECT,i.CHANNEL_SELECT,i.USER_SELECT,i.DATEPICKER,i.OVERFLOW]),n.renderActions=t.createRenderElement([i.BUTTON,i.STATIC_SELECT,i.MULTI_STATIC_SELECT,i.CONVERSATION_SELECT,i.CHANNEL_SELECT,i.USER_SELECT,i.USER_SELECT,i.DATEPICKER]),n.renderContext=t.createRenderElement([i.IMAGE,i.TEXT,i.MARKDOWN]),n}return E(n,e),n}(a);t.UiKitParserMessage=s;var l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderInputs=t.createRenderElement([i.STATIC_SELECT,i.PLAIN_TEXT_INPUT,i.MULTI_STATIC_SELECT,i.CONVERSATION_SELECT,i.CHANNEL_SELECT,i.USER_SELECT,i.USER_SELECT,i.DATEPICKER]),n}return E(n,e),n}(s);t.UiKitParserModal=l,t.uiKitGeneric=function(e){return function(t){return function(n){return n.filter((function(t){var n=t.type;return!e||e.includes(n)})).map((function(e,n){var r=e.type,i=u(e,["type"]);return t[r]?t[r](i,o.BLOCK,n):r}))}}};t.createRenderElement=function(e){return function(t,n,r,o){return e&&!e.includes(t.type)?null:function(e,t,n,r){var o=e.type,E=u(e,["type"]);switch(o){case i.OVERFLOW:return n.overflow(T({type:o},E),t,r);case i.MARKDOWN:case i.TEXT:return n.text(T({type:o},E),t,r);case i.BUTTON:return n.button(E,t,r);case i.IMAGE:return n.image(E,t,r);case i.STATIC_SELECT:return n.staticSelect(E,t,r);case i.MULTI_STATIC_SELECT:return n.multiStaticSelect(E,t,r);case i.DATEPICKER:return n.datePicker(E,t,r);case i.PLAIN_TEXT_INPUT:return n.plainInput(E,t,r);case i.CONVERSATION_SELECT:case i.CHANNEL_SELECT:case i.USER_SELECT:return n.selectInput(T({type:o},E),t,r)}}(t,n,r,o)}},t.uiKitButtons=t.uiKitGeneric([i.BUTTON]),t.uiKitText=t.uiKitGeneric([i.TEXT,i.PLAIN_TEXT,i.MARKDOWN]),t.uiKitMessage=t.uiKitGeneric([i.DIVIDER,i.SECTION,i.IMAGE,i.ACTIONS,i.CONTEXT]),t.uiKitModal=t.uiKitGeneric([i.SECTION,i.DIVIDER,i.IMAGE,i.ACTIONS,i.CONTEXT,i.INPUT])}])})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@rocket.chat/ui-kit", | ||
"version": "0.2.0-dev.69+3b1d83c", | ||
"version": "0.2.0-dev.72+af1916a", | ||
"description": "Package Fuselage ui kit ", | ||
@@ -41,3 +41,3 @@ "author": "Guilherme Gazzo <guilhermegazzo@gmail.com>", | ||
}, | ||
"gitHead": "3b1d83ca1d70e1e84fa3c28a9a3adfc968c205a9" | ||
"gitHead": "af1916a22c677939adda04fe417dafe406292762" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
7106
20