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
|
-
* React v15.4
|
2
|
+
* React v15.5.4
|
3
3
|
*/
|
4
4
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
5
5
|
/**
|
@@ -74,9 +74,9 @@ module.exports = KeyEscapeUtils;
|
|
74
74
|
|
75
75
|
'use strict';
|
76
76
|
|
77
|
-
var _prodInvariant = _dereq_(
|
77
|
+
var _prodInvariant = _dereq_(25);
|
78
78
|
|
79
|
-
var invariant = _dereq_(
|
79
|
+
var invariant = _dereq_(29);
|
80
80
|
|
81
81
|
/**
|
82
82
|
* Static poolers. Several custom versions for each potential number of
|
@@ -129,17 +129,6 @@ var fourArgumentPooler = function (a1, a2, a3, a4) {
|
|
129
129
|
}
|
130
130
|
};
|
131
131
|
|
132
|
-
var fiveArgumentPooler = function (a1, a2, a3, a4, a5) {
|
133
|
-
var Klass = this;
|
134
|
-
if (Klass.instancePool.length) {
|
135
|
-
var instance = Klass.instancePool.pop();
|
136
|
-
Klass.call(instance, a1, a2, a3, a4, a5);
|
137
|
-
return instance;
|
138
|
-
} else {
|
139
|
-
return new Klass(a1, a2, a3, a4, a5);
|
140
|
-
}
|
141
|
-
};
|
142
|
-
|
143
132
|
var standardReleaser = function (instance) {
|
144
133
|
var Klass = this;
|
145
134
|
!(instance instanceof Klass) ? "development" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
|
@@ -179,12 +168,11 @@ var PooledClass = {
|
|
179
168
|
oneArgumentPooler: oneArgumentPooler,
|
180
169
|
twoArgumentPooler: twoArgumentPooler,
|
181
170
|
threeArgumentPooler: threeArgumentPooler,
|
182
|
-
fourArgumentPooler: fourArgumentPooler
|
183
|
-
fiveArgumentPooler: fiveArgumentPooler
|
171
|
+
fourArgumentPooler: fourArgumentPooler
|
184
172
|
};
|
185
173
|
|
186
174
|
module.exports = PooledClass;
|
187
|
-
},{"
|
175
|
+
},{"25":25,"29":29}],3:[function(_dereq_,module,exports){
|
188
176
|
/**
|
189
177
|
* Copyright 2013-present, Facebook, Inc.
|
190
178
|
* All rights reserved.
|
@@ -197,7 +185,7 @@ module.exports = PooledClass;
|
|
197
185
|
|
198
186
|
'use strict';
|
199
187
|
|
200
|
-
var _assign = _dereq_(
|
188
|
+
var _assign = _dereq_(31);
|
201
189
|
|
202
190
|
var ReactChildren = _dereq_(4);
|
203
191
|
var ReactComponent = _dereq_(6);
|
@@ -208,15 +196,17 @@ var ReactElement = _dereq_(10);
|
|
208
196
|
var ReactPropTypes = _dereq_(15);
|
209
197
|
var ReactVersion = _dereq_(19);
|
210
198
|
|
211
|
-
var onlyChild = _dereq_(
|
212
|
-
var warning = _dereq_(
|
199
|
+
var onlyChild = _dereq_(24);
|
200
|
+
var warning = _dereq_(30);
|
213
201
|
|
214
202
|
var createElement = ReactElement.createElement;
|
215
203
|
var createFactory = ReactElement.createFactory;
|
216
204
|
var cloneElement = ReactElement.cloneElement;
|
217
205
|
|
218
206
|
if ("development" !== 'production') {
|
207
|
+
var canDefineProperty = _dereq_(20);
|
219
208
|
var ReactElementValidator = _dereq_(12);
|
209
|
+
var didWarnPropTypesDeprecated = false;
|
220
210
|
createElement = ReactElementValidator.createElement;
|
221
211
|
createFactory = ReactElementValidator.createFactory;
|
222
212
|
cloneElement = ReactElementValidator.cloneElement;
|
@@ -272,8 +262,21 @@ var React = {
|
|
272
262
|
__spread: __spread
|
273
263
|
};
|
274
264
|
|
265
|
+
// TODO: Fix tests so that this deprecation warning doesn't cause failures.
|
266
|
+
if ("development" !== 'production') {
|
267
|
+
if (canDefineProperty) {
|
268
|
+
Object.defineProperty(React, 'PropTypes', {
|
269
|
+
get: function () {
|
270
|
+
"development" !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;
|
271
|
+
didWarnPropTypesDeprecated = true;
|
272
|
+
return ReactPropTypes;
|
273
|
+
}
|
274
|
+
});
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
275
278
|
module.exports = React;
|
276
|
-
},{"10":10,"12":12,"15":15,"17":17,"19":19,"
|
279
|
+
},{"10":10,"12":12,"15":15,"17":17,"19":19,"20":20,"24":24,"30":30,"31":31,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
|
277
280
|
/**
|
278
281
|
* Copyright 2013-present, Facebook, Inc.
|
279
282
|
* All rights reserved.
|
@@ -289,8 +292,8 @@ module.exports = React;
|
|
289
292
|
var PooledClass = _dereq_(2);
|
290
293
|
var ReactElement = _dereq_(10);
|
291
294
|
|
292
|
-
var emptyFunction = _dereq_(
|
293
|
-
var traverseAllChildren = _dereq_(
|
295
|
+
var emptyFunction = _dereq_(27);
|
296
|
+
var traverseAllChildren = _dereq_(26);
|
294
297
|
|
295
298
|
var twoArgumentPooler = PooledClass.twoArgumentPooler;
|
296
299
|
var fourArgumentPooler = PooledClass.fourArgumentPooler;
|
@@ -464,7 +467,7 @@ var ReactChildren = {
|
|
464
467
|
};
|
465
468
|
|
466
469
|
module.exports = ReactChildren;
|
467
|
-
},{"10":10,"2":2,"
|
470
|
+
},{"10":10,"2":2,"26":26,"27":27}],5:[function(_dereq_,module,exports){
|
468
471
|
/**
|
469
472
|
* Copyright 2013-present, Facebook, Inc.
|
470
473
|
* All rights reserved.
|
@@ -477,17 +480,17 @@ module.exports = ReactChildren;
|
|
477
480
|
|
478
481
|
'use strict';
|
479
482
|
|
480
|
-
var _prodInvariant = _dereq_(
|
481
|
-
_assign = _dereq_(
|
483
|
+
var _prodInvariant = _dereq_(25),
|
484
|
+
_assign = _dereq_(31);
|
482
485
|
|
483
486
|
var ReactComponent = _dereq_(6);
|
484
487
|
var ReactElement = _dereq_(10);
|
485
488
|
var ReactPropTypeLocationNames = _dereq_(14);
|
486
489
|
var ReactNoopUpdateQueue = _dereq_(13);
|
487
490
|
|
488
|
-
var emptyObject = _dereq_(
|
489
|
-
var invariant = _dereq_(
|
490
|
-
var warning = _dereq_(
|
491
|
+
var emptyObject = _dereq_(28);
|
492
|
+
var invariant = _dereq_(29);
|
493
|
+
var warning = _dereq_(30);
|
491
494
|
|
492
495
|
var MIXINS_KEY = 'mixins';
|
493
496
|
|
@@ -618,7 +621,6 @@ var ReactClassInterface = {
|
|
618
621
|
* }
|
619
622
|
*
|
620
623
|
* @return {ReactComponent}
|
621
|
-
* @nosideeffects
|
622
624
|
* @required
|
623
625
|
*/
|
624
626
|
render: 'DEFINE_ONCE',
|
@@ -1074,6 +1076,8 @@ var ReactClassMixin = {
|
|
1074
1076
|
var ReactClassComponent = function () {};
|
1075
1077
|
_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
|
1076
1078
|
|
1079
|
+
var didWarnDeprecated = false;
|
1080
|
+
|
1077
1081
|
/**
|
1078
1082
|
* Module for creating composite components.
|
1079
1083
|
*
|
@@ -1090,6 +1094,11 @@ var ReactClass = {
|
|
1090
1094
|
* @public
|
1091
1095
|
*/
|
1092
1096
|
createClass: function (spec) {
|
1097
|
+
if ("development" !== 'production') {
|
1098
|
+
"development" !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;
|
1099
|
+
didWarnDeprecated = true;
|
1100
|
+
}
|
1101
|
+
|
1093
1102
|
// To keep our warnings more understandable, we'll use a little hack here to
|
1094
1103
|
// ensure that Constructor.name !== 'Constructor'. This makes sure we don't
|
1095
1104
|
// unnecessarily identify a class without displayName as 'Constructor'.
|
@@ -1181,7 +1190,7 @@ var ReactClass = {
|
|
1181
1190
|
};
|
1182
1191
|
|
1183
1192
|
module.exports = ReactClass;
|
1184
|
-
},{"10":10,"13":13,"14":14,"
|
1193
|
+
},{"10":10,"13":13,"14":14,"25":25,"28":28,"29":29,"30":30,"31":31,"6":6}],6:[function(_dereq_,module,exports){
|
1185
1194
|
/**
|
1186
1195
|
* Copyright 2013-present, Facebook, Inc.
|
1187
1196
|
* All rights reserved.
|
@@ -1194,14 +1203,14 @@ module.exports = ReactClass;
|
|
1194
1203
|
|
1195
1204
|
'use strict';
|
1196
1205
|
|
1197
|
-
var _prodInvariant = _dereq_(
|
1206
|
+
var _prodInvariant = _dereq_(25);
|
1198
1207
|
|
1199
1208
|
var ReactNoopUpdateQueue = _dereq_(13);
|
1200
1209
|
|
1201
1210
|
var canDefineProperty = _dereq_(20);
|
1202
|
-
var emptyObject = _dereq_(
|
1203
|
-
var invariant = _dereq_(
|
1204
|
-
var warning = _dereq_(
|
1211
|
+
var emptyObject = _dereq_(28);
|
1212
|
+
var invariant = _dereq_(29);
|
1213
|
+
var warning = _dereq_(30);
|
1205
1214
|
|
1206
1215
|
/**
|
1207
1216
|
* Base class helpers for the updating state of a component.
|
@@ -1299,7 +1308,7 @@ if ("development" !== 'production') {
|
|
1299
1308
|
}
|
1300
1309
|
|
1301
1310
|
module.exports = ReactComponent;
|
1302
|
-
},{"13":13,"20":20,"
|
1311
|
+
},{"13":13,"20":20,"25":25,"28":28,"29":29,"30":30}],7:[function(_dereq_,module,exports){
|
1303
1312
|
/**
|
1304
1313
|
* Copyright 2016-present, Facebook, Inc.
|
1305
1314
|
* All rights reserved.
|
@@ -1313,12 +1322,12 @@ module.exports = ReactComponent;
|
|
1313
1322
|
|
1314
1323
|
'use strict';
|
1315
1324
|
|
1316
|
-
var _prodInvariant = _dereq_(
|
1325
|
+
var _prodInvariant = _dereq_(25);
|
1317
1326
|
|
1318
1327
|
var ReactCurrentOwner = _dereq_(8);
|
1319
1328
|
|
1320
|
-
var invariant = _dereq_(
|
1321
|
-
var warning = _dereq_(
|
1329
|
+
var invariant = _dereq_(29);
|
1330
|
+
var warning = _dereq_(30);
|
1322
1331
|
|
1323
1332
|
function isNative(fn) {
|
1324
1333
|
// Based on isNative() from Lodash
|
@@ -1633,7 +1642,7 @@ var ReactComponentTreeHook = {
|
|
1633
1642
|
};
|
1634
1643
|
|
1635
1644
|
module.exports = ReactComponentTreeHook;
|
1636
|
-
},{"
|
1645
|
+
},{"25":25,"29":29,"30":30,"8":8}],8:[function(_dereq_,module,exports){
|
1637
1646
|
/**
|
1638
1647
|
* Copyright 2013-present, Facebook, Inc.
|
1639
1648
|
* All rights reserved.
|
@@ -1847,11 +1856,11 @@ module.exports = ReactDOMFactories;
|
|
1847
1856
|
|
1848
1857
|
'use strict';
|
1849
1858
|
|
1850
|
-
var _assign = _dereq_(
|
1859
|
+
var _assign = _dereq_(31);
|
1851
1860
|
|
1852
1861
|
var ReactCurrentOwner = _dereq_(8);
|
1853
1862
|
|
1854
|
-
var warning = _dereq_(
|
1863
|
+
var warning = _dereq_(30);
|
1855
1864
|
var canDefineProperty = _dereq_(20);
|
1856
1865
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
1857
1866
|
|
@@ -2175,7 +2184,7 @@ ReactElement.isValidElement = function (object) {
|
|
2175
2184
|
};
|
2176
2185
|
|
2177
2186
|
module.exports = ReactElement;
|
2178
|
-
},{"11":11,"20":20,"
|
2187
|
+
},{"11":11,"20":20,"30":30,"31":31,"8":8}],11:[function(_dereq_,module,exports){
|
2179
2188
|
/**
|
2180
2189
|
* Copyright 2014-present, Facebook, Inc.
|
2181
2190
|
* All rights reserved.
|
@@ -2223,7 +2232,7 @@ var checkReactTypeSpec = _dereq_(21);
|
|
2223
2232
|
|
2224
2233
|
var canDefineProperty = _dereq_(20);
|
2225
2234
|
var getIteratorFn = _dereq_(22);
|
2226
|
-
var warning = _dereq_(
|
2235
|
+
var warning = _dereq_(30);
|
2227
2236
|
|
2228
2237
|
function getDeclarationErrorAddendum() {
|
2229
2238
|
if (ReactCurrentOwner.current) {
|
@@ -2235,6 +2244,16 @@ function getDeclarationErrorAddendum() {
|
|
2235
2244
|
return '';
|
2236
2245
|
}
|
2237
2246
|
|
2247
|
+
function getSourceInfoErrorAddendum(elementProps) {
|
2248
|
+
if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
|
2249
|
+
var source = elementProps.__source;
|
2250
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
2251
|
+
var lineNumber = source.lineNumber;
|
2252
|
+
return ' Check your code at ' + fileName + ':' + lineNumber + '.';
|
2253
|
+
}
|
2254
|
+
return '';
|
2255
|
+
}
|
2256
|
+
|
2238
2257
|
/**
|
2239
2258
|
* Warn if there's no key explicitly set on dynamic arrays of children or
|
2240
2259
|
* object keys are not valid. This allows us to keep track of children between
|
@@ -2360,7 +2379,23 @@ var ReactElementValidator = {
|
|
2360
2379
|
// We warn in this case but don't throw. We expect the element creation to
|
2361
2380
|
// succeed and there will likely be errors in render.
|
2362
2381
|
if (!validType) {
|
2363
|
-
|
2382
|
+
if (typeof type !== 'function' && typeof type !== 'string') {
|
2383
|
+
var info = '';
|
2384
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
2385
|
+
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
|
2386
|
+
}
|
2387
|
+
|
2388
|
+
var sourceInfo = getSourceInfoErrorAddendum(props);
|
2389
|
+
if (sourceInfo) {
|
2390
|
+
info += sourceInfo;
|
2391
|
+
} else {
|
2392
|
+
info += getDeclarationErrorAddendum();
|
2393
|
+
}
|
2394
|
+
|
2395
|
+
info += ReactComponentTreeHook.getCurrentStackAddendum();
|
2396
|
+
|
2397
|
+
"development" !== 'production' ? warning(false, 'React.createElement: 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) : void 0;
|
2398
|
+
}
|
2364
2399
|
}
|
2365
2400
|
|
2366
2401
|
var element = ReactElement.createElement.apply(this, arguments);
|
@@ -2422,7 +2457,7 @@ var ReactElementValidator = {
|
|
2422
2457
|
};
|
2423
2458
|
|
2424
2459
|
module.exports = ReactElementValidator;
|
2425
|
-
},{"10":10,"20":20,"21":21,"22":22,"
|
2460
|
+
},{"10":10,"20":20,"21":21,"22":22,"30":30,"7":7,"8":8}],13:[function(_dereq_,module,exports){
|
2426
2461
|
/**
|
2427
2462
|
* Copyright 2015-present, Facebook, Inc.
|
2428
2463
|
* All rights reserved.
|
@@ -2435,7 +2470,7 @@ module.exports = ReactElementValidator;
|
|
2435
2470
|
|
2436
2471
|
'use strict';
|
2437
2472
|
|
2438
|
-
var warning = _dereq_(
|
2473
|
+
var warning = _dereq_(30);
|
2439
2474
|
|
2440
2475
|
function warnNoop(publicInstance, callerName) {
|
2441
2476
|
if ("development" !== 'production') {
|
@@ -2518,7 +2553,7 @@ var ReactNoopUpdateQueue = {
|
|
2518
2553
|
};
|
2519
2554
|
|
2520
2555
|
module.exports = ReactNoopUpdateQueue;
|
2521
|
-
},{"
|
2556
|
+
},{"30":30}],14:[function(_dereq_,module,exports){
|
2522
2557
|
/**
|
2523
2558
|
* Copyright 2013-present, Facebook, Inc.
|
2524
2559
|
* All rights reserved.
|
@@ -2556,428 +2591,13 @@ module.exports = ReactPropTypeLocationNames;
|
|
2556
2591
|
|
2557
2592
|
'use strict';
|
2558
2593
|
|
2559
|
-
var
|
2560
|
-
|
2561
|
-
var ReactPropTypesSecret = _dereq_(16);
|
2562
|
-
|
2563
|
-
var emptyFunction = _dereq_(26);
|
2564
|
-
var getIteratorFn = _dereq_(22);
|
2565
|
-
var warning = _dereq_(29);
|
2566
|
-
|
2567
|
-
/**
|
2568
|
-
* Collection of methods that allow declaration and validation of props that are
|
2569
|
-
* supplied to React components. Example usage:
|
2570
|
-
*
|
2571
|
-
* var Props = require('ReactPropTypes');
|
2572
|
-
* var MyArticle = React.createClass({
|
2573
|
-
* propTypes: {
|
2574
|
-
* // An optional string prop named "description".
|
2575
|
-
* description: Props.string,
|
2576
|
-
*
|
2577
|
-
* // A required enum prop named "category".
|
2578
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
2579
|
-
*
|
2580
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
2581
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
2582
|
-
* },
|
2583
|
-
* render: function() { ... }
|
2584
|
-
* });
|
2585
|
-
*
|
2586
|
-
* A more formal specification of how these methods are used:
|
2587
|
-
*
|
2588
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
2589
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
2590
|
-
*
|
2591
|
-
* Each and every declaration produces a function with the same signature. This
|
2592
|
-
* allows the creation of custom validation functions. For example:
|
2593
|
-
*
|
2594
|
-
* var MyLink = React.createClass({
|
2595
|
-
* propTypes: {
|
2596
|
-
* // An optional string or URI prop named "href".
|
2597
|
-
* href: function(props, propName, componentName) {
|
2598
|
-
* var propValue = props[propName];
|
2599
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
2600
|
-
* !(propValue instanceof URI)) {
|
2601
|
-
* return new Error(
|
2602
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
2603
|
-
* componentName
|
2604
|
-
* );
|
2605
|
-
* }
|
2606
|
-
* }
|
2607
|
-
* },
|
2608
|
-
* render: function() {...}
|
2609
|
-
* });
|
2610
|
-
*
|
2611
|
-
* @internal
|
2612
|
-
*/
|
2613
|
-
|
2614
|
-
var ANONYMOUS = '<<anonymous>>';
|
2615
|
-
|
2616
|
-
var ReactPropTypes = {
|
2617
|
-
array: createPrimitiveTypeChecker('array'),
|
2618
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
2619
|
-
func: createPrimitiveTypeChecker('function'),
|
2620
|
-
number: createPrimitiveTypeChecker('number'),
|
2621
|
-
object: createPrimitiveTypeChecker('object'),
|
2622
|
-
string: createPrimitiveTypeChecker('string'),
|
2623
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
2624
|
-
|
2625
|
-
any: createAnyTypeChecker(),
|
2626
|
-
arrayOf: createArrayOfTypeChecker,
|
2627
|
-
element: createElementTypeChecker(),
|
2628
|
-
instanceOf: createInstanceTypeChecker,
|
2629
|
-
node: createNodeChecker(),
|
2630
|
-
objectOf: createObjectOfTypeChecker,
|
2631
|
-
oneOf: createEnumTypeChecker,
|
2632
|
-
oneOfType: createUnionTypeChecker,
|
2633
|
-
shape: createShapeTypeChecker
|
2634
|
-
};
|
2635
|
-
|
2636
|
-
/**
|
2637
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
2638
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
2639
|
-
*/
|
2640
|
-
/*eslint-disable no-self-compare*/
|
2641
|
-
function is(x, y) {
|
2642
|
-
// SameValue algorithm
|
2643
|
-
if (x === y) {
|
2644
|
-
// Steps 1-5, 7-10
|
2645
|
-
// Steps 6.b-6.e: +0 != -0
|
2646
|
-
return x !== 0 || 1 / x === 1 / y;
|
2647
|
-
} else {
|
2648
|
-
// Step 6.a: NaN == NaN
|
2649
|
-
return x !== x && y !== y;
|
2650
|
-
}
|
2651
|
-
}
|
2652
|
-
/*eslint-enable no-self-compare*/
|
2653
|
-
|
2654
|
-
/**
|
2655
|
-
* We use an Error-like object for backward compatibility as people may call
|
2656
|
-
* PropTypes directly and inspect their output. However we don't use real
|
2657
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
2658
|
-
* is prohibitively expensive if they are created too often, such as what
|
2659
|
-
* happens in oneOfType() for any type before the one that matched.
|
2660
|
-
*/
|
2661
|
-
function PropTypeError(message) {
|
2662
|
-
this.message = message;
|
2663
|
-
this.stack = '';
|
2664
|
-
}
|
2665
|
-
// Make `instanceof Error` still work for returned errors.
|
2666
|
-
PropTypeError.prototype = Error.prototype;
|
2667
|
-
|
2668
|
-
function createChainableTypeChecker(validate) {
|
2669
|
-
if ("development" !== 'production') {
|
2670
|
-
var manualPropTypeCallCache = {};
|
2671
|
-
}
|
2672
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
2673
|
-
componentName = componentName || ANONYMOUS;
|
2674
|
-
propFullName = propFullName || propName;
|
2675
|
-
if ("development" !== 'production') {
|
2676
|
-
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
2677
|
-
var cacheKey = componentName + ':' + propName;
|
2678
|
-
if (!manualPropTypeCallCache[cacheKey]) {
|
2679
|
-
"development" !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;
|
2680
|
-
manualPropTypeCallCache[cacheKey] = true;
|
2681
|
-
}
|
2682
|
-
}
|
2683
|
-
}
|
2684
|
-
if (props[propName] == null) {
|
2685
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2686
|
-
if (isRequired) {
|
2687
|
-
if (props[propName] === null) {
|
2688
|
-
return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
2689
|
-
}
|
2690
|
-
return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
2691
|
-
}
|
2692
|
-
return null;
|
2693
|
-
} else {
|
2694
|
-
return validate(props, propName, componentName, location, propFullName);
|
2695
|
-
}
|
2696
|
-
}
|
2697
|
-
|
2698
|
-
var chainedCheckType = checkType.bind(null, false);
|
2699
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
2700
|
-
|
2701
|
-
return chainedCheckType;
|
2702
|
-
}
|
2703
|
-
|
2704
|
-
function createPrimitiveTypeChecker(expectedType) {
|
2705
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
2706
|
-
var propValue = props[propName];
|
2707
|
-
var propType = getPropType(propValue);
|
2708
|
-
if (propType !== expectedType) {
|
2709
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2710
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
2711
|
-
// check, but we can offer a more precise error message here rather than
|
2712
|
-
// 'of type `object`'.
|
2713
|
-
var preciseType = getPreciseType(propValue);
|
2714
|
-
|
2715
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
2716
|
-
}
|
2717
|
-
return null;
|
2718
|
-
}
|
2719
|
-
return createChainableTypeChecker(validate);
|
2720
|
-
}
|
2721
|
-
|
2722
|
-
function createAnyTypeChecker() {
|
2723
|
-
return createChainableTypeChecker(emptyFunction.thatReturns(null));
|
2724
|
-
}
|
2725
|
-
|
2726
|
-
function createArrayOfTypeChecker(typeChecker) {
|
2727
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2728
|
-
if (typeof typeChecker !== 'function') {
|
2729
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
2730
|
-
}
|
2731
|
-
var propValue = props[propName];
|
2732
|
-
if (!Array.isArray(propValue)) {
|
2733
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2734
|
-
var propType = getPropType(propValue);
|
2735
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
2736
|
-
}
|
2737
|
-
for (var i = 0; i < propValue.length; i++) {
|
2738
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
2739
|
-
if (error instanceof Error) {
|
2740
|
-
return error;
|
2741
|
-
}
|
2742
|
-
}
|
2743
|
-
return null;
|
2744
|
-
}
|
2745
|
-
return createChainableTypeChecker(validate);
|
2746
|
-
}
|
2747
|
-
|
2748
|
-
function createElementTypeChecker() {
|
2749
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2750
|
-
var propValue = props[propName];
|
2751
|
-
if (!ReactElement.isValidElement(propValue)) {
|
2752
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2753
|
-
var propType = getPropType(propValue);
|
2754
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
2755
|
-
}
|
2756
|
-
return null;
|
2757
|
-
}
|
2758
|
-
return createChainableTypeChecker(validate);
|
2759
|
-
}
|
2760
|
-
|
2761
|
-
function createInstanceTypeChecker(expectedClass) {
|
2762
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2763
|
-
if (!(props[propName] instanceof expectedClass)) {
|
2764
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2765
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
2766
|
-
var actualClassName = getClassName(props[propName]);
|
2767
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
2768
|
-
}
|
2769
|
-
return null;
|
2770
|
-
}
|
2771
|
-
return createChainableTypeChecker(validate);
|
2772
|
-
}
|
2773
|
-
|
2774
|
-
function createEnumTypeChecker(expectedValues) {
|
2775
|
-
if (!Array.isArray(expectedValues)) {
|
2776
|
-
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
2777
|
-
return emptyFunction.thatReturnsNull;
|
2778
|
-
}
|
2779
|
-
|
2780
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2781
|
-
var propValue = props[propName];
|
2782
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
2783
|
-
if (is(propValue, expectedValues[i])) {
|
2784
|
-
return null;
|
2785
|
-
}
|
2786
|
-
}
|
2787
|
-
|
2788
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2789
|
-
var valuesString = JSON.stringify(expectedValues);
|
2790
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
2791
|
-
}
|
2792
|
-
return createChainableTypeChecker(validate);
|
2793
|
-
}
|
2794
|
-
|
2795
|
-
function createObjectOfTypeChecker(typeChecker) {
|
2796
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2797
|
-
if (typeof typeChecker !== 'function') {
|
2798
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
2799
|
-
}
|
2800
|
-
var propValue = props[propName];
|
2801
|
-
var propType = getPropType(propValue);
|
2802
|
-
if (propType !== 'object') {
|
2803
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2804
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
2805
|
-
}
|
2806
|
-
for (var key in propValue) {
|
2807
|
-
if (propValue.hasOwnProperty(key)) {
|
2808
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
2809
|
-
if (error instanceof Error) {
|
2810
|
-
return error;
|
2811
|
-
}
|
2812
|
-
}
|
2813
|
-
}
|
2814
|
-
return null;
|
2815
|
-
}
|
2816
|
-
return createChainableTypeChecker(validate);
|
2817
|
-
}
|
2818
|
-
|
2819
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
2820
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
2821
|
-
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
2822
|
-
return emptyFunction.thatReturnsNull;
|
2823
|
-
}
|
2824
|
-
|
2825
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2826
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
2827
|
-
var checker = arrayOfTypeCheckers[i];
|
2828
|
-
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
2829
|
-
return null;
|
2830
|
-
}
|
2831
|
-
}
|
2832
|
-
|
2833
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2834
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
2835
|
-
}
|
2836
|
-
return createChainableTypeChecker(validate);
|
2837
|
-
}
|
2838
|
-
|
2839
|
-
function createNodeChecker() {
|
2840
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2841
|
-
if (!isNode(props[propName])) {
|
2842
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2843
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
2844
|
-
}
|
2845
|
-
return null;
|
2846
|
-
}
|
2847
|
-
return createChainableTypeChecker(validate);
|
2848
|
-
}
|
2849
|
-
|
2850
|
-
function createShapeTypeChecker(shapeTypes) {
|
2851
|
-
function validate(props, propName, componentName, location, propFullName) {
|
2852
|
-
var propValue = props[propName];
|
2853
|
-
var propType = getPropType(propValue);
|
2854
|
-
if (propType !== 'object') {
|
2855
|
-
var locationName = ReactPropTypeLocationNames[location];
|
2856
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
2857
|
-
}
|
2858
|
-
for (var key in shapeTypes) {
|
2859
|
-
var checker = shapeTypes[key];
|
2860
|
-
if (!checker) {
|
2861
|
-
continue;
|
2862
|
-
}
|
2863
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
2864
|
-
if (error) {
|
2865
|
-
return error;
|
2866
|
-
}
|
2867
|
-
}
|
2868
|
-
return null;
|
2869
|
-
}
|
2870
|
-
return createChainableTypeChecker(validate);
|
2871
|
-
}
|
2872
|
-
|
2873
|
-
function isNode(propValue) {
|
2874
|
-
switch (typeof propValue) {
|
2875
|
-
case 'number':
|
2876
|
-
case 'string':
|
2877
|
-
case 'undefined':
|
2878
|
-
return true;
|
2879
|
-
case 'boolean':
|
2880
|
-
return !propValue;
|
2881
|
-
case 'object':
|
2882
|
-
if (Array.isArray(propValue)) {
|
2883
|
-
return propValue.every(isNode);
|
2884
|
-
}
|
2885
|
-
if (propValue === null || ReactElement.isValidElement(propValue)) {
|
2886
|
-
return true;
|
2887
|
-
}
|
2888
|
-
|
2889
|
-
var iteratorFn = getIteratorFn(propValue);
|
2890
|
-
if (iteratorFn) {
|
2891
|
-
var iterator = iteratorFn.call(propValue);
|
2892
|
-
var step;
|
2893
|
-
if (iteratorFn !== propValue.entries) {
|
2894
|
-
while (!(step = iterator.next()).done) {
|
2895
|
-
if (!isNode(step.value)) {
|
2896
|
-
return false;
|
2897
|
-
}
|
2898
|
-
}
|
2899
|
-
} else {
|
2900
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
2901
|
-
while (!(step = iterator.next()).done) {
|
2902
|
-
var entry = step.value;
|
2903
|
-
if (entry) {
|
2904
|
-
if (!isNode(entry[1])) {
|
2905
|
-
return false;
|
2906
|
-
}
|
2907
|
-
}
|
2908
|
-
}
|
2909
|
-
}
|
2910
|
-
} else {
|
2911
|
-
return false;
|
2912
|
-
}
|
2913
|
-
|
2914
|
-
return true;
|
2915
|
-
default:
|
2916
|
-
return false;
|
2917
|
-
}
|
2918
|
-
}
|
2919
|
-
|
2920
|
-
function isSymbol(propType, propValue) {
|
2921
|
-
// Native Symbol.
|
2922
|
-
if (propType === 'symbol') {
|
2923
|
-
return true;
|
2924
|
-
}
|
2925
|
-
|
2926
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
2927
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
2928
|
-
return true;
|
2929
|
-
}
|
2930
|
-
|
2931
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
2932
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
2933
|
-
return true;
|
2934
|
-
}
|
2935
|
-
|
2936
|
-
return false;
|
2937
|
-
}
|
2938
|
-
|
2939
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
2940
|
-
function getPropType(propValue) {
|
2941
|
-
var propType = typeof propValue;
|
2942
|
-
if (Array.isArray(propValue)) {
|
2943
|
-
return 'array';
|
2944
|
-
}
|
2945
|
-
if (propValue instanceof RegExp) {
|
2946
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
2947
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
2948
|
-
// passes PropTypes.object.
|
2949
|
-
return 'object';
|
2950
|
-
}
|
2951
|
-
if (isSymbol(propType, propValue)) {
|
2952
|
-
return 'symbol';
|
2953
|
-
}
|
2954
|
-
return propType;
|
2955
|
-
}
|
2956
|
-
|
2957
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
2958
|
-
// See `createPrimitiveTypeChecker`.
|
2959
|
-
function getPreciseType(propValue) {
|
2960
|
-
var propType = getPropType(propValue);
|
2961
|
-
if (propType === 'object') {
|
2962
|
-
if (propValue instanceof Date) {
|
2963
|
-
return 'date';
|
2964
|
-
} else if (propValue instanceof RegExp) {
|
2965
|
-
return 'regexp';
|
2966
|
-
}
|
2967
|
-
}
|
2968
|
-
return propType;
|
2969
|
-
}
|
2594
|
+
var _require = _dereq_(10),
|
2595
|
+
isValidElement = _require.isValidElement;
|
2970
2596
|
|
2971
|
-
|
2972
|
-
function getClassName(propValue) {
|
2973
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
2974
|
-
return ANONYMOUS;
|
2975
|
-
}
|
2976
|
-
return propValue.constructor.name;
|
2977
|
-
}
|
2597
|
+
var factory = _dereq_(33);
|
2978
2598
|
|
2979
|
-
module.exports =
|
2980
|
-
},{"10":10,"
|
2599
|
+
module.exports = factory(isValidElement);
|
2600
|
+
},{"10":10,"33":33}],16:[function(_dereq_,module,exports){
|
2981
2601
|
/**
|
2982
2602
|
* Copyright 2013-present, Facebook, Inc.
|
2983
2603
|
* All rights reserved.
|
@@ -3007,12 +2627,12 @@ module.exports = ReactPropTypesSecret;
|
|
3007
2627
|
|
3008
2628
|
'use strict';
|
3009
2629
|
|
3010
|
-
var _assign = _dereq_(
|
2630
|
+
var _assign = _dereq_(31);
|
3011
2631
|
|
3012
2632
|
var ReactComponent = _dereq_(6);
|
3013
2633
|
var ReactNoopUpdateQueue = _dereq_(13);
|
3014
2634
|
|
3015
|
-
var emptyObject = _dereq_(
|
2635
|
+
var emptyObject = _dereq_(28);
|
3016
2636
|
|
3017
2637
|
/**
|
3018
2638
|
* Base class helpers for the updating state of a component.
|
@@ -3036,7 +2656,7 @@ _assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
3036
2656
|
ReactPureComponent.prototype.isPureReactComponent = true;
|
3037
2657
|
|
3038
2658
|
module.exports = ReactPureComponent;
|
3039
|
-
},{"13":13,"
|
2659
|
+
},{"13":13,"28":28,"31":31,"6":6}],18:[function(_dereq_,module,exports){
|
3040
2660
|
/**
|
3041
2661
|
* Copyright 2013-present, Facebook, Inc.
|
3042
2662
|
* All rights reserved.
|
@@ -3049,26 +2669,27 @@ module.exports = ReactPureComponent;
|
|
3049
2669
|
|
3050
2670
|
'use strict';
|
3051
2671
|
|
3052
|
-
var _assign = _dereq_(
|
2672
|
+
var _assign = _dereq_(31);
|
3053
2673
|
|
3054
2674
|
var React = _dereq_(3);
|
3055
2675
|
|
3056
2676
|
// `version` will be added here by the React module.
|
3057
|
-
var ReactUMDEntry = _assign({
|
2677
|
+
var ReactUMDEntry = _assign(React, {
|
3058
2678
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
3059
2679
|
ReactCurrentOwner: _dereq_(8)
|
3060
2680
|
}
|
3061
|
-
}
|
2681
|
+
});
|
3062
2682
|
|
3063
2683
|
if ("development" !== 'production') {
|
3064
2684
|
_assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
3065
2685
|
// ReactComponentTreeHook should not be included in production.
|
3066
|
-
ReactComponentTreeHook: _dereq_(7)
|
2686
|
+
ReactComponentTreeHook: _dereq_(7),
|
2687
|
+
getNextDebugID: _dereq_(23)
|
3067
2688
|
});
|
3068
2689
|
}
|
3069
2690
|
|
3070
2691
|
module.exports = ReactUMDEntry;
|
3071
|
-
},{"3":3,"
|
2692
|
+
},{"23":23,"3":3,"31":31,"7":7,"8":8}],19:[function(_dereq_,module,exports){
|
3072
2693
|
/**
|
3073
2694
|
* Copyright 2013-present, Facebook, Inc.
|
3074
2695
|
* All rights reserved.
|
@@ -3081,7 +2702,7 @@ module.exports = ReactUMDEntry;
|
|
3081
2702
|
|
3082
2703
|
'use strict';
|
3083
2704
|
|
3084
|
-
module.exports = '15.4
|
2705
|
+
module.exports = '15.5.4';
|
3085
2706
|
},{}],20:[function(_dereq_,module,exports){
|
3086
2707
|
/**
|
3087
2708
|
* Copyright 2013-present, Facebook, Inc.
|
@@ -3122,13 +2743,13 @@ module.exports = canDefineProperty;
|
|
3122
2743
|
|
3123
2744
|
'use strict';
|
3124
2745
|
|
3125
|
-
var _prodInvariant = _dereq_(
|
2746
|
+
var _prodInvariant = _dereq_(25);
|
3126
2747
|
|
3127
2748
|
var ReactPropTypeLocationNames = _dereq_(14);
|
3128
2749
|
var ReactPropTypesSecret = _dereq_(16);
|
3129
2750
|
|
3130
|
-
var invariant = _dereq_(
|
3131
|
-
var warning = _dereq_(
|
2751
|
+
var invariant = _dereq_(29);
|
2752
|
+
var warning = _dereq_(30);
|
3132
2753
|
|
3133
2754
|
var ReactComponentTreeHook;
|
3134
2755
|
|
@@ -3197,7 +2818,7 @@ function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
|
|
3197
2818
|
|
3198
2819
|
module.exports = checkReactTypeSpec;
|
3199
2820
|
}).call(this,undefined)
|
3200
|
-
},{"14":14,"16":16,"
|
2821
|
+
},{"14":14,"16":16,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
3201
2822
|
/**
|
3202
2823
|
* Copyright 2013-present, Facebook, Inc.
|
3203
2824
|
* All rights reserved.
|
@@ -3239,6 +2860,27 @@ function getIteratorFn(maybeIterable) {
|
|
3239
2860
|
|
3240
2861
|
module.exports = getIteratorFn;
|
3241
2862
|
},{}],23:[function(_dereq_,module,exports){
|
2863
|
+
/**
|
2864
|
+
* Copyright 2013-present, Facebook, Inc.
|
2865
|
+
* All rights reserved.
|
2866
|
+
*
|
2867
|
+
* This source code is licensed under the BSD-style license found in the
|
2868
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
2869
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
2870
|
+
*
|
2871
|
+
*
|
2872
|
+
*/
|
2873
|
+
|
2874
|
+
'use strict';
|
2875
|
+
|
2876
|
+
var nextDebugID = 1;
|
2877
|
+
|
2878
|
+
function getNextDebugID() {
|
2879
|
+
return nextDebugID++;
|
2880
|
+
}
|
2881
|
+
|
2882
|
+
module.exports = getNextDebugID;
|
2883
|
+
},{}],24:[function(_dereq_,module,exports){
|
3242
2884
|
/**
|
3243
2885
|
* Copyright 2013-present, Facebook, Inc.
|
3244
2886
|
* All rights reserved.
|
@@ -3250,11 +2892,11 @@ module.exports = getIteratorFn;
|
|
3250
2892
|
*/
|
3251
2893
|
'use strict';
|
3252
2894
|
|
3253
|
-
var _prodInvariant = _dereq_(
|
2895
|
+
var _prodInvariant = _dereq_(25);
|
3254
2896
|
|
3255
2897
|
var ReactElement = _dereq_(10);
|
3256
2898
|
|
3257
|
-
var invariant = _dereq_(
|
2899
|
+
var invariant = _dereq_(29);
|
3258
2900
|
|
3259
2901
|
/**
|
3260
2902
|
* Returns the first child in a collection of children and verifies that there
|
@@ -3276,7 +2918,7 @@ function onlyChild(children) {
|
|
3276
2918
|
}
|
3277
2919
|
|
3278
2920
|
module.exports = onlyChild;
|
3279
|
-
},{"10":10,"
|
2921
|
+
},{"10":10,"25":25,"29":29}],25:[function(_dereq_,module,exports){
|
3280
2922
|
/**
|
3281
2923
|
* Copyright (c) 2013-present, Facebook, Inc.
|
3282
2924
|
* All rights reserved.
|
@@ -3315,7 +2957,7 @@ function reactProdInvariant(code) {
|
|
3315
2957
|
}
|
3316
2958
|
|
3317
2959
|
module.exports = reactProdInvariant;
|
3318
|
-
},{}],
|
2960
|
+
},{}],26:[function(_dereq_,module,exports){
|
3319
2961
|
/**
|
3320
2962
|
* Copyright 2013-present, Facebook, Inc.
|
3321
2963
|
* All rights reserved.
|
@@ -3328,15 +2970,15 @@ module.exports = reactProdInvariant;
|
|
3328
2970
|
|
3329
2971
|
'use strict';
|
3330
2972
|
|
3331
|
-
var _prodInvariant = _dereq_(
|
2973
|
+
var _prodInvariant = _dereq_(25);
|
3332
2974
|
|
3333
2975
|
var ReactCurrentOwner = _dereq_(8);
|
3334
2976
|
var REACT_ELEMENT_TYPE = _dereq_(11);
|
3335
2977
|
|
3336
2978
|
var getIteratorFn = _dereq_(22);
|
3337
|
-
var invariant = _dereq_(
|
2979
|
+
var invariant = _dereq_(29);
|
3338
2980
|
var KeyEscapeUtils = _dereq_(1);
|
3339
|
-
var warning = _dereq_(
|
2981
|
+
var warning = _dereq_(30);
|
3340
2982
|
|
3341
2983
|
var SEPARATOR = '.';
|
3342
2984
|
var SUBSEPARATOR = ':';
|
@@ -3491,7 +3133,7 @@ function traverseAllChildren(children, callback, traverseContext) {
|
|
3491
3133
|
}
|
3492
3134
|
|
3493
3135
|
module.exports = traverseAllChildren;
|
3494
|
-
},{"1":1,"11":11,"22":22,"
|
3136
|
+
},{"1":1,"11":11,"22":22,"25":25,"29":29,"30":30,"8":8}],27:[function(_dereq_,module,exports){
|
3495
3137
|
"use strict";
|
3496
3138
|
|
3497
3139
|
/**
|
@@ -3530,7 +3172,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
|
|
3530
3172
|
};
|
3531
3173
|
|
3532
3174
|
module.exports = emptyFunction;
|
3533
|
-
},{}],
|
3175
|
+
},{}],28:[function(_dereq_,module,exports){
|
3534
3176
|
/**
|
3535
3177
|
* Copyright (c) 2013-present, Facebook, Inc.
|
3536
3178
|
* All rights reserved.
|
@@ -3550,7 +3192,7 @@ if ("development" !== 'production') {
|
|
3550
3192
|
}
|
3551
3193
|
|
3552
3194
|
module.exports = emptyObject;
|
3553
|
-
},{}],
|
3195
|
+
},{}],29:[function(_dereq_,module,exports){
|
3554
3196
|
/**
|
3555
3197
|
* Copyright (c) 2013-present, Facebook, Inc.
|
3556
3198
|
* All rights reserved.
|
@@ -3574,12 +3216,18 @@ module.exports = emptyObject;
|
|
3574
3216
|
* will remain to ensure logic does not differ in production.
|
3575
3217
|
*/
|
3576
3218
|
|
3577
|
-
function
|
3578
|
-
|
3219
|
+
var validateFormat = function validateFormat(format) {};
|
3220
|
+
|
3221
|
+
if ("development" !== 'production') {
|
3222
|
+
validateFormat = function validateFormat(format) {
|
3579
3223
|
if (format === undefined) {
|
3580
3224
|
throw new Error('invariant requires an error message argument');
|
3581
3225
|
}
|
3582
|
-
}
|
3226
|
+
};
|
3227
|
+
}
|
3228
|
+
|
3229
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
3230
|
+
validateFormat(format);
|
3583
3231
|
|
3584
3232
|
if (!condition) {
|
3585
3233
|
var error;
|
@@ -3600,7 +3248,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
3600
3248
|
}
|
3601
3249
|
|
3602
3250
|
module.exports = invariant;
|
3603
|
-
},{}],
|
3251
|
+
},{}],30:[function(_dereq_,module,exports){
|
3604
3252
|
/**
|
3605
3253
|
* Copyright 2014-2015, Facebook, Inc.
|
3606
3254
|
* All rights reserved.
|
@@ -3613,7 +3261,7 @@ module.exports = invariant;
|
|
3613
3261
|
|
3614
3262
|
'use strict';
|
3615
3263
|
|
3616
|
-
var emptyFunction = _dereq_(
|
3264
|
+
var emptyFunction = _dereq_(27);
|
3617
3265
|
|
3618
3266
|
/**
|
3619
3267
|
* Similar to invariant but only logs a warning if the condition is not met.
|
@@ -3667,9 +3315,16 @@ if ("development" !== 'production') {
|
|
3667
3315
|
}
|
3668
3316
|
|
3669
3317
|
module.exports = warning;
|
3670
|
-
},{"
|
3318
|
+
},{"27":27}],31:[function(_dereq_,module,exports){
|
3319
|
+
/*
|
3320
|
+
object-assign
|
3321
|
+
(c) Sindre Sorhus
|
3322
|
+
@license MIT
|
3323
|
+
*/
|
3324
|
+
|
3671
3325
|
'use strict';
|
3672
3326
|
/* eslint-disable no-unused-vars */
|
3327
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
3673
3328
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
3674
3329
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
3675
3330
|
|
@@ -3690,7 +3345,7 @@ function shouldUseNative() {
|
|
3690
3345
|
// Detect buggy property enumeration order in older V8 versions.
|
3691
3346
|
|
3692
3347
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
3693
|
-
var test1 = new String('abc'); // eslint-disable-line
|
3348
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
3694
3349
|
test1[5] = 'de';
|
3695
3350
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
3696
3351
|
return false;
|
@@ -3719,7 +3374,7 @@ function shouldUseNative() {
|
|
3719
3374
|
}
|
3720
3375
|
|
3721
3376
|
return true;
|
3722
|
-
} catch (
|
3377
|
+
} catch (err) {
|
3723
3378
|
// We don't expect any of the above to throw, but better to be safe.
|
3724
3379
|
return false;
|
3725
3380
|
}
|
@@ -3739,8 +3394,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
3739
3394
|
}
|
3740
3395
|
}
|
3741
3396
|
|
3742
|
-
if (
|
3743
|
-
symbols =
|
3397
|
+
if (getOwnPropertySymbols) {
|
3398
|
+
symbols = getOwnPropertySymbols(from);
|
3744
3399
|
for (var i = 0; i < symbols.length; i++) {
|
3745
3400
|
if (propIsEnumerable.call(from, symbols[i])) {
|
3746
3401
|
to[symbols[i]] = from[symbols[i]];
|
@@ -3752,5 +3407,581 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
3752
3407
|
return to;
|
3753
3408
|
};
|
3754
3409
|
|
3410
|
+
},{}],32:[function(_dereq_,module,exports){
|
3411
|
+
/**
|
3412
|
+
* Copyright 2013-present, Facebook, Inc.
|
3413
|
+
* All rights reserved.
|
3414
|
+
*
|
3415
|
+
* This source code is licensed under the BSD-style license found in the
|
3416
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
3417
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
3418
|
+
*/
|
3419
|
+
|
3420
|
+
'use strict';
|
3421
|
+
|
3422
|
+
if ("development" !== 'production') {
|
3423
|
+
var invariant = _dereq_(29);
|
3424
|
+
var warning = _dereq_(30);
|
3425
|
+
var ReactPropTypesSecret = _dereq_(35);
|
3426
|
+
var loggedTypeFailures = {};
|
3427
|
+
}
|
3428
|
+
|
3429
|
+
/**
|
3430
|
+
* Assert that the values match with the type specs.
|
3431
|
+
* Error messages are memorized and will only be shown once.
|
3432
|
+
*
|
3433
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
3434
|
+
* @param {object} values Runtime values that need to be type-checked
|
3435
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
3436
|
+
* @param {string} componentName Name of the component for error messages.
|
3437
|
+
* @param {?Function} getStack Returns the component stack.
|
3438
|
+
* @private
|
3439
|
+
*/
|
3440
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
3441
|
+
if ("development" !== 'production') {
|
3442
|
+
for (var typeSpecName in typeSpecs) {
|
3443
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
3444
|
+
var error;
|
3445
|
+
// Prop type validation may throw. In case they do, we don't want to
|
3446
|
+
// fail the render phase where it didn't fail before. So we log it.
|
3447
|
+
// After these have been cleaned up, we'll let them throw.
|
3448
|
+
try {
|
3449
|
+
// This is intentionally an invariant that gets caught. It's the same
|
3450
|
+
// behavior as without this statement except with a better message.
|
3451
|
+
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);
|
3452
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
3453
|
+
} catch (ex) {
|
3454
|
+
error = ex;
|
3455
|
+
}
|
3456
|
+
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);
|
3457
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
3458
|
+
// Only monitor this failure once because there tends to be a lot of the
|
3459
|
+
// same error.
|
3460
|
+
loggedTypeFailures[error.message] = true;
|
3461
|
+
|
3462
|
+
var stack = getStack ? getStack() : '';
|
3463
|
+
|
3464
|
+
warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
|
3465
|
+
}
|
3466
|
+
}
|
3467
|
+
}
|
3468
|
+
}
|
3469
|
+
}
|
3470
|
+
|
3471
|
+
module.exports = checkPropTypes;
|
3472
|
+
|
3473
|
+
},{"29":29,"30":30,"35":35}],33:[function(_dereq_,module,exports){
|
3474
|
+
/**
|
3475
|
+
* Copyright 2013-present, Facebook, Inc.
|
3476
|
+
* All rights reserved.
|
3477
|
+
*
|
3478
|
+
* This source code is licensed under the BSD-style license found in the
|
3479
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
3480
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
3481
|
+
*/
|
3482
|
+
|
3483
|
+
'use strict';
|
3484
|
+
|
3485
|
+
// React 15.5 references this module, and assumes PropTypes are still callable in production.
|
3486
|
+
// Therefore we re-export development-only version with all the PropTypes checks here.
|
3487
|
+
// However if one is migrating to the `prop-types` npm library, they will go through the
|
3488
|
+
// `index.js` entry point, and it will branch depending on the environment.
|
3489
|
+
var factory = _dereq_(34);
|
3490
|
+
module.exports = function(isValidElement) {
|
3491
|
+
// It is still allowed in 15.5.
|
3492
|
+
var throwOnDirectAccess = false;
|
3493
|
+
return factory(isValidElement, throwOnDirectAccess);
|
3494
|
+
};
|
3495
|
+
|
3496
|
+
},{"34":34}],34:[function(_dereq_,module,exports){
|
3497
|
+
/**
|
3498
|
+
* Copyright 2013-present, Facebook, Inc.
|
3499
|
+
* All rights reserved.
|
3500
|
+
*
|
3501
|
+
* This source code is licensed under the BSD-style license found in the
|
3502
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
3503
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
3504
|
+
*/
|
3505
|
+
|
3506
|
+
'use strict';
|
3507
|
+
|
3508
|
+
var emptyFunction = _dereq_(27);
|
3509
|
+
var invariant = _dereq_(29);
|
3510
|
+
var warning = _dereq_(30);
|
3511
|
+
|
3512
|
+
var ReactPropTypesSecret = _dereq_(35);
|
3513
|
+
var checkPropTypes = _dereq_(32);
|
3514
|
+
|
3515
|
+
module.exports = function(isValidElement, throwOnDirectAccess) {
|
3516
|
+
/* global Symbol */
|
3517
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
3518
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
3519
|
+
|
3520
|
+
/**
|
3521
|
+
* Returns the iterator method function contained on the iterable object.
|
3522
|
+
*
|
3523
|
+
* Be sure to invoke the function with the iterable as context:
|
3524
|
+
*
|
3525
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
3526
|
+
* if (iteratorFn) {
|
3527
|
+
* var iterator = iteratorFn.call(myIterable);
|
3528
|
+
* ...
|
3529
|
+
* }
|
3530
|
+
*
|
3531
|
+
* @param {?object} maybeIterable
|
3532
|
+
* @return {?function}
|
3533
|
+
*/
|
3534
|
+
function getIteratorFn(maybeIterable) {
|
3535
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
3536
|
+
if (typeof iteratorFn === 'function') {
|
3537
|
+
return iteratorFn;
|
3538
|
+
}
|
3539
|
+
}
|
3540
|
+
|
3541
|
+
/**
|
3542
|
+
* Collection of methods that allow declaration and validation of props that are
|
3543
|
+
* supplied to React components. Example usage:
|
3544
|
+
*
|
3545
|
+
* var Props = require('ReactPropTypes');
|
3546
|
+
* var MyArticle = React.createClass({
|
3547
|
+
* propTypes: {
|
3548
|
+
* // An optional string prop named "description".
|
3549
|
+
* description: Props.string,
|
3550
|
+
*
|
3551
|
+
* // A required enum prop named "category".
|
3552
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
3553
|
+
*
|
3554
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
3555
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
3556
|
+
* },
|
3557
|
+
* render: function() { ... }
|
3558
|
+
* });
|
3559
|
+
*
|
3560
|
+
* A more formal specification of how these methods are used:
|
3561
|
+
*
|
3562
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
3563
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
3564
|
+
*
|
3565
|
+
* Each and every declaration produces a function with the same signature. This
|
3566
|
+
* allows the creation of custom validation functions. For example:
|
3567
|
+
*
|
3568
|
+
* var MyLink = React.createClass({
|
3569
|
+
* propTypes: {
|
3570
|
+
* // An optional string or URI prop named "href".
|
3571
|
+
* href: function(props, propName, componentName) {
|
3572
|
+
* var propValue = props[propName];
|
3573
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
3574
|
+
* !(propValue instanceof URI)) {
|
3575
|
+
* return new Error(
|
3576
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
3577
|
+
* componentName
|
3578
|
+
* );
|
3579
|
+
* }
|
3580
|
+
* }
|
3581
|
+
* },
|
3582
|
+
* render: function() {...}
|
3583
|
+
* });
|
3584
|
+
*
|
3585
|
+
* @internal
|
3586
|
+
*/
|
3587
|
+
|
3588
|
+
var ANONYMOUS = '<<anonymous>>';
|
3589
|
+
|
3590
|
+
// Important!
|
3591
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
3592
|
+
var ReactPropTypes = {
|
3593
|
+
array: createPrimitiveTypeChecker('array'),
|
3594
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
3595
|
+
func: createPrimitiveTypeChecker('function'),
|
3596
|
+
number: createPrimitiveTypeChecker('number'),
|
3597
|
+
object: createPrimitiveTypeChecker('object'),
|
3598
|
+
string: createPrimitiveTypeChecker('string'),
|
3599
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
3600
|
+
|
3601
|
+
any: createAnyTypeChecker(),
|
3602
|
+
arrayOf: createArrayOfTypeChecker,
|
3603
|
+
element: createElementTypeChecker(),
|
3604
|
+
instanceOf: createInstanceTypeChecker,
|
3605
|
+
node: createNodeChecker(),
|
3606
|
+
objectOf: createObjectOfTypeChecker,
|
3607
|
+
oneOf: createEnumTypeChecker,
|
3608
|
+
oneOfType: createUnionTypeChecker,
|
3609
|
+
shape: createShapeTypeChecker
|
3610
|
+
};
|
3611
|
+
|
3612
|
+
/**
|
3613
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
3614
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
3615
|
+
*/
|
3616
|
+
/*eslint-disable no-self-compare*/
|
3617
|
+
function is(x, y) {
|
3618
|
+
// SameValue algorithm
|
3619
|
+
if (x === y) {
|
3620
|
+
// Steps 1-5, 7-10
|
3621
|
+
// Steps 6.b-6.e: +0 != -0
|
3622
|
+
return x !== 0 || 1 / x === 1 / y;
|
3623
|
+
} else {
|
3624
|
+
// Step 6.a: NaN == NaN
|
3625
|
+
return x !== x && y !== y;
|
3626
|
+
}
|
3627
|
+
}
|
3628
|
+
/*eslint-enable no-self-compare*/
|
3629
|
+
|
3630
|
+
/**
|
3631
|
+
* We use an Error-like object for backward compatibility as people may call
|
3632
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
3633
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
3634
|
+
* is prohibitively expensive if they are created too often, such as what
|
3635
|
+
* happens in oneOfType() for any type before the one that matched.
|
3636
|
+
*/
|
3637
|
+
function PropTypeError(message) {
|
3638
|
+
this.message = message;
|
3639
|
+
this.stack = '';
|
3640
|
+
}
|
3641
|
+
// Make `instanceof Error` still work for returned errors.
|
3642
|
+
PropTypeError.prototype = Error.prototype;
|
3643
|
+
|
3644
|
+
function createChainableTypeChecker(validate) {
|
3645
|
+
if ("development" !== 'production') {
|
3646
|
+
var manualPropTypeCallCache = {};
|
3647
|
+
}
|
3648
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
3649
|
+
componentName = componentName || ANONYMOUS;
|
3650
|
+
propFullName = propFullName || propName;
|
3651
|
+
|
3652
|
+
if (secret !== ReactPropTypesSecret) {
|
3653
|
+
if (throwOnDirectAccess) {
|
3654
|
+
// New behavior only for users of `prop-types` package
|
3655
|
+
invariant(
|
3656
|
+
false,
|
3657
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
3658
|
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
3659
|
+
'Read more at http://fb.me/use-check-prop-types'
|
3660
|
+
);
|
3661
|
+
} else if ("development" !== 'production' && typeof console !== 'undefined') {
|
3662
|
+
// Old behavior for people using React.PropTypes
|
3663
|
+
var cacheKey = componentName + ':' + propName;
|
3664
|
+
if (!manualPropTypeCallCache[cacheKey]) {
|
3665
|
+
warning(
|
3666
|
+
false,
|
3667
|
+
'You are manually calling a React.PropTypes validation ' +
|
3668
|
+
'function for the `%s` prop on `%s`. This is deprecated ' +
|
3669
|
+
'and will throw in the standalone `prop-types` package. ' +
|
3670
|
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
3671
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
|
3672
|
+
propFullName,
|
3673
|
+
componentName
|
3674
|
+
);
|
3675
|
+
manualPropTypeCallCache[cacheKey] = true;
|
3676
|
+
}
|
3677
|
+
}
|
3678
|
+
}
|
3679
|
+
if (props[propName] == null) {
|
3680
|
+
if (isRequired) {
|
3681
|
+
if (props[propName] === null) {
|
3682
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
3683
|
+
}
|
3684
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
3685
|
+
}
|
3686
|
+
return null;
|
3687
|
+
} else {
|
3688
|
+
return validate(props, propName, componentName, location, propFullName);
|
3689
|
+
}
|
3690
|
+
}
|
3691
|
+
|
3692
|
+
var chainedCheckType = checkType.bind(null, false);
|
3693
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
3694
|
+
|
3695
|
+
return chainedCheckType;
|
3696
|
+
}
|
3697
|
+
|
3698
|
+
function createPrimitiveTypeChecker(expectedType) {
|
3699
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
3700
|
+
var propValue = props[propName];
|
3701
|
+
var propType = getPropType(propValue);
|
3702
|
+
if (propType !== expectedType) {
|
3703
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
3704
|
+
// check, but we can offer a more precise error message here rather than
|
3705
|
+
// 'of type `object`'.
|
3706
|
+
var preciseType = getPreciseType(propValue);
|
3707
|
+
|
3708
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
3709
|
+
}
|
3710
|
+
return null;
|
3711
|
+
}
|
3712
|
+
return createChainableTypeChecker(validate);
|
3713
|
+
}
|
3714
|
+
|
3715
|
+
function createAnyTypeChecker() {
|
3716
|
+
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
3717
|
+
}
|
3718
|
+
|
3719
|
+
function createArrayOfTypeChecker(typeChecker) {
|
3720
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3721
|
+
if (typeof typeChecker !== 'function') {
|
3722
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
3723
|
+
}
|
3724
|
+
var propValue = props[propName];
|
3725
|
+
if (!Array.isArray(propValue)) {
|
3726
|
+
var propType = getPropType(propValue);
|
3727
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
3728
|
+
}
|
3729
|
+
for (var i = 0; i < propValue.length; i++) {
|
3730
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
3731
|
+
if (error instanceof Error) {
|
3732
|
+
return error;
|
3733
|
+
}
|
3734
|
+
}
|
3735
|
+
return null;
|
3736
|
+
}
|
3737
|
+
return createChainableTypeChecker(validate);
|
3738
|
+
}
|
3739
|
+
|
3740
|
+
function createElementTypeChecker() {
|
3741
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3742
|
+
var propValue = props[propName];
|
3743
|
+
if (!isValidElement(propValue)) {
|
3744
|
+
var propType = getPropType(propValue);
|
3745
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
3746
|
+
}
|
3747
|
+
return null;
|
3748
|
+
}
|
3749
|
+
return createChainableTypeChecker(validate);
|
3750
|
+
}
|
3751
|
+
|
3752
|
+
function createInstanceTypeChecker(expectedClass) {
|
3753
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3754
|
+
if (!(props[propName] instanceof expectedClass)) {
|
3755
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
3756
|
+
var actualClassName = getClassName(props[propName]);
|
3757
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
3758
|
+
}
|
3759
|
+
return null;
|
3760
|
+
}
|
3761
|
+
return createChainableTypeChecker(validate);
|
3762
|
+
}
|
3763
|
+
|
3764
|
+
function createEnumTypeChecker(expectedValues) {
|
3765
|
+
if (!Array.isArray(expectedValues)) {
|
3766
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
3767
|
+
return emptyFunction.thatReturnsNull;
|
3768
|
+
}
|
3769
|
+
|
3770
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3771
|
+
var propValue = props[propName];
|
3772
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
3773
|
+
if (is(propValue, expectedValues[i])) {
|
3774
|
+
return null;
|
3775
|
+
}
|
3776
|
+
}
|
3777
|
+
|
3778
|
+
var valuesString = JSON.stringify(expectedValues);
|
3779
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
3780
|
+
}
|
3781
|
+
return createChainableTypeChecker(validate);
|
3782
|
+
}
|
3783
|
+
|
3784
|
+
function createObjectOfTypeChecker(typeChecker) {
|
3785
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3786
|
+
if (typeof typeChecker !== 'function') {
|
3787
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
3788
|
+
}
|
3789
|
+
var propValue = props[propName];
|
3790
|
+
var propType = getPropType(propValue);
|
3791
|
+
if (propType !== 'object') {
|
3792
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
3793
|
+
}
|
3794
|
+
for (var key in propValue) {
|
3795
|
+
if (propValue.hasOwnProperty(key)) {
|
3796
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
3797
|
+
if (error instanceof Error) {
|
3798
|
+
return error;
|
3799
|
+
}
|
3800
|
+
}
|
3801
|
+
}
|
3802
|
+
return null;
|
3803
|
+
}
|
3804
|
+
return createChainableTypeChecker(validate);
|
3805
|
+
}
|
3806
|
+
|
3807
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
3808
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
3809
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
3810
|
+
return emptyFunction.thatReturnsNull;
|
3811
|
+
}
|
3812
|
+
|
3813
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3814
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
3815
|
+
var checker = arrayOfTypeCheckers[i];
|
3816
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
3817
|
+
return null;
|
3818
|
+
}
|
3819
|
+
}
|
3820
|
+
|
3821
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
3822
|
+
}
|
3823
|
+
return createChainableTypeChecker(validate);
|
3824
|
+
}
|
3825
|
+
|
3826
|
+
function createNodeChecker() {
|
3827
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3828
|
+
if (!isNode(props[propName])) {
|
3829
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
3830
|
+
}
|
3831
|
+
return null;
|
3832
|
+
}
|
3833
|
+
return createChainableTypeChecker(validate);
|
3834
|
+
}
|
3835
|
+
|
3836
|
+
function createShapeTypeChecker(shapeTypes) {
|
3837
|
+
function validate(props, propName, componentName, location, propFullName) {
|
3838
|
+
var propValue = props[propName];
|
3839
|
+
var propType = getPropType(propValue);
|
3840
|
+
if (propType !== 'object') {
|
3841
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
3842
|
+
}
|
3843
|
+
for (var key in shapeTypes) {
|
3844
|
+
var checker = shapeTypes[key];
|
3845
|
+
if (!checker) {
|
3846
|
+
continue;
|
3847
|
+
}
|
3848
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
3849
|
+
if (error) {
|
3850
|
+
return error;
|
3851
|
+
}
|
3852
|
+
}
|
3853
|
+
return null;
|
3854
|
+
}
|
3855
|
+
return createChainableTypeChecker(validate);
|
3856
|
+
}
|
3857
|
+
|
3858
|
+
function isNode(propValue) {
|
3859
|
+
switch (typeof propValue) {
|
3860
|
+
case 'number':
|
3861
|
+
case 'string':
|
3862
|
+
case 'undefined':
|
3863
|
+
return true;
|
3864
|
+
case 'boolean':
|
3865
|
+
return !propValue;
|
3866
|
+
case 'object':
|
3867
|
+
if (Array.isArray(propValue)) {
|
3868
|
+
return propValue.every(isNode);
|
3869
|
+
}
|
3870
|
+
if (propValue === null || isValidElement(propValue)) {
|
3871
|
+
return true;
|
3872
|
+
}
|
3873
|
+
|
3874
|
+
var iteratorFn = getIteratorFn(propValue);
|
3875
|
+
if (iteratorFn) {
|
3876
|
+
var iterator = iteratorFn.call(propValue);
|
3877
|
+
var step;
|
3878
|
+
if (iteratorFn !== propValue.entries) {
|
3879
|
+
while (!(step = iterator.next()).done) {
|
3880
|
+
if (!isNode(step.value)) {
|
3881
|
+
return false;
|
3882
|
+
}
|
3883
|
+
}
|
3884
|
+
} else {
|
3885
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
3886
|
+
while (!(step = iterator.next()).done) {
|
3887
|
+
var entry = step.value;
|
3888
|
+
if (entry) {
|
3889
|
+
if (!isNode(entry[1])) {
|
3890
|
+
return false;
|
3891
|
+
}
|
3892
|
+
}
|
3893
|
+
}
|
3894
|
+
}
|
3895
|
+
} else {
|
3896
|
+
return false;
|
3897
|
+
}
|
3898
|
+
|
3899
|
+
return true;
|
3900
|
+
default:
|
3901
|
+
return false;
|
3902
|
+
}
|
3903
|
+
}
|
3904
|
+
|
3905
|
+
function isSymbol(propType, propValue) {
|
3906
|
+
// Native Symbol.
|
3907
|
+
if (propType === 'symbol') {
|
3908
|
+
return true;
|
3909
|
+
}
|
3910
|
+
|
3911
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
3912
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
3913
|
+
return true;
|
3914
|
+
}
|
3915
|
+
|
3916
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
3917
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
3918
|
+
return true;
|
3919
|
+
}
|
3920
|
+
|
3921
|
+
return false;
|
3922
|
+
}
|
3923
|
+
|
3924
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
3925
|
+
function getPropType(propValue) {
|
3926
|
+
var propType = typeof propValue;
|
3927
|
+
if (Array.isArray(propValue)) {
|
3928
|
+
return 'array';
|
3929
|
+
}
|
3930
|
+
if (propValue instanceof RegExp) {
|
3931
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
3932
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
3933
|
+
// passes PropTypes.object.
|
3934
|
+
return 'object';
|
3935
|
+
}
|
3936
|
+
if (isSymbol(propType, propValue)) {
|
3937
|
+
return 'symbol';
|
3938
|
+
}
|
3939
|
+
return propType;
|
3940
|
+
}
|
3941
|
+
|
3942
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
3943
|
+
// See `createPrimitiveTypeChecker`.
|
3944
|
+
function getPreciseType(propValue) {
|
3945
|
+
var propType = getPropType(propValue);
|
3946
|
+
if (propType === 'object') {
|
3947
|
+
if (propValue instanceof Date) {
|
3948
|
+
return 'date';
|
3949
|
+
} else if (propValue instanceof RegExp) {
|
3950
|
+
return 'regexp';
|
3951
|
+
}
|
3952
|
+
}
|
3953
|
+
return propType;
|
3954
|
+
}
|
3955
|
+
|
3956
|
+
// Returns class name of the object, if any.
|
3957
|
+
function getClassName(propValue) {
|
3958
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
3959
|
+
return ANONYMOUS;
|
3960
|
+
}
|
3961
|
+
return propValue.constructor.name;
|
3962
|
+
}
|
3963
|
+
|
3964
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
3965
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
3966
|
+
|
3967
|
+
return ReactPropTypes;
|
3968
|
+
};
|
3969
|
+
|
3970
|
+
},{"27":27,"29":29,"30":30,"32":32,"35":35}],35:[function(_dereq_,module,exports){
|
3971
|
+
/**
|
3972
|
+
* Copyright 2013-present, Facebook, Inc.
|
3973
|
+
* All rights reserved.
|
3974
|
+
*
|
3975
|
+
* This source code is licensed under the BSD-style license found in the
|
3976
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
3977
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
3978
|
+
*/
|
3979
|
+
|
3980
|
+
'use strict';
|
3981
|
+
|
3982
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
3983
|
+
|
3984
|
+
module.exports = ReactPropTypesSecret;
|
3985
|
+
|
3755
3986
|
},{}]},{},[18])(18)
|
3756
3987
|
});
|