react-lottie 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,24 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.2.6](https://github.com/chenqingspring/react-lottie/compare/v1.2.5...v1.2.6) (2024-11-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * update lottie-web to latest ([8018d02](https://github.com/chenqingspring/react-lottie/commit/8018d02c0c5a42b315d3f1e3e4d2edb9572e5d46))
11
+
12
+ <a name="1.2.5"></a>
13
+ ## [1.2.5](https://github.com/chenqingspring/react-lottie/compare/v1.2.4...v1.2.5) (2024-11-16)
14
+
15
+
16
+
17
+ <a name="1.2.4"></a>
18
+ ## [1.2.4](https://github.com/chenqingspring/react-lottie/compare/v1.2.3...v1.2.4) (2024-01-04)
19
+
20
+
21
+
5
22
  <a name="1.2.3"></a>
6
23
  ## [1.2.3](https://github.com/chenqingspring/react-lottie/compare/v1.2.2...v1.2.3) (2018-06-14)
7
24
 
package/README.md CHANGED
@@ -33,7 +33,7 @@ npm install --save react-lottie
33
33
 
34
34
  ## Usage
35
35
 
36
- Import pinjump.json.json as animation data
36
+ Import pinjump.json as animation data
37
37
 
38
38
  ```jsx
39
39
  import React from 'react'
@@ -114,6 +114,9 @@ eventListeners=[
114
114
  ]
115
115
  ```
116
116
 
117
+ **isClickToPauseDisabled** *optional* [default: `false`]
118
+ When this props is left unspecified or is set to `false` animations are paused or resumed when a user clicks or taps them. If you do not want this behaviour set this prop to `true`.
119
+
117
120
  ## Related Projects
118
121
 
119
122
  * [Bodymovin](https://github.com/bodymovin/bodymovin) react-lottie is a wrapper of bodymovin
package/dist/index.js CHANGED
@@ -94,6 +94,8 @@ var Lottie = function (_React$Component) {
94
94
 
95
95
  this.anim = _lottieWeb2.default.loadAnimation(this.options);
96
96
  this.registerEvents(eventListeners);
97
+
98
+ this.setSpeed();
97
99
  }
98
100
  }, {
99
101
  key: 'componentWillUpdate',
@@ -262,7 +264,7 @@ Lottie.propTypes = {
262
264
  ariaLabel: _propTypes2.default.string,
263
265
  isClickToPauseDisabled: _propTypes2.default.bool,
264
266
  title: _propTypes2.default.string,
265
- style: _propTypes2.default.string
267
+ style: _propTypes2.default.object
266
268
  };
267
269
 
268
270
  Lottie.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-lottie",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "lottie animation view for React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,22 +38,19 @@
38
38
  "git-url-parse": "^6.0.1",
39
39
  "jsdom": "^9.5.0",
40
40
  "mocha": "^5.2.0",
41
- "prop-types": "^15.6.1",
42
41
  "react": "^15.6.2",
43
42
  "react-addons-test-utils": "^15.6.2",
44
43
  "react-dom": "^15.6.2",
45
44
  "sinon": "^1.17.6",
46
- "standard-version": "^4.4.0"
45
+ "standard-version": "^9.5.0"
47
46
  },
48
47
  "peerDependencies": {
49
48
  "react": ">=15.0.0"
50
49
  },
51
50
  "dependencies": {
52
51
  "babel-runtime": "^6.26.0",
53
- "lottie-web": "^5.1.3"
52
+ "prop-types": "^15.6.1",
53
+ "lottie-web": "^5.12.2"
54
54
  },
55
- "main": "dist/index.js",
56
- "engines": {
57
- "npm": "^3.0.0"
58
- }
55
+ "main": "dist/index.js"
59
56
  }
