@bem-react/classname 1.7.0 → 1.7.1-dev.4

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.
@@ -0,0 +1 @@
1
+ 'use strict';function r(r){function t(t,i,a,o){var f=i?e+t+r.e+i:e+t,v=f;if(a){var s=' '+v+r.m;for(var u in a)if(a.hasOwnProperty(u)){var p=a[u];1==p?v+=s+u:p&&(v+=s+u+n+p)}}if(void 0!==o)for(var y=0,c=(o=Array.isArray(o)?o:[o]).length;y<c;y++){var l=o[y];if(l&&'string'==typeof l.valueOf())for(var g=l.valueOf().split(' '),d=0;d<g.length;d++){var h=g[d];h!==f&&(v+=' '+h)}}return v}var e=r.n||'',n=r.v||r.m;return function(r,e){return function(n,i,a){return'string'==typeof n?'string'==typeof i||Array.isArray(i)?t(r,n,void 0,i):t(r,n,i,a):t(r,e,n,i)}}}Object.defineProperty(exports,'__esModule',{value:1});var t=r({e:'-',m:'_'});exports.cn=t,exports.withNaming=r;
@@ -0,0 +1 @@
1
+ function r(r){function n(n,i,f,e){var v=i?t+n+r.e+i:t+n,o=v;if(f){var u=' '+o+r.m;for(var y in f)if(f.hasOwnProperty(y)){var s=f[y];1==s?o+=u+y:s&&(o+=u+y+a+s)}}if(void 0!==e)for(var p=0,g=(e=Array.isArray(e)?e:[e]).length;p<g;p++){var l=e[p];if(l&&'string'==typeof l.valueOf())for(var c=l.valueOf().split(' '),A=0;A<c.length;A++){var h=c[A];h!==v&&(o+=' '+h)}}return o}var t=r.n||'',a=r.v||r.m;return function(r,t){return function(a,i,f){return'string'==typeof a?'string'==typeof i||Array.isArray(i)?n(r,a,void 0,i):n(r,a,i,f):n(r,t,a,i)}}}var n=r({e:'-',m:'_'});export{n as cn,r as withNaming};
package/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./build/classname.production.min.cjs')
5
+ } else {
6
+ module.exports = require('./build/classname.development.cjs')
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bem-react/classname",
3
- "version": "1.7.0",
3
+ "version": "1.7.1-dev.4+a47b621",
4
4
  "description": "BEM React ClassName",
5
5
  "homepage": "https://github.com/bem/bem-react/tree/master/packages/classname",
6
6
  "repository": "https://github.com/bem/bem-react",
@@ -22,17 +22,26 @@
22
22
  },
23
23
  "files": [
24
24
  "build",
25
+ "index.cjs",
25
26
  "classname.d.ts"
26
27
  ],
27
- "main": "./build/classname.cjs",
28
- "module": "./build/classname.mjs",
28
+ "main": "./index.cjs",
29
+ "module": "./build/classname.production.min.mjs",
29
30
  "types": "./classname.d.ts",
30
31
  "exports": {
31
32
  ".": {
32
33
  "types": "./classname.d.ts",
33
- "import": "./build/classname.mjs",
34
- "require": "./build/classname.cjs"
34
+ "development": {
35
+ "import": "./build/classname.development.mjs",
36
+ "require": "./build/classname.development.cjs"
37
+ },
38
+ "production": {
39
+ "import": "./build/classname.production.min.mjs",
40
+ "require": "./build/classname.production.min.cjs"
41
+ },
42
+ "import": "./build/classname.production.min.mjs",
43
+ "require": "./index.cjs"
35
44
  }
36
45
  },
37
- "gitHead": "2794188cf2a9b30467af1b606286ec65d1fde097"
46
+ "gitHead": "a47b6210ca9d9e7f1ec2656ec050eb59dc31d35e"
38
47
  }
