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

@zendeskgarden/container-field

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zendeskgarden/container-field - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.2.0](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-field@1.1.4...@zendeskgarden/container-field@1.2.0) (2020-01-15)
### Features
* move ID utilities to react-uid ([#142](https://github.com/zendeskgarden/react-containers/issues/142)) ([9f30572](https://github.com/zendeskgarden/react-containers/commit/9f3057202c94ca497b11b6f05ef649c87d5a5716))
## [1.1.4](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-field@1.1.3...@zendeskgarden/container-field@1.1.4) (2019-11-04)

@@ -8,0 +19,0 @@

2

dist/index.js

@@ -6,3 +6,3 @@ /*!

*/
!function(e,r){for(var t in r)e[t]=r[t]}(exports,function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=3)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("@zendeskgarden/container-utilities")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(2);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(t,!0).forEach((function(r){c(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(t).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function l(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(e){var r=l(Object(n.useState)(e||Object(o.generateId)("garden-field-container")),1)[0],t="".concat(r,"--input"),i="".concat(r,"--label"),c="".concat(r,"--hint");return{getLabelProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?i:r,o=e.htmlFor,c=void 0===o?t:o,l=a(e,["id","htmlFor"]);return u({id:n,htmlFor:c,"data-garden-container-id":"containers.field","data-garden-container-version":"1.1.4"},l)},getInputProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?t:r,o=a(e,["id"]),l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=l.isDescribed,d=void 0!==f&&f;return u({id:n,"aria-labelledby":i,"aria-describedby":d?c:null},o)},getHintProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,t=void 0===r?c:r,n=a(e,["id"]);return u({id:t},n)}}}var d=t(0),p=t.n(d),s=function(e){var r=e.children,t=e.render;return(void 0===t?r:t)(f(e.id))};s.propTypes={children:p.a.func,render:p.a.func,id:p.a.string},t.d(r,"useField",(function(){return f})),t.d(r,"FieldContainer",(function(){return s}))}]));
!function(e,r){for(var t in r)e[t]=r[t]}(exports,function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=3)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("react-uid")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(2);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){c(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function l(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(e){var r=Object(o.useUIDSeed)(),t=l(Object(n.useState)(e||r("field_".concat("1.2.0"))),1)[0],i="".concat(t,"--input"),c="".concat(t,"--label"),f="".concat(t,"--hint");return{getLabelProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,t=void 0===r?c:r,n=e.htmlFor,o=void 0===n?i:n,l=a(e,["id","htmlFor"]);return u({id:t,htmlFor:o,"data-garden-container-id":"containers.field","data-garden-container-version":"1.2.0"},l)},getInputProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,t=void 0===r?i:r,n=a(e,["id"]),o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=o.isDescribed,d=void 0!==l&&l;return u({id:t,"aria-labelledby":c,"aria-describedby":d?f:null},n)},getHintProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,t=void 0===r?f:r,n=a(e,["id"]);return u({id:t},n)}}}var d=t(0),p=t.n(d),b=function(e){var r=e.children,t=e.render;return(void 0===t?r:t)(f(e.id))};b.propTypes={children:p.a.func,render:p.a.func,id:p.a.string},t.d(r,"useField",(function(){return f})),t.d(r,"FieldContainer",(function(){return b}))}]));
//# sourceMappingURL=index.js.map

@@ -11,3 +11,3 @@ {

},
"version": "1.1.4",
"version": "1.2.0",
"main": "./dist/index.js",

@@ -22,3 +22,3 @@ "files": [

"dependencies": {
"@zendeskgarden/container-utilities": "^0.3.0"
"react-uid": "^2.2.0"
},

@@ -43,3 +43,3 @@ "peerDependencies": {

"zendeskgarden:src": "src/index.ts",
"gitHead": "aaf2fad34916cf4f134e356eca5d8130abc71688"
"gitHead": "e7657227289f9e6aa14c46292601b713497832ba"
}

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