@react-pdf/stylesheet 2.0.10 → 2.1.0
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 +22 -0
- package/lib/expand/borders.js +1 -1
- package/lib/expand/boxModel.js +58 -23
- package/lib/expand/index.js +17 -9
- package/lib/expand/margins.js +49 -5
- package/lib/expand/paddings.js +44 -5
- package/lib/flatten/index.js +1 -1
- package/lib/index.js +14 -13
- package/lib/mediaQueries/index.js +2 -2
- package/lib/transform/colors.js +2 -2
- package/lib/transform/index.js +1 -1
- package/lib/transform/objectPosition.js +1 -1
- package/lib/transform/transform.js +3 -1
- package/lib/transform/transformOrigin.js +1 -1
- package/lib/utils/castFloat.js +1 -1
- package/package.json +11 -5
- package/LICENSE +0 -21
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @react-pdf/stylesheet
|
|
2
|
+
|
|
3
|
+
## 2.1.0
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#1535](https://github.com/diegomura/react-pdf/pull/1535) [`1f0eb6e`](https://github.com/diegomura/react-pdf/commit/1f0eb6e0d4e75480de6745a204924d5075859db7) Thanks [@jeetiss](https://github.com/jeetiss)! - fixed `margin: auto` parsing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
- [#1654](https://github.com/diegomura/react-pdf/pull/1654) [`ccf3bf2`](https://github.com/diegomura/react-pdf/commit/ccf3bf22867a9bd49668cdd3543ec32492a40e4b) Thanks [@jeetiss](https://github.com/jeetiss)! - added `@babel/runtime` to dependencies
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
- [#1581](https://github.com/diegomura/react-pdf/pull/1581) [`04449ab`](https://github.com/diegomura/react-pdf/commit/04449ab352db0cca2155024dd3e8c690e42193ca) Thanks [@jeetiss](https://github.com/jeetiss)! - added changelog with changesets
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`04449ab`](https://github.com/diegomura/react-pdf/commit/04449ab352db0cca2155024dd3e8c690e42193ca)]:
|
|
22
|
+
- @react-pdf/types@2.0.8
|
package/lib/expand/borders.js
CHANGED
package/lib/expand/boxModel.js
CHANGED
|
@@ -1,46 +1,81 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _parse = _interopRequireDefault(require("postcss-value-parser/lib/parse"));
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
var matchBoxModelValue = R.match(BOX_MODEL_REGEX);
|
|
10
|
+
var _unit = _interopRequireDefault(require("postcss-value-parser/lib/unit"));
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _ref;
|
|
12
|
+
/* eslint-disable no-plusplus */
|
|
13
|
+
var BOX_MODEL_UNITS = 'px,in,mm,cm,pt,%,vw,vh';
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
var logError = function logError(style, value) {
|
|
16
|
+
console.error("\n @react-pdf/stylesheet parsing error:\n\n " + style + ": " + value + ",\n " + ' '.repeat(style.length + 2) + "^\n Unsupported " + style + " value format\n ");
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var expandBoxModel = function expandBoxModel(_temp) {
|
|
20
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
21
|
+
expandsTo = _ref.expandsTo,
|
|
22
|
+
_ref$maxValues = _ref.maxValues,
|
|
23
|
+
maxValues = _ref$maxValues === void 0 ? 1 : _ref$maxValues,
|
|
24
|
+
_ref$autoSupported = _ref.autoSupported,
|
|
25
|
+
autoSupported = _ref$autoSupported === void 0 ? false : _ref$autoSupported;
|
|
19
26
|
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
return function (model, value) {
|
|
28
|
+
var _ref2;
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var bottom = match[2] || match[0];
|
|
26
|
-
var left = match[3] || match[1] || match[0];
|
|
30
|
+
var nodes = (0, _parse.default)("" + value);
|
|
31
|
+
var parts = [];
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
34
|
+
var node = nodes[i]; // value contains `calc`, `url` or other css function
|
|
35
|
+
// `,`, `/` or strings that unsupported by margin and padding
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
if (node.type === 'function' || node.type === 'string' || node.type === 'div') {
|
|
38
|
+
logError(model, value);
|
|
39
|
+
return {};
|
|
32
40
|
}
|
|
33
41
|
|
|
34
|
-
if (
|
|
35
|
-
|
|
42
|
+
if (node.type === 'word') {
|
|
43
|
+
if (node.value === 'auto' && autoSupported) {
|
|
44
|
+
parts.push(node.value);
|
|
45
|
+
} else {
|
|
46
|
+
var result = (0, _unit.default)(node.value); // when unit isn't specified this condition is true
|
|
36
47
|
|
|
37
|
-
|
|
48
|
+
if (result && BOX_MODEL_UNITS.includes(result.unit)) {
|
|
49
|
+
parts.push(node.value);
|
|
50
|
+
} else {
|
|
51
|
+
logError(model, value);
|
|
52
|
+
return {};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
38
55
|
}
|
|
56
|
+
} // checks that we have enough parsed values
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
if (parts.length > maxValues) {
|
|
60
|
+
logError(model, value);
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var first = parts[0];
|
|
39
65
|
|
|
40
|
-
|
|
66
|
+
if (expandsTo) {
|
|
67
|
+
var second = parts[1] || parts[0];
|
|
68
|
+
var third = parts[2] || parts[0];
|
|
69
|
+
var fourth = parts[3] || parts[1] || parts[0];
|
|
70
|
+
return expandsTo({
|
|
71
|
+
first: first,
|
|
72
|
+
second: second,
|
|
73
|
+
third: third,
|
|
74
|
+
fourth: fourth
|
|
75
|
+
});
|
|
41
76
|
}
|
|
42
77
|
|
|
43
|
-
return
|
|
78
|
+
return _ref2 = {}, _ref2[model] = first, _ref2;
|
|
44
79
|
};
|
|
45
80
|
};
|
|
46
81
|
|
package/lib/expand/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _flex = _interopRequireDefault(require("./flex"));
|
|
9
9
|
|
|
10
|
-
var _margins =
|
|
10
|
+
var _margins = require("./margins");
|
|
11
11
|
|
|
12
12
|
var _borders = _interopRequireDefault(require("./borders"));
|
|
13
13
|
|
|
14
|
-
var _paddings =
|
|
14
|
+
var _paddings = require("./paddings");
|
|
15
15
|
|
|
16
16
|
var _objectPosition = _interopRequireDefault(require("./objectPosition"));
|
|
17
17
|
|
|
@@ -19,12 +19,20 @@ var _transformOrigin = _interopRequireDefault(require("./transformOrigin"));
|
|
|
19
19
|
|
|
20
20
|
var shorthands = {
|
|
21
21
|
flex: _flex.default,
|
|
22
|
-
margin: _margins.
|
|
23
|
-
marginHorizontal: _margins.
|
|
24
|
-
marginVertical: _margins.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
margin: _margins.processMargin,
|
|
23
|
+
marginHorizontal: _margins.processMarginHorizontal,
|
|
24
|
+
marginVertical: _margins.processMarginVertical,
|
|
25
|
+
marginTop: _margins.processMarginSingle,
|
|
26
|
+
marginRight: _margins.processMarginSingle,
|
|
27
|
+
marginBottom: _margins.processMarginSingle,
|
|
28
|
+
marginLeft: _margins.processMarginSingle,
|
|
29
|
+
padding: _paddings.processPadding,
|
|
30
|
+
paddingHorizontal: _paddings.processPaddingHorizontal,
|
|
31
|
+
paddingVertical: _paddings.processPaddingVertical,
|
|
32
|
+
paddingTop: _paddings.processPaddingSingle,
|
|
33
|
+
paddingRight: _paddings.processPaddingSingle,
|
|
34
|
+
paddingBottom: _paddings.processPaddingSingle,
|
|
35
|
+
paddingLeft: _paddings.processPaddingSingle,
|
|
28
36
|
border: _borders.default,
|
|
29
37
|
borderTop: _borders.default,
|
|
30
38
|
borderRight: _borders.default,
|
package/lib/expand/margins.js
CHANGED
|
@@ -1,12 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.processMarginVertical = exports.processMarginSingle = exports.processMarginHorizontal = exports.processMargin = void 0;
|
|
7
7
|
|
|
8
8
|
var _boxModel = _interopRequireDefault(require("./boxModel"));
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var processMargin = (0, _boxModel.default)({
|
|
11
|
+
expandsTo: function expandsTo(_ref) {
|
|
12
|
+
var first = _ref.first,
|
|
13
|
+
second = _ref.second,
|
|
14
|
+
third = _ref.third,
|
|
15
|
+
fourth = _ref.fourth;
|
|
16
|
+
return {
|
|
17
|
+
marginTop: first,
|
|
18
|
+
marginRight: second,
|
|
19
|
+
marginBottom: third,
|
|
20
|
+
marginLeft: fourth
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
maxValues: 4,
|
|
24
|
+
autoSupported: true
|
|
25
|
+
});
|
|
26
|
+
exports.processMargin = processMargin;
|
|
27
|
+
var processMarginVertical = (0, _boxModel.default)({
|
|
28
|
+
expandsTo: function expandsTo(_ref2) {
|
|
29
|
+
var first = _ref2.first,
|
|
30
|
+
second = _ref2.second;
|
|
31
|
+
return {
|
|
32
|
+
marginTop: first,
|
|
33
|
+
marginBottom: second
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
maxValues: 2,
|
|
37
|
+
autoSupported: true
|
|
38
|
+
});
|
|
39
|
+
exports.processMarginVertical = processMarginVertical;
|
|
40
|
+
var processMarginHorizontal = (0, _boxModel.default)({
|
|
41
|
+
expandsTo: function expandsTo(_ref3) {
|
|
42
|
+
var first = _ref3.first,
|
|
43
|
+
second = _ref3.second;
|
|
44
|
+
return {
|
|
45
|
+
marginRight: first,
|
|
46
|
+
marginLeft: second
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
maxValues: 2,
|
|
50
|
+
autoSupported: true
|
|
51
|
+
});
|
|
52
|
+
exports.processMarginHorizontal = processMarginHorizontal;
|
|
53
|
+
var processMarginSingle = (0, _boxModel.default)({
|
|
54
|
+
autoSupported: true
|
|
55
|
+
});
|
|
56
|
+
exports.processMarginSingle = processMarginSingle;
|
package/lib/expand/paddings.js
CHANGED
|
@@ -1,12 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.processPaddingVertical = exports.processPaddingSingle = exports.processPaddingHorizontal = exports.processPadding = void 0;
|
|
7
7
|
|
|
8
8
|
var _boxModel = _interopRequireDefault(require("./boxModel"));
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var processPadding = (0, _boxModel.default)({
|
|
11
|
+
expandsTo: function expandsTo(_ref) {
|
|
12
|
+
var first = _ref.first,
|
|
13
|
+
second = _ref.second,
|
|
14
|
+
third = _ref.third,
|
|
15
|
+
fourth = _ref.fourth;
|
|
16
|
+
return {
|
|
17
|
+
paddingTop: first,
|
|
18
|
+
paddingRight: second,
|
|
19
|
+
paddingBottom: third,
|
|
20
|
+
paddingLeft: fourth
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
maxValues: 4
|
|
24
|
+
});
|
|
25
|
+
exports.processPadding = processPadding;
|
|
26
|
+
var processPaddingVertical = (0, _boxModel.default)({
|
|
27
|
+
expandsTo: function expandsTo(_ref2) {
|
|
28
|
+
var first = _ref2.first,
|
|
29
|
+
second = _ref2.second;
|
|
30
|
+
return {
|
|
31
|
+
paddingTop: first,
|
|
32
|
+
paddingBottom: second
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
maxValues: 2
|
|
36
|
+
});
|
|
37
|
+
exports.processPaddingVertical = processPaddingVertical;
|
|
38
|
+
var processPaddingHorizontal = (0, _boxModel.default)({
|
|
39
|
+
expandsTo: function expandsTo(_ref3) {
|
|
40
|
+
var first = _ref3.first,
|
|
41
|
+
second = _ref3.second;
|
|
42
|
+
return {
|
|
43
|
+
paddingRight: first,
|
|
44
|
+
paddingLeft: second
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
maxValues: 2
|
|
48
|
+
});
|
|
49
|
+
exports.processPaddingHorizontal = processPaddingHorizontal;
|
|
50
|
+
var processPaddingSingle = (0, _boxModel.default)();
|
|
51
|
+
exports.processPaddingSingle = processPaddingSingle;
|
package/lib/flatten/index.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
6
|
|
|
7
7
|
exports.__esModule = true;
|
|
8
|
-
exports.default = void 0;
|
|
8
|
+
exports.transformColor = exports.processTransform = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var R = _interopRequireWildcard(require("ramda"));
|
|
11
11
|
|
|
@@ -17,13 +17,14 @@ var _transform = _interopRequireDefault(require("./transform"));
|
|
|
17
17
|
|
|
18
18
|
var _mediaQueries = _interopRequireDefault(require("./mediaQueries"));
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
var _colors = _interopRequireDefault(require("./transform/colors"));
|
|
21
|
+
|
|
22
|
+
exports.transformColor = _colors.default;
|
|
23
|
+
|
|
24
|
+
var _transform2 = _interopRequireDefault(require("./transform/transform"));
|
|
25
|
+
|
|
26
|
+
exports.processTransform = _transform2.default;
|
|
27
|
+
|
|
27
28
|
/**
|
|
28
29
|
* Resolves styles
|
|
29
30
|
*
|
|
@@ -31,10 +32,10 @@ var filterNoneValues = R.reject(R.equals('none'));
|
|
|
31
32
|
* @param {Object} style object
|
|
32
33
|
* @returns {Object} resolved style object
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
35
|
var resolveStyles = function resolveStyles(container, style) {
|
|
36
|
-
return R.compose((0, _transform.default)(container), _expand.default, (0, _mediaQueries.default)(container),
|
|
37
|
-
};
|
|
36
|
+
return R.compose((0, _transform.default)(container), _expand.default, (0, _mediaQueries.default)(container), _flatten.default)(style);
|
|
37
|
+
}; // Utils exported for SVG processing
|
|
38
|
+
|
|
38
39
|
|
|
39
40
|
var _default = R.curryN(2, resolveStyles);
|
|
40
41
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
4
|
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
6
|
|
|
7
7
|
exports.__esModule = true;
|
|
8
8
|
exports.default = void 0;
|
package/lib/transform/colors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
6
|
|
|
7
7
|
exports.__esModule = true;
|
|
8
8
|
exports.default = void 0;
|
package/lib/transform/index.js
CHANGED
|
@@ -20,7 +20,8 @@ var parse = function parse(transformString) {
|
|
|
20
20
|
name = _transform$split[0],
|
|
21
21
|
rawValue = _transform$split[1];
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var splitChar = rawValue.indexOf(',') >= 0 ? ',' : ' ';
|
|
24
|
+
var value = rawValue.split(splitChar).map(function (val) {
|
|
24
25
|
return val.trim();
|
|
25
26
|
});
|
|
26
27
|
parsed.push({
|
|
@@ -129,6 +130,7 @@ var normalize = function normalize(operations) {
|
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
var processTransform = function processTransform(value) {
|
|
133
|
+
if (typeof value !== 'string') return value;
|
|
132
134
|
return normalize(parse(value));
|
|
133
135
|
};
|
|
134
136
|
|
package/lib/utils/castFloat.js
CHANGED
package/package.json
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-pdf/stylesheet",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"description": "A styles engine for Node and the browser",
|
|
5
6
|
"author": "Diego Muracciole <diegomuracciole@gmail.com>",
|
|
6
7
|
"homepage": "https://github.com/diegomura/react-pdf#readme",
|
|
7
|
-
"repository": "git@github.com:diegomura/react-pdf.git",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/diegomura/react-pdf.git",
|
|
12
|
+
"directory": "packages/stylesheet"
|
|
13
|
+
},
|
|
9
14
|
"scripts": {
|
|
10
15
|
"test": "jest",
|
|
11
16
|
"build": "rimraf ./lib && babel src --out-dir lib",
|
|
12
17
|
"watch": "rimraf ./lib && babel src --out-dir lib --watch"
|
|
13
18
|
},
|
|
14
19
|
"dependencies": {
|
|
15
|
-
"@
|
|
20
|
+
"@babel/runtime": "^7.16.4",
|
|
21
|
+
"@react-pdf/types": "^2.0.8",
|
|
16
22
|
"color-string": "^1.5.3",
|
|
17
23
|
"hsl-to-hex": "^1.0.0",
|
|
18
24
|
"media-engine": "^1.0.3",
|
|
25
|
+
"postcss-value-parser": "^4.1.0",
|
|
19
26
|
"ramda": "^0.26.1"
|
|
20
27
|
},
|
|
21
28
|
"files": [
|
|
22
29
|
"lib"
|
|
23
|
-
]
|
|
24
|
-
"gitHead": "eeb19949e0eb13b25ea790ffe387bc2da6b2f298"
|
|
30
|
+
]
|
|
25
31
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017 Diego Muracciole <diegomuracciole@gmail.com>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|