graphiql-rails 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/graphiql/rails/application.js +3 -3
- data/app/assets/javascripts/graphiql/rails/{graphiql-0.8.1.js → graphiql-0.10.2.js} +23996 -17563
- data/app/assets/javascripts/graphiql/rails/{react-15.4.1.js → react-15.5.4.js} +732 -501
- data/app/assets/javascripts/graphiql/rails/{react-dom-15.4.1.js → react-dom-15.5.4.js} +960 -260
- data/app/assets/stylesheets/graphiql/rails/application.css +1 -1
- data/app/assets/stylesheets/graphiql/rails/{graphiql-0.8.1.css → graphiql-0.10.2.css} +492 -98
- data/lib/graphiql/rails/version.rb +1 -1
- data/test/controllers/editors_controller_test.rb +10 -6
- data/test/dummy/log/test.log +63 -643
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-3/-3IDUOD9_z4PdL-lTwfeIH94q6kra-PoGDHOmb4WA6U.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{OF/OF4cuA4wXYuETOyoWH3LmWrULXXLj-Og0hlZKcwMh_c.cache → 0S/0SVTazOCWv-k8pRlFMFeA8xsjGJElPUk0G0_UOm53WA.cache} +1 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1W/1WE3Zlk6Z0vfUNMFRYf3wFiuTzBNYhAi4JyNJIWe__0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2z/2z6pvRfPf4EMoyJZrG2J_NZhgbt7lIYvqqHJGUDM9ps.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3M/3MAT1Sf-t3Ddeq8BIrhLu7GcoLZn7ap95ytKm_Gd7ag.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4S/4SRYBCnech9uKdiPoExGfCR6OqVZ0jay6kyD4DKodCM.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{r6/r6zAqMlkr_LD1T4Gr3uJhi4zKLf852Y3s8y0mLoXvoI.cache → 4q/4qAXrWQiQhR8kDmUADq7_vGHlx8I6mj75CAAyCA1DeQ.cache} +1 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/58/58OgpcabSX8xCK1U_QlOdflBegifm4Ope2qfPTkpDD0.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5G/5GsOF3P14olvZLChizVgNdnrvx-ObqyENmAvbp46ros.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/66/66Hq8sDuvOaKHeidquJeinimEamd3t3lza8ZxY9Y_6Y.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Ug/UgWAyTmm2Ed6U6-GLI1VvoINx_9Rdd5TnTxqBd2B5xc.cache → 69/69NCHGEOhaCqF1oLhLlN6b4LbqhzbgqxRWqGCWlESQc.cache} +1 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{HP/HPftDTK68u7AeXS-WC5itXmNNt6wi668JeiLs5PUeMs.cache → 6e/6eewj1Bf1gY5VGqVORhVdoVtdnTMZZ4T9kWyNANdsuQ.cache} +1 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7-/7-3NxtJa1LxatHrdVBj8MfnFejUiQxFgQUc8MLEobIg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7B/7BaLGu15JbZ67DHzBkca1NG_IR1fhlT8DO90PRE5SNM.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7c/7cEv2jblzI7ZTd5W_C9AaIqWFjcTmZJJJ0av0l4DtxE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/84/844aqh_GUqkKNssqHGyvIYr8wAvGRrT_i52b4jANiWM.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9P/9PIvEWVjvVQSdQ1NPxJQ7Zxj724FJG176x_U7w5StsA.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9l/9lQ0BXnhD_Jg8RHN2jQSKObO4ABQXXgxQTGj4hyxEcY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/A6/A69Ck8j71FqWu-ueIjpnC7HATkRTb6vh3umvaZpQbH4.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZzMDhd2IBNn8XADDNNPq00WnV89937m7hUrMGl_bgk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/C7/C7EaGvsoalce0gw5Ry5BQjPCOyJBbd12N4RXJM0MP5w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CA/CAGdqN4ckCQU-6ZjE5Slfa9Z5_6F5A0AyxVeAkS24JQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DY/DY497ViEBcLaZFO9E5njnC387cLMRslg7hP5ZtkW0qc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ED/EDqDqr6XGkiOhoZJ-zWIX-w_3Dt5W-80VgkFM_c4Xq8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FI/FItC5EKzPIq6ERxU-rhhxj3keFlqytlAjI6r94X-Zf4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KP/KPtrlRST9u6m9FPmW6yVpHRu-HOfYj0lu5OYNXBwj8g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kv/KvTTuveWTp82im6Z1RSI07URr_ZUZJ439x0LIBCm1-Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{hQ/hQiz6pgkjKTcBzpg6HxImHPEn_gJnNexHa93Uqf06C4.cache → Lr/LrEoZNJufYHEBGiaZ_22uLoIRY1dIL5DqWBeKHHkgNE.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mx/MxEMJTc40EcHw8A1-yt6EqD4metPDrhsgqsgGyP7F5Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/N7/N7eGyrsvYn1zhGj-iRUei8C9MhjABbgZmImGxaLe1ds.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Nt/Nt7p9iBsSTB860q-4clEAfbOMbt0DZrcHQiL_FAsWMs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Of/OftI5ZGPiQhD3OoLFydPCQR9nG8NEqSnLquKa5dB3dk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qn/Qnn-xN7iaaTtKwp3RFCmHn9xSbiyYGVNtHvuZu8G7X8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RI/RIxtXWhvSoXF4ITDQT7OKYL61UZNYAf6zTcavV1LSLM.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RR/RRcYRIdCunwNPPgw4govMUPMMgMqG_7tOwv1GRGiQZM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rw/RwJqjArxlOOzpX1_xps7S6AelorTaP_Kl_PUC_H5SP8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SH/SHh66pJTuvBF3S4e9bg23cMT3RDTchcv_fhLBK8x3QU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TP/TPaKgwRY0i839DEggZj03_oze4vbQ8vuZzNstdVzWoI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/V4/V4wZj_7nwTvbb1C0RHQ-XtAxMxYjhEEFrHe0ruKddsE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WP/WPRjxG4oCjhgKxX74FSz3ij1Anopd8_2EipkMUr60gg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wb/Wb648ZLav5hpMuf-ZD3d2yLcAeZz1tcX33AvEh-j1m0.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XR/XRekuK507PYwBLGPPnVrtAbzakAr3lGLcaRHg4y0xKw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xb/Xb5b0TdmZfklxylubwFlQ11setdFo8SWbaSvU3RwzxQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xj/XjP8wJIOnzTHGVsgiul9B55ARsRR6sp43pZlA0Ei37s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YH/YHuxEfhfglIxDarmb-UvYhtFvUqCM9c-oVoGtN5p0hY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y_/Y_AZIO4mO9BlGvshx-aZGbI7L1vCPce6oUdptDOGw0o.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Zf/ZfmVlQGU8GETNo3BTzs3RdAozN8z_yNM9HLb47Lq_pE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_X/_X1cjPGRvvqcsLF3bJtC42HwgOf8ovvtcZD_eXSmneA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_t/_tKePw0DBu2h4Oux_tDdeODIakq1Ozd72k-QZOCkGcc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bK/bKV5LfMWinRp1G-Bl0WhcEpKLGBMdaQwxs3VPE1LlNI.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/f3/f34o5xgKGbeJGR3vhW5iDu9HeUbkIxpIfaKivQBhqsw.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fL/fL2ashcpTzPDWW7FZymZd-2GIKuizeLDA8po_G5OdOk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gH/gHYKlXksxiNCgwEZzOpxXtNy9p-rgwg7tT4xU27-mWM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gu/guDp3-qqB0C4EBxIyo6vkVcvqsl08QbZ4VHSsqXP-Kc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gy/gyP2ip3kwv68WM4zD5RK8DSrFRSJwAwBuYK0jD411Vc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/h6/h6t_8v0yd_5OvceDlNEt2hTy-zJiKWatZzOokep0DTo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ix/ixsjsQDIoCa4pEs7ECGDYbVdSADSV4ddtoi62NvM9wU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jz/jzRnlzAwJ46MfB8tTnLUx124R0VXom4HWbw9zGuIq80.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kS/kSoBDI4xrIGfKetkW4-9R43EmIehmHDXROt6VdzL6BY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7HCLsfifhN-jo1N6YcE15nEpGQQwvDigG4tbjcsp_U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/q3/q3aBSv0GXoSbwD13HwmLtldl-MJqNBbvhCtQyhq9VrQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qK/qKu2-EEfIY7HtGy_zGfcZYScXrOAKJ4eZBMck6hyh-M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u3/u3rDmsADFPXqO6Nv5Iw0-JlseXcC-VGWJadxawimKGc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/up/upoBxjbXnwFHwDgrzCQEMfuLk-soljIXxIN96LU4ZjE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vy/vygCurgRkjZ0qpU2md9yyzK8G8jjBLNqv9R-zZkE0lQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wA/wAwNUj_P90Vn5jI34x6Q3GvMZqOTryo_UPe_2GTNO9E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yB/yBn7YrgjsR9I90eAvb7nbMfeznXEJT8oG5X_8L1ZM9g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/z3/z3m2P-GFMYPn37yhy32Tp3l-gIiAotytksxtoDSW4k0.cache +2 -0
- data/test/graphiql/rails/config_test.rb +1 -1
- metadata +143 -291
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/02/02uQjjynUxV5kuoUaBVFB5IWapuQczQFPUf3bYiA9Y0.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0C/0CmYIsbxi_d3V4Ty50KFvUlvEWI9jcWyJF0t9cCLpyM.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0CmYIsbxi_d3V4Ty50KFvUlvEWI9jcWyJF0t9cCLpyM.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1O/1O4GprDp8WJyw5PvSa-C2r44Jd9TcTN3-QtJng226qo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1p/1p7_p-w3h5HoV6eexdYKPvMrxklmxdlTbabQczEEksQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1u/1uC5QtXp4WO7tAZao3L7BG2PEcNqq1_r0puQ3-HIcYI.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1w/1wZlmSdNjHZpUpkPMpH9S5OQVTCCqlexBJSLdPPeR50.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/34/34LG8q9JejZ6KDvdkHQ8JUB-nOQwlA2fHTilXzwS5GY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/34LG8q9JejZ6KDvdkHQ8JUB-nOQwlA2fHTilXzwS5GY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/35/35WBoIH_11VxISrZaBlIndZRlJ5r_hyltJiwG975Axk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4Z/4ZJA85qP4_8GsXx80nM0iXDJplSrE8la7PtHGTorD0w.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4ZJA85qP4_8GsXx80nM0iXDJplSrE8la7PtHGTorD0w.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4m/4mtjpwCX3vwIxOYpNuyjilCrhtrkgWVNBGJS21tzfL0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4mtjpwCX3vwIxOYpNuyjilCrhtrkgWVNBGJS21tzfL0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6-/6-LOpBZqN_WH2LDP0xjgJMLVZLESOIU9Aw2b4iHM5fs.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7dz1Xx8YR5sHbKWM69cDLU2bgltPRa3vw9nBt4E8YQg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7j/7jpsqSrz9yb3YIyo7b2pHa6czpq8WFE0AnAengWbZpM.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7l/7lWekuUK_gHC4C-i267KGydIQehipyEoShk4i5Lu_BM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8-/8-U7zUVndW_d0FDk2U3ZDowvpisV-3yItdrbtPR0Olg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/83/83gJmbcd3mnIYQT740LwJbj1DaTpagwTWnfrKrqik6E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9M/9MuQHTmDOg0b9oWEK4GI1o5PUXLgIpjIPa10mC6RdaQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BI/BILRLa6u7OJB478Lv33uNdF2CTZAtQ9UUyt40vRZyQU.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Be/BenmbG7rfjNHpucEMFB8yUS9EYgeA1DSpiNlTqkquaQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CZ/CZxQnnrZMMsvjfD4KW4DhgTG94EVxnHoJWJ01zkVMns.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DCqLJ5_nU2FxOoUrVssVJsVoxA0XEI1FNJ-bBprDoR8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ErVRR5gl8iAwhWsQvXhicCHuDyKfLEEHXH0xUIqaO9c.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/F5qrQYWr9yyxwBAqe2TQJQ80nVmH5_i6afl5PMp6Z8U.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fa/Faq8gOm8xVZhblw9FwQ1E4IsfWoh9dZ1gBHmFvLc2ts.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Faq8gOm8xVZhblw9FwQ1E4IsfWoh9dZ1gBHmFvLc2ts.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GD/GDTZ5oWcwSRCXPCEpSUbkX3BTWh2vhaLgPvJHxVHkZY.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gn/Gnd-um8kchIKSICy3rzI_5Aaq-C5IHuaVrLQ_Aad3mQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ID/IDcWzb4XA1vue9ua86ZYwdBPBid71jBsuD9HBlnycuE.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IKkdmzDKerP9m13sFeNWC9tB84bDffybWjI0Z4k3UI8.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JAZgc3sg0HX5rTGxJzfSQg4Rb8E_ClpZ1suYKQU_eRI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KdaFp_G3QwcgCbdUZsL9ERPiz2zPHLWUhEnEQ9unDEk.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mp/Mpus175PU9DmWDNWLEUncTAcByMMSu-HhCUuIvFB7yc.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OF4cuA4wXYuETOyoWH3LmWrULXXLj-Og0hlZKcwMh_c.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R0/R08BzBDkGd9g2koopOT7DT6wKzFe05szGnCgODTCjNQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SF/SFiYnWCKZ4GF8zlst1XIrwxl1WFC45BmASoohpWPd84.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sgy4r1w5gBrtymnH6dce2X0RQP-Y2F-3UfTGOZ75VCg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VT/VTELxahRZ8MKZdJdMyrzzXnjIEsa4tYlG_KKqxD2w5E.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VaEZIFY4pRQ4iN89z_LUF3h0z4Kw8K5BAzZlKjKqXi0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WwJ37E-kUxtDgxvSx_3O5YaHEoWJftzFzuNSGXIlsaI.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XV/XVXfWH7Tr4k5jKKRYXmthP7AR2GJJKDr-AWNHUH5nts.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XZ/XZJGIsAwHoZlPXMlIx1_yABMwtbNAUp_yI7tOMbZgdU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xq/Xq4246oV8V3LGAV_PXeBgShRCE_g-JfGen06X1D_qo4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YN2F-FP84MSOgRHysaPRojhPLO7FNTo0tXGrzu5rvGk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YZ/YZ76qRpXORD7l_H2nsleL_V4wM1KMRxCrgSrAKlSJhA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_d/_dY9njOW19cklh-ewiac5HiA65LwVYKIb6R_IrNRYzU.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aTRqYIgKpeeiUMY8fEvW2JJ4W07-OxpNCHnL4221TyY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ar/ar_4xG5VXmCcjrfvlw32CcUrEy7Q-OeTTgfgptLOdU8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/azZmH78x0yRlkEgzEHNhh3zjLQDB3AHTwR3bpfmGZm4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bS/bSZX9zl8edN-dveNd84MIogYeQCV9AuYhYgWy6ea1B4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bSZX9zl8edN-dveNd84MIogYeQCV9AuYhYgWy6ea1B4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cJxI06d-8D2-4PxeTok0LyXGLv6gsfCdJT9YWkwuUj0.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cO/cOAueJKh9nuf3xvdIBixVT1s8N_-nLBtmjsaSzOpwg8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cgaS9VIENeVDh1ZGZ0VYuRVSIE-Ogbft3n8QswGI5CU.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dB/dB2Exqzi_7fBxm01Ro2DM7jnlHLFawFK3yXKou6pgyA.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ga/gava0bqDjE1VWzplpUduR1uGHbtyUtYm2GhIj1XZZX0.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/h0/h0F1byXPciEndpvPLiSEpO8f7fw4uZjoMc9tLVxZFRU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hQiz6pgkjKTcBzpg6HxImHPEn_gJnNexHa93Uqf06C4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hv/hvaokpd4_23IwsM-Fl74g64vPCKPMZAaOESvixahDeY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jN/jN_nBtWnLYTrl91F5CMO0jRb1croRzJFAOifWmwdv5c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jU/jUWt19fVGluoSzwe5GfGU2j-wCQ6FNep6S8SdLAoBYc.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jUxbKjiZRk41123_X06JJ0ffPgcXQggeKWif1gGqSWM.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kS/kSbsfLp-s-6NEu4COSZH4WgeVd8foAqxOubPR-6svPs.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/l8/l8f5_J8x7RojLRvBjQI_CftB1yepgAXvpmYK4lcMZ7s.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lh/lhC_YGvH38iYVTa-Ed5Amry182T8GMgA_5taQuLjdyY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lhC_YGvH38iYVTa-Ed5Amry182T8GMgA_5taQuLjdyY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lo/loBrkqZ9oaNCN6tAXz6GMUBqeOWA-e1JarXdJ-SDb_U.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/loBrkqZ9oaNCN6tAXz6GMUBqeOWA-e1JarXdJ-SDb_U.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mT/mTTjPru4dxDhaJnHalf8yWwebOIR97CU4fAjuj7DwmM.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nPmZAPKIL4V7zPY0HhiRjMAWvU15_midcKjYPZLftCk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/q-/q-bIsyv_gLCwVI56S0NDDvq2BlbpMP0WnLeiWAia_z0.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qc/qcZ4CJuZSIdaNsulaHHmp1FgTQ4OpDXKDC0fhGwUeqQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rK/RkcFwrMob29Nx93hQI1xNkEXrIuTqENPTjiPdvp8Irw.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rK/rKT3JEAgY2xQkZkObEvW_S-aA2-WraDur4k_8kA2Q80.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rR/rRP_vrHmf6n0bThLAWZOQQ58vBeGpTqWoLg9mJ8v5NE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rb/rbdNJgw4y-kvQ88qyU3nXHn7ZKc4BVVcfDKOQa_gVCk.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rbdNJgw4y-kvQ88qyU3nXHn7ZKc4BVVcfDKOQa_gVCk.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rm/rmsXQmmr8BkD3Hpc-W7bloFfMOXPcgzFpIwmrLniqHs.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sj/sjMLajFJTU99ayb93IyjMjJR14wApGOeV0oBXIezq8U.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tJ/tJN9oADWH0ryNbjWzFqhQ_HGCek6GPM0QbaghUosnWY.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tJwJvJAe2Hr-Yf_vZihu_TQiHbKffDfV7QToCPWvjOk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u5/u5AuqAcq2hl6roEJteC1r1mVoR7VEqt5SV8jwzK4GZo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v-Wll0adT8t3L1ZZ_6zUnsSamyZ83ZURRmc9t3xoZU0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v6/v6mxUToSmG-6J-XA_oPEO5BoF3KCwgRTrg70pqQX6xg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v6knnZ-KNvlMl4s8q2PmJaL7pmjwiYYTW-xGDKCYfNs.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v8/v8xi6V-WvjufXeLCNBFSbt1d-olho3MyMBbKM-Vnwu8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v8xi6V-WvjufXeLCNBFSbt1d-olho3MyMBbKM-Vnwu8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vj/vjqmUY_h3NgLstN1Jfcau_2rGV-cdgyFdWjypBpF3x4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/we6IZZPLjkhgZc2F2ZspSMEh5iEWi-24fWU84FS7nYc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x5/x5gk2iQTlVlt4Hk8DKJwtbGvkwxH6XMWAX3iokMIy1g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xJGUXwL_WUBjqcf8fWNmNx7AJfGg-KPJqE5kVwPZg68.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xw/xwWWNBnove6mATVpvOJ7uBZkoBqXRlGnDZNR64ckNx8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yL/yLVqhPCNcVTbpUt7K66-E4rXgH9sPDxfNXqMWF_eM44.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yLVqhPCNcVTbpUt7K66-E4rXgH9sPDxfNXqMWF_eM44.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yP/yPvcKR8n3Xvk90hPMC4E4dlv4DizQycdzHazro5upUI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ykCpKJmBU44jAvQnO45iGDEcS2__XxlXfloeaCn7kzU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zM/zMMCZgiw01jo_FiNbm2w3OeIQRjv8JTb3dVaa0lOifs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zg/zg6igLfzkTq4aU8PoYWHgo2qC9Bsrpw_pl1IGJc-qQk.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/1ODY0DQ_ANmCpmLHVw-UiUNedcqRH6ImiwraD-KSxmU.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/1War8wEt1WB20cDivlUtmLJerXVjqviIoF8z6rqT8Ks.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/4afUNpWO5PKPxu8ou16ONcr5t-fGUZ2Shr4G8Df72YA.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/4uKBwHz0rzsw3ojNBNu9y5_uCi8J-R25B-ulDbod0ac.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/6L5bwqSkEwSagAwfXFO_BHlhr-_mvwg_lgpT3A3JbN0.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/9WBVwGkXlR0wCsNKUohikZZp8DR2hCht4PC4HgUpVtE.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/D6JFGS9ijELU5G9m1CfXCX8rWJkohiAMkuv8YC6xUjw.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/F5qrQYWr9yyxwBAqe2TQJQ80nVmH5_i6afl5PMp6Z8U.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/FBkf4qNXTD-K2DutfFs6Zf9i5H9hjdJloZPy1grMXAE.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/KdaFp_G3QwcgCbdUZsL9ERPiz2zPHLWUhEnEQ9unDEk.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/LW2Js2OuBRJvwb8wIDyZiUmxDiktnV0klq55abg8Yvc.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/QFCa105_BZXNgKGSe-v9Jf_AvhbTDjIkGQGzEb-Vy30.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/T86TPGUlBfOM9KZj9oYg6ixlwd0tHGUCJutAZFY1gCU.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/TGrsg_69egMpvuFwg0oH2vvET7aA-FRmlCjoLRIydHc.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/UYTk5zEFerusuYX_FIGABGYtIFVy570hoqVn6fp4Hf0.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/VbHRo0ICd88LdUrVUQR8ZJqMqH1IObHIAWqbecGFZ6Q.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/WtewLeu-yAjYJXYBEdyWkiz1hMDrx_bY3cX9n2AjPDg.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/WwJ37E-kUxtDgxvSx_3O5YaHEoWJftzFzuNSGXIlsaI.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/Yz7xid4a42sQZ3rupYo5gpJ9oip15QSrXsaEsgCWMiE.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/Z7xvl4QQk2iWzQ22z2eYhPN2nmaKmistpZEnfcbseII.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ZRl7-s5kXR-yC2mcuDoSOpLrt84TlvO5s-cYh9dPz14.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/cL6ZrXE1HfAZSwt39igMHt_vxShjSAAd2VzP2XmFjmw.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/dKvwS0jAbddDiur_8v76DBm-vIYC10o0GRKZETpSAR8.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/eRGERGKDp2NYy2HoC_meEQGqDi19WjrGxu2nnaGIcuA.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/fr6QWODYhpQ8atcpXcDO6v5h6BOarqt8SKw2FSPznCA.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/hQiz6pgkjKTcBzpg6HxImHPEn_gJnNexHa93Uqf06C4.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/hZjnBRtszTef59Um5ZCsKPKni61XffqsmNbcFyEHt18.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/k8dK469Rg8A3Vy6LuTNHpwXi-DL1q9hU1ycx5Wepy0o.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/kNn8zrGAYzFMb9nV4jNn_hIWuRyRyf2WwQ0PJNNitDc.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/o67fWawCsaNbsqQ_0cc88iV6xiIrMvkkAWNbVL0f2PQ.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/r1BfxqwrxBJjF2iyMWPpMrJJ4x3id-oue7o_4u4Gs88.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/urFQAPpM6EpglGPluq2htIfR2Xyj38lKiU9yZcyQDlk.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/vHuLTiNtDGbZ0WmXVRXzE9sjC1uytC3VHPfIsJjWPXI.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/xJGUXwL_WUBjqcf8fWNmNx7AJfGg-KPJqE5kVwPZg68.cache +0 -1
- data/test/dummy/tmp/cache/sprockets/v3.0/yLVqhPCNcVTbpUt7K66-E4rXgH9sPDxfNXqMWF_eM44.cache +0 -2
- data/test/dummy/tmp/cache/sprockets/v3.0/yjDlbfNxhC1OMh3gMlUezFGgrplZ0G80J6ury8BWdHk.cache +0 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* ReactDOM v15.4
|
2
|
+
* ReactDOM v15.5.4
|
3
3
|
*/
|
4
4
|
|
5
5
|
;(function(f) {
|
@@ -883,7 +883,7 @@ module.exports = CSSPropertyOperations;
|
|
883
883
|
|
884
884
|
'use strict';
|
885
885
|
|
886
|
-
var _prodInvariant = _dereq_(
|
886
|
+
var _prodInvariant = _dereq_(124);
|
887
887
|
|
888
888
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
889
889
|
|
@@ -988,7 +988,7 @@ var CallbackQueue = function () {
|
|
988
988
|
}();
|
989
989
|
|
990
990
|
module.exports = PooledClass.addPoolingTo(CallbackQueue);
|
991
|
-
},{"
|
991
|
+
},{"124":124,"150":150,"25":25}],7:[function(_dereq_,module,exports){
|
992
992
|
/**
|
993
993
|
* Copyright 2013-present, Facebook, Inc.
|
994
994
|
* All rights reserved.
|
@@ -1009,8 +1009,8 @@ var ReactUpdates = _dereq_(82);
|
|
1009
1009
|
var SyntheticEvent = _dereq_(91);
|
1010
1010
|
|
1011
1011
|
var getEventTarget = _dereq_(114);
|
1012
|
-
var isEventSupported = _dereq_(
|
1013
|
-
var isTextInputElement = _dereq_(
|
1012
|
+
var isEventSupported = _dereq_(121);
|
1013
|
+
var isTextInputElement = _dereq_(122);
|
1014
1014
|
|
1015
1015
|
var eventTypes = {
|
1016
1016
|
change: {
|
@@ -1256,6 +1256,26 @@ function getTargetInstForClickEvent(topLevelType, targetInst) {
|
|
1256
1256
|
}
|
1257
1257
|
}
|
1258
1258
|
|
1259
|
+
function handleControlledInputBlur(inst, node) {
|
1260
|
+
// TODO: In IE, inst is occasionally null. Why?
|
1261
|
+
if (inst == null) {
|
1262
|
+
return;
|
1263
|
+
}
|
1264
|
+
|
1265
|
+
// Fiber and ReactDOM keep wrapper state in separate places
|
1266
|
+
var state = inst._wrapperState || node._wrapperState;
|
1267
|
+
|
1268
|
+
if (!state || !state.controlled || node.type !== 'number') {
|
1269
|
+
return;
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
// If controlled, assign the value attribute to the current value on blur
|
1273
|
+
var value = '' + node.value;
|
1274
|
+
if (node.getAttribute('value') !== value) {
|
1275
|
+
node.setAttribute('value', value);
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
|
1259
1279
|
/**
|
1260
1280
|
* This plugin creates an `onChange` event that normalizes change events
|
1261
1281
|
* across form elements. This event fires at a time when it's possible to
|
@@ -1304,12 +1324,17 @@ var ChangeEventPlugin = {
|
|
1304
1324
|
if (handleEventFunc) {
|
1305
1325
|
handleEventFunc(topLevelType, targetNode, targetInst);
|
1306
1326
|
}
|
1327
|
+
|
1328
|
+
// When blurring, set the value attribute for number inputs
|
1329
|
+
if (topLevelType === 'topBlur') {
|
1330
|
+
handleControlledInputBlur(targetInst, targetNode);
|
1331
|
+
}
|
1307
1332
|
}
|
1308
1333
|
|
1309
1334
|
};
|
1310
1335
|
|
1311
1336
|
module.exports = ChangeEventPlugin;
|
1312
|
-
},{"114":114,"
|
1337
|
+
},{"114":114,"121":121,"122":122,"136":136,"17":17,"20":20,"34":34,"82":82,"91":91}],8:[function(_dereq_,module,exports){
|
1313
1338
|
/**
|
1314
1339
|
* Copyright 2013-present, Facebook, Inc.
|
1315
1340
|
* All rights reserved.
|
@@ -1328,8 +1353,8 @@ var ReactDOMComponentTree = _dereq_(34);
|
|
1328
1353
|
var ReactInstrumentation = _dereq_(64);
|
1329
1354
|
|
1330
1355
|
var createMicrosoftUnsafeLocalFunction = _dereq_(105);
|
1331
|
-
var setInnerHTML = _dereq_(
|
1332
|
-
var setTextContent = _dereq_(
|
1356
|
+
var setInnerHTML = _dereq_(126);
|
1357
|
+
var setTextContent = _dereq_(127);
|
1333
1358
|
|
1334
1359
|
function getNodeAfter(parentNode, node) {
|
1335
1360
|
// Special case for text components, which return [open, close] comments
|
@@ -1534,7 +1559,7 @@ var DOMChildrenOperations = {
|
|
1534
1559
|
};
|
1535
1560
|
|
1536
1561
|
module.exports = DOMChildrenOperations;
|
1537
|
-
},{"105":105,"
|
1562
|
+
},{"105":105,"126":126,"127":127,"13":13,"34":34,"64":64,"9":9}],9:[function(_dereq_,module,exports){
|
1538
1563
|
/**
|
1539
1564
|
* Copyright 2015-present, Facebook, Inc.
|
1540
1565
|
* All rights reserved.
|
@@ -1548,10 +1573,10 @@ module.exports = DOMChildrenOperations;
|
|
1548
1573
|
'use strict';
|
1549
1574
|
|
1550
1575
|
var DOMNamespaces = _dereq_(10);
|
1551
|
-
var setInnerHTML = _dereq_(
|
1576
|
+
var setInnerHTML = _dereq_(126);
|
1552
1577
|
|
1553
1578
|
var createMicrosoftUnsafeLocalFunction = _dereq_(105);
|
1554
|
-
var setTextContent = _dereq_(
|
1579
|
+
var setTextContent = _dereq_(127);
|
1555
1580
|
|
1556
1581
|
var ELEMENT_NODE_TYPE = 1;
|
1557
1582
|
var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
|
@@ -1652,7 +1677,7 @@ DOMLazyTree.queueHTML = queueHTML;
|
|
1652
1677
|
DOMLazyTree.queueText = queueText;
|
1653
1678
|
|
1654
1679
|
module.exports = DOMLazyTree;
|
1655
|
-
},{"10":10,"105":105,"
|
1680
|
+
},{"10":10,"105":105,"126":126,"127":127}],10:[function(_dereq_,module,exports){
|
1656
1681
|
/**
|
1657
1682
|
* Copyright 2013-present, Facebook, Inc.
|
1658
1683
|
* All rights reserved.
|
@@ -1685,7 +1710,7 @@ module.exports = DOMNamespaces;
|
|
1685
1710
|
|
1686
1711
|
'use strict';
|
1687
1712
|
|
1688
|
-
var _prodInvariant = _dereq_(
|
1713
|
+
var _prodInvariant = _dereq_(124);
|
1689
1714
|
|
1690
1715
|
var invariant = _dereq_(150);
|
1691
1716
|
|
@@ -1882,7 +1907,7 @@ var DOMProperty = {
|
|
1882
1907
|
};
|
1883
1908
|
|
1884
1909
|
module.exports = DOMProperty;
|
1885
|
-
},{"
|
1910
|
+
},{"124":124,"150":150}],12:[function(_dereq_,module,exports){
|
1886
1911
|
/**
|
1887
1912
|
* Copyright 2013-present, Facebook, Inc.
|
1888
1913
|
* All rights reserved.
|
@@ -1899,7 +1924,7 @@ var DOMProperty = _dereq_(11);
|
|
1899
1924
|
var ReactDOMComponentTree = _dereq_(34);
|
1900
1925
|
var ReactInstrumentation = _dereq_(64);
|
1901
1926
|
|
1902
|
-
var quoteAttributeValueForBrowser = _dereq_(
|
1927
|
+
var quoteAttributeValueForBrowser = _dereq_(123);
|
1903
1928
|
var warning = _dereq_(157);
|
1904
1929
|
|
1905
1930
|
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
|
@@ -2119,7 +2144,7 @@ var DOMPropertyOperations = {
|
|
2119
2144
|
};
|
2120
2145
|
|
2121
2146
|
module.exports = DOMPropertyOperations;
|
2122
|
-
},{"11":11,"
|
2147
|
+
},{"11":11,"123":123,"157":157,"34":34,"64":64}],13:[function(_dereq_,module,exports){
|
2123
2148
|
/**
|
2124
2149
|
* Copyright 2013-present, Facebook, Inc.
|
2125
2150
|
* All rights reserved.
|
@@ -2132,7 +2157,7 @@ module.exports = DOMPropertyOperations;
|
|
2132
2157
|
|
2133
2158
|
'use strict';
|
2134
2159
|
|
2135
|
-
var _prodInvariant = _dereq_(
|
2160
|
+
var _prodInvariant = _dereq_(124);
|
2136
2161
|
|
2137
2162
|
var DOMLazyTree = _dereq_(9);
|
2138
2163
|
var ExecutionEnvironment = _dereq_(136);
|
@@ -2167,7 +2192,7 @@ var Danger = {
|
|
2167
2192
|
};
|
2168
2193
|
|
2169
2194
|
module.exports = Danger;
|
2170
|
-
},{"
|
2195
|
+
},{"124":124,"136":136,"141":141,"142":142,"150":150,"9":9}],14:[function(_dereq_,module,exports){
|
2171
2196
|
/**
|
2172
2197
|
* Copyright 2013-present, Facebook, Inc.
|
2173
2198
|
* All rights reserved.
|
@@ -2398,7 +2423,7 @@ module.exports = EventConstants;
|
|
2398
2423
|
|
2399
2424
|
'use strict';
|
2400
2425
|
|
2401
|
-
var _prodInvariant = _dereq_(
|
2426
|
+
var _prodInvariant = _dereq_(124);
|
2402
2427
|
|
2403
2428
|
var EventPluginRegistry = _dereq_(18);
|
2404
2429
|
var EventPluginUtils = _dereq_(19);
|
@@ -2663,7 +2688,7 @@ var EventPluginHub = {
|
|
2663
2688
|
};
|
2664
2689
|
|
2665
2690
|
module.exports = EventPluginHub;
|
2666
|
-
},{"102":102,"110":110,"
|
2691
|
+
},{"102":102,"110":110,"124":124,"150":150,"18":18,"19":19,"55":55}],18:[function(_dereq_,module,exports){
|
2667
2692
|
/**
|
2668
2693
|
* Copyright 2013-present, Facebook, Inc.
|
2669
2694
|
* All rights reserved.
|
@@ -2677,7 +2702,7 @@ module.exports = EventPluginHub;
|
|
2677
2702
|
|
2678
2703
|
'use strict';
|
2679
2704
|
|
2680
|
-
var _prodInvariant = _dereq_(
|
2705
|
+
var _prodInvariant = _dereq_(124);
|
2681
2706
|
|
2682
2707
|
var invariant = _dereq_(150);
|
2683
2708
|
|
@@ -2918,7 +2943,7 @@ var EventPluginRegistry = {
|
|
2918
2943
|
};
|
2919
2944
|
|
2920
2945
|
module.exports = EventPluginRegistry;
|
2921
|
-
},{"
|
2946
|
+
},{"124":124,"150":150}],19:[function(_dereq_,module,exports){
|
2922
2947
|
/**
|
2923
2948
|
* Copyright 2013-present, Facebook, Inc.
|
2924
2949
|
* All rights reserved.
|
@@ -2931,7 +2956,7 @@ module.exports = EventPluginRegistry;
|
|
2931
2956
|
|
2932
2957
|
'use strict';
|
2933
2958
|
|
2934
|
-
var _prodInvariant = _dereq_(
|
2959
|
+
var _prodInvariant = _dereq_(124);
|
2935
2960
|
|
2936
2961
|
var ReactErrorUtils = _dereq_(55);
|
2937
2962
|
|
@@ -3144,7 +3169,7 @@ var EventPluginUtils = {
|
|
3144
3169
|
};
|
3145
3170
|
|
3146
3171
|
module.exports = EventPluginUtils;
|
3147
|
-
},{"
|
3172
|
+
},{"124":124,"150":150,"157":157,"55":55}],20:[function(_dereq_,module,exports){
|
3148
3173
|
/**
|
3149
3174
|
* Copyright 2013-present, Facebook, Inc.
|
3150
3175
|
* All rights reserved.
|
@@ -3295,7 +3320,7 @@ var _assign = _dereq_(158);
|
|
3295
3320
|
|
3296
3321
|
var PooledClass = _dereq_(25);
|
3297
3322
|
|
3298
|
-
var getTextContentAccessor = _dereq_(
|
3323
|
+
var getTextContentAccessor = _dereq_(118);
|
3299
3324
|
|
3300
3325
|
/**
|
3301
3326
|
* This helper class stores information about text content of a target node,
|
@@ -3373,7 +3398,7 @@ _assign(FallbackCompositionState.prototype, {
|
|
3373
3398
|
PooledClass.addPoolingTo(FallbackCompositionState);
|
3374
3399
|
|
3375
3400
|
module.exports = FallbackCompositionState;
|
3376
|
-
},{"
|
3401
|
+
},{"118":118,"158":158,"25":25}],22:[function(_dereq_,module,exports){
|
3377
3402
|
/**
|
3378
3403
|
* Copyright 2013-present, Facebook, Inc.
|
3379
3404
|
* All rights reserved.
|
@@ -3581,7 +3606,31 @@ var HTMLDOMPropertyConfig = {
|
|
3581
3606
|
htmlFor: 'for',
|
3582
3607
|
httpEquiv: 'http-equiv'
|
3583
3608
|
},
|
3584
|
-
DOMPropertyNames: {}
|
3609
|
+
DOMPropertyNames: {},
|
3610
|
+
DOMMutationMethods: {
|
3611
|
+
value: function (node, value) {
|
3612
|
+
if (value == null) {
|
3613
|
+
return node.removeAttribute('value');
|
3614
|
+
}
|
3615
|
+
|
3616
|
+
// Number inputs get special treatment due to some edge cases in
|
3617
|
+
// Chrome. Let everything else assign the value attribute as normal.
|
3618
|
+
// https://github.com/facebook/react/issues/7253#issuecomment-236074326
|
3619
|
+
if (node.type !== 'number' || node.hasAttribute('value') === false) {
|
3620
|
+
node.setAttribute('value', '' + value);
|
3621
|
+
} else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {
|
3622
|
+
// Don't assign an attribute if validation reports bad
|
3623
|
+
// input. Chrome will clear the value. Additionally, don't
|
3624
|
+
// operate on inputs that have focus, otherwise Chrome might
|
3625
|
+
// strip off trailing decimal places and cause the user's
|
3626
|
+
// cursor position to jump to the beginning of the input.
|
3627
|
+
//
|
3628
|
+
// In ReactDOMInput, we have an onBlur event that will trigger
|
3629
|
+
// this function again when focus is lost.
|
3630
|
+
node.setAttribute('value', '' + value);
|
3631
|
+
}
|
3632
|
+
}
|
3633
|
+
}
|
3585
3634
|
};
|
3586
3635
|
|
3587
3636
|
module.exports = HTMLDOMPropertyConfig;
|
@@ -3657,10 +3706,13 @@ module.exports = KeyEscapeUtils;
|
|
3657
3706
|
|
3658
3707
|
'use strict';
|
3659
3708
|
|
3660
|
-
var _prodInvariant = _dereq_(
|
3709
|
+
var _prodInvariant = _dereq_(124);
|
3661
3710
|
|
3662
|
-
var React = _dereq_(134);
|
3663
3711
|
var ReactPropTypesSecret = _dereq_(73);
|
3712
|
+
var propTypesFactory = _dereq_(160);
|
3713
|
+
|
3714
|
+
var React = _dereq_(133);
|
3715
|
+
var PropTypes = propTypesFactory(React.isValidElement);
|
3664
3716
|
|
3665
3717
|
var invariant = _dereq_(150);
|
3666
3718
|
var warning = _dereq_(157);
|
@@ -3701,7 +3753,7 @@ var propTypes = {
|
|
3701
3753
|
}
|
3702
3754
|
return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
|
3703
3755
|
},
|
3704
|
-
onChange:
|
3756
|
+
onChange: PropTypes.func
|
3705
3757
|
};
|
3706
3758
|
|
3707
3759
|
var loggedTypeFailures = {};
|
@@ -3779,7 +3831,7 @@ var LinkedValueUtils = {
|
|
3779
3831
|
};
|
3780
3832
|
|
3781
3833
|
module.exports = LinkedValueUtils;
|
3782
|
-
},{"
|
3834
|
+
},{"124":124,"133":133,"150":150,"157":157,"160":160,"73":73}],25:[function(_dereq_,module,exports){
|
3783
3835
|
/**
|
3784
3836
|
* Copyright 2013-present, Facebook, Inc.
|
3785
3837
|
* All rights reserved.
|
@@ -3793,7 +3845,7 @@ module.exports = LinkedValueUtils;
|
|
3793
3845
|
|
3794
3846
|
'use strict';
|
3795
3847
|
|
3796
|
-
var _prodInvariant = _dereq_(
|
3848
|
+
var _prodInvariant = _dereq_(124);
|
3797
3849
|
|
3798
3850
|
var invariant = _dereq_(150);
|
3799
3851
|
|
@@ -3848,17 +3900,6 @@ var fourArgumentPooler = function (a1, a2, a3, a4) {
|
|
3848
3900
|
}
|
3849
3901
|
};
|
3850
3902
|
|
3851
|
-
var fiveArgumentPooler = function (a1, a2, a3, a4, a5) {
|
3852
|
-
var Klass = this;
|
3853
|
-
if (Klass.instancePool.length) {
|
3854
|
-
var instance = Klass.instancePool.pop();
|
3855
|
-
Klass.call(instance, a1, a2, a3, a4, a5);
|
3856
|
-
return instance;
|
3857
|
-
} else {
|
3858
|
-
return new Klass(a1, a2, a3, a4, a5);
|
3859
|
-
}
|
3860
|
-
};
|
3861
|
-
|
3862
3903
|
var standardReleaser = function (instance) {
|
3863
3904
|
var Klass = this;
|
3864
3905
|
!(instance instanceof Klass) ? "development" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
|
@@ -3898,12 +3939,11 @@ var PooledClass = {
|
|
3898
3939
|
oneArgumentPooler: oneArgumentPooler,
|
3899
3940
|
twoArgumentPooler: twoArgumentPooler,
|
3900
3941
|
threeArgumentPooler: threeArgumentPooler,
|
3901
|
-
fourArgumentPooler: fourArgumentPooler
|
3902
|
-
fiveArgumentPooler: fiveArgumentPooler
|
3942
|
+
fourArgumentPooler: fourArgumentPooler
|
3903
3943
|
};
|
3904
3944
|
|
3905
3945
|
module.exports = PooledClass;
|
3906
|
-
},{"
|
3946
|
+
},{"124":124,"150":150}],26:[function(_dereq_,module,exports){
|
3907
3947
|
/**
|
3908
3948
|
* Copyright 2013-present, Facebook, Inc.
|
3909
3949
|
* All rights reserved.
|
@@ -3922,8 +3962,8 @@ var EventPluginRegistry = _dereq_(18);
|
|
3922
3962
|
var ReactEventEmitterMixin = _dereq_(56);
|
3923
3963
|
var ViewportMetrics = _dereq_(101);
|
3924
3964
|
|
3925
|
-
var getVendorPrefixedEventName = _dereq_(
|
3926
|
-
var isEventSupported = _dereq_(
|
3965
|
+
var getVendorPrefixedEventName = _dereq_(119);
|
3966
|
+
var isEventSupported = _dereq_(121);
|
3927
3967
|
|
3928
3968
|
/**
|
3929
3969
|
* Summary of `ReactBrowserEventEmitter` event handling:
|
@@ -4231,7 +4271,7 @@ var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, {
|
|
4231
4271
|
});
|
4232
4272
|
|
4233
4273
|
module.exports = ReactBrowserEventEmitter;
|
4234
|
-
},{"101":101,"
|
4274
|
+
},{"101":101,"119":119,"121":121,"158":158,"18":18,"56":56}],27:[function(_dereq_,module,exports){
|
4235
4275
|
(function (process){
|
4236
4276
|
/**
|
4237
4277
|
* Copyright 2014-present, Facebook, Inc.
|
@@ -4247,10 +4287,10 @@ module.exports = ReactBrowserEventEmitter;
|
|
4247
4287
|
|
4248
4288
|
var ReactReconciler = _dereq_(75);
|
4249
4289
|
|
4250
|
-
var instantiateReactComponent = _dereq_(
|
4290
|
+
var instantiateReactComponent = _dereq_(120);
|
4251
4291
|
var KeyEscapeUtils = _dereq_(23);
|
4252
|
-
var shouldUpdateReactComponent = _dereq_(
|
4253
|
-
var traverseAllChildren = _dereq_(
|
4292
|
+
var shouldUpdateReactComponent = _dereq_(128);
|
4293
|
+
var traverseAllChildren = _dereq_(129);
|
4254
4294
|
var warning = _dereq_(157);
|
4255
4295
|
|
4256
4296
|
var ReactComponentTreeHook;
|
@@ -4261,7 +4301,7 @@ if (typeof process !== 'undefined' && process.env && "development" === 'test') {
|
|
4261
4301
|
// https://github.com/facebook/react/issues/7240
|
4262
4302
|
// Remove the inline requires when we don't need them anymore:
|
4263
4303
|
// https://github.com/facebook/react/pull/7178
|
4264
|
-
ReactComponentTreeHook = _dereq_(
|
4304
|
+
ReactComponentTreeHook = _dereq_(131);
|
4265
4305
|
}
|
4266
4306
|
|
4267
4307
|
function instantiateChild(childInstances, child, name, selfDebugID) {
|
@@ -4269,7 +4309,7 @@ function instantiateChild(childInstances, child, name, selfDebugID) {
|
|
4269
4309
|
var keyUnique = childInstances[name] === undefined;
|
4270
4310
|
if ("development" !== 'production') {
|
4271
4311
|
if (!ReactComponentTreeHook) {
|
4272
|
-
ReactComponentTreeHook = _dereq_(
|
4312
|
+
ReactComponentTreeHook = _dereq_(131);
|
4273
4313
|
}
|
4274
4314
|
if (!keyUnique) {
|
4275
4315
|
"development" !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
|
@@ -4387,7 +4427,7 @@ var ReactChildReconciler = {
|
|
4387
4427
|
|
4388
4428
|
module.exports = ReactChildReconciler;
|
4389
4429
|
}).call(this,undefined)
|
4390
|
-
},{"
|
4430
|
+
},{"120":120,"128":128,"129":129,"131":131,"157":157,"23":23,"75":75}],28:[function(_dereq_,module,exports){
|
4391
4431
|
/**
|
4392
4432
|
* Copyright 2013-present, Facebook, Inc.
|
4393
4433
|
* All rights reserved.
|
@@ -4431,7 +4471,7 @@ module.exports = ReactComponentBrowserEnvironment;
|
|
4431
4471
|
|
4432
4472
|
'use strict';
|
4433
4473
|
|
4434
|
-
var _prodInvariant = _dereq_(
|
4474
|
+
var _prodInvariant = _dereq_(124);
|
4435
4475
|
|
4436
4476
|
var invariant = _dereq_(150);
|
4437
4477
|
|
@@ -4463,7 +4503,7 @@ var ReactComponentEnvironment = {
|
|
4463
4503
|
};
|
4464
4504
|
|
4465
4505
|
module.exports = ReactComponentEnvironment;
|
4466
|
-
},{"
|
4506
|
+
},{"124":124,"150":150}],30:[function(_dereq_,module,exports){
|
4467
4507
|
/**
|
4468
4508
|
* Copyright 2013-present, Facebook, Inc.
|
4469
4509
|
* All rights reserved.
|
@@ -4476,12 +4516,12 @@ module.exports = ReactComponentEnvironment;
|
|
4476
4516
|
|
4477
4517
|
'use strict';
|
4478
4518
|
|
4479
|
-
var _prodInvariant = _dereq_(
|
4519
|
+
var _prodInvariant = _dereq_(124),
|
4480
4520
|
_assign = _dereq_(158);
|
4481
4521
|
|
4482
|
-
var React = _dereq_(
|
4522
|
+
var React = _dereq_(133);
|
4483
4523
|
var ReactComponentEnvironment = _dereq_(29);
|
4484
|
-
var ReactCurrentOwner = _dereq_(
|
4524
|
+
var ReactCurrentOwner = _dereq_(132);
|
4485
4525
|
var ReactErrorUtils = _dereq_(55);
|
4486
4526
|
var ReactInstanceMap = _dereq_(63);
|
4487
4527
|
var ReactInstrumentation = _dereq_(64);
|
@@ -4495,7 +4535,7 @@ if ("development" !== 'production') {
|
|
4495
4535
|
var emptyObject = _dereq_(143);
|
4496
4536
|
var invariant = _dereq_(150);
|
4497
4537
|
var shallowEqual = _dereq_(156);
|
4498
|
-
var shouldUpdateReactComponent = _dereq_(
|
4538
|
+
var shouldUpdateReactComponent = _dereq_(128);
|
4499
4539
|
var warning = _dereq_(157);
|
4500
4540
|
|
4501
4541
|
var CompositeTypes = {
|
@@ -4698,7 +4738,7 @@ var ReactCompositeComponent = {
|
|
4698
4738
|
// Since plain JS classes are defined without any special initialization
|
4699
4739
|
// logic, we can not catch common errors early. Therefore, we have to
|
4700
4740
|
// catch them here, at initialization time, instead.
|
4701
|
-
"development" !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0;
|
4741
|
+
"development" !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0;
|
4702
4742
|
"development" !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : void 0;
|
4703
4743
|
"development" !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0;
|
4704
4744
|
"development" !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0;
|
@@ -4980,7 +5020,7 @@ var ReactCompositeComponent = {
|
|
4980
5020
|
if (childContext) {
|
4981
5021
|
!(typeof Component.childContextTypes === 'object') ? "development" !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0;
|
4982
5022
|
if ("development" !== 'production') {
|
4983
|
-
this._checkContextTypes(Component.childContextTypes, childContext, '
|
5023
|
+
this._checkContextTypes(Component.childContextTypes, childContext, 'child context');
|
4984
5024
|
}
|
4985
5025
|
for (var name in childContext) {
|
4986
5026
|
!(name in Component.childContextTypes) ? "development" !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0;
|
@@ -5365,7 +5405,7 @@ var ReactCompositeComponent = {
|
|
5365
5405
|
};
|
5366
5406
|
|
5367
5407
|
module.exports = ReactCompositeComponent;
|
5368
|
-
},{"104":104,"
|
5408
|
+
},{"104":104,"124":124,"128":128,"132":132,"133":133,"143":143,"150":150,"156":156,"157":157,"158":158,"29":29,"55":55,"63":63,"64":64,"69":69,"75":75}],31:[function(_dereq_,module,exports){
|
5369
5409
|
/**
|
5370
5410
|
* Copyright 2013-present, Facebook, Inc.
|
5371
5411
|
* All rights reserved.
|
@@ -5389,7 +5429,7 @@ var ReactVersion = _dereq_(83);
|
|
5389
5429
|
|
5390
5430
|
var findDOMNode = _dereq_(108);
|
5391
5431
|
var getHostComponentFromComposite = _dereq_(115);
|
5392
|
-
var renderSubtreeIntoContainer = _dereq_(
|
5432
|
+
var renderSubtreeIntoContainer = _dereq_(125);
|
5393
5433
|
var warning = _dereq_(157);
|
5394
5434
|
|
5395
5435
|
ReactDefaultInjection.inject();
|
@@ -5476,7 +5516,7 @@ if ("development" !== 'production') {
|
|
5476
5516
|
}
|
5477
5517
|
|
5478
5518
|
module.exports = ReactDOM;
|
5479
|
-
},{"108":108,"115":115,"
|
5519
|
+
},{"108":108,"115":115,"125":125,"136":136,"157":157,"34":34,"40":40,"41":41,"49":49,"52":52,"64":64,"67":67,"75":75,"82":82,"83":83}],32:[function(_dereq_,module,exports){
|
5480
5520
|
/**
|
5481
5521
|
* Copyright 2013-present, Facebook, Inc.
|
5482
5522
|
* All rights reserved.
|
@@ -5491,7 +5531,7 @@ module.exports = ReactDOM;
|
|
5491
5531
|
|
5492
5532
|
'use strict';
|
5493
5533
|
|
5494
|
-
var _prodInvariant = _dereq_(
|
5534
|
+
var _prodInvariant = _dereq_(124),
|
5495
5535
|
_assign = _dereq_(158);
|
5496
5536
|
|
5497
5537
|
var AutoFocusUtils = _dereq_(2);
|
@@ -5516,9 +5556,9 @@ var ReactServerRenderingTransaction = _dereq_(77);
|
|
5516
5556
|
var emptyFunction = _dereq_(142);
|
5517
5557
|
var escapeTextContentForBrowser = _dereq_(107);
|
5518
5558
|
var invariant = _dereq_(150);
|
5519
|
-
var isEventSupported = _dereq_(
|
5559
|
+
var isEventSupported = _dereq_(121);
|
5520
5560
|
var shallowEqual = _dereq_(156);
|
5521
|
-
var validateDOMNesting = _dereq_(
|
5561
|
+
var validateDOMNesting = _dereq_(130);
|
5522
5562
|
var warning = _dereq_(157);
|
5523
5563
|
|
5524
5564
|
var Flags = ReactDOMComponentFlags;
|
@@ -6160,12 +6200,18 @@ ReactDOMComponent.Mixin = {
|
|
6160
6200
|
} else {
|
6161
6201
|
var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
|
6162
6202
|
var childrenToUse = contentToUse != null ? null : props.children;
|
6203
|
+
// TODO: Validate that text is allowed as a child of this node
|
6163
6204
|
if (contentToUse != null) {
|
6164
|
-
//
|
6165
|
-
|
6166
|
-
|
6205
|
+
// Avoid setting textContent when the text is empty. In IE11 setting
|
6206
|
+
// textContent on a text area will cause the placeholder to not
|
6207
|
+
// show within the textarea until it has been focused and blurred again.
|
6208
|
+
// https://github.com/facebook/react/issues/6731#issuecomment-254874553
|
6209
|
+
if (contentToUse !== '') {
|
6210
|
+
if ("development" !== 'production') {
|
6211
|
+
setAndValidateContentChildDev.call(this, contentToUse);
|
6212
|
+
}
|
6213
|
+
DOMLazyTree.queueText(lazyTree, contentToUse);
|
6167
6214
|
}
|
6168
|
-
DOMLazyTree.queueText(lazyTree, contentToUse);
|
6169
6215
|
} else if (childrenToUse != null) {
|
6170
6216
|
var mountImages = this.mountChildren(childrenToUse, transaction, context);
|
6171
6217
|
for (var i = 0; i < mountImages.length; i++) {
|
@@ -6471,7 +6517,7 @@ ReactDOMComponent.Mixin = {
|
|
6471
6517
|
_assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin);
|
6472
6518
|
|
6473
6519
|
module.exports = ReactDOMComponent;
|
6474
|
-
},{"10":10,"107":107,"11":11,"12":12,"
|
6520
|
+
},{"10":10,"107":107,"11":11,"12":12,"121":121,"124":124,"130":130,"142":142,"150":150,"156":156,"157":157,"158":158,"17":17,"18":18,"2":2,"26":26,"33":33,"34":34,"39":39,"42":42,"43":43,"46":46,"5":5,"64":64,"68":68,"77":77,"9":9}],33:[function(_dereq_,module,exports){
|
6475
6521
|
/**
|
6476
6522
|
* Copyright 2015-present, Facebook, Inc.
|
6477
6523
|
* All rights reserved.
|
@@ -6502,7 +6548,7 @@ module.exports = ReactDOMComponentFlags;
|
|
6502
6548
|
|
6503
6549
|
'use strict';
|
6504
6550
|
|
6505
|
-
var _prodInvariant = _dereq_(
|
6551
|
+
var _prodInvariant = _dereq_(124);
|
6506
6552
|
|
6507
6553
|
var DOMProperty = _dereq_(11);
|
6508
6554
|
var ReactDOMComponentFlags = _dereq_(33);
|
@@ -6514,6 +6560,13 @@ var Flags = ReactDOMComponentFlags;
|
|
6514
6560
|
|
6515
6561
|
var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2);
|
6516
6562
|
|
6563
|
+
/**
|
6564
|
+
* Check if a given node should be cached.
|
6565
|
+
*/
|
6566
|
+
function shouldPrecacheNode(node, nodeID) {
|
6567
|
+
return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' ';
|
6568
|
+
}
|
6569
|
+
|
6517
6570
|
/**
|
6518
6571
|
* Drill down (through composites and empty components) until we get a host or
|
6519
6572
|
* host text component.
|
@@ -6579,7 +6632,7 @@ function precacheChildNodes(inst, node) {
|
|
6579
6632
|
}
|
6580
6633
|
// We assume the child nodes are in the same order as the child instances.
|
6581
6634
|
for (; childNode !== null; childNode = childNode.nextSibling) {
|
6582
|
-
if (
|
6635
|
+
if (shouldPrecacheNode(childNode, childID)) {
|
6583
6636
|
precacheNode(childInst, childNode);
|
6584
6637
|
continue outer;
|
6585
6638
|
}
|
@@ -6677,7 +6730,7 @@ var ReactDOMComponentTree = {
|
|
6677
6730
|
};
|
6678
6731
|
|
6679
6732
|
module.exports = ReactDOMComponentTree;
|
6680
|
-
},{"11":11,"
|
6733
|
+
},{"11":11,"124":124,"150":150,"33":33}],35:[function(_dereq_,module,exports){
|
6681
6734
|
/**
|
6682
6735
|
* Copyright 2013-present, Facebook, Inc.
|
6683
6736
|
* All rights reserved.
|
@@ -6690,7 +6743,7 @@ module.exports = ReactDOMComponentTree;
|
|
6690
6743
|
|
6691
6744
|
'use strict';
|
6692
6745
|
|
6693
|
-
var validateDOMNesting = _dereq_(
|
6746
|
+
var validateDOMNesting = _dereq_(130);
|
6694
6747
|
|
6695
6748
|
var DOC_NODE_TYPE = 9;
|
6696
6749
|
|
@@ -6710,7 +6763,7 @@ function ReactDOMContainerInfo(topLevelWrapper, node) {
|
|
6710
6763
|
}
|
6711
6764
|
|
6712
6765
|
module.exports = ReactDOMContainerInfo;
|
6713
|
-
},{"
|
6766
|
+
},{"130":130}],36:[function(_dereq_,module,exports){
|
6714
6767
|
/**
|
6715
6768
|
* Copyright 2014-present, Facebook, Inc.
|
6716
6769
|
* All rights reserved.
|
@@ -6836,7 +6889,7 @@ module.exports = ReactDOMIDOperations;
|
|
6836
6889
|
|
6837
6890
|
'use strict';
|
6838
6891
|
|
6839
|
-
var _prodInvariant = _dereq_(
|
6892
|
+
var _prodInvariant = _dereq_(124),
|
6840
6893
|
_assign = _dereq_(158);
|
6841
6894
|
|
6842
6895
|
var DOMPropertyOperations = _dereq_(12);
|
@@ -6938,12 +6991,9 @@ var ReactDOMInput = {
|
|
6938
6991
|
initialChecked: props.checked != null ? props.checked : props.defaultChecked,
|
6939
6992
|
initialValue: props.value != null ? props.value : defaultValue,
|
6940
6993
|
listeners: null,
|
6941
|
-
onChange: _handleChange.bind(inst)
|
6994
|
+
onChange: _handleChange.bind(inst),
|
6995
|
+
controlled: isControlled(props)
|
6942
6996
|
};
|
6943
|
-
|
6944
|
-
if ("development" !== 'production') {
|
6945
|
-
inst._wrapperState.controlled = isControlled(props);
|
6946
|
-
}
|
6947
6997
|
},
|
6948
6998
|
|
6949
6999
|
updateWrapper: function (inst) {
|
@@ -6972,18 +7022,38 @@ var ReactDOMInput = {
|
|
6972
7022
|
var node = ReactDOMComponentTree.getNodeFromInstance(inst);
|
6973
7023
|
var value = LinkedValueUtils.getValue(props);
|
6974
7024
|
if (value != null) {
|
6975
|
-
|
6976
|
-
|
6977
|
-
|
6978
|
-
|
6979
|
-
|
6980
|
-
|
6981
|
-
|
6982
|
-
|
7025
|
+
if (value === 0 && node.value === '') {
|
7026
|
+
node.value = '0';
|
7027
|
+
// Note: IE9 reports a number inputs as 'text', so check props instead.
|
7028
|
+
} else if (props.type === 'number') {
|
7029
|
+
// Simulate `input.valueAsNumber`. IE9 does not support it
|
7030
|
+
var valueAsNumber = parseFloat(node.value, 10) || 0;
|
7031
|
+
|
7032
|
+
// eslint-disable-next-line
|
7033
|
+
if (value != valueAsNumber) {
|
7034
|
+
// Cast `value` to a string to ensure the value is set correctly. While
|
7035
|
+
// browsers typically do this as necessary, jsdom doesn't.
|
7036
|
+
node.value = '' + value;
|
7037
|
+
}
|
7038
|
+
// eslint-disable-next-line
|
7039
|
+
} else if (value != node.value) {
|
7040
|
+
// Cast `value` to a string to ensure the value is set correctly. While
|
7041
|
+
// browsers typically do this as necessary, jsdom doesn't.
|
7042
|
+
node.value = '' + value;
|
6983
7043
|
}
|
6984
7044
|
} else {
|
6985
7045
|
if (props.value == null && props.defaultValue != null) {
|
6986
|
-
|
7046
|
+
// In Chrome, assigning defaultValue to certain input types triggers input validation.
|
7047
|
+
// For number inputs, the display value loses trailing decimal points. For email inputs,
|
7048
|
+
// Chrome raises "The specified value <x> is not a valid email address".
|
7049
|
+
//
|
7050
|
+
// Here we check to see if the defaultValue has actually changed, avoiding these problems
|
7051
|
+
// when the user is inputting text
|
7052
|
+
//
|
7053
|
+
// https://github.com/facebook/react/issues/7253
|
7054
|
+
if (node.defaultValue !== '' + props.defaultValue) {
|
7055
|
+
node.defaultValue = '' + props.defaultValue;
|
7056
|
+
}
|
6987
7057
|
}
|
6988
7058
|
if (props.checked == null && props.defaultChecked != null) {
|
6989
7059
|
node.defaultChecked = !!props.defaultChecked;
|
@@ -7091,7 +7161,7 @@ function _handleChange(event) {
|
|
7091
7161
|
}
|
7092
7162
|
|
7093
7163
|
module.exports = ReactDOMInput;
|
7094
|
-
},{"12":12,"
|
7164
|
+
},{"12":12,"124":124,"150":150,"157":157,"158":158,"24":24,"34":34,"82":82}],40:[function(_dereq_,module,exports){
|
7095
7165
|
/**
|
7096
7166
|
* Copyright 2013-present, Facebook, Inc.
|
7097
7167
|
* All rights reserved.
|
@@ -7105,7 +7175,7 @@ module.exports = ReactDOMInput;
|
|
7105
7175
|
'use strict';
|
7106
7176
|
|
7107
7177
|
var DOMProperty = _dereq_(11);
|
7108
|
-
var ReactComponentTreeHook = _dereq_(
|
7178
|
+
var ReactComponentTreeHook = _dereq_(131);
|
7109
7179
|
|
7110
7180
|
var warning = _dereq_(157);
|
7111
7181
|
|
@@ -7184,7 +7254,7 @@ var ReactDOMInvalidARIAHook = {
|
|
7184
7254
|
};
|
7185
7255
|
|
7186
7256
|
module.exports = ReactDOMInvalidARIAHook;
|
7187
|
-
},{"11":11,"
|
7257
|
+
},{"11":11,"131":131,"157":157}],41:[function(_dereq_,module,exports){
|
7188
7258
|
/**
|
7189
7259
|
* Copyright 2013-present, Facebook, Inc.
|
7190
7260
|
* All rights reserved.
|
@@ -7197,7 +7267,7 @@ module.exports = ReactDOMInvalidARIAHook;
|
|
7197
7267
|
|
7198
7268
|
'use strict';
|
7199
7269
|
|
7200
|
-
var ReactComponentTreeHook = _dereq_(
|
7270
|
+
var ReactComponentTreeHook = _dereq_(131);
|
7201
7271
|
|
7202
7272
|
var warning = _dereq_(157);
|
7203
7273
|
|
@@ -7227,7 +7297,7 @@ var ReactDOMNullInputValuePropHook = {
|
|
7227
7297
|
};
|
7228
7298
|
|
7229
7299
|
module.exports = ReactDOMNullInputValuePropHook;
|
7230
|
-
},{"
|
7300
|
+
},{"131":131,"157":157}],42:[function(_dereq_,module,exports){
|
7231
7301
|
/**
|
7232
7302
|
* Copyright 2013-present, Facebook, Inc.
|
7233
7303
|
* All rights reserved.
|
@@ -7242,7 +7312,7 @@ module.exports = ReactDOMNullInputValuePropHook;
|
|
7242
7312
|
|
7243
7313
|
var _assign = _dereq_(158);
|
7244
7314
|
|
7245
|
-
var React = _dereq_(
|
7315
|
+
var React = _dereq_(133);
|
7246
7316
|
var ReactDOMComponentTree = _dereq_(34);
|
7247
7317
|
var ReactDOMSelect = _dereq_(43);
|
7248
7318
|
|
@@ -7350,7 +7420,7 @@ var ReactDOMOption = {
|
|
7350
7420
|
};
|
7351
7421
|
|
7352
7422
|
module.exports = ReactDOMOption;
|
7353
|
-
},{"
|
7423
|
+
},{"133":133,"157":157,"158":158,"34":34,"43":43}],43:[function(_dereq_,module,exports){
|
7354
7424
|
/**
|
7355
7425
|
* Copyright 2013-present, Facebook, Inc.
|
7356
7426
|
* All rights reserved.
|
@@ -7565,8 +7635,8 @@ module.exports = ReactDOMSelect;
|
|
7565
7635
|
|
7566
7636
|
var ExecutionEnvironment = _dereq_(136);
|
7567
7637
|
|
7568
|
-
var getNodeForCharacterOffset = _dereq_(
|
7569
|
-
var getTextContentAccessor = _dereq_(
|
7638
|
+
var getNodeForCharacterOffset = _dereq_(117);
|
7639
|
+
var getTextContentAccessor = _dereq_(118);
|
7570
7640
|
|
7571
7641
|
/**
|
7572
7642
|
* While `isCollapsed` is available on the Selection object and `collapsed`
|
@@ -7762,7 +7832,7 @@ var ReactDOMSelection = {
|
|
7762
7832
|
};
|
7763
7833
|
|
7764
7834
|
module.exports = ReactDOMSelection;
|
7765
|
-
},{"
|
7835
|
+
},{"117":117,"118":118,"136":136}],45:[function(_dereq_,module,exports){
|
7766
7836
|
/**
|
7767
7837
|
* Copyright 2013-present, Facebook, Inc.
|
7768
7838
|
* All rights reserved.
|
@@ -7775,7 +7845,7 @@ module.exports = ReactDOMSelection;
|
|
7775
7845
|
|
7776
7846
|
'use strict';
|
7777
7847
|
|
7778
|
-
var _prodInvariant = _dereq_(
|
7848
|
+
var _prodInvariant = _dereq_(124),
|
7779
7849
|
_assign = _dereq_(158);
|
7780
7850
|
|
7781
7851
|
var DOMChildrenOperations = _dereq_(8);
|
@@ -7784,7 +7854,7 @@ var ReactDOMComponentTree = _dereq_(34);
|
|
7784
7854
|
|
7785
7855
|
var escapeTextContentForBrowser = _dereq_(107);
|
7786
7856
|
var invariant = _dereq_(150);
|
7787
|
-
var validateDOMNesting = _dereq_(
|
7857
|
+
var validateDOMNesting = _dereq_(130);
|
7788
7858
|
|
7789
7859
|
/**
|
7790
7860
|
* Text nodes violate a couple assumptions that React makes about components:
|
@@ -7926,7 +7996,7 @@ _assign(ReactDOMTextComponent.prototype, {
|
|
7926
7996
|
});
|
7927
7997
|
|
7928
7998
|
module.exports = ReactDOMTextComponent;
|
7929
|
-
},{"107":107,"
|
7999
|
+
},{"107":107,"124":124,"130":130,"150":150,"158":158,"34":34,"8":8,"9":9}],46:[function(_dereq_,module,exports){
|
7930
8000
|
/**
|
7931
8001
|
* Copyright 2013-present, Facebook, Inc.
|
7932
8002
|
* All rights reserved.
|
@@ -7939,7 +8009,7 @@ module.exports = ReactDOMTextComponent;
|
|
7939
8009
|
|
7940
8010
|
'use strict';
|
7941
8011
|
|
7942
|
-
var _prodInvariant = _dereq_(
|
8012
|
+
var _prodInvariant = _dereq_(124),
|
7943
8013
|
_assign = _dereq_(158);
|
7944
8014
|
|
7945
8015
|
var LinkedValueUtils = _dereq_(24);
|
@@ -8066,9 +8136,15 @@ var ReactDOMTextarea = {
|
|
8066
8136
|
// This is in postMount because we need access to the DOM node, which is not
|
8067
8137
|
// available until after the component has mounted.
|
8068
8138
|
var node = ReactDOMComponentTree.getNodeFromInstance(inst);
|
8139
|
+
var textContent = node.textContent;
|
8069
8140
|
|
8070
|
-
//
|
8071
|
-
|
8141
|
+
// Only set node.value if textContent is equal to the expected
|
8142
|
+
// initial value. In IE10/IE11 there is a bug where the placeholder attribute
|
8143
|
+
// will populate textContent as well.
|
8144
|
+
// https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
|
8145
|
+
if (textContent === inst._wrapperState.initialValue) {
|
8146
|
+
node.value = textContent;
|
8147
|
+
}
|
8072
8148
|
}
|
8073
8149
|
};
|
8074
8150
|
|
@@ -8080,7 +8156,7 @@ function _handleChange(event) {
|
|
8080
8156
|
}
|
8081
8157
|
|
8082
8158
|
module.exports = ReactDOMTextarea;
|
8083
|
-
},{"
|
8159
|
+
},{"124":124,"150":150,"157":157,"158":158,"24":24,"34":34,"82":82}],47:[function(_dereq_,module,exports){
|
8084
8160
|
/**
|
8085
8161
|
* Copyright 2015-present, Facebook, Inc.
|
8086
8162
|
* All rights reserved.
|
@@ -8093,7 +8169,7 @@ module.exports = ReactDOMTextarea;
|
|
8093
8169
|
|
8094
8170
|
'use strict';
|
8095
8171
|
|
8096
|
-
var _prodInvariant = _dereq_(
|
8172
|
+
var _prodInvariant = _dereq_(124);
|
8097
8173
|
|
8098
8174
|
var invariant = _dereq_(150);
|
8099
8175
|
|
@@ -8216,7 +8292,7 @@ module.exports = {
|
|
8216
8292
|
traverseTwoPhase: traverseTwoPhase,
|
8217
8293
|
traverseEnterLeave: traverseEnterLeave
|
8218
8294
|
};
|
8219
|
-
},{"
|
8295
|
+
},{"124":124,"150":150}],48:[function(_dereq_,module,exports){
|
8220
8296
|
/**
|
8221
8297
|
* Copyright 2013-present, Facebook, Inc.
|
8222
8298
|
* All rights reserved.
|
@@ -8229,27 +8305,28 @@ module.exports = {
|
|
8229
8305
|
|
8230
8306
|
'use strict';
|
8231
8307
|
|
8232
|
-
var
|
8233
|
-
|
8308
|
+
var React = _dereq_(133);
|
8234
8309
|
var ReactDOM = _dereq_(31);
|
8235
8310
|
|
8236
|
-
var ReactDOMUMDEntry =
|
8237
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
8238
|
-
ReactInstanceMap: _dereq_(63)
|
8239
|
-
}
|
8240
|
-
}, ReactDOM);
|
8311
|
+
var ReactDOMUMDEntry = ReactDOM;
|
8241
8312
|
|
8242
8313
|
if ("development" !== 'production') {
|
8243
|
-
|
8314
|
+
ReactDOMUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
8244
8315
|
// ReactPerf and ReactTestUtils currently only work with the DOM renderer
|
8245
8316
|
// so we expose them from here, but only in DEV mode.
|
8246
8317
|
ReactPerf: _dereq_(71),
|
8247
8318
|
ReactTestUtils: _dereq_(80)
|
8248
|
-
}
|
8319
|
+
};
|
8320
|
+
}
|
8321
|
+
|
8322
|
+
// Inject ReactDOM into React for the addons UMD build that depends on ReactDOM (TransitionGroup).
|
8323
|
+
// We can remove this after we deprecate and remove the addons UMD build.
|
8324
|
+
if (React.addons) {
|
8325
|
+
React.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMUMDEntry;
|
8249
8326
|
}
|
8250
8327
|
|
8251
8328
|
module.exports = ReactDOMUMDEntry;
|
8252
|
-
},{"
|
8329
|
+
},{"133":133,"31":31,"71":71,"80":80}],49:[function(_dereq_,module,exports){
|
8253
8330
|
/**
|
8254
8331
|
* Copyright 2013-present, Facebook, Inc.
|
8255
8332
|
* All rights reserved.
|
@@ -8264,7 +8341,7 @@ module.exports = ReactDOMUMDEntry;
|
|
8264
8341
|
|
8265
8342
|
var DOMProperty = _dereq_(11);
|
8266
8343
|
var EventPluginRegistry = _dereq_(18);
|
8267
|
-
var ReactComponentTreeHook = _dereq_(
|
8344
|
+
var ReactComponentTreeHook = _dereq_(131);
|
8268
8345
|
|
8269
8346
|
var warning = _dereq_(157);
|
8270
8347
|
|
@@ -8361,7 +8438,7 @@ var ReactDOMUnknownPropertyHook = {
|
|
8361
8438
|
};
|
8362
8439
|
|
8363
8440
|
module.exports = ReactDOMUnknownPropertyHook;
|
8364
|
-
},{"11":11,"
|
8441
|
+
},{"11":11,"131":131,"157":157,"18":18}],50:[function(_dereq_,module,exports){
|
8365
8442
|
/**
|
8366
8443
|
* Copyright 2016-present, Facebook, Inc.
|
8367
8444
|
* All rights reserved.
|
@@ -8377,7 +8454,7 @@ module.exports = ReactDOMUnknownPropertyHook;
|
|
8377
8454
|
|
8378
8455
|
var ReactInvalidSetStateWarningHook = _dereq_(65);
|
8379
8456
|
var ReactHostOperationHistoryHook = _dereq_(60);
|
8380
|
-
var ReactComponentTreeHook = _dereq_(
|
8457
|
+
var ReactComponentTreeHook = _dereq_(131);
|
8381
8458
|
var ExecutionEnvironment = _dereq_(136);
|
8382
8459
|
|
8383
8460
|
var performanceNow = _dereq_(155);
|
@@ -8542,9 +8619,7 @@ function resumeCurrentLifeCycleTimer() {
|
|
8542
8619
|
}
|
8543
8620
|
|
8544
8621
|
var lastMarkTimeStamp = 0;
|
8545
|
-
var canUsePerformanceMeasure =
|
8546
|
-
// $FlowFixMe https://github.com/facebook/flow/issues/2345
|
8547
|
-
typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
|
8622
|
+
var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
|
8548
8623
|
|
8549
8624
|
function shouldMark(debugID) {
|
8550
8625
|
if (!isProfiling || !canUsePerformanceMeasure) {
|
@@ -8722,7 +8797,7 @@ if (/[?&]react_perf\b/.test(url)) {
|
|
8722
8797
|
}
|
8723
8798
|
|
8724
8799
|
module.exports = ReactDebugTool;
|
8725
|
-
},{"
|
8800
|
+
},{"131":131,"136":136,"155":155,"157":157,"60":60,"65":65}],51:[function(_dereq_,module,exports){
|
8726
8801
|
/**
|
8727
8802
|
* Copyright 2013-present, Facebook, Inc.
|
8728
8803
|
* All rights reserved.
|
@@ -8994,7 +9069,6 @@ if ("development" !== 'production') {
|
|
8994
9069
|
var evtType = 'react-' + name;
|
8995
9070
|
fakeNode.addEventListener(evtType, boundFunc, false);
|
8996
9071
|
var evt = document.createEvent('Event');
|
8997
|
-
// $FlowFixMe https://github.com/facebook/flow/issues/2336
|
8998
9072
|
evt.initEvent(evtType, false, false);
|
8999
9073
|
fakeNode.dispatchEvent(evt);
|
9000
9074
|
fakeNode.removeEventListener(evtType, boundFunc, false);
|
@@ -9226,14 +9300,11 @@ module.exports = ReactFeatureFlags;
|
|
9226
9300
|
|
9227
9301
|
'use strict';
|
9228
9302
|
|
9229
|
-
var _prodInvariant = _dereq_(
|
9230
|
-
_assign = _dereq_(158);
|
9303
|
+
var _prodInvariant = _dereq_(124);
|
9231
9304
|
|
9232
9305
|
var invariant = _dereq_(150);
|
9233
9306
|
|
9234
9307
|
var genericComponentClass = null;
|
9235
|
-
// This registry keeps track of wrapper classes around host tags.
|
9236
|
-
var tagToComponentClass = {};
|
9237
9308
|
var textComponentClass = null;
|
9238
9309
|
|
9239
9310
|
var ReactHostComponentInjection = {
|
@@ -9246,11 +9317,6 @@ var ReactHostComponentInjection = {
|
|
9246
9317
|
// rendered as props.
|
9247
9318
|
injectTextComponentClass: function (componentClass) {
|
9248
9319
|
textComponentClass = componentClass;
|
9249
|
-
},
|
9250
|
-
// This accepts a keyed object with classes as values. Each key represents a
|
9251
|
-
// tag. That particular tag will use this class instead of the generic one.
|
9252
|
-
injectComponentClasses: function (componentClasses) {
|
9253
|
-
_assign(tagToComponentClass, componentClasses);
|
9254
9320
|
}
|
9255
9321
|
};
|
9256
9322
|
|
@@ -9289,7 +9355,7 @@ var ReactHostComponent = {
|
|
9289
9355
|
};
|
9290
9356
|
|
9291
9357
|
module.exports = ReactHostComponent;
|
9292
|
-
},{"
|
9358
|
+
},{"124":124,"150":150}],60:[function(_dereq_,module,exports){
|
9293
9359
|
/**
|
9294
9360
|
* Copyright 2016-present, Facebook, Inc.
|
9295
9361
|
* All rights reserved.
|
@@ -9653,13 +9719,13 @@ module.exports = ReactMarkupChecksum;
|
|
9653
9719
|
|
9654
9720
|
'use strict';
|
9655
9721
|
|
9656
|
-
var _prodInvariant = _dereq_(
|
9722
|
+
var _prodInvariant = _dereq_(124);
|
9657
9723
|
|
9658
9724
|
var DOMLazyTree = _dereq_(9);
|
9659
9725
|
var DOMProperty = _dereq_(11);
|
9660
|
-
var React = _dereq_(
|
9726
|
+
var React = _dereq_(133);
|
9661
9727
|
var ReactBrowserEventEmitter = _dereq_(26);
|
9662
|
-
var ReactCurrentOwner = _dereq_(
|
9728
|
+
var ReactCurrentOwner = _dereq_(132);
|
9663
9729
|
var ReactDOMComponentTree = _dereq_(34);
|
9664
9730
|
var ReactDOMContainerInfo = _dereq_(35);
|
9665
9731
|
var ReactDOMFeatureFlags = _dereq_(37);
|
@@ -9672,10 +9738,10 @@ var ReactUpdateQueue = _dereq_(81);
|
|
9672
9738
|
var ReactUpdates = _dereq_(82);
|
9673
9739
|
|
9674
9740
|
var emptyObject = _dereq_(143);
|
9675
|
-
var instantiateReactComponent = _dereq_(
|
9741
|
+
var instantiateReactComponent = _dereq_(120);
|
9676
9742
|
var invariant = _dereq_(150);
|
9677
|
-
var setInnerHTML = _dereq_(
|
9678
|
-
var shouldUpdateReactComponent = _dereq_(
|
9743
|
+
var setInnerHTML = _dereq_(126);
|
9744
|
+
var shouldUpdateReactComponent = _dereq_(128);
|
9679
9745
|
var warning = _dereq_(157);
|
9680
9746
|
|
9681
9747
|
var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
|
@@ -10178,7 +10244,7 @@ var ReactMount = {
|
|
10178
10244
|
};
|
10179
10245
|
|
10180
10246
|
module.exports = ReactMount;
|
10181
|
-
},{"11":11,"
|
10247
|
+
},{"11":11,"120":120,"124":124,"126":126,"128":128,"132":132,"133":133,"143":143,"150":150,"157":157,"26":26,"34":34,"35":35,"37":37,"58":58,"63":63,"64":64,"66":66,"75":75,"81":81,"82":82,"9":9}],68:[function(_dereq_,module,exports){
|
10182
10248
|
/**
|
10183
10249
|
* Copyright 2013-present, Facebook, Inc.
|
10184
10250
|
* All rights reserved.
|
@@ -10191,13 +10257,13 @@ module.exports = ReactMount;
|
|
10191
10257
|
|
10192
10258
|
'use strict';
|
10193
10259
|
|
10194
|
-
var _prodInvariant = _dereq_(
|
10260
|
+
var _prodInvariant = _dereq_(124);
|
10195
10261
|
|
10196
10262
|
var ReactComponentEnvironment = _dereq_(29);
|
10197
10263
|
var ReactInstanceMap = _dereq_(63);
|
10198
10264
|
var ReactInstrumentation = _dereq_(64);
|
10199
10265
|
|
10200
|
-
var ReactCurrentOwner = _dereq_(
|
10266
|
+
var ReactCurrentOwner = _dereq_(132);
|
10201
10267
|
var ReactReconciler = _dereq_(75);
|
10202
10268
|
var ReactChildReconciler = _dereq_(27);
|
10203
10269
|
|
@@ -10628,7 +10694,7 @@ var ReactMultiChild = {
|
|
10628
10694
|
};
|
10629
10695
|
|
10630
10696
|
module.exports = ReactMultiChild;
|
10631
|
-
},{"109":109,"
|
10697
|
+
},{"109":109,"124":124,"132":132,"142":142,"150":150,"27":27,"29":29,"63":63,"64":64,"75":75}],69:[function(_dereq_,module,exports){
|
10632
10698
|
/**
|
10633
10699
|
* Copyright 2013-present, Facebook, Inc.
|
10634
10700
|
* All rights reserved.
|
@@ -10642,9 +10708,9 @@ module.exports = ReactMultiChild;
|
|
10642
10708
|
|
10643
10709
|
'use strict';
|
10644
10710
|
|
10645
|
-
var _prodInvariant = _dereq_(
|
10711
|
+
var _prodInvariant = _dereq_(124);
|
10646
10712
|
|
10647
|
-
var React = _dereq_(
|
10713
|
+
var React = _dereq_(133);
|
10648
10714
|
|
10649
10715
|
var invariant = _dereq_(150);
|
10650
10716
|
|
@@ -10668,7 +10734,7 @@ var ReactNodeTypes = {
|
|
10668
10734
|
};
|
10669
10735
|
|
10670
10736
|
module.exports = ReactNodeTypes;
|
10671
|
-
},{"
|
10737
|
+
},{"124":124,"133":133,"150":150}],70:[function(_dereq_,module,exports){
|
10672
10738
|
/**
|
10673
10739
|
* Copyright 2013-present, Facebook, Inc.
|
10674
10740
|
* All rights reserved.
|
@@ -10682,7 +10748,7 @@ module.exports = ReactNodeTypes;
|
|
10682
10748
|
|
10683
10749
|
'use strict';
|
10684
10750
|
|
10685
|
-
var _prodInvariant = _dereq_(
|
10751
|
+
var _prodInvariant = _dereq_(124);
|
10686
10752
|
|
10687
10753
|
var invariant = _dereq_(150);
|
10688
10754
|
|
@@ -10762,7 +10828,7 @@ var ReactOwner = {
|
|
10762
10828
|
};
|
10763
10829
|
|
10764
10830
|
module.exports = ReactOwner;
|
10765
|
-
},{"
|
10831
|
+
},{"124":124,"150":150}],71:[function(_dereq_,module,exports){
|
10766
10832
|
/**
|
10767
10833
|
* Copyright 2016-present, Facebook, Inc.
|
10768
10834
|
* All rights reserved.
|
@@ -11982,21 +12048,27 @@ module.exports = ReactServerUpdateQueue;
|
|
11982
12048
|
|
11983
12049
|
'use strict';
|
11984
12050
|
|
11985
|
-
var _prodInvariant = _dereq_(
|
12051
|
+
var _prodInvariant = _dereq_(124),
|
11986
12052
|
_assign = _dereq_(158);
|
11987
12053
|
|
11988
12054
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
11989
12055
|
|
11990
|
-
var React = _dereq_(
|
11991
|
-
var ReactDefaultInjection = _dereq_(52);
|
12056
|
+
var React = _dereq_(133);
|
11992
12057
|
var ReactCompositeComponent = _dereq_(30);
|
12058
|
+
var ReactDefaultBatchingStrategy = _dereq_(51);
|
11993
12059
|
var ReactReconciler = _dereq_(75);
|
12060
|
+
var ReactReconcileTransaction = _dereq_(74);
|
11994
12061
|
var ReactUpdates = _dereq_(82);
|
11995
12062
|
|
11996
12063
|
var emptyObject = _dereq_(143);
|
11997
|
-
var getNextDebugID = _dereq_(
|
12064
|
+
var getNextDebugID = _dereq_(134);
|
11998
12065
|
var invariant = _dereq_(150);
|
11999
12066
|
|
12067
|
+
function injectDefaults() {
|
12068
|
+
ReactUpdates.injection.injectReconcileTransaction(ReactReconcileTransaction);
|
12069
|
+
ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy);
|
12070
|
+
}
|
12071
|
+
|
12000
12072
|
var NoopInternalComponent = function () {
|
12001
12073
|
function NoopInternalComponent(element) {
|
12002
12074
|
_classCallCheck(this, NoopInternalComponent);
|
@@ -12067,7 +12139,7 @@ var ReactShallowRenderer = function () {
|
|
12067
12139
|
// Ensure we've done the default injections. This might not be true in the
|
12068
12140
|
// case of a simple test that only requires React and the TestUtils in
|
12069
12141
|
// conjunction with an inline-requires transform.
|
12070
|
-
|
12142
|
+
injectDefaults();
|
12071
12143
|
|
12072
12144
|
!React.isValidElement(element) ? "development" !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Invalid component element.%s', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : _prodInvariant('12', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : void 0;
|
12073
12145
|
!(typeof element.type !== 'string') ? "development" !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Shallow rendering works only with custom components, not primitives (%s). Instead of calling `.render(el)` and inspecting the rendered output, look at `el.props` directly instead.', element.type) : _prodInvariant('13', element.type) : void 0;
|
@@ -12090,6 +12162,12 @@ var ReactShallowRenderer = function () {
|
|
12090
12162
|
}
|
12091
12163
|
};
|
12092
12164
|
|
12165
|
+
ReactShallowRenderer.prototype.unstable_batchedUpdates = function unstable_batchedUpdates(callback, bookkeeping) {
|
12166
|
+
// This is used by Enzyme for fake-simulating events in shallow mode.
|
12167
|
+
injectDefaults();
|
12168
|
+
return ReactUpdates.batchedUpdates(callback, bookkeeping);
|
12169
|
+
};
|
12170
|
+
|
12093
12171
|
ReactShallowRenderer.prototype._render = function _render(element, transaction, context) {
|
12094
12172
|
if (this._instance) {
|
12095
12173
|
ReactReconciler.receiveComponent(this._instance, element, transaction, context);
|
@@ -12103,8 +12181,12 @@ var ReactShallowRenderer = function () {
|
|
12103
12181
|
return ReactShallowRenderer;
|
12104
12182
|
}();
|
12105
12183
|
|
12184
|
+
ReactShallowRenderer.createRenderer = function () {
|
12185
|
+
return new ReactShallowRenderer();
|
12186
|
+
};
|
12187
|
+
|
12106
12188
|
module.exports = ReactShallowRenderer;
|
12107
|
-
},{"
|
12189
|
+
},{"124":124,"133":133,"134":134,"143":143,"150":150,"158":158,"30":30,"51":51,"74":74,"75":75,"82":82}],80:[function(_dereq_,module,exports){
|
12108
12190
|
/**
|
12109
12191
|
* Copyright 2013-present, Facebook, Inc.
|
12110
12192
|
* All rights reserved.
|
@@ -12117,14 +12199,14 @@ module.exports = ReactShallowRenderer;
|
|
12117
12199
|
|
12118
12200
|
'use strict';
|
12119
12201
|
|
12120
|
-
var _prodInvariant = _dereq_(
|
12202
|
+
var _prodInvariant = _dereq_(124),
|
12121
12203
|
_assign = _dereq_(158);
|
12122
12204
|
|
12123
12205
|
var EventConstants = _dereq_(16);
|
12124
12206
|
var EventPluginHub = _dereq_(17);
|
12125
12207
|
var EventPluginRegistry = _dereq_(18);
|
12126
12208
|
var EventPropagators = _dereq_(20);
|
12127
|
-
var React = _dereq_(
|
12209
|
+
var React = _dereq_(133);
|
12128
12210
|
var ReactDOM = _dereq_(31);
|
12129
12211
|
var ReactDOMComponentTree = _dereq_(34);
|
12130
12212
|
var ReactBrowserEventEmitter = _dereq_(26);
|
@@ -12135,11 +12217,23 @@ var ReactShallowRenderer = _dereq_(79);
|
|
12135
12217
|
|
12136
12218
|
var findDOMNode = _dereq_(108);
|
12137
12219
|
var invariant = _dereq_(150);
|
12220
|
+
var warning = _dereq_(157);
|
12138
12221
|
|
12139
12222
|
var topLevelTypes = EventConstants.topLevelTypes;
|
12140
12223
|
|
12141
12224
|
function Event(suffix) {}
|
12142
12225
|
|
12226
|
+
// In react 16+ shallowRenderer will not be accessible via ReactTestUtils.createRenderer()
|
12227
|
+
// Instead it will be available via react-test-renderer/shallow
|
12228
|
+
// Maintain backwards compat for 15.5.0 release, but warn about using the deprecated method
|
12229
|
+
var hasWarnedAboutCreateRenderer = false;
|
12230
|
+
function createRendererWithWarning() {
|
12231
|
+
"development" !== 'production' ? warning(hasWarnedAboutCreateRenderer, 'Shallow renderer has been moved to react-test-renderer/shallow. ' + 'Update references to remove this warning.') : void 0;
|
12232
|
+
hasWarnedAboutCreateRenderer = true;
|
12233
|
+
|
12234
|
+
return new ReactShallowRenderer();
|
12235
|
+
}
|
12236
|
+
|
12143
12237
|
/**
|
12144
12238
|
* @class ReactTestUtils
|
12145
12239
|
*/
|
@@ -12396,9 +12490,7 @@ var ReactTestUtils = {
|
|
12396
12490
|
};
|
12397
12491
|
},
|
12398
12492
|
|
12399
|
-
createRenderer:
|
12400
|
-
return new ReactShallowRenderer();
|
12401
|
-
},
|
12493
|
+
createRenderer: createRendererWithWarning,
|
12402
12494
|
|
12403
12495
|
Simulate: null,
|
12404
12496
|
SimulateNative: {}
|
@@ -12516,7 +12608,7 @@ Object.keys(topLevelTypes).forEach(function (eventType) {
|
|
12516
12608
|
});
|
12517
12609
|
|
12518
12610
|
module.exports = ReactTestUtils;
|
12519
|
-
},{"108":108,"
|
12611
|
+
},{"108":108,"124":124,"133":133,"150":150,"157":157,"158":158,"16":16,"17":17,"18":18,"20":20,"26":26,"31":31,"34":34,"63":63,"79":79,"82":82,"91":91}],81:[function(_dereq_,module,exports){
|
12520
12612
|
/**
|
12521
12613
|
* Copyright 2015-present, Facebook, Inc.
|
12522
12614
|
* All rights reserved.
|
@@ -12529,9 +12621,9 @@ module.exports = ReactTestUtils;
|
|
12529
12621
|
|
12530
12622
|
'use strict';
|
12531
12623
|
|
12532
|
-
var _prodInvariant = _dereq_(
|
12624
|
+
var _prodInvariant = _dereq_(124);
|
12533
12625
|
|
12534
|
-
var ReactCurrentOwner = _dereq_(
|
12626
|
+
var ReactCurrentOwner = _dereq_(132);
|
12535
12627
|
var ReactInstanceMap = _dereq_(63);
|
12536
12628
|
var ReactInstrumentation = _dereq_(64);
|
12537
12629
|
var ReactUpdates = _dereq_(82);
|
@@ -12687,7 +12779,7 @@ var ReactUpdateQueue = {
|
|
12687
12779
|
* @param {object} completeState Next state.
|
12688
12780
|
* @internal
|
12689
12781
|
*/
|
12690
|
-
enqueueReplaceState: function (publicInstance, completeState) {
|
12782
|
+
enqueueReplaceState: function (publicInstance, completeState, callback) {
|
12691
12783
|
var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState');
|
12692
12784
|
|
12693
12785
|
if (!internalInstance) {
|
@@ -12697,6 +12789,16 @@ var ReactUpdateQueue = {
|
|
12697
12789
|
internalInstance._pendingStateQueue = [completeState];
|
12698
12790
|
internalInstance._pendingReplaceState = true;
|
12699
12791
|
|
12792
|
+
// Future-proof 15.5
|
12793
|
+
if (callback !== undefined && callback !== null) {
|
12794
|
+
ReactUpdateQueue.validateCallback(callback, 'replaceState');
|
12795
|
+
if (internalInstance._pendingCallbacks) {
|
12796
|
+
internalInstance._pendingCallbacks.push(callback);
|
12797
|
+
} else {
|
12798
|
+
internalInstance._pendingCallbacks = [callback];
|
12799
|
+
}
|
12800
|
+
}
|
12801
|
+
|
12700
12802
|
enqueueUpdate(internalInstance);
|
12701
12803
|
},
|
12702
12804
|
|
@@ -12742,7 +12844,7 @@ var ReactUpdateQueue = {
|
|
12742
12844
|
};
|
12743
12845
|
|
12744
12846
|
module.exports = ReactUpdateQueue;
|
12745
|
-
},{"
|
12847
|
+
},{"124":124,"132":132,"150":150,"157":157,"63":63,"64":64,"82":82}],82:[function(_dereq_,module,exports){
|
12746
12848
|
/**
|
12747
12849
|
* Copyright 2013-present, Facebook, Inc.
|
12748
12850
|
* All rights reserved.
|
@@ -12755,7 +12857,7 @@ module.exports = ReactUpdateQueue;
|
|
12755
12857
|
|
12756
12858
|
'use strict';
|
12757
12859
|
|
12758
|
-
var _prodInvariant = _dereq_(
|
12860
|
+
var _prodInvariant = _dereq_(124),
|
12759
12861
|
_assign = _dereq_(158);
|
12760
12862
|
|
12761
12863
|
var CallbackQueue = _dereq_(6);
|
@@ -12993,7 +13095,7 @@ var ReactUpdates = {
|
|
12993
13095
|
};
|
12994
13096
|
|
12995
13097
|
module.exports = ReactUpdates;
|
12996
|
-
},{"100":100,"
|
13098
|
+
},{"100":100,"124":124,"150":150,"158":158,"25":25,"58":58,"6":6,"75":75}],83:[function(_dereq_,module,exports){
|
12997
13099
|
/**
|
12998
13100
|
* Copyright 2013-present, Facebook, Inc.
|
12999
13101
|
* All rights reserved.
|
@@ -13006,7 +13108,7 @@ module.exports = ReactUpdates;
|
|
13006
13108
|
|
13007
13109
|
'use strict';
|
13008
13110
|
|
13009
|
-
module.exports = '15.4
|
13111
|
+
module.exports = '15.5.4';
|
13010
13112
|
},{}],84:[function(_dereq_,module,exports){
|
13011
13113
|
/**
|
13012
13114
|
* Copyright 2013-present, Facebook, Inc.
|
@@ -13329,7 +13431,7 @@ var ReactInputSelection = _dereq_(62);
|
|
13329
13431
|
var SyntheticEvent = _dereq_(91);
|
13330
13432
|
|
13331
13433
|
var getActiveElement = _dereq_(145);
|
13332
|
-
var isTextInputElement = _dereq_(
|
13434
|
+
var isTextInputElement = _dereq_(122);
|
13333
13435
|
var shallowEqual = _dereq_(156);
|
13334
13436
|
|
13335
13437
|
var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;
|
@@ -13500,7 +13602,7 @@ var SelectEventPlugin = {
|
|
13500
13602
|
};
|
13501
13603
|
|
13502
13604
|
module.exports = SelectEventPlugin;
|
13503
|
-
},{"
|
13605
|
+
},{"122":122,"136":136,"145":145,"156":156,"20":20,"34":34,"62":62,"91":91}],86:[function(_dereq_,module,exports){
|
13504
13606
|
/**
|
13505
13607
|
* Copyright 2013-present, Facebook, Inc.
|
13506
13608
|
* All rights reserved.
|
@@ -13514,7 +13616,7 @@ module.exports = SelectEventPlugin;
|
|
13514
13616
|
|
13515
13617
|
'use strict';
|
13516
13618
|
|
13517
|
-
var _prodInvariant = _dereq_(
|
13619
|
+
var _prodInvariant = _dereq_(124);
|
13518
13620
|
|
13519
13621
|
var EventListener = _dereq_(135);
|
13520
13622
|
var EventPropagators = _dereq_(20);
|
@@ -13728,7 +13830,7 @@ var SimpleEventPlugin = {
|
|
13728
13830
|
};
|
13729
13831
|
|
13730
13832
|
module.exports = SimpleEventPlugin;
|
13731
|
-
},{"111":111,"
|
13833
|
+
},{"111":111,"124":124,"135":135,"142":142,"150":150,"20":20,"34":34,"87":87,"88":88,"90":90,"91":91,"92":92,"94":94,"95":95,"96":96,"97":97,"98":98,"99":99}],87:[function(_dereq_,module,exports){
|
13732
13834
|
/**
|
13733
13835
|
* Copyright 2013-present, Facebook, Inc.
|
13734
13836
|
* All rights reserved.
|
@@ -14585,7 +14687,7 @@ module.exports = SyntheticWheelEvent;
|
|
14585
14687
|
|
14586
14688
|
'use strict';
|
14587
14689
|
|
14588
|
-
var _prodInvariant = _dereq_(
|
14690
|
+
var _prodInvariant = _dereq_(124);
|
14589
14691
|
|
14590
14692
|
var invariant = _dereq_(150);
|
14591
14693
|
|
@@ -14796,7 +14898,7 @@ var TransactionImpl = {
|
|
14796
14898
|
};
|
14797
14899
|
|
14798
14900
|
module.exports = TransactionImpl;
|
14799
|
-
},{"
|
14901
|
+
},{"124":124,"150":150}],101:[function(_dereq_,module,exports){
|
14800
14902
|
/**
|
14801
14903
|
* Copyright 2013-present, Facebook, Inc.
|
14802
14904
|
* All rights reserved.
|
@@ -14837,7 +14939,7 @@ module.exports = ViewportMetrics;
|
|
14837
14939
|
|
14838
14940
|
'use strict';
|
14839
14941
|
|
14840
|
-
var _prodInvariant = _dereq_(
|
14942
|
+
var _prodInvariant = _dereq_(124);
|
14841
14943
|
|
14842
14944
|
var invariant = _dereq_(150);
|
14843
14945
|
|
@@ -14881,7 +14983,7 @@ function accumulateInto(current, next) {
|
|
14881
14983
|
}
|
14882
14984
|
|
14883
14985
|
module.exports = accumulateInto;
|
14884
|
-
},{"
|
14986
|
+
},{"124":124,"150":150}],103:[function(_dereq_,module,exports){
|
14885
14987
|
/**
|
14886
14988
|
* Copyright 2013-present, Facebook, Inc.
|
14887
14989
|
* All rights reserved.
|
@@ -14939,7 +15041,7 @@ module.exports = adler32;
|
|
14939
15041
|
|
14940
15042
|
'use strict';
|
14941
15043
|
|
14942
|
-
var _prodInvariant = _dereq_(
|
15044
|
+
var _prodInvariant = _dereq_(124);
|
14943
15045
|
|
14944
15046
|
var ReactPropTypeLocationNames = _dereq_(72);
|
14945
15047
|
var ReactPropTypesSecret = _dereq_(73);
|
@@ -14955,7 +15057,7 @@ if (typeof process !== 'undefined' && process.env && "development" === 'test') {
|
|
14955
15057
|
// https://github.com/facebook/react/issues/7240
|
14956
15058
|
// Remove the inline requires when we don't need them anymore:
|
14957
15059
|
// https://github.com/facebook/react/pull/7178
|
14958
|
-
ReactComponentTreeHook = _dereq_(
|
15060
|
+
ReactComponentTreeHook = _dereq_(131);
|
14959
15061
|
}
|
14960
15062
|
|
14961
15063
|
var loggedTypeFailures = {};
|
@@ -14997,7 +15099,7 @@ function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
|
|
14997
15099
|
|
14998
15100
|
if ("development" !== 'production') {
|
14999
15101
|
if (!ReactComponentTreeHook) {
|
15000
|
-
ReactComponentTreeHook = _dereq_(
|
15102
|
+
ReactComponentTreeHook = _dereq_(131);
|
15001
15103
|
}
|
15002
15104
|
if (debugID !== null) {
|
15003
15105
|
componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
|
@@ -15014,7 +15116,7 @@ function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
|
|
15014
15116
|
|
15015
15117
|
module.exports = checkReactTypeSpec;
|
15016
15118
|
}).call(this,undefined)
|
15017
|
-
},{"
|
15119
|
+
},{"124":124,"131":131,"150":150,"157":157,"72":72,"73":73}],105:[function(_dereq_,module,exports){
|
15018
15120
|
/**
|
15019
15121
|
* Copyright 2013-present, Facebook, Inc.
|
15020
15122
|
* All rights reserved.
|
@@ -15261,9 +15363,9 @@ module.exports = escapeTextContentForBrowser;
|
|
15261
15363
|
|
15262
15364
|
'use strict';
|
15263
15365
|
|
15264
|
-
var _prodInvariant = _dereq_(
|
15366
|
+
var _prodInvariant = _dereq_(124);
|
15265
15367
|
|
15266
|
-
var ReactCurrentOwner = _dereq_(
|
15368
|
+
var ReactCurrentOwner = _dereq_(132);
|
15267
15369
|
var ReactDOMComponentTree = _dereq_(34);
|
15268
15370
|
var ReactInstanceMap = _dereq_(63);
|
15269
15371
|
|
@@ -15308,7 +15410,7 @@ function findDOMNode(componentOrElement) {
|
|
15308
15410
|
}
|
15309
15411
|
|
15310
15412
|
module.exports = findDOMNode;
|
15311
|
-
},{"115":115,"
|
15413
|
+
},{"115":115,"124":124,"132":132,"150":150,"157":157,"34":34,"63":63}],109:[function(_dereq_,module,exports){
|
15312
15414
|
(function (process){
|
15313
15415
|
/**
|
15314
15416
|
* Copyright 2013-present, Facebook, Inc.
|
@@ -15324,7 +15426,7 @@ module.exports = findDOMNode;
|
|
15324
15426
|
'use strict';
|
15325
15427
|
|
15326
15428
|
var KeyEscapeUtils = _dereq_(23);
|
15327
|
-
var traverseAllChildren = _dereq_(
|
15429
|
+
var traverseAllChildren = _dereq_(129);
|
15328
15430
|
var warning = _dereq_(157);
|
15329
15431
|
|
15330
15432
|
var ReactComponentTreeHook;
|
@@ -15335,7 +15437,7 @@ if (typeof process !== 'undefined' && process.env && "development" === 'test') {
|
|
15335
15437
|
// https://github.com/facebook/react/issues/7240
|
15336
15438
|
// Remove the inline requires when we don't need them anymore:
|
15337
15439
|
// https://github.com/facebook/react/pull/7178
|
15338
|
-
ReactComponentTreeHook = _dereq_(
|
15440
|
+
ReactComponentTreeHook = _dereq_(131);
|
15339
15441
|
}
|
15340
15442
|
|
15341
15443
|
/**
|
@@ -15351,7 +15453,7 @@ function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID
|
|
15351
15453
|
var keyUnique = result[name] === undefined;
|
15352
15454
|
if ("development" !== 'production') {
|
15353
15455
|
if (!ReactComponentTreeHook) {
|
15354
|
-
ReactComponentTreeHook = _dereq_(
|
15456
|
+
ReactComponentTreeHook = _dereq_(131);
|
15355
15457
|
}
|
15356
15458
|
if (!keyUnique) {
|
15357
15459
|
"development" !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
|
@@ -15386,7 +15488,7 @@ function flattenChildren(children, selfDebugID) {
|
|
15386
15488
|
|
15387
15489
|
module.exports = flattenChildren;
|
15388
15490
|
}).call(this,undefined)
|
15389
|
-
},{"
|
15491
|
+
},{"129":129,"131":131,"157":157,"23":23}],110:[function(_dereq_,module,exports){
|
15390
15492
|
/**
|
15391
15493
|
* Copyright 2013-present, Facebook, Inc.
|
15392
15494
|
* All rights reserved.
|
@@ -15719,27 +15821,6 @@ function getIteratorFn(maybeIterable) {
|
|
15719
15821
|
|
15720
15822
|
module.exports = getIteratorFn;
|
15721
15823
|
},{}],117:[function(_dereq_,module,exports){
|
15722
|
-
/**
|
15723
|
-
* Copyright 2013-present, Facebook, Inc.
|
15724
|
-
* All rights reserved.
|
15725
|
-
*
|
15726
|
-
* This source code is licensed under the BSD-style license found in the
|
15727
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
15728
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
15729
|
-
*
|
15730
|
-
*
|
15731
|
-
*/
|
15732
|
-
|
15733
|
-
'use strict';
|
15734
|
-
|
15735
|
-
var nextDebugID = 1;
|
15736
|
-
|
15737
|
-
function getNextDebugID() {
|
15738
|
-
return nextDebugID++;
|
15739
|
-
}
|
15740
|
-
|
15741
|
-
module.exports = getNextDebugID;
|
15742
|
-
},{}],118:[function(_dereq_,module,exports){
|
15743
15824
|
/**
|
15744
15825
|
* Copyright 2013-present, Facebook, Inc.
|
15745
15826
|
* All rights reserved.
|
@@ -15813,7 +15894,7 @@ function getNodeForCharacterOffset(root, offset) {
|
|
15813
15894
|
}
|
15814
15895
|
|
15815
15896
|
module.exports = getNodeForCharacterOffset;
|
15816
|
-
},{}],
|
15897
|
+
},{}],118:[function(_dereq_,module,exports){
|
15817
15898
|
/**
|
15818
15899
|
* Copyright 2013-present, Facebook, Inc.
|
15819
15900
|
* All rights reserved.
|
@@ -15846,7 +15927,7 @@ function getTextContentAccessor() {
|
|
15846
15927
|
}
|
15847
15928
|
|
15848
15929
|
module.exports = getTextContentAccessor;
|
15849
|
-
},{"136":136}],
|
15930
|
+
},{"136":136}],119:[function(_dereq_,module,exports){
|
15850
15931
|
/**
|
15851
15932
|
* Copyright 2013-present, Facebook, Inc.
|
15852
15933
|
* All rights reserved.
|
@@ -15947,7 +16028,7 @@ function getVendorPrefixedEventName(eventName) {
|
|
15947
16028
|
}
|
15948
16029
|
|
15949
16030
|
module.exports = getVendorPrefixedEventName;
|
15950
|
-
},{"136":136}],
|
16031
|
+
},{"136":136}],120:[function(_dereq_,module,exports){
|
15951
16032
|
/**
|
15952
16033
|
* Copyright 2013-present, Facebook, Inc.
|
15953
16034
|
* All rights reserved.
|
@@ -15960,14 +16041,14 @@ module.exports = getVendorPrefixedEventName;
|
|
15960
16041
|
|
15961
16042
|
'use strict';
|
15962
16043
|
|
15963
|
-
var _prodInvariant = _dereq_(
|
16044
|
+
var _prodInvariant = _dereq_(124),
|
15964
16045
|
_assign = _dereq_(158);
|
15965
16046
|
|
15966
16047
|
var ReactCompositeComponent = _dereq_(30);
|
15967
16048
|
var ReactEmptyComponent = _dereq_(54);
|
15968
16049
|
var ReactHostComponent = _dereq_(59);
|
15969
16050
|
|
15970
|
-
var getNextDebugID = _dereq_(
|
16051
|
+
var getNextDebugID = _dereq_(134);
|
15971
16052
|
var invariant = _dereq_(150);
|
15972
16053
|
var warning = _dereq_(157);
|
15973
16054
|
|
@@ -15975,9 +16056,6 @@ var warning = _dereq_(157);
|
|
15975
16056
|
var ReactCompositeComponentWrapper = function (element) {
|
15976
16057
|
this.construct(element);
|
15977
16058
|
};
|
15978
|
-
_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
|
15979
|
-
_instantiateReactComponent: instantiateReactComponent
|
15980
|
-
});
|
15981
16059
|
|
15982
16060
|
function getDeclarationErrorAddendum(owner) {
|
15983
16061
|
if (owner) {
|
@@ -16015,7 +16093,17 @@ function instantiateReactComponent(node, shouldHaveDebugID) {
|
|
16015
16093
|
instance = ReactEmptyComponent.create(instantiateReactComponent);
|
16016
16094
|
} else if (typeof node === 'object') {
|
16017
16095
|
var element = node;
|
16018
|
-
|
16096
|
+
var type = element.type;
|
16097
|
+
if (typeof type !== 'function' && typeof type !== 'string') {
|
16098
|
+
var info = '';
|
16099
|
+
if ("development" !== 'production') {
|
16100
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
16101
|
+
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
|
16102
|
+
}
|
16103
|
+
}
|
16104
|
+
info += getDeclarationErrorAddendum(element._owner);
|
16105
|
+
!false ? "development" !== 'production' ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0;
|
16106
|
+
}
|
16019
16107
|
|
16020
16108
|
// Special case string values
|
16021
16109
|
if (typeof element.type === 'string') {
|
@@ -16064,8 +16152,12 @@ function instantiateReactComponent(node, shouldHaveDebugID) {
|
|
16064
16152
|
return instance;
|
16065
16153
|
}
|
16066
16154
|
|
16155
|
+
_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
|
16156
|
+
_instantiateReactComponent: instantiateReactComponent
|
16157
|
+
});
|
16158
|
+
|
16067
16159
|
module.exports = instantiateReactComponent;
|
16068
|
-
},{"
|
16160
|
+
},{"124":124,"134":134,"150":150,"157":157,"158":158,"30":30,"54":54,"59":59}],121:[function(_dereq_,module,exports){
|
16069
16161
|
/**
|
16070
16162
|
* Copyright 2013-present, Facebook, Inc.
|
16071
16163
|
* All rights reserved.
|
@@ -16125,7 +16217,7 @@ function isEventSupported(eventNameSuffix, capture) {
|
|
16125
16217
|
}
|
16126
16218
|
|
16127
16219
|
module.exports = isEventSupported;
|
16128
|
-
},{"136":136}],
|
16220
|
+
},{"136":136}],122:[function(_dereq_,module,exports){
|
16129
16221
|
/**
|
16130
16222
|
* Copyright 2013-present, Facebook, Inc.
|
16131
16223
|
* All rights reserved.
|
@@ -16176,7 +16268,7 @@ function isTextInputElement(elem) {
|
|
16176
16268
|
}
|
16177
16269
|
|
16178
16270
|
module.exports = isTextInputElement;
|
16179
|
-
},{}],
|
16271
|
+
},{}],123:[function(_dereq_,module,exports){
|
16180
16272
|
/**
|
16181
16273
|
* Copyright 2013-present, Facebook, Inc.
|
16182
16274
|
* All rights reserved.
|
@@ -16202,7 +16294,7 @@ function quoteAttributeValueForBrowser(value) {
|
|
16202
16294
|
}
|
16203
16295
|
|
16204
16296
|
module.exports = quoteAttributeValueForBrowser;
|
16205
|
-
},{"107":107}],
|
16297
|
+
},{"107":107}],124:[function(_dereq_,module,exports){
|
16206
16298
|
/**
|
16207
16299
|
* Copyright (c) 2013-present, Facebook, Inc.
|
16208
16300
|
* All rights reserved.
|
@@ -16241,7 +16333,7 @@ function reactProdInvariant(code) {
|
|
16241
16333
|
}
|
16242
16334
|
|
16243
16335
|
module.exports = reactProdInvariant;
|
16244
|
-
},{}],
|
16336
|
+
},{}],125:[function(_dereq_,module,exports){
|
16245
16337
|
/**
|
16246
16338
|
* Copyright 2013-present, Facebook, Inc.
|
16247
16339
|
* All rights reserved.
|
@@ -16257,7 +16349,7 @@ module.exports = reactProdInvariant;
|
|
16257
16349
|
var ReactMount = _dereq_(67);
|
16258
16350
|
|
16259
16351
|
module.exports = ReactMount.renderSubtreeIntoContainer;
|
16260
|
-
},{"67":67}],
|
16352
|
+
},{"67":67}],126:[function(_dereq_,module,exports){
|
16261
16353
|
/**
|
16262
16354
|
* Copyright 2013-present, Facebook, Inc.
|
16263
16355
|
* All rights reserved.
|
@@ -16355,7 +16447,7 @@ if (ExecutionEnvironment.canUseDOM) {
|
|
16355
16447
|
}
|
16356
16448
|
|
16357
16449
|
module.exports = setInnerHTML;
|
16358
|
-
},{"10":10,"105":105,"136":136}],
|
16450
|
+
},{"10":10,"105":105,"136":136}],127:[function(_dereq_,module,exports){
|
16359
16451
|
/**
|
16360
16452
|
* Copyright 2013-present, Facebook, Inc.
|
16361
16453
|
* All rights reserved.
|
@@ -16370,7 +16462,7 @@ module.exports = setInnerHTML;
|
|
16370
16462
|
|
16371
16463
|
var ExecutionEnvironment = _dereq_(136);
|
16372
16464
|
var escapeTextContentForBrowser = _dereq_(107);
|
16373
|
-
var setInnerHTML = _dereq_(
|
16465
|
+
var setInnerHTML = _dereq_(126);
|
16374
16466
|
|
16375
16467
|
/**
|
16376
16468
|
* Set the textContent property of a node, ensuring that whitespace is preserved
|
@@ -16407,7 +16499,7 @@ if (ExecutionEnvironment.canUseDOM) {
|
|
16407
16499
|
}
|
16408
16500
|
|
16409
16501
|
module.exports = setTextContent;
|
16410
|
-
},{"107":107,"
|
16502
|
+
},{"107":107,"126":126,"136":136}],128:[function(_dereq_,module,exports){
|
16411
16503
|
/**
|
16412
16504
|
* Copyright 2013-present, Facebook, Inc.
|
16413
16505
|
* All rights reserved.
|
@@ -16449,7 +16541,7 @@ function shouldUpdateReactComponent(prevElement, nextElement) {
|
|
16449
16541
|
}
|
16450
16542
|
|
16451
16543
|
module.exports = shouldUpdateReactComponent;
|
16452
|
-
},{}],
|
16544
|
+
},{}],129:[function(_dereq_,module,exports){
|
16453
16545
|
/**
|
16454
16546
|
* Copyright 2013-present, Facebook, Inc.
|
16455
16547
|
* All rights reserved.
|
@@ -16462,9 +16554,9 @@ module.exports = shouldUpdateReactComponent;
|
|
16462
16554
|
|
16463
16555
|
'use strict';
|
16464
16556
|
|
16465
|
-
var _prodInvariant = _dereq_(
|
16557
|
+
var _prodInvariant = _dereq_(124);
|
16466
16558
|
|
16467
|
-
var ReactCurrentOwner = _dereq_(
|
16559
|
+
var ReactCurrentOwner = _dereq_(132);
|
16468
16560
|
var REACT_ELEMENT_TYPE = _dereq_(53);
|
16469
16561
|
|
16470
16562
|
var getIteratorFn = _dereq_(116);
|
@@ -16625,7 +16717,7 @@ function traverseAllChildren(children, callback, traverseContext) {
|
|
16625
16717
|
}
|
16626
16718
|
|
16627
16719
|
module.exports = traverseAllChildren;
|
16628
|
-
},{"116":116,"
|
16720
|
+
},{"116":116,"124":124,"132":132,"150":150,"157":157,"23":23,"53":53}],130:[function(_dereq_,module,exports){
|
16629
16721
|
/**
|
16630
16722
|
* Copyright 2015-present, Facebook, Inc.
|
16631
16723
|
* All rights reserved.
|
@@ -16852,16 +16944,11 @@ if ("development" !== 'production') {
|
|
16852
16944
|
case 'section':
|
16853
16945
|
case 'summary':
|
16854
16946
|
case 'ul':
|
16855
|
-
|
16856
16947
|
case 'pre':
|
16857
16948
|
case 'listing':
|
16858
|
-
|
16859
16949
|
case 'table':
|
16860
|
-
|
16861
16950
|
case 'hr':
|
16862
|
-
|
16863
16951
|
case 'xmp':
|
16864
|
-
|
16865
16952
|
case 'h1':
|
16866
16953
|
case 'h2':
|
16867
16954
|
case 'h3':
|
@@ -17007,7 +17094,7 @@ if ("development" !== 'production') {
|
|
17007
17094
|
}
|
17008
17095
|
|
17009
17096
|
module.exports = validateDOMNesting;
|
17010
|
-
},{"142":142,"157":157,"158":158}],
|
17097
|
+
},{"142":142,"157":157,"158":158}],131:[function(_dereq_,module,exports){
|
17011
17098
|
/**
|
17012
17099
|
* Copyright 2013-present, Facebook, Inc.
|
17013
17100
|
* All rights reserved.
|
@@ -17025,7 +17112,7 @@ module.exports = validateDOMNesting;
|
|
17025
17112
|
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
17026
17113
|
|
17027
17114
|
module.exports = ReactInternals.ReactComponentTreeHook;
|
17028
|
-
},{}],
|
17115
|
+
},{}],132:[function(_dereq_,module,exports){
|
17029
17116
|
/**
|
17030
17117
|
* Copyright 2013-present, Facebook, Inc.
|
17031
17118
|
* All rights reserved.
|
@@ -17043,7 +17130,7 @@ module.exports = ReactInternals.ReactComponentTreeHook;
|
|
17043
17130
|
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
17044
17131
|
|
17045
17132
|
module.exports = ReactInternals.ReactCurrentOwner;
|
17046
|
-
},{}],
|
17133
|
+
},{}],133:[function(_dereq_,module,exports){
|
17047
17134
|
/**
|
17048
17135
|
* Copyright 2013-present, Facebook, Inc.
|
17049
17136
|
* All rights reserved.
|
@@ -17059,6 +17146,24 @@ module.exports = ReactInternals.ReactCurrentOwner;
|
|
17059
17146
|
'use strict';
|
17060
17147
|
|
17061
17148
|
module.exports = React;
|
17149
|
+
},{}],134:[function(_dereq_,module,exports){
|
17150
|
+
/**
|
17151
|
+
* Copyright 2013-present, Facebook, Inc.
|
17152
|
+
* All rights reserved.
|
17153
|
+
*
|
17154
|
+
* This source code is licensed under the BSD-style license found in the
|
17155
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
17156
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
17157
|
+
*
|
17158
|
+
*/
|
17159
|
+
|
17160
|
+
/* globals React */
|
17161
|
+
|
17162
|
+
'use strict';
|
17163
|
+
|
17164
|
+
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
17165
|
+
|
17166
|
+
module.exports = ReactInternals.getNextDebugID;
|
17062
17167
|
},{}],135:[function(_dereq_,module,exports){
|
17063
17168
|
'use strict';
|
17064
17169
|
|
@@ -17610,15 +17715,19 @@ module.exports = focusNode;
|
|
17610
17715
|
*
|
17611
17716
|
* The activeElement will be null only if the document or document body is not
|
17612
17717
|
* yet defined.
|
17718
|
+
*
|
17719
|
+
* @param {?DOMDocument} doc Defaults to current document.
|
17720
|
+
* @return {?DOMElement}
|
17613
17721
|
*/
|
17614
|
-
function getActiveElement() /*?DOMElement*/{
|
17615
|
-
|
17722
|
+
function getActiveElement(doc) /*?DOMElement*/{
|
17723
|
+
doc = doc || (typeof document !== 'undefined' ? document : undefined);
|
17724
|
+
if (typeof doc === 'undefined') {
|
17616
17725
|
return null;
|
17617
17726
|
}
|
17618
17727
|
try {
|
17619
|
-
return
|
17728
|
+
return doc.activeElement || doc.body;
|
17620
17729
|
} catch (e) {
|
17621
|
-
return
|
17730
|
+
return doc.body;
|
17622
17731
|
}
|
17623
17732
|
}
|
17624
17733
|
|
@@ -17744,10 +17853,10 @@ module.exports = getMarkupWrap;
|
|
17744
17853
|
*/
|
17745
17854
|
|
17746
17855
|
function getUnboundedScrollPosition(scrollable) {
|
17747
|
-
if (scrollable
|
17856
|
+
if (scrollable.Window && scrollable instanceof scrollable.Window) {
|
17748
17857
|
return {
|
17749
|
-
x:
|
17750
|
-
y:
|
17858
|
+
x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft,
|
17859
|
+
y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop
|
17751
17860
|
};
|
17752
17861
|
}
|
17753
17862
|
return {
|
@@ -17853,12 +17962,18 @@ module.exports = hyphenateStyleName;
|
|
17853
17962
|
* will remain to ensure logic does not differ in production.
|
17854
17963
|
*/
|
17855
17964
|
|
17856
|
-
function
|
17857
|
-
|
17965
|
+
var validateFormat = function validateFormat(format) {};
|
17966
|
+
|
17967
|
+
if ("development" !== 'production') {
|
17968
|
+
validateFormat = function validateFormat(format) {
|
17858
17969
|
if (format === undefined) {
|
17859
17970
|
throw new Error('invariant requires an error message argument');
|
17860
17971
|
}
|
17861
|
-
}
|
17972
|
+
};
|
17973
|
+
}
|
17974
|
+
|
17975
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
17976
|
+
validateFormat(format);
|
17862
17977
|
|
17863
17978
|
if (!condition) {
|
17864
17979
|
var error;
|
@@ -17898,7 +18013,9 @@ module.exports = invariant;
|
|
17898
18013
|
* @return {boolean} Whether or not the object is a DOM node.
|
17899
18014
|
*/
|
17900
18015
|
function isNode(object) {
|
17901
|
-
|
18016
|
+
var doc = object ? object.ownerDocument || object : document;
|
18017
|
+
var defaultView = doc.defaultView || window;
|
18018
|
+
return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
|
17902
18019
|
}
|
17903
18020
|
|
17904
18021
|
module.exports = isNode;
|
@@ -18150,8 +18267,15 @@ if ("development" !== 'production') {
|
|
18150
18267
|
|
18151
18268
|
module.exports = warning;
|
18152
18269
|
},{"142":142}],158:[function(_dereq_,module,exports){
|
18270
|
+
/*
|
18271
|
+
object-assign
|
18272
|
+
(c) Sindre Sorhus
|
18273
|
+
@license MIT
|
18274
|
+
*/
|
18275
|
+
|
18153
18276
|
'use strict';
|
18154
18277
|
/* eslint-disable no-unused-vars */
|
18278
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
18155
18279
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
18156
18280
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
18157
18281
|
|
@@ -18172,7 +18296,7 @@ function shouldUseNative() {
|
|
18172
18296
|
// Detect buggy property enumeration order in older V8 versions.
|
18173
18297
|
|
18174
18298
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
18175
|
-
var test1 = new String('abc'); // eslint-disable-line
|
18299
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
18176
18300
|
test1[5] = 'de';
|
18177
18301
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
18178
18302
|
return false;
|
@@ -18201,7 +18325,7 @@ function shouldUseNative() {
|
|
18201
18325
|
}
|
18202
18326
|
|
18203
18327
|
return true;
|
18204
|
-
} catch (
|
18328
|
+
} catch (err) {
|
18205
18329
|
// We don't expect any of the above to throw, but better to be safe.
|
18206
18330
|
return false;
|
18207
18331
|
}
|
@@ -18221,8 +18345,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
18221
18345
|
}
|
18222
18346
|
}
|
18223
18347
|
|
18224
|
-
if (
|
18225
|
-
symbols =
|
18348
|
+
if (getOwnPropertySymbols) {
|
18349
|
+
symbols = getOwnPropertySymbols(from);
|
18226
18350
|
for (var i = 0; i < symbols.length; i++) {
|
18227
18351
|
if (propIsEnumerable.call(from, symbols[i])) {
|
18228
18352
|
to[symbols[i]] = from[symbols[i]];
|
@@ -18234,6 +18358,582 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
18234
18358
|
return to;
|
18235
18359
|
};
|
18236
18360
|
|
18361
|
+
},{}],159:[function(_dereq_,module,exports){
|
18362
|
+
/**
|
18363
|
+
* Copyright 2013-present, Facebook, Inc.
|
18364
|
+
* All rights reserved.
|
18365
|
+
*
|
18366
|
+
* This source code is licensed under the BSD-style license found in the
|
18367
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
18368
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
18369
|
+
*/
|
18370
|
+
|
18371
|
+
'use strict';
|
18372
|
+
|
18373
|
+
if ("development" !== 'production') {
|
18374
|
+
var invariant = _dereq_(150);
|
18375
|
+
var warning = _dereq_(157);
|
18376
|
+
var ReactPropTypesSecret = _dereq_(162);
|
18377
|
+
var loggedTypeFailures = {};
|
18378
|
+
}
|
18379
|
+
|
18380
|
+
/**
|
18381
|
+
* Assert that the values match with the type specs.
|
18382
|
+
* Error messages are memorized and will only be shown once.
|
18383
|
+
*
|
18384
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
18385
|
+
* @param {object} values Runtime values that need to be type-checked
|
18386
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
18387
|
+
* @param {string} componentName Name of the component for error messages.
|
18388
|
+
* @param {?Function} getStack Returns the component stack.
|
18389
|
+
* @private
|
18390
|
+
*/
|
18391
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
18392
|
+
if ("development" !== 'production') {
|
18393
|
+
for (var typeSpecName in typeSpecs) {
|
18394
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
18395
|
+
var error;
|
18396
|
+
// Prop type validation may throw. In case they do, we don't want to
|
18397
|
+
// fail the render phase where it didn't fail before. So we log it.
|
18398
|
+
// After these have been cleaned up, we'll let them throw.
|
18399
|
+
try {
|
18400
|
+
// This is intentionally an invariant that gets caught. It's the same
|
18401
|
+
// behavior as without this statement except with a better message.
|
18402
|
+
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
|
18403
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
18404
|
+
} catch (ex) {
|
18405
|
+
error = ex;
|
18406
|
+
}
|
18407
|
+
warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
|
18408
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
18409
|
+
// Only monitor this failure once because there tends to be a lot of the
|
18410
|
+
// same error.
|
18411
|
+
loggedTypeFailures[error.message] = true;
|
18412
|
+
|
18413
|
+
var stack = getStack ? getStack() : '';
|
18414
|
+
|
18415
|
+
warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
|
18416
|
+
}
|
18417
|
+
}
|
18418
|
+
}
|
18419
|
+
}
|
18420
|
+
}
|
18421
|
+
|
18422
|
+
module.exports = checkPropTypes;
|
18423
|
+
|
18424
|
+
},{"150":150,"157":157,"162":162}],160:[function(_dereq_,module,exports){
|
18425
|
+
/**
|
18426
|
+
* Copyright 2013-present, Facebook, Inc.
|
18427
|
+
* All rights reserved.
|
18428
|
+
*
|
18429
|
+
* This source code is licensed under the BSD-style license found in the
|
18430
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
18431
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
18432
|
+
*/
|
18433
|
+
|
18434
|
+
'use strict';
|
18435
|
+
|
18436
|
+
// React 15.5 references this module, and assumes PropTypes are still callable in production.
|
18437
|
+
// Therefore we re-export development-only version with all the PropTypes checks here.
|
18438
|
+
// However if one is migrating to the `prop-types` npm library, they will go through the
|
18439
|
+
// `index.js` entry point, and it will branch depending on the environment.
|
18440
|
+
var factory = _dereq_(161);
|
18441
|
+
module.exports = function(isValidElement) {
|
18442
|
+
// It is still allowed in 15.5.
|
18443
|
+
var throwOnDirectAccess = false;
|
18444
|
+
return factory(isValidElement, throwOnDirectAccess);
|
18445
|
+
};
|
18446
|
+
|
18447
|
+
},{"161":161}],161:[function(_dereq_,module,exports){
|
18448
|
+
/**
|
18449
|
+
* Copyright 2013-present, Facebook, Inc.
|
18450
|
+
* All rights reserved.
|
18451
|
+
*
|
18452
|
+
* This source code is licensed under the BSD-style license found in the
|
18453
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
18454
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
18455
|
+
*/
|
18456
|
+
|
18457
|
+
'use strict';
|
18458
|
+
|
18459
|
+
var emptyFunction = _dereq_(142);
|
18460
|
+
var invariant = _dereq_(150);
|
18461
|
+
var warning = _dereq_(157);
|
18462
|
+
|
18463
|
+
var ReactPropTypesSecret = _dereq_(162);
|
18464
|
+
var checkPropTypes = _dereq_(159);
|
18465
|
+
|
18466
|
+
module.exports = function(isValidElement, throwOnDirectAccess) {
|
18467
|
+
/* global Symbol */
|
18468
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
18469
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
18470
|
+
|
18471
|
+
/**
|
18472
|
+
* Returns the iterator method function contained on the iterable object.
|
18473
|
+
*
|
18474
|
+
* Be sure to invoke the function with the iterable as context:
|
18475
|
+
*
|
18476
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
18477
|
+
* if (iteratorFn) {
|
18478
|
+
* var iterator = iteratorFn.call(myIterable);
|
18479
|
+
* ...
|
18480
|
+
* }
|
18481
|
+
*
|
18482
|
+
* @param {?object} maybeIterable
|
18483
|
+
* @return {?function}
|
18484
|
+
*/
|
18485
|
+
function getIteratorFn(maybeIterable) {
|
18486
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
18487
|
+
if (typeof iteratorFn === 'function') {
|
18488
|
+
return iteratorFn;
|
18489
|
+
}
|
18490
|
+
}
|
18491
|
+
|
18492
|
+
/**
|
18493
|
+
* Collection of methods that allow declaration and validation of props that are
|
18494
|
+
* supplied to React components. Example usage:
|
18495
|
+
*
|
18496
|
+
* var Props = require('ReactPropTypes');
|
18497
|
+
* var MyArticle = React.createClass({
|
18498
|
+
* propTypes: {
|
18499
|
+
* // An optional string prop named "description".
|
18500
|
+
* description: Props.string,
|
18501
|
+
*
|
18502
|
+
* // A required enum prop named "category".
|
18503
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
18504
|
+
*
|
18505
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
18506
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
18507
|
+
* },
|
18508
|
+
* render: function() { ... }
|
18509
|
+
* });
|
18510
|
+
*
|
18511
|
+
* A more formal specification of how these methods are used:
|
18512
|
+
*
|
18513
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
18514
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
18515
|
+
*
|
18516
|
+
* Each and every declaration produces a function with the same signature. This
|
18517
|
+
* allows the creation of custom validation functions. For example:
|
18518
|
+
*
|
18519
|
+
* var MyLink = React.createClass({
|
18520
|
+
* propTypes: {
|
18521
|
+
* // An optional string or URI prop named "href".
|
18522
|
+
* href: function(props, propName, componentName) {
|
18523
|
+
* var propValue = props[propName];
|
18524
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
18525
|
+
* !(propValue instanceof URI)) {
|
18526
|
+
* return new Error(
|
18527
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
18528
|
+
* componentName
|
18529
|
+
* );
|
18530
|
+
* }
|
18531
|
+
* }
|
18532
|
+
* },
|
18533
|
+
* render: function() {...}
|
18534
|
+
* });
|
18535
|
+
*
|
18536
|
+
* @internal
|
18537
|
+
*/
|
18538
|
+
|
18539
|
+
var ANONYMOUS = '<<anonymous>>';
|
18540
|
+
|
18541
|
+
// Important!
|
18542
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
18543
|
+
var ReactPropTypes = {
|
18544
|
+
array: createPrimitiveTypeChecker('array'),
|
18545
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
18546
|
+
func: createPrimitiveTypeChecker('function'),
|
18547
|
+
number: createPrimitiveTypeChecker('number'),
|
18548
|
+
object: createPrimitiveTypeChecker('object'),
|
18549
|
+
string: createPrimitiveTypeChecker('string'),
|
18550
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
18551
|
+
|
18552
|
+
any: createAnyTypeChecker(),
|
18553
|
+
arrayOf: createArrayOfTypeChecker,
|
18554
|
+
element: createElementTypeChecker(),
|
18555
|
+
instanceOf: createInstanceTypeChecker,
|
18556
|
+
node: createNodeChecker(),
|
18557
|
+
objectOf: createObjectOfTypeChecker,
|
18558
|
+
oneOf: createEnumTypeChecker,
|
18559
|
+
oneOfType: createUnionTypeChecker,
|
18560
|
+
shape: createShapeTypeChecker
|
18561
|
+
};
|
18562
|
+
|
18563
|
+
/**
|
18564
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
18565
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
18566
|
+
*/
|
18567
|
+
/*eslint-disable no-self-compare*/
|
18568
|
+
function is(x, y) {
|
18569
|
+
// SameValue algorithm
|
18570
|
+
if (x === y) {
|
18571
|
+
// Steps 1-5, 7-10
|
18572
|
+
// Steps 6.b-6.e: +0 != -0
|
18573
|
+
return x !== 0 || 1 / x === 1 / y;
|
18574
|
+
} else {
|
18575
|
+
// Step 6.a: NaN == NaN
|
18576
|
+
return x !== x && y !== y;
|
18577
|
+
}
|
18578
|
+
}
|
18579
|
+
/*eslint-enable no-self-compare*/
|
18580
|
+
|
18581
|
+
/**
|
18582
|
+
* We use an Error-like object for backward compatibility as people may call
|
18583
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
18584
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
18585
|
+
* is prohibitively expensive if they are created too often, such as what
|
18586
|
+
* happens in oneOfType() for any type before the one that matched.
|
18587
|
+
*/
|
18588
|
+
function PropTypeError(message) {
|
18589
|
+
this.message = message;
|
18590
|
+
this.stack = '';
|
18591
|
+
}
|
18592
|
+
// Make `instanceof Error` still work for returned errors.
|
18593
|
+
PropTypeError.prototype = Error.prototype;
|
18594
|
+
|
18595
|
+
function createChainableTypeChecker(validate) {
|
18596
|
+
if ("development" !== 'production') {
|
18597
|
+
var manualPropTypeCallCache = {};
|
18598
|
+
}
|
18599
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
18600
|
+
componentName = componentName || ANONYMOUS;
|
18601
|
+
propFullName = propFullName || propName;
|
18602
|
+
|
18603
|
+
if (secret !== ReactPropTypesSecret) {
|
18604
|
+
if (throwOnDirectAccess) {
|
18605
|
+
// New behavior only for users of `prop-types` package
|
18606
|
+
invariant(
|
18607
|
+
false,
|
18608
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
18609
|
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
18610
|
+
'Read more at http://fb.me/use-check-prop-types'
|
18611
|
+
);
|
18612
|
+
} else if ("development" !== 'production' && typeof console !== 'undefined') {
|
18613
|
+
// Old behavior for people using React.PropTypes
|
18614
|
+
var cacheKey = componentName + ':' + propName;
|
18615
|
+
if (!manualPropTypeCallCache[cacheKey]) {
|
18616
|
+
warning(
|
18617
|
+
false,
|
18618
|
+
'You are manually calling a React.PropTypes validation ' +
|
18619
|
+
'function for the `%s` prop on `%s`. This is deprecated ' +
|
18620
|
+
'and will throw in the standalone `prop-types` package. ' +
|
18621
|
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
18622
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
|
18623
|
+
propFullName,
|
18624
|
+
componentName
|
18625
|
+
);
|
18626
|
+
manualPropTypeCallCache[cacheKey] = true;
|
18627
|
+
}
|
18628
|
+
}
|
18629
|
+
}
|
18630
|
+
if (props[propName] == null) {
|
18631
|
+
if (isRequired) {
|
18632
|
+
if (props[propName] === null) {
|
18633
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
18634
|
+
}
|
18635
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
18636
|
+
}
|
18637
|
+
return null;
|
18638
|
+
} else {
|
18639
|
+
return validate(props, propName, componentName, location, propFullName);
|
18640
|
+
}
|
18641
|
+
}
|
18642
|
+
|
18643
|
+
var chainedCheckType = checkType.bind(null, false);
|
18644
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
18645
|
+
|
18646
|
+
return chainedCheckType;
|
18647
|
+
}
|
18648
|
+
|
18649
|
+
function createPrimitiveTypeChecker(expectedType) {
|
18650
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
18651
|
+
var propValue = props[propName];
|
18652
|
+
var propType = getPropType(propValue);
|
18653
|
+
if (propType !== expectedType) {
|
18654
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
18655
|
+
// check, but we can offer a more precise error message here rather than
|
18656
|
+
// 'of type `object`'.
|
18657
|
+
var preciseType = getPreciseType(propValue);
|
18658
|
+
|
18659
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
18660
|
+
}
|
18661
|
+
return null;
|
18662
|
+
}
|
18663
|
+
return createChainableTypeChecker(validate);
|
18664
|
+
}
|
18665
|
+
|
18666
|
+
function createAnyTypeChecker() {
|
18667
|
+
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
18668
|
+
}
|
18669
|
+
|
18670
|
+
function createArrayOfTypeChecker(typeChecker) {
|
18671
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18672
|
+
if (typeof typeChecker !== 'function') {
|
18673
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
18674
|
+
}
|
18675
|
+
var propValue = props[propName];
|
18676
|
+
if (!Array.isArray(propValue)) {
|
18677
|
+
var propType = getPropType(propValue);
|
18678
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
18679
|
+
}
|
18680
|
+
for (var i = 0; i < propValue.length; i++) {
|
18681
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
18682
|
+
if (error instanceof Error) {
|
18683
|
+
return error;
|
18684
|
+
}
|
18685
|
+
}
|
18686
|
+
return null;
|
18687
|
+
}
|
18688
|
+
return createChainableTypeChecker(validate);
|
18689
|
+
}
|
18690
|
+
|
18691
|
+
function createElementTypeChecker() {
|
18692
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18693
|
+
var propValue = props[propName];
|
18694
|
+
if (!isValidElement(propValue)) {
|
18695
|
+
var propType = getPropType(propValue);
|
18696
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
18697
|
+
}
|
18698
|
+
return null;
|
18699
|
+
}
|
18700
|
+
return createChainableTypeChecker(validate);
|
18701
|
+
}
|
18702
|
+
|
18703
|
+
function createInstanceTypeChecker(expectedClass) {
|
18704
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18705
|
+
if (!(props[propName] instanceof expectedClass)) {
|
18706
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
18707
|
+
var actualClassName = getClassName(props[propName]);
|
18708
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
18709
|
+
}
|
18710
|
+
return null;
|
18711
|
+
}
|
18712
|
+
return createChainableTypeChecker(validate);
|
18713
|
+
}
|
18714
|
+
|
18715
|
+
function createEnumTypeChecker(expectedValues) {
|
18716
|
+
if (!Array.isArray(expectedValues)) {
|
18717
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
18718
|
+
return emptyFunction.thatReturnsNull;
|
18719
|
+
}
|
18720
|
+
|
18721
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18722
|
+
var propValue = props[propName];
|
18723
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
18724
|
+
if (is(propValue, expectedValues[i])) {
|
18725
|
+
return null;
|
18726
|
+
}
|
18727
|
+
}
|
18728
|
+
|
18729
|
+
var valuesString = JSON.stringify(expectedValues);
|
18730
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
18731
|
+
}
|
18732
|
+
return createChainableTypeChecker(validate);
|
18733
|
+
}
|
18734
|
+
|
18735
|
+
function createObjectOfTypeChecker(typeChecker) {
|
18736
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18737
|
+
if (typeof typeChecker !== 'function') {
|
18738
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
18739
|
+
}
|
18740
|
+
var propValue = props[propName];
|
18741
|
+
var propType = getPropType(propValue);
|
18742
|
+
if (propType !== 'object') {
|
18743
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
18744
|
+
}
|
18745
|
+
for (var key in propValue) {
|
18746
|
+
if (propValue.hasOwnProperty(key)) {
|
18747
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
18748
|
+
if (error instanceof Error) {
|
18749
|
+
return error;
|
18750
|
+
}
|
18751
|
+
}
|
18752
|
+
}
|
18753
|
+
return null;
|
18754
|
+
}
|
18755
|
+
return createChainableTypeChecker(validate);
|
18756
|
+
}
|
18757
|
+
|
18758
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
18759
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
18760
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
18761
|
+
return emptyFunction.thatReturnsNull;
|
18762
|
+
}
|
18763
|
+
|
18764
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18765
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
18766
|
+
var checker = arrayOfTypeCheckers[i];
|
18767
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
18768
|
+
return null;
|
18769
|
+
}
|
18770
|
+
}
|
18771
|
+
|
18772
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
18773
|
+
}
|
18774
|
+
return createChainableTypeChecker(validate);
|
18775
|
+
}
|
18776
|
+
|
18777
|
+
function createNodeChecker() {
|
18778
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18779
|
+
if (!isNode(props[propName])) {
|
18780
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
18781
|
+
}
|
18782
|
+
return null;
|
18783
|
+
}
|
18784
|
+
return createChainableTypeChecker(validate);
|
18785
|
+
}
|
18786
|
+
|
18787
|
+
function createShapeTypeChecker(shapeTypes) {
|
18788
|
+
function validate(props, propName, componentName, location, propFullName) {
|
18789
|
+
var propValue = props[propName];
|
18790
|
+
var propType = getPropType(propValue);
|
18791
|
+
if (propType !== 'object') {
|
18792
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
18793
|
+
}
|
18794
|
+
for (var key in shapeTypes) {
|
18795
|
+
var checker = shapeTypes[key];
|
18796
|
+
if (!checker) {
|
18797
|
+
continue;
|
18798
|
+
}
|
18799
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
18800
|
+
if (error) {
|
18801
|
+
return error;
|
18802
|
+
}
|
18803
|
+
}
|
18804
|
+
return null;
|
18805
|
+
}
|
18806
|
+
return createChainableTypeChecker(validate);
|
18807
|
+
}
|
18808
|
+
|
18809
|
+
function isNode(propValue) {
|
18810
|
+
switch (typeof propValue) {
|
18811
|
+
case 'number':
|
18812
|
+
case 'string':
|
18813
|
+
case 'undefined':
|
18814
|
+
return true;
|
18815
|
+
case 'boolean':
|
18816
|
+
return !propValue;
|
18817
|
+
case 'object':
|
18818
|
+
if (Array.isArray(propValue)) {
|
18819
|
+
return propValue.every(isNode);
|
18820
|
+
}
|
18821
|
+
if (propValue === null || isValidElement(propValue)) {
|
18822
|
+
return true;
|
18823
|
+
}
|
18824
|
+
|
18825
|
+
var iteratorFn = getIteratorFn(propValue);
|
18826
|
+
if (iteratorFn) {
|
18827
|
+
var iterator = iteratorFn.call(propValue);
|
18828
|
+
var step;
|
18829
|
+
if (iteratorFn !== propValue.entries) {
|
18830
|
+
while (!(step = iterator.next()).done) {
|
18831
|
+
if (!isNode(step.value)) {
|
18832
|
+
return false;
|
18833
|
+
}
|
18834
|
+
}
|
18835
|
+
} else {
|
18836
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
18837
|
+
while (!(step = iterator.next()).done) {
|
18838
|
+
var entry = step.value;
|
18839
|
+
if (entry) {
|
18840
|
+
if (!isNode(entry[1])) {
|
18841
|
+
return false;
|
18842
|
+
}
|
18843
|
+
}
|
18844
|
+
}
|
18845
|
+
}
|
18846
|
+
} else {
|
18847
|
+
return false;
|
18848
|
+
}
|
18849
|
+
|
18850
|
+
return true;
|
18851
|
+
default:
|
18852
|
+
return false;
|
18853
|
+
}
|
18854
|
+
}
|
18855
|
+
|
18856
|
+
function isSymbol(propType, propValue) {
|
18857
|
+
// Native Symbol.
|
18858
|
+
if (propType === 'symbol') {
|
18859
|
+
return true;
|
18860
|
+
}
|
18861
|
+
|
18862
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
18863
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
18864
|
+
return true;
|
18865
|
+
}
|
18866
|
+
|
18867
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
18868
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
18869
|
+
return true;
|
18870
|
+
}
|
18871
|
+
|
18872
|
+
return false;
|
18873
|
+
}
|
18874
|
+
|
18875
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
18876
|
+
function getPropType(propValue) {
|
18877
|
+
var propType = typeof propValue;
|
18878
|
+
if (Array.isArray(propValue)) {
|
18879
|
+
return 'array';
|
18880
|
+
}
|
18881
|
+
if (propValue instanceof RegExp) {
|
18882
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
18883
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
18884
|
+
// passes PropTypes.object.
|
18885
|
+
return 'object';
|
18886
|
+
}
|
18887
|
+
if (isSymbol(propType, propValue)) {
|
18888
|
+
return 'symbol';
|
18889
|
+
}
|
18890
|
+
return propType;
|
18891
|
+
}
|
18892
|
+
|
18893
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
18894
|
+
// See `createPrimitiveTypeChecker`.
|
18895
|
+
function getPreciseType(propValue) {
|
18896
|
+
var propType = getPropType(propValue);
|
18897
|
+
if (propType === 'object') {
|
18898
|
+
if (propValue instanceof Date) {
|
18899
|
+
return 'date';
|
18900
|
+
} else if (propValue instanceof RegExp) {
|
18901
|
+
return 'regexp';
|
18902
|
+
}
|
18903
|
+
}
|
18904
|
+
return propType;
|
18905
|
+
}
|
18906
|
+
|
18907
|
+
// Returns class name of the object, if any.
|
18908
|
+
function getClassName(propValue) {
|
18909
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
18910
|
+
return ANONYMOUS;
|
18911
|
+
}
|
18912
|
+
return propValue.constructor.name;
|
18913
|
+
}
|
18914
|
+
|
18915
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
18916
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
18917
|
+
|
18918
|
+
return ReactPropTypes;
|
18919
|
+
};
|
18920
|
+
|
18921
|
+
},{"142":142,"150":150,"157":157,"159":159,"162":162}],162:[function(_dereq_,module,exports){
|
18922
|
+
/**
|
18923
|
+
* Copyright 2013-present, Facebook, Inc.
|
18924
|
+
* All rights reserved.
|
18925
|
+
*
|
18926
|
+
* This source code is licensed under the BSD-style license found in the
|
18927
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
18928
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
18929
|
+
*/
|
18930
|
+
|
18931
|
+
'use strict';
|
18932
|
+
|
18933
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
18934
|
+
|
18935
|
+
module.exports = ReactPropTypesSecret;
|
18936
|
+
|
18237
18937
|
},{}]},{},[48])(48)
|
18238
18938
|
});
|
18239
18939
|
});
|