package/CHANGELOG.md DELETED
@@ -1,266 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.7.0](https://github.com/bem/bem-react/compare/@bem-react/classname@1.6.0...@bem-react/classname@1.7.0) (2025-06-15)
7
-
8
- ### Features
9
-
10
- - add dual packaging ([6d78a65](https://github.com/bem/bem-react/commit/6d78a651214abb057390338e4ea249c264c3252d))
11
- - support esm modules ([7ef51f8](https://github.com/bem/bem-react/commit/7ef51f8a96d1b81f60458a4772237813eb630c42))
12
-
13
- # [1.6.0](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.12...@bem-react/classname@1.6.0) (2023-04-04)
14
-
15
- ### Features
16
-
17
- - allow mix to be a string ([c1c9731](https://github.com/bem/bem-react/commit/c1c97312b80d24da88eafffd8e7c235887d65bd6))
18
-
19
- ## [1.5.12](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.11...@bem-react/classname@1.5.12) (2021-09-03)
20
-
21
- ### Bug Fixes
22
-
23
- - **classname:** add correct overloads for cn formatter ([47758e7](https://github.com/bem/bem-react/commit/47758e76847e34babddbb99b60fd3f9827f49e95))
24
-
25
- ## [1.5.11](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.10...@bem-react/classname@1.5.11) (2021-06-08)
26
-
27
- ### Bug Fixes
28
-
29
- - update pkg ([1ccdee8](https://github.com/bem/bem-react/commit/1ccdee8d9c4c09a02f888ee880a332ac75b725fd))
30
-
31
- ## [1.5.10](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.9...@bem-react/classname@1.5.10) (2021-04-29)
32
-
33
- ### Bug Fixes
34
-
35
- - **classname:** formatter type ([04e8b5c](https://github.com/bem/bem-react/commit/04e8b5c00724e3817b624acf108a7186e94af200))
36
-
37
- ## [1.5.9](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.8...@bem-react/classname@1.5.9) (2021-02-11)
38
-
39
- ### Bug Fixes
40
-
41
- - **classname:** support mix via valueOf method ([243575c](https://github.com/bem/bem-react/commit/243575c918f7e157d45f2379ef5c31c16975b8ab))
42
-
43
- ## [1.5.8](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.7...@bem-react/classname@1.5.8) (2020-03-12)
44
-
45
- **Note:** Version bump only for package @bem-react/classname
46
-
47
- ## [1.5.7](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.6...@bem-react/classname@1.5.7) (2020-03-02)
48
-
49
- **Note:** Version bump only for package @bem-react/classname
50
-
51
- ## [1.5.6](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.5...@bem-react/classname@1.5.6) (2019-10-02)
52
-
53
- **Note:** Version bump only for package @bem-react/classname
54
-
55
- ## [1.5.5](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.4...@bem-react/classname@1.5.5) (2019-10-02)
56
-
57
- **Note:** Version bump only for package @bem-react/classname
58
-
59
- ## [1.5.4](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.3...@bem-react/classname@1.5.4) (2019-08-20)
60
-
61
- **Note:** Version bump only for package @bem-react/classname
62
-
63
- ## [1.5.3](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.2...@bem-react/classname@1.5.3) (2019-07-31)
64
-
65
- ### Bug Fixes
66
-
67
- - **classname:** mix as not string type ([9648499](https://github.com/bem/bem-react/commit/9648499))
68
-
69
- ## [1.5.2](https://github.com/bem/bem-react/compare/@bem-react/classname@1.5.1...@bem-react/classname@1.5.2) (2019-05-27)
70
-
71
- **Note:** Version bump only for package @bem-react/classname
72
-
73
- ## [1.5.1](https://github.com/bem/bem-react/tree/master/packages/classname/compare/@bem-react/classname@1.5.0...@bem-react/classname@1.5.1) (2019-05-24)
74
-
75
- **Note:** Version bump only for package @bem-react/classname
76
-
77
- # [1.5.0](https://github.com/bem/bem-react/tree/master/packages/classname/compare/@bem-react/classname@1.4.4...@bem-react/classname@1.5.0) (2019-04-22)
78
-
79
- ### Features
80
-
81
- - **classname:** add modVal delimiter for withNaming configuration ([5fb63dc](https://github.com/bem/bem-react/commit/5fb63dc))
82
-
83
- ## [1.4.4](https://github.com/bem/bem-react/tree/master/packages/classname/compare/@bem-react/classname@1.4.3...@bem-react/classname@1.4.4) (2019-03-01)
84
-
85
- **Note:** Version bump only for package @bem-react/classname
86
-
87
- ## [1.4.3](https://github.com/bem/bem-react/tree/master/packages/classname/compare/@bem-react/classname@1.4.2...@bem-react/classname@1.4.3) (2019-01-17)
88
-
89
- ### Bug Fixes
90
-
91
- - **classname:** filter class name duplicates with mods ([1cfb22c](https://github.com/bem/bem-react/commit/1cfb22c))
92
-
93
- ## [1.4.2](https://github.com/bem/bem-react/tree/master/packages/classname/compare/@bem-react/classname@1.4.1...@bem-react/classname@1.4.2) (2019-01-17)
94
-
95
- ### Bug Fixes
96
-
97
- - **classname:** filter class name duplicates ([e92cbab](https://github.com/bem/bem-react/commit/e92cbab))
98
-
99
- ## [1.4.1](https://github.com/bem/bem-react/tree/master/packages/classname/compare/@bem-react/classname@1.4.0...@bem-react/classname@1.4.1) (2018-12-28)
100
-
101
- **Note:** Version bump only for package @bem-react/classname
102
-
103
- # 1.4.0 (2018-12-21)
104
-
105
- ### Bug Fixes
106
-
107
- - classname with undefined ([9232c61](https://github.com/bem/bem-react/commit/9232c61))
108
- - fix filename ([3dbdcdd](https://github.com/bem/bem-react/commit/3dbdcdd))
109
- - **classname:** remove undefined modifiers ([c3af486](https://github.com/bem/bem-react/commit/c3af486))
110
- - **classname:** remove whitespace after mix ([5e423e7](https://github.com/bem/bem-react/commit/5e423e7))
111
- - **classname:** use set for unique class list ([9a708b1](https://github.com/bem/bem-react/commit/9a708b1))
112
-
113
- ### Features
114
-
115
- - **classname:** array type for mix ([9513c26](https://github.com/bem/bem-react/commit/9513c26))
116
- - **classname:** carry elems ([a943509](https://github.com/bem/bem-react/commit/a943509))
117
- - **classname:** decrease bundle size, classnames pkg ([c5fb74f](https://github.com/bem/bem-react/commit/c5fb74f))
118
- - **v3:** init packages ([c70a97d](https://github.com/bem/bem-react/commit/c70a97d))
119
- - **v3:** init packages ([d652328](https://github.com/bem/bem-react/commit/d652328))
120
-
121
- ## 1.3.2 (2018-12-21)
122
-
123
- ### Bug Fixes
124
-
125
- - classname with undefined ([9232c61](https://github.com/bem/bem-react/commit/9232c61))
126
- - fix filename ([3dbdcdd](https://github.com/bem/bem-react/commit/3dbdcdd))
127
- - **classname:** remove undefined modifiers ([6a595d9](https://github.com/bem/bem-react/commit/6a595d9))
128
- - **classname:** remove whitespace after mix ([2a9f8f0](https://github.com/bem/bem-react/commit/2a9f8f0))
129
- - **classname:** use set for unique class list ([9a708b1](https://github.com/bem/bem-react/commit/9a708b1))
130
-
131
- ### Features
132
-
133
- - **classname:** array type for mix ([9513c26](https://github.com/bem/bem-react/commit/9513c26))
134
- - **classname:** carry elems ([a943509](https://github.com/bem/bem-react/commit/a943509))
135
- - **classname:** decrease bundle size, classnames pkg ([c5fb74f](https://github.com/bem/bem-react/commit/c5fb74f))
136
- - **v3:** init packages ([c70a97d](https://github.com/bem/bem-react/commit/c70a97d))
137
- - **v3:** init packages ([d652328](https://github.com/bem/bem-react/commit/d652328))
138
-
139
- ## 1.3.1 (2018-12-19)
140
-
141
- ### Bug Fixes
142
-
143
- - **classname:** use set for unique class list ([9a708b1](https://github.com/bem/bem-react/commit/9a708b1))
144
- - classname with undefined ([9232c61](https://github.com/bem/bem-react/commit/9232c61))
145
- - fix filename ([3dbdcdd](https://github.com/bem/bem-react/commit/3dbdcdd))
146
-
147
- ### Features
148
-
149
- - **classname:** array type for mix ([9513c26](https://github.com/bem/bem-react/commit/9513c26))
150
- - **classname:** carry elems ([a943509](https://github.com/bem/bem-react/commit/a943509))
151
- - **classname:** decrease bundle size, classnames pkg ([c5fb74f](https://github.com/bem/bem-react/commit/c5fb74f))
152
- - **v3:** init packages ([c70a97d](https://github.com/bem/bem-react/commit/c70a97d))
153
- - **v3:** init packages ([d652328](https://github.com/bem/bem-react/commit/d652328))
154
-
155
- # 1.3.0 (2018-12-18)
156
-
157
- ### Bug Fixes
158
-
159
- - **classname:** use set for unique class list ([9a708b1](https://github.com/bem/bem-react/commit/9a708b1))
160
- - classname with undefined ([9232c61](https://github.com/bem/bem-react/commit/9232c61))
161
- - fix filename ([3dbdcdd](https://github.com/bem/bem-react/commit/3dbdcdd))
162
-
163
- ### Features
164
-
165
- - **classname:** array type for mix ([9513c26](https://github.com/bem/bem-react/commit/9513c26))
166
- - **classname:** carry elems ([a943509](https://github.com/bem/bem-react/commit/a943509))
167
- - **classname:** decrease bundle size, classnames pkg ([c5fb74f](https://github.com/bem/bem-react/commit/c5fb74f))
168
- - **v3:** init packages ([c70a97d](https://github.com/bem/bem-react/commit/c70a97d))
169
- - **v3:** init packages ([d652328](https://github.com/bem/bem-react/commit/d652328))
170
-
171
- # 1.2.0 (2018-12-06)
172
-
173
- ### Bug Fixes
174
-
175
- - **classname:** use set for unique class list ([9a708b1](https://github.com/bem/bem-react/commit/9a708b1))
176
- - classname with undefined ([9232c61](https://github.com/bem/bem-react/commit/9232c61))
177
- - fix filename ([3dbdcdd](https://github.com/bem/bem-react/commit/3dbdcdd))
178
-
179
- ### Features
180
-
181
- - **classname:** array type for mix ([9513c26](https://github.com/bem/bem-react/commit/9513c26))
182
- - **classname:** carry elems ([a943509](https://github.com/bem/bem-react/commit/a943509))
183
- - **classname:** decrease bundle size, classnames pkg ([c5fb74f](https://github.com/bem/bem-react/commit/c5fb74f))
184
- - **v3:** init packages ([c70a97d](https://github.com/bem/bem-react/commit/c70a97d))
185
- - **v3:** init packages ([d652328](https://github.com/bem/bem-react/commit/d652328))
186
-
187
- <a name="1.1.1"></a>
188
-
189
- ## [1.1.1](https://github.com/bem/bem-react-core/compare/@bem-react/classname@1.1.0...@bem-react/classname@1.1.1) (2018-10-24)
190
-
191
- ### Bug Fixes
192
-
193
- - **classname:** use set for unique class list ([6f4aa5f](https://github.com/bem/bem-react-core/commit/6f4aa5f))
194
- - classname with undefined ([5f0e907](https://github.com/bem/bem-react-core/commit/5f0e907))
195
-
196
- <a name="1.1.0"></a>
197
-
198
- # [1.1.0](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.3.2...@bem-react/classname@1.1.0) (2018-10-02)
199
-
200
- ### Features
201
-
202
- - **classname:** array type for mix ([dd985e8](https://github.com/bem/bem-react-core/commit/dd985e8))
203
-
204
- <a name="1.0.0"></a>
205
-
206
- # [1.0.0](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.3.2...@bem-react/classname@1.0.0) (2018-09-20)
207
-
208
- **Note:** Version bump only for package @bem-react/classname
209
-
210
- <a name="0.3.2"></a>
211
-
212
- ## [0.3.2](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.3.1...@bem-react/classname@0.3.2) (2018-09-04)
213
-
214
- **Note:** Version bump only for package @bem-react/classname
215
-
216
- <a name="0.3.1"></a>
217
-
218
- ## [0.3.1](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.3.0...@bem-react/classname@0.3.1) (2018-08-30)
219
-
220
- **Note:** Version bump only for package @bem-react/classname
221
-
222
- <a name="0.3.0"></a>
223
-
224
- # [0.3.0](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.2.2...@bem-react/classname@0.3.0) (2018-08-30)
225
-
226
- ### Features
227
-
228
- - **classname:** carry elems ([81f28c3](https://github.com/bem/bem-react-core/commit/81f28c3))
229
-
230
- <a name="0.2.2"></a>
231
-
232
- ## [0.2.2](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.2.1...@bem-react/classname@0.2.2) (2018-08-30)
233
-
234
- **Note:** Version bump only for package @bem-react/classname
235
-
236
- <a name="0.2.1"></a>
237
-
238
- ## [0.2.1](https://github.com/bem/bem-react-core/compare/@bem-react/classname@0.2.0...@bem-react/classname@0.2.1) (2018-08-29)
239
-
240
- **Note:** Version bump only for package @bem-react/classname
241
-
242
- <a name="0.2.0"></a>
243
-
244
- # 0.2.0 (2018-08-29)
245
-
246
- ### Bug Fixes
247
-
248
- - fix filename ([ee0f862](https://github.com/bem/bem-react-core/commit/ee0f862))
249
-
250
- ### Features
251
-
252
- - **v3:** init packages ([00423c8](https://github.com/bem/bem-react-core/commit/00423c8))
253
- - **v3:** init packages ([b192fc5](https://github.com/bem/bem-react-core/commit/b192fc5))
254
-
255
- <a name="0.1.0"></a>
256
-
257
- # 0.1.0 (2018-08-29)
258
-
259
- ### Bug Fixes
260
-
261
- - fix filename ([ee0f862](https://github.com/bem/bem-react-core/commit/ee0f862))
262
-
263
- ### Features
264
-
265
- - **v3:** init packages ([00423c8](https://github.com/bem/bem-react-core/commit/00423c8))
266
- - **v3:** init packages ([b192fc5](https://github.com/bem/bem-react-core/commit/b192fc5))
package/LICENSE.md DELETED
@@ -1,365 +0,0 @@
1
- © YANDEX LLC, 2017
2
-
3
- The Source Code called `bem-react` available at https://github.com/bem/bem-react is subject to the terms of the Mozilla Public License, v. 2.0 (hereinafter - MPL). The text of MPL is the following:
4
-
5
- Mozilla Public License, version 2.0
6
-
7
- 1. Definitions
8
-
9
- 1.1. "Contributor"
10
-
11
- means each individual or legal entity that creates, contributes to the
12
- creation of, or owns Covered Software.
13
-
14
- 1.2. "Contributor Version"
15
-
16
- means the combination of the Contributions of others (if any) used by a
17
- Contributor and that particular Contributor's Contribution.
18
-
19
- 1.3. "Contribution"
20
-
21
- means Covered Software of a particular Contributor.
22
-
23
- 1.4. "Covered Software"
24
-
25
- means Source Code Form to which the initial Contributor has attached the
26
- notice in Exhibit A, the Executable Form of such Source Code Form, and
27
- Modifications of such Source Code Form, in each case including portions
28
- thereof.
29
-
30
- 1.5. "Incompatible With Secondary Licenses"
31
- means
32
-
33
- a. that the initial Contributor has attached the notice described in
34
- Exhibit B to the Covered Software; or
35
-
36
- b. that the Covered Software was made available under the terms of
37
- version 1.1 or earlier of the License, but not also under the terms of
38
- a Secondary License.
39
-
40
- 1.6. "Executable Form"
41
-
42
- means any form of the work other than Source Code Form.
43
-
44
- 1.7. "Larger Work"
45
-
46
- means a work that combines Covered Software with other material, in a
47
- separate file or files, that is not Covered Software.
48
-
49
- 1.8. "License"
50
-
51
- means this document.
52
-
53
- 1.9. "Licensable"
54
-
55
- means having the right to grant, to the maximum extent possible, whether
56
- at the time of the initial grant or subsequently, any and all of the
57
- rights conveyed by this License.
58
-
59
- 1.10. "Modifications"
60
-
61
- means any of the following:
62
-
63
- a. any file in Source Code Form that results from an addition to,
64
- deletion from, or modification of the contents of Covered Software; or
65
-
66
- b. any new file in Source Code Form that contains any Covered Software.
67
-
68
- 1.11. "Patent Claims" of a Contributor
69
-
70
- means any patent claim(s), including without limitation, method,
71
- process, and apparatus claims, in any patent Licensable by such
72
- Contributor that would be infringed, but for the grant of the License,
73
- by the making, using, selling, offering for sale, having made, import,
74
- or transfer of either its Contributions or its Contributor Version.
75
-
76
- 1.12. "Secondary License"
77
-
78
- means either the GNU General Public License, Version 2.0, the GNU Lesser
79
- General Public License, Version 2.1, the GNU Affero General Public
80
- License, Version 3.0, or any later versions of those licenses.
81
-
82
- 1.13. "Source Code Form"
83
-
84
- means the form of the work preferred for making modifications.
85
-
86
- 1.14. "You" (or "Your")
87
-
88
- means an individual or a legal entity exercising rights under this
89
- License. For legal entities, "You" includes any entity that controls, is
90
- controlled by, or is under common control with You. For purposes of this
91
- definition, "control" means (a) the power, direct or indirect, to cause
92
- the direction or management of such entity, whether by contract or
93
- otherwise, or (b) ownership of more than fifty percent (50%) of the
94
- outstanding shares or beneficial ownership of such entity.
95
-
96
- 2. License Grants and Conditions
97
-
98
- 2.1. Grants
99
-
100
- Each Contributor hereby grants You a world-wide, royalty-free,
101
- non-exclusive license:
102
-
103
- a. under intellectual property rights (other than patent or trademark)
104
- Licensable by such Contributor to use, reproduce, make available,
105
- modify, display, perform, distribute, and otherwise exploit its
106
- Contributions, either on an unmodified basis, with Modifications, or
107
- as part of a Larger Work; and
108
-
109
- b. under Patent Claims of such Contributor to make, use, sell, offer for
110
- sale, have made, import, and otherwise transfer either its
111
- Contributions or its Contributor Version.
112
-
113
- 2.2. Effective Date
114
-
115
- The licenses granted in Section 2.1 with respect to any Contribution
116
- become effective for each Contribution on the date the Contributor first
117
- distributes such Contribution.
118
-
119
- 2.3. Limitations on Grant Scope
120
-
121
- The licenses granted in this Section 2 are the only rights granted under
122
- this License. No additional rights or licenses will be implied from the
123
- distribution or licensing of Covered Software under this License.
124
- Notwithstanding Section 2.1(b) above, no patent license is granted by a
125
- Contributor:
126
-
127
- a. for any code that a Contributor has removed from Covered Software; or
128
-
129
- b. for infringements caused by: (i) Your and any other third party's
130
- modifications of Covered Software, or (ii) the combination of its
131
- Contributions with other software (except as part of its Contributor
132
- Version); or
133
-
134
- c. under Patent Claims infringed by Covered Software in the absence of
135
- its Contributions.
136
-
137
- This License does not grant any rights in the trademarks, service marks,
138
- or logos of any Contributor (except as may be necessary to comply with
139
- the notice requirements in Section 3.4).
140
-
141
- 2.4. Subsequent Licenses
142
-
143
- No Contributor makes additional grants as a result of Your choice to
144
- distribute the Covered Software under a subsequent version of this
145
- License (see Section 10.2) or under the terms of a Secondary License (if
146
- permitted under the terms of Section 3.3).
147
-
148
- 2.5. Representation
149
-
150
- Each Contributor represents that the Contributor believes its
151
- Contributions are its original creation(s) or it has sufficient rights to
152
- grant the rights to its Contributions conveyed by this License.
153
-
154
- 2.6. Fair Use
155
-
156
- This License is not intended to limit any rights You have under
157
- applicable copyright doctrines of fair use, fair dealing, or other
158
- equivalents.
159
-
160
- 2.7. Conditions
161
-
162
- Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
163
- Section 2.1.
164
-
165
- 3. Responsibilities
166
-
167
- 3.1. Distribution of Source Form
168
-
169
- All distribution of Covered Software in Source Code Form, including any
170
- Modifications that You create or to which You contribute, must be under
171
- the terms of this License. You must inform recipients that the Source
172
- Code Form of the Covered Software is governed by the terms of this
173
- License, and how they can obtain a copy of this License. You may not
174
- attempt to alter or restrict the recipients' rights in the Source Code
175
- Form.
176
-
177
- 3.2. Distribution of Executable Form
178
-
179
- If You distribute Covered Software in Executable Form then:
180
-
181
- a. such Covered Software must also be made available in Source Code Form,
182
- as described in Section 3.1, and You must inform recipients of the
183
- Executable Form how they can obtain a copy of such Source Code Form by
184
- reasonable means in a timely manner, at a charge no more than the cost
185
- of distribution to the recipient; and
186
-
187
- b. You may distribute such Executable Form under the terms of this
188
- License, or sublicense it under different terms, provided that the
189
- license for the Executable Form does not attempt to limit or alter the
190
- recipients' rights in the Source Code Form under this License.
191
-
192
- 3.3. Distribution of a Larger Work
193
-
194
- You may create and distribute a Larger Work under terms of Your choice,
195
- provided that You also comply with the requirements of this License for
196
- the Covered Software. If the Larger Work is a combination of Covered
197
- Software with a work governed by one or more Secondary Licenses, and the
198
- Covered Software is not Incompatible With Secondary Licenses, this
199
- License permits You to additionally distribute such Covered Software
200
- under the terms of such Secondary License(s), so that the recipient of
201
- the Larger Work may, at their option, further distribute the Covered
202
- Software under the terms of either this License or such Secondary
203
- License(s).
204
-
205
- 3.4. Notices
206
-
207
- You may not remove or alter the substance of any license notices
208
- (including copyright notices, patent notices, disclaimers of warranty, or
209
- limitations of liability) contained within the Source Code Form of the
210
- Covered Software, except that You may alter any license notices to the
211
- extent required to remedy known factual inaccuracies.
212
-
213
- 3.5. Application of Additional Terms
214
-
215
- You may choose to offer, and to charge a fee for, warranty, support,
216
- indemnity or liability obligations to one or more recipients of Covered
217
- Software. However, You may do so only on Your own behalf, and not on
218
- behalf of any Contributor. You must make it absolutely clear that any
219
- such warranty, support, indemnity, or liability obligation is offered by
220
- You alone, and You hereby agree to indemnify every Contributor for any
221
- liability incurred by such Contributor as a result of warranty, support,
222
- indemnity or liability terms You offer. You may include additional
223
- disclaimers of warranty and limitations of liability specific to any
224
- jurisdiction.
225
-
226
- 4. Inability to Comply Due to Statute or Regulation
227
-
228
- If it is impossible for You to comply with any of the terms of this License
229
- with respect to some or all of the Covered Software due to statute,
230
- judicial order, or regulation then You must: (a) comply with the terms of
231
- this License to the maximum extent possible; and (b) describe the
232
- limitations and the code they affect. Such description must be placed in a
233
- text file included with all distributions of the Covered Software under
234
- this License. Except to the extent prohibited by statute or regulation,
235
- such description must be sufficiently detailed for a recipient of ordinary
236
- skill to be able to understand it.
237
-
238
- 5. Termination
239
-
240
- 5.1. The rights granted under this License will terminate automatically if You
241
- fail to comply with any of its terms. However, if You become compliant,
242
- then the rights granted under this License from a particular Contributor
243
- are reinstated (a) provisionally, unless and until such Contributor
244
- explicitly and finally terminates Your grants, and (b) on an ongoing
245
- basis, if such Contributor fails to notify You of the non-compliance by
246
- some reasonable means prior to 60 days after You have come back into
247
- compliance. Moreover, Your grants from a particular Contributor are
248
- reinstated on an ongoing basis if such Contributor notifies You of the
249
- non-compliance by some reasonable means, this is the first time You have
250
- received notice of non-compliance with this License from such
251
- Contributor, and You become compliant prior to 30 days after Your receipt
252
- of the notice.
253
-
254
- 5.2. If You initiate litigation against any entity by asserting a patent
255
- infringement claim (excluding declaratory judgment actions,
256
- counter-claims, and cross-claims) alleging that a Contributor Version
257
- directly or indirectly infringes any patent, then the rights granted to
258
- You by any and all Contributors for the Covered Software under Section
259
- 2.1 of this License shall terminate.
260
-
261
- 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
262
- license agreements (excluding distributors and resellers) which have been
263
- validly granted by You or Your distributors under this License prior to
264
- termination shall survive termination.
265
-
266
- 6. Disclaimer of Warranty
267
-
268
- Covered Software is provided under this License on an "as is" basis,
269
- without warranty of any kind, either expressed, implied, or statutory,
270
- including, without limitation, warranties that the Covered Software is free
271
- of defects, merchantable, fit for a particular purpose or non-infringing.
272
- The entire risk as to the quality and performance of the Covered Software
273
- is with You. Should any Covered Software prove defective in any respect,
274
- You (not any Contributor) assume the cost of any necessary servicing,
275
- repair, or correction. This disclaimer of warranty constitutes an essential
276
- part of this License. No use of any Covered Software is authorized under
277
- this License except under this disclaimer.
278
-
279
- 7. Limitation of Liability
280
-
281
- Under no circumstances and under no legal theory, whether tort (including
282
- negligence), contract, or otherwise, shall any Contributor, or anyone who
283
- distributes Covered Software as permitted above, be liable to You for any
284
- direct, indirect, special, incidental, or consequential damages of any
285
- character including, without limitation, damages for lost profits, loss of
286
- goodwill, work stoppage, computer failure or malfunction, or any and all
287
- other commercial damages or losses, even if such party shall have been
288
- informed of the possibility of such damages. This limitation of liability
289
- shall not apply to liability for death or personal injury resulting from
290
- such party's negligence to the extent applicable law prohibits such
291
- limitation. Some jurisdictions do not allow the exclusion or limitation of
292
- incidental or consequential damages, so this exclusion and limitation may
293
- not apply to You.
294
-
295
- 8. Litigation
296
-
297
- Any litigation relating to this License may be brought only in the courts
298
- of a jurisdiction where the defendant maintains its principal place of
299
- business and such litigation shall be governed by laws of that
300
- jurisdiction, without reference to its conflict-of-law provisions. Nothing
301
- in this Section shall prevent a party's ability to bring cross-claims or
302
- counter-claims.
303
-
304
- 9. Miscellaneous
305
-
306
- This License represents the complete agreement concerning the subject
307
- matter hereof. If any provision of this License is held to be
308
- unenforceable, such provision shall be reformed only to the extent
309
- necessary to make it enforceable. Any law or regulation which provides that
310
- the language of a contract shall be construed against the drafter shall not
311
- be used to construe this License against a Contributor.
312
-
313
- 10) Versions of the License
314
-
315
- 10.1. New Versions
316
-
317
- Mozilla Foundation is the license steward. Except as provided in Section
318
- 10.3, no one other than the license steward has the right to modify or
319
- publish new versions of this License. Each version will be given a
320
- distinguishing version number.
321
-
322
- 10.2. Effect of New Versions
323
-
324
- You may distribute the Covered Software under the terms of the version
325
- of the License under which You originally received the Covered Software,
326
- or under the terms of any subsequent version published by the license
327
- steward.
328
-
329
- 10.3. Modified Versions
330
-
331
- If you create software not governed by this License, and you want to
332
- create a new license for such software, you may create and use a
333
- modified version of this License if you rename the license and remove
334
- any references to the name of the license steward (except to note that
335
- such modified license differs from this License).
336
-
337
- 10.4. Distributing Source Code Form that is Incompatible With Secondary
338
- Licenses If You choose to distribute Source Code Form that is
339
- Incompatible With Secondary Licenses under the terms of this version of
340
- the License, the notice described in Exhibit B of this License must be
341
- attached.
342
-
343
- Exhibit A - Source Code Form License Notice
344
-
345
- This Source Code Form is subject to the
346
- terms of the Mozilla Public License, v.
347
- 2.0. If a copy of the MPL was not
348
- distributed with this file, You can
349
- obtain one at
350
- http://mozilla.org/MPL/2.0/.
351
-
352
- If it is not possible or desirable to put the notice in a particular file,
353
- then You may include the notice in a location (such as a LICENSE file in a
354
- relevant directory) where a recipient would be likely to look for such a
355
- notice.
356
-
357
- You may add additional accurate notices of copyright ownership.
358
-
359
- Exhibit B - "Incompatible With Secondary Licenses" Notice
360
-
361
- This Source Code Form is "Incompatible
362
- With Secondary Licenses", as defined by
363
- the Mozilla Public License, v. 2.0.
364
-
365
- A copy of the MPL is also available at http://mozilla.org/MPL/2.0/.