@@ -1,217 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="3c8062db-407a-4aa0-9ccb-d4deaa96a0c1" name="Default" comment="" />
5
- <ignored path="$PROJECT_DIR$/.tmp/" />
6
- <ignored path="$PROJECT_DIR$/temp/" />
7
- <ignored path="$PROJECT_DIR$/tmp/" />
8
- <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
- <option name="TRACKING_ENABLED" value="true" />
10
- <option name="SHOW_DIALOG" value="false" />
11
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
- <option name="LAST_RESOLUTION" value="IGNORE" />
14
- </component>
15
- <component name="FileEditorManager">
16
- <leaf>
17
- <file leaf-file-name="package.json" pinned="false" current-in-tab="false">
18
- <entry file="file://$PROJECT_DIR$/package.json">
19
- <provider selected="true" editor-type-id="text-editor">
20
- <state relative-caret-position="513">
21
- <caret line="45" column="32" lean-forward="true" selection-start-line="45" selection-start-column="32" selection-end-line="45" selection-end-column="32" />
22
- </state>
23
- </provider>
24
- </entry>
25
- </file>
26
- <file leaf-file-name="package-lock.json" pinned="false" current-in-tab="false">
27
- <entry file="file://$PROJECT_DIR$/package-lock.json">
28
- <provider selected="true" editor-type-id="text-editor">
29
- <state relative-caret-position="269">
30
- <caret line="6205" column="15" selection-start-line="6205" selection-start-column="15" selection-end-line="6205" selection-end-column="15" />
31
- </state>
32
- </provider>
33
- </entry>
34
- </file>
35
- <file leaf-file-name="index.js" pinned="false" current-in-tab="true">
36
- <entry file="file://$PROJECT_DIR$/src/index.js">
37
- <provider selected="true" editor-type-id="text-editor">
38
- <state relative-caret-position="636">
39
- <caret line="180" column="38" lean-forward="true" selection-start-line="180" selection-start-column="38" selection-end-line="180" selection-end-column="38" />
40
- <folding>
41
- <element signature="e#0#26#0" expanded="true" />
42
- </folding>
43
- </state>
44
- </provider>
45
- </entry>
46
- </file>
47
- </leaf>
48
- </component>
49
- <component name="FindInProjectRecents">
50
- <findStrings>
51
- <find>growl</find>
52
- <find>hawk</find>
53
- <find>request</find>
54
- <find>storybook</find>
55
- <find>hoek</find>
56
- <find>lottie-web</find>
57
- </findStrings>
58
- </component>
59
- <component name="Git.Settings">
60
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
61
- </component>
62
- <component name="IdeDocumentHistory">
63
- <option name="CHANGED_PATHS">
64
- <list>
65
- <option value="$PROJECT_DIR$/package.json" />
66
- <option value="$PROJECT_DIR$/src/index.js" />
67
- </list>
68
- </option>
69
- </component>
70
- <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
71
- <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER">
72
- <package-json value="$PROJECT_DIR$/package.json" />
73
- </component>
74
- <component name="JsGulpfileManager">
75
- <detection-done>true</detection-done>
76
- <sorting>DEFINITION_ORDER</sorting>
77
- </component>
78
- <component name="NodeModulesDirectoryManager">
79
- <handled-path value="$PROJECT_DIR$/node_modules" />
80
- </component>
81
- <component name="NodePackageJsonFileManager">
82
- <packageJsonPaths>
83
- <path value="$PROJECT_DIR$/package.json" />
84
- </packageJsonPaths>
85
- </component>
86
- <component name="ProjectFrameBounds">
87
- <option name="y" value="23" />
88
- <option name="width" value="1440" />
89
- <option name="height" value="877" />
90
- </component>
91
- <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
92
- <component name="ProjectView">
93
- <navigator proportions="" version="1">
94
- <foldersAlwaysOnTop value="true" />
95
- </navigator>
96
- <panes>
97
- <pane id="ProjectPane">
98
- <subPane>
99
- <expand>
100
- <path>
101
- <item name="react-lottie" type="b2602c69:ProjectViewProjectNode" />
102
- <item name="react-lottie" type="462c0819:PsiDirectoryNode" />
103
- </path>
104
- <path>
105
- <item name="react-lottie" type="b2602c69:ProjectViewProjectNode" />
106
- <item name="react-lottie" type="462c0819:PsiDirectoryNode" />
107
- <item name="src" type="462c0819:PsiDirectoryNode" />
108
- </path>
109
- <path>
110
- <item name="react-lottie" type="b2602c69:ProjectViewProjectNode" />
111
- <item name="react-lottie" type="462c0819:PsiDirectoryNode" />
112
- <item name="src" type="462c0819:PsiDirectoryNode" />
113
- <item name="stories" type="462c0819:PsiDirectoryNode" />
114
- </path>
115
- </expand>
116
- <select />
117
- </subPane>
118
- </pane>
119
- <pane id="Scope" />
120
- </panes>
121
- </component>
122
- <component name="PropertiesComponent">
123
- <property name="WebServerToolWindowFactoryState" value="false" />
124
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
125
- <property name="node.js.detected.package.eslint" value="true" />
126
- <property name="node.js.path.for.package.eslint" value="project" />
127
- <property name="node.js.selected.package.eslint" value="$PROJECT_DIR$/node_modules/eslint" />
128
- <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
129
- <property name="nodejs_npm_path_reset_for_default_project" value="true" />
130
- <property name="nodejs_package_manager_path" value="yarn" />
131
- </component>
132
- <component name="RunDashboard">
133
- <option name="ruleStates">
134
- <list>
135
- <RuleState>
136
- <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
137
- </RuleState>
138
- <RuleState>
139
- <option name="name" value="StatusDashboardGroupingRule" />
140
- </RuleState>
141
- </list>
142
- </option>
143
- </component>
144
- <component name="SvnConfiguration">
145
- <configuration />
146
- </component>
147
- <component name="TaskManager">
148
- <task active="true" id="Default" summary="Default task">
149
- <changelist id="3c8062db-407a-4aa0-9ccb-d4deaa96a0c1" name="Default" comment="" />
150
- <created>1528959169182</created>
151
- <option name="number" value="Default" />
152
- <option name="presentableId" value="Default" />
153
- <updated>1528959169182</updated>
154
- <workItem from="1528959172037" duration="2507000" />
155
- </task>
156
- <servers />
157
- </component>
158
- <component name="TimeTrackingManager">
159
- <option name="totallyTimeSpent" value="2507000" />
160
- </component>
161
- <component name="ToolWindowManager">
162
- <frame x="0" y="23" width="1440" height="877" extended-state="0" />
163
- <editor active="true" />
164
- <layout>
165
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
166
- <window_info anchor="bottom" id="TODO" order="6" />
167
- <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
168
- <window_info anchor="bottom" id="Event Log" side_tool="true" />
169
- <window_info anchor="bottom" id="Run" order="2" />
170
- <window_info anchor="bottom" id="Version Control" />
171
- <window_info id="npm" side_tool="true" />
172
- <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
173
- <window_info anchor="bottom" id="Terminal" />
174
- <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
175
- <window_info id="Favorites" side_tool="true" />
176
- <window_info anchor="bottom" id="Find" order="1" />
177
- <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
178
- <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
179
- <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
180
- <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
181
- <window_info anchor="bottom" id="Message" order="0" />
182
- <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
183
- </layout>
184
- </component>
185
- <component name="TypeScriptGeneratedFilesManager">
186
- <option name="version" value="1" />
187
- </component>
188
- <component name="VcsContentAnnotationSettings">
189
- <option name="myLimit" value="2678400000" />
190
- </component>
191
- <component name="editorHistoryManager">
192
- <entry file="file://$PROJECT_DIR$/package.json">
193
- <provider selected="true" editor-type-id="text-editor">
194
- <state relative-caret-position="513">
195
- <caret line="45" column="32" lean-forward="true" selection-start-line="45" selection-start-column="32" selection-end-line="45" selection-end-column="32" />
196
- </state>
197
- </provider>
198
- </entry>
199
- <entry file="file://$PROJECT_DIR$/package-lock.json">
200
- <provider selected="true" editor-type-id="text-editor">
201
- <state relative-caret-position="269">
202
- <caret line="6205" column="15" selection-start-line="6205" selection-start-column="15" selection-end-line="6205" selection-end-column="15" />
203
- </state>
204
- </provider>
205
- </entry>
206
- <entry file="file://$PROJECT_DIR$/src/index.js">
207
- <provider selected="true" editor-type-id="text-editor">
208
- <state relative-caret-position="636">
209
- <caret line="180" column="38" lean-forward="true" selection-start-line="180" selection-start-column="38" selection-end-line="180" selection-end-column="38" />
210
- <folding>
211
- <element signature="e#0#26#0" expanded="true" />
212
- </folding>
213
- </state>
214
- </provider>
215
- </entry>
216
- </component>
217
- </project>