@sb1/ffe-system-message-react 6.2.7 → 6.2.11

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.
@@ -13,6 +13,8 @@ var _utropstegnIkon = _interopRequireDefault(require("@sb1/ffe-icons-react/lib/u
13
13
 
14
14
  var _SystemMessage = _interopRequireDefault(require("./SystemMessage"));
15
15
 
16
+ var _excluded = ["alert"];
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
20
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -23,7 +25,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
23
25
 
24
26
  function SystemErrorMessage(props) {
25
27
  var alert = props.alert,
26
- rest = _objectWithoutProperties(props, ["alert"]);
28
+ rest = _objectWithoutProperties(props, _excluded);
27
29
 
28
30
  return /*#__PURE__*/_react.default.createElement(_SystemMessage.default, _extends({
29
31
  modifier: "error",
@@ -15,11 +15,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _kryssIkon = _interopRequireDefault(require("@sb1/ffe-icons-react/lib/kryss-ikon"));
17
17
 
18
+ var _excluded = ["animationLengthMs", "children", "className", "icon", "locale", "modifier"];
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
23
 
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
25
 
24
26
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
27
 
@@ -39,7 +41,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
39
41
 
40
42
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
43
 
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
44
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
45
 
44
46
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
47
 
@@ -99,7 +101,7 @@ var SystemMessage = /*#__PURE__*/function (_Component) {
99
101
  icon = _this$props2.icon,
100
102
  locale = _this$props2.locale,
101
103
  modifier = _this$props2.modifier,
102
- rest = _objectWithoutProperties(_this$props2, ["animationLengthMs", "children", "className", "icon", "locale", "modifier"]);
104
+ rest = _objectWithoutProperties(_this$props2, _excluded);
103
105
 
104
106
  if (this.state.closed) {
105
107
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-system-message-react",
3
- "version": "6.2.7",
3
+ "version": "6.2.11",
4
4
  "description": "SpareBank 1 System Message komponent",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -16,11 +16,8 @@
16
16
  "url": "ssh://git@github.com:SpareBank1/designsystem.git"
17
17
  },
18
18
  "scripts": {
19
- "build": "npm run build:cjs && npm run build:es && npm run build:types",
20
- "build:cjs": "babel -d lib/. --root-mode=upward --env-name=cjs --ignore=*.spec.js src/.",
21
- "build:es": "babel -d es/. --root-mode=upward --env-name=es --ignore=*.spec.js src/.",
22
- "build:types": "copyfiles -f src/index.d.ts types/",
23
- "lint": "eslint src/.",
19
+ "build": "ffe-buildtool babel",
20
+ "lint": "eslint src",
24
21
  "test": "jest",
25
22
  "test:watch": "jest --watch"
26
23
  },
@@ -28,12 +25,13 @@
28
25
  "setupTestFrameworkScriptFile": "../../test-setup.js"
29
26
  },
30
27
  "dependencies": {
31
- "@sb1/ffe-grid-react": "^10.1.5",
32
- "classnames": "^2.2.5",
33
- "prop-types": "^15.6.0"
28
+ "@sb1/ffe-grid-react": "^11.1.1",
29
+ "classnames": "^2.3.1",
30
+ "prop-types": "^15.7.2"
34
31
  },
35
32
  "devDependencies": {
36
- "@sb1/ffe-icons-react": "^7.2.18",
33
+ "@sb1/ffe-buildtool": "^0.1.0",
34
+ "@sb1/ffe-icons-react": "^7.2.20",
37
35
  "enzyme": "^3.7.0",
38
36
  "enzyme-adapter-react-16": "^1.7.0",
39
37
  "jest": "^26.0.0",
@@ -48,5 +46,5 @@
48
46
  "publishConfig": {
49
47
  "access": "public"
50
48
  },
51
- "gitHead": "df3bbc4fbf7c499bbbf720718b628c711897aafc"
49
+ "gitHead": "59eb2e12625e744f1a116c14a40cf69f1bbecdc6"
52
50
  }
package/CHANGELOG.md DELETED
@@ -1,676 +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
- ## [6.2.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.6...@sb1/ffe-system-message-react@6.2.7) (2021-03-26)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **ffe-system-message-react:** add npm module path ([ab74c15](https://github.com/SpareBank1/designsystem/commit/ab74c15fe0c468720eeb7f187d1224df1cf4dbeb))
12
-
13
-
14
-
15
-
16
-
17
- ## [6.2.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.5...@sb1/ffe-system-message-react@6.2.6) (2021-03-24)
18
-
19
-
20
- ### Bug Fixes
21
-
22
- * **ffe-system-message-react:** make icon prop in SystemErrorMessage optional ([765f0c6](https://github.com/SpareBank1/designsystem/commit/765f0c6ddd191d3bfa483ea2ea317474aaf67f45))
23
-
24
-
25
-
26
-
27
-
28
- ## [6.2.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.4...@sb1/ffe-system-message-react@6.2.5) (2021-03-15)
29
-
30
-
31
- ### Bug Fixes
32
-
33
- * **ffe-system-message-react:** broadens version of peer dependencies ([1b676dd](https://github.com/SpareBank1/designsystem/commit/1b676dd29d53c067ece956a5608d87e717574a48))
34
-
35
-
36
-
37
-
38
-
39
- ## [6.2.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.3...@sb1/ffe-system-message-react@6.2.4) (2021-02-03)
40
-
41
-
42
- ### Bug Fixes
43
-
44
- * packages/ffe-system-message-react/package.json to reduce vulnerabilities ([4e8a6d3](https://github.com/SpareBank1/designsystem/commit/4e8a6d3a92552846f11a230afc91658c75b08ccb))
45
-
46
-
47
-
48
-
49
-
50
- ## [6.2.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.2...@sb1/ffe-system-message-react@6.2.3) (2021-02-02)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * **ffe-system-message-react:** reduce vulnerabilities ([12c1566](https://github.com/SpareBank1/designsystem/commit/12c1566a104ad560cbf6923f151bfbe4f717c576))
56
-
57
-
58
-
59
-
60
-
61
- ## [6.2.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.1...@sb1/ffe-system-message-react@6.2.2) (2020-11-18)
62
-
63
- **Note:** Version bump only for package @sb1/ffe-system-message-react
64
-
65
-
66
-
67
-
68
-
69
- ## [6.2.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.2.0...@sb1/ffe-system-message-react@6.2.1) (2020-10-21)
70
-
71
-
72
- ### Bug Fixes
73
-
74
- * **ffe-system-message-react:** optout param for alert for error message ([0469f5e](https://github.com/SpareBank1/designsystem/commit/0469f5e2290c4f8fdfcaad00e182d6cf83399610))
75
-
76
-
77
-
78
-
79
-
80
- # [6.2.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.6...@sb1/ffe-system-message-react@6.2.0) (2020-10-02)
81
-
82
-
83
- ### Features
84
-
85
- * **ffe-system-message-react:** add role="alert" to error message ([f9ec168](https://github.com/SpareBank1/designsystem/commit/f9ec16889e3b3003a11075c969dff52ae6b0cd09))
86
-
87
-
88
-
89
-
90
-
91
- ## [6.1.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.5...@sb1/ffe-system-message-react@6.1.6) (2020-09-15)
92
-
93
- **Note:** Version bump only for package @sb1/ffe-system-message-react
94
-
95
-
96
-
97
-
98
-
99
- ## [6.1.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.4...@sb1/ffe-system-message-react@6.1.5) (2020-08-27)
100
-
101
- **Note:** Version bump only for package @sb1/ffe-system-message-react
102
-
103
-
104
-
105
-
106
-
107
- ## [6.1.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.3...@sb1/ffe-system-message-react@6.1.4) (2020-08-04)
108
-
109
- **Note:** Version bump only for package @sb1/ffe-system-message-react
110
-
111
-
112
-
113
-
114
-
115
- ## [6.1.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.2...@sb1/ffe-system-message-react@6.1.3) (2020-07-30)
116
-
117
- **Note:** Version bump only for package @sb1/ffe-system-message-react
118
-
119
-
120
-
121
-
122
-
123
- ## [6.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.1...@sb1/ffe-system-message-react@6.1.2) (2020-06-29)
124
-
125
- **Note:** Version bump only for package @sb1/ffe-system-message-react
126
-
127
-
128
-
129
-
130
-
131
- ## [6.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.1.0...@sb1/ffe-system-message-react@6.1.1) (2020-06-24)
132
-
133
- **Note:** Version bump only for package @sb1/ffe-system-message-react
134
-
135
-
136
-
137
-
138
-
139
- # [6.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.16...@sb1/ffe-system-message-react@6.1.0) (2020-06-18)
140
-
141
-
142
- ### Features
143
-
144
- * **ffe-system-message-react:** stop using deprecated lifecycle methods ([940e0f8](https://github.com/SpareBank1/designsystem/commit/940e0f8d516eeaec85f08cbe7019b29a6e8b36cf))
145
-
146
-
147
-
148
-
149
-
150
- ## [6.0.16](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.15...@sb1/ffe-system-message-react@6.0.16) (2020-05-27)
151
-
152
- **Note:** Version bump only for package @sb1/ffe-system-message-react
153
-
154
-
155
-
156
-
157
-
158
- ## [6.0.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.14...@sb1/ffe-system-message-react@6.0.15) (2020-03-31)
159
-
160
- **Note:** Version bump only for package @sb1/ffe-system-message-react
161
-
162
- ## [6.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.13...@sb1/ffe-system-message-react@6.0.14) (2020-03-18)
163
-
164
- **Note:** Version bump only for package @sb1/ffe-system-message-react
165
-
166
- ## [6.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.12...@sb1/ffe-system-message-react@6.0.13) (2020-03-16)
167
-
168
- **Note:** Version bump only for package @sb1/ffe-system-message-react
169
-
170
- ## [6.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.11...@sb1/ffe-system-message-react@6.0.12) (2020-03-13)
171
-
172
- **Note:** Version bump only for package @sb1/ffe-system-message-react
173
-
174
- ## [6.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.10...@sb1/ffe-system-message-react@6.0.11) (2020-03-10)
175
-
176
- **Note:** Version bump only for package @sb1/ffe-system-message-react
177
-
178
- ## [6.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.9...@sb1/ffe-system-message-react@6.0.10) (2020-03-06)
179
-
180
- **Note:** Version bump only for package @sb1/ffe-system-message-react
181
-
182
- ## [6.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.8...@sb1/ffe-system-message-react@6.0.9) (2020-02-26)
183
-
184
- **Note:** Version bump only for package @sb1/ffe-system-message-react
185
-
186
- ## [6.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.7...@sb1/ffe-system-message-react@6.0.8) (2020-02-26)
187
-
188
- **Note:** Version bump only for package @sb1/ffe-system-message-react
189
-
190
- ## [6.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.5...@sb1/ffe-system-message-react@6.0.7) (2020-02-26)
191
-
192
- **Note:** Version bump only for package @sb1/ffe-system-message-react
193
-
194
- ## [6.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.5...@sb1/ffe-system-message-react@6.0.6) (2020-02-25)
195
-
196
- **Note:** Version bump only for package @sb1/ffe-system-message-react
197
-
198
- ## [6.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.4...@sb1/ffe-system-message-react@6.0.5) (2019-11-25)
199
-
200
- **Note:** Version bump only for package @sb1/ffe-system-message-react
201
-
202
- ## [6.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.3...@sb1/ffe-system-message-react@6.0.4) (2019-11-20)
203
-
204
- **Note:** Version bump only for package @sb1/ffe-system-message-react
205
-
206
- ## [6.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.2...@sb1/ffe-system-message-react@6.0.3) (2019-10-28)
207
-
208
- **Note:** Version bump only for package @sb1/ffe-system-message-react
209
-
210
- ## [6.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.1...@sb1/ffe-system-message-react@6.0.2) (2019-10-03)
211
-
212
- **Note:** Version bump only for package @sb1/ffe-system-message-react
213
-
214
- ## [6.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@6.0.0...@sb1/ffe-system-message-react@6.0.1) (2019-09-16)
215
-
216
- **Note:** Version bump only for package @sb1/ffe-system-message-react
217
-
218
- # [6.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.2.4...@sb1/ffe-system-message-react@6.0.0) (2019-08-27)
219
-
220
- ### chore
221
-
222
- - bump React to 16.9 to allow for using hooks etc ([e3901f1](https://github.com/SpareBank1/designsystem/commit/e3901f1))
223
-
224
- ### BREAKING CHANGES
225
-
226
- - peerDep of React is raised to 16.9. While this in itself
227
- isn't a breaking change, it allows for the use of hooks in later releases.
228
- Such changes would just be a minor version, or even a patch, but without
229
- this major version bump it would result in a runtime error for consumers.
230
-
231
- ## [5.2.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.2.3...@sb1/ffe-system-message-react@5.2.4) (2019-08-12)
232
-
233
- **Note:** Version bump only for package @sb1/ffe-system-message-react
234
-
235
- ## [5.2.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.2.2...@sb1/ffe-system-message-react@5.2.3) (2019-06-28)
236
-
237
- **Note:** Version bump only for package @sb1/ffe-system-message-react
238
-
239
- ## [5.2.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.2.1...@sb1/ffe-system-message-react@5.2.2) (2019-05-10)
240
-
241
- ### Bug Fixes
242
-
243
- - **ffe-system-message-react:** Fixed typings for onClose, added event as input ([30bc1ac](https://github.com/SpareBank1/designsystem/commit/30bc1ac))
244
-
245
- ## [5.2.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.2.0...@sb1/ffe-system-message-react@5.2.1) (2019-04-26)
246
-
247
- **Note:** Version bump only for package @sb1/ffe-system-message-react
248
-
249
- # [5.2.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.28...@sb1/ffe-system-message-react@5.2.0) (2019-04-25)
250
-
251
- ### Features
252
-
253
- - **ffe-system-message-react:** Added type definitions for typescript ([44dc244](https://github.com/SpareBank1/designsystem/commit/44dc244))
254
- - **ffe-system-message-react:** Added type definitions for typescript ([ce8aa09](https://github.com/SpareBank1/designsystem/commit/ce8aa09))
255
-
256
- ## [5.1.28](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.27...@sb1/ffe-system-message-react@5.1.28) (2019-04-24)
257
-
258
- **Note:** Version bump only for package @sb1/ffe-system-message-react
259
-
260
- ## [5.1.27](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.26...@sb1/ffe-system-message-react@5.1.27) (2019-04-08)
261
-
262
- **Note:** Version bump only for package @sb1/ffe-system-message-react
263
-
264
- ## [5.1.26](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.25...@sb1/ffe-system-message-react@5.1.26) (2019-03-25)
265
-
266
- **Note:** Version bump only for package @sb1/ffe-system-message-react
267
-
268
- ## [5.1.25](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.24...@sb1/ffe-system-message-react@5.1.25) (2019-02-18)
269
-
270
- **Note:** Version bump only for package @sb1/ffe-system-message-react
271
-
272
- ## [5.1.24](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.23...@sb1/ffe-system-message-react@5.1.24) (2019-01-29)
273
-
274
- **Note:** Version bump only for package @sb1/ffe-system-message-react
275
-
276
- ## [5.1.23](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.22...@sb1/ffe-system-message-react@5.1.23) (2019-01-23)
277
-
278
- **Note:** Version bump only for package @sb1/ffe-system-message-react
279
-
280
- ## [5.1.22](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.21...@sb1/ffe-system-message-react@5.1.22) (2018-12-19)
281
-
282
- **Note:** Version bump only for package @sb1/ffe-system-message-react
283
-
284
- ## [5.1.21](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.20...@sb1/ffe-system-message-react@5.1.21) (2018-12-18)
285
-
286
- **Note:** Version bump only for package @sb1/ffe-system-message-react
287
-
288
- ## [5.1.20](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.19...@sb1/ffe-system-message-react@5.1.20) (2018-12-11)
289
-
290
- ### Bug Fixes
291
-
292
- - Build tree shakeable packages ([fb4a9ea](https://github.com/SpareBank1/designsystem/commit/fb4a9ea))
293
-
294
- ## [5.1.19](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.18...@sb1/ffe-system-message-react@5.1.19) (2018-12-04)
295
-
296
- **Note:** Version bump only for package @sb1/ffe-system-message-react
297
-
298
- ## [5.1.18](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.17...@sb1/ffe-system-message-react@5.1.18) (2018-11-26)
299
-
300
- **Note:** Version bump only for package @sb1/ffe-system-message-react
301
-
302
- ## [5.1.17](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.16...@sb1/ffe-system-message-react@5.1.17) (2018-11-16)
303
-
304
- **Note:** Version bump only for package @sb1/ffe-system-message-react
305
-
306
- ## [5.1.16](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.15...@sb1/ffe-system-message-react@5.1.16) (2018-11-13)
307
-
308
- **Note:** Version bump only for package @sb1/ffe-system-message-react
309
-
310
- ## [5.1.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.14...@sb1/ffe-system-message-react@5.1.15) (2018-11-08)
311
-
312
- **Note:** Version bump only for package @sb1/ffe-system-message-react
313
-
314
- ## [5.1.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.13...@sb1/ffe-system-message-react@5.1.14) (2018-10-17)
315
-
316
- **Note:** Version bump only for package @sb1/ffe-system-message-react
317
-
318
- ## [5.1.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.12...@sb1/ffe-system-message-react@5.1.13) (2018-10-15)
319
-
320
- ### Bug Fixes
321
-
322
- - **ffe-system-message-react:** Adds necessary dependency ([2ae1194](https://github.com/SpareBank1/designsystem/commit/2ae1194)), closes [#399](https://github.com/SpareBank1/designsystem/issues/399)
323
-
324
- ## [5.1.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.11...@sb1/ffe-system-message-react@5.1.12) (2018-10-05)
325
-
326
- **Note:** Version bump only for package @sb1/ffe-system-message-react
327
-
328
- <a name="5.1.11"></a>
329
-
330
- ## [5.1.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.10...@sb1/ffe-system-message-react@5.1.11) (2018-08-09)
331
-
332
- **Note:** Version bump only for package @sb1/ffe-system-message-react
333
-
334
- <a name="5.1.10"></a>
335
-
336
- ## [5.1.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.9...@sb1/ffe-system-message-react@5.1.10) (2018-06-26)
337
-
338
- **Note:** Version bump only for package @sb1/ffe-system-message-react
339
-
340
- <a name="5.1.9"></a>
341
-
342
- ## [5.1.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.8...@sb1/ffe-system-message-react@5.1.9) (2018-06-20)
343
-
344
- ### Bug Fixes
345
-
346
- - **ffe-system-message-react:** added peerDependency to ffe-icons-react@^6.0.0 ([fe40b90](https://github.com/SpareBank1/designsystem/commit/fe40b90))
347
-
348
- <a name="5.1.8"></a>
349
-
350
- ## [5.1.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.7...@sb1/ffe-system-message-react@5.1.8) (2018-06-19)
351
-
352
- **Note:** Version bump only for package @sb1/ffe-system-message-react
353
-
354
- <a name="5.1.7"></a>
355
-
356
- ## [5.1.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.6...@sb1/ffe-system-message-react@5.1.7) (2018-06-18)
357
-
358
- **Note:** Version bump only for package @sb1/ffe-system-message-react
359
-
360
- <a name="5.1.6"></a>
361
-
362
- ## [5.1.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.5...@sb1/ffe-system-message-react@5.1.6) (2018-06-14)
363
-
364
- **Note:** Version bump only for package @sb1/ffe-system-message-react
365
-
366
- <a name="5.1.5"></a>
367
-
368
- ## [5.1.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.4...@sb1/ffe-system-message-react@5.1.5) (2018-06-04)
369
-
370
- **Note:** Version bump only for package @sb1/ffe-system-message-react
371
-
372
- <a name="5.1.4"></a>
373
-
374
- ## [5.1.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.3...@sb1/ffe-system-message-react@5.1.4) (2018-06-04)
375
-
376
- **Note:** Version bump only for package @sb1/ffe-system-message-react
377
-
378
- <a name="5.1.3"></a>
379
-
380
- ## [5.1.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.2...@sb1/ffe-system-message-react@5.1.3) (2018-05-29)
381
-
382
- **Note:** Version bump only for package @sb1/ffe-system-message-react
383
-
384
- <a name="5.1.2"></a>
385
-
386
- ## [5.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.1...@sb1/ffe-system-message-react@5.1.2) (2018-05-04)
387
-
388
- **Note:** Version bump only for package @sb1/ffe-system-message-react
389
-
390
- <a name="5.1.1"></a>
391
-
392
- ## [5.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.1.0...@sb1/ffe-system-message-react@5.1.1) (2018-04-25)
393
-
394
- **Note:** Version bump only for package @sb1/ffe-system-message-react
395
-
396
- <a name="5.1.0"></a>
397
-
398
- # [5.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.0.3...@sb1/ffe-system-message-react@5.1.0) (2018-04-19)
399
-
400
- ### Features
401
-
402
- - **ffe-system-message-react:** Added locale prop, aria-label on Close ([86072e3](https://github.com/SpareBank1/designsystem/commit/86072e3))
403
-
404
- <a name="5.0.3"></a>
405
-
406
- ## [5.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.0.2...@sb1/ffe-system-message-react@5.0.3) (2018-04-12)
407
-
408
- **Note:** Version bump only for package @sb1/ffe-system-message-react
409
-
410
- <a name="5.0.2"></a>
411
-
412
- ## [5.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.0.1...@sb1/ffe-system-message-react@5.0.2) (2018-04-11)
413
-
414
- **Note:** Version bump only for package @sb1/ffe-system-message-react
415
-
416
- <a name="5.0.1"></a>
417
-
418
- ## [5.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@5.0.0...@sb1/ffe-system-message-react@5.0.1) (2018-04-06)
419
-
420
- **Note:** Version bump only for package @sb1/ffe-system-message-react
421
-
422
- <a name="5.0.0"></a>
423
-
424
- # [5.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@4.0.4...@sb1/ffe-system-message-react@5.0.0) (2018-04-05)
425
-
426
- ### Bug Fixes
427
-
428
- - **ffe-system-message-react:** Reimplement ([1748617](https://github.com/SpareBank1/designsystem/commit/1748617))
429
-
430
- ### BREAKING CHANGES
431
-
432
- - **ffe-system-message-react:** This commit contributes a new implementation of the
433
- `ffe-system-message-react` package.
434
-
435
- The change removes an optional `animationLengthMs` property, which
436
- you can now safely remove.
437
-
438
- This new implementation brings a few new nice-to-haves to the
439
- `ffe-system-message-react` components:
440
-
441
- - Props that are not listed are passed to the outer component
442
- - The system message is sized after its container, with a max width
443
- if it's not put in a sized container
444
- - The close button is now a `<button />`, improving a11y
445
- - The test coverage is 100 %, ensuring a stable implementation with
446
- few bugs
447
- - The implementation now uses the correct colors and icons
448
-
449
- <a name="4.0.4"></a>
450
-
451
- ## [4.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@4.0.3...@sb1/ffe-system-message-react@4.0.4) (2018-03-27)
452
-
453
- **Note:** Version bump only for package @sb1/ffe-system-message-react
454
-
455
- <a name="4.0.3"></a>
456
-
457
- ## [4.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@4.0.2...@sb1/ffe-system-message-react@4.0.3) (2018-03-13)
458
-
459
- **Note:** Version bump only for package @sb1/ffe-system-message-react
460
-
461
- <a name="4.0.2"></a>
462
-
463
- ## [4.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@4.0.0...@sb1/ffe-system-message-react@4.0.2) (2018-03-07)
464
-
465
- ### Bug Fixes
466
-
467
- - Correct peerDependencies after breaking change ([aab59ce](https://github.com/SpareBank1/designsystem/commit/aab59ce))
468
-
469
- <a name="4.0.1"></a>
470
-
471
- ## [4.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-system-message-react@4.0.0...@sb1/ffe-system-message-react@4.0.1) (2018-03-02)
472
-
473
- ### Bug Fixes
474
-
475
- - Correct peerDependencies after breaking change ([4318363](https://github.com/SpareBank1/designsystem/commit/4318363))
476
-
477
- <a name="4.0.0"></a>
478
-
479
- # 4.0.0 (2018-02-25)
480
-
481
- ### Bug Fixes
482
-
483
- - remove all references to internal system ([ff22340](https://github.com/SpareBank1/designsystem/commit/ff22340))
484
-
485
- ### Chores
486
-
487
- - **ffe-system-message-react:** Import component ([6a3152c](https://github.com/SpareBank1/designsystem/commit/6a3152c))
488
- - add [@sb1](https://github.com/sb1)/ scope to all packages ([37efbb4](https://github.com/SpareBank1/designsystem/commit/37efbb4))
489
-
490
- ### BREAKING CHANGES
491
-
492
- - All packages have been renamed to add the @sb1 scope.
493
-
494
- See links [1] and [2] to read more about package scopes.
495
-
496
- Unfortunately this requires you update both your dependencies in
497
- `package.json` and all `import` or `require` statements in your code.
498
- Also, you unfortunately have to upgrade all FFE packages at once due to
499
- dependency between packages. If you are on the latest version prior to
500
- this breaking change the upgrade should be a matter of updating
501
- `package.json` with new package names and versions, and updating your
502
- imports.
503
-
504
- To help find the proper package versions you can either browse to the
505
- packages you need or check out the list of Git tags either on
506
- Github [3] or by cloning the repository and running the `git tag`
507
- command. All package versions get a tag in the format
508
- _package@version_.
509
-
510
- Update your `package.json` with the latest package version and add the
511
- @sb1 scope to the package name:
512
-
513
- ```diff
514
- - "ffe-core": "11.0.2",
515
- + "@sb1/ffe-core": "11.0.2",
516
- ```
517
-
518
- Scoped packages all get put in a subdirectory in `node_modules/`. In our
519
- case packages will be put in the `node_modules/@sb1/` directory. If your
520
- build depends on file paths (for instance for copying fonts) you need to
521
- update that path to include the scope.
522
-
523
- The directory structure also means you have to update your imports, both
524
- in Less and in JavaScript.
525
-
526
- Using `less-plugin-npm-import`:
527
-
528
- ```diff
529
- - @import 'npm://ffe-core/less/ffe';
530
- + @import 'npm://@sb1/ffe-core/less/ffe';
531
- ```
532
-
533
- Using Webpack:
534
-
535
- ```diff
536
- - @import '~ffe-core/less/ffe';
537
- + @import '~@sb1/ffe-core/less/ffe';
538
- ```
539
-
540
- Using plain old paths:
541
-
542
- ```diff
543
- - @import '../path/to/node_modules/ffe-core/less/ffe';
544
- + @import '../path/to/node_modules/@sb1/ffe-core/less/ffe';
545
- ```
546
-
547
- JavaScript `import`:
548
-
549
- ```diff
550
- - import { ActionButton } from 'ffe-buttons-react';
551
- + import { ActionButton } from '@sb1/ffe-buttons-react';
552
- ```
553
-
554
- JavaScript `require`:
555
-
556
- ```diff
557
- - const { ActionButton } = require('ffe-buttons-react').default;
558
- + const { ActionButton } = require('@sb1/ffe-buttons-react').default;
559
- ```
560
-
561
- [1]: https://docs.npmjs.com/misc/scope
562
- [2]: https://docs.npmjs.com/getting-started/scoped-packages
563
- [3]: https://github.com/sparebank1/designsystem/tags
564
-
565
- - **ffe-system-message-react:** the `files` property has been changed to only include
566
- the `lib/` folder. If you imported anything from anywhere else you need
567
- to update your imports to go through the official channels.
568
-
569
- With this ffe-system-message-react lives in the monorepo. All new
570
- changes must be done there.
571
-
572
- <a name="3.0.3"></a>
573
-
574
- ## [3.0.3](https://github.com/SpareBank1/designsystem/compare/ffe-system-message-react@3.0.2...ffe-system-message-react@3.0.3) (2018-02-23)
575
-
576
- **Note:** Version bump only for package ffe-system-message-react
577
-
578
- <a name="3.0.2"></a>
579
-
580
- ## [3.0.2](https://github.com/SpareBank1/designsystem/compare/ffe-system-message-react@3.0.1...ffe-system-message-react@3.0.2) (2018-02-22)
581
-
582
- **Note:** Version bump only for package ffe-system-message-react
583
-
584
- <a name="3.0.1"></a>
585
-
586
- ## [3.0.1](https://github.com/SpareBank1/designsystem/compare/ffe-system-message-react@3.0.0...ffe-system-message-react@3.0.1) (2018-02-15)
587
-
588
- **Note:** Version bump only for package ffe-system-message-react
589
-
590
- <a name="3.0.0"></a>
591
-
592
- # 3.0.0 (2018-01-29)
593
-
594
- ### Chores
595
-
596
- - **ffe-system-message-react:** Import component
597
-
598
- ### BREAKING CHANGES
599
-
600
- - **ffe-system-message-react:** the `files` property has been changed to only include
601
- the `lib/` folder. If you imported anything from anywhere else you need
602
- to update your imports to go through the official channels.
603
-
604
- With this ffe-system-message-react lives in the monorepo. All new
605
- changes must be done there.
606
-
607
- # 2.0.0
608
-
609
- - Upgraded to work with ffe-icons-react 4.x.
610
- - Bumped versions
611
-
612
- ## 1.2.1
613
-
614
- - Added documentation for Styleguidist
615
-
616
- # 1.2.0
617
-
618
- - Added support for on close callback using onClose prop
619
-
620
- ## 1.1.5
621
-
622
- - Use PropTypes from prop-types package
623
-
624
- ## 1.1.4
625
-
626
- - Removed peerDep on ffe-core
627
-
628
- ## 1.1.3
629
-
630
- - Added description to example
631
-
632
- ## 1.1.2
633
-
634
- - Minor bugfix in example
635
-
636
- ## 1.1.1
637
-
638
- - Upgrade eslint to use ffe config
639
-
640
- # 1.1.0
641
-
642
- - Added styling support for outer container using style prop
643
- - Bumped ffe-icons-react dependency
644
-
645
- ## 1.0.1
646
-
647
- Update version number after build includes examples
648
-
649
- # 1.0.0
650
-
651
- Bumped dependency on
652
-
653
- - `ffe-core` to `^8.1.0`
654
- - `ffe-icons-react` to `1.1.1`
655
- - `ffe-system-message` to `1.0.0`
656
- - Added implicit dependency on mkdirp
657
-
658
- ## 0.1.3
659
-
660
- Oppdatert example.html til å inneholde alle meldingstyper
661
-
662
- ## 0.1.2
663
-
664
- Tidligere versjon var laget med utgangspunkt i feil designskisser
665
-
666
- ## 0.1.1
667
-
668
- Spesifiser filer som skal inkluderes i pakka
669
-
670
- ## 0.1.0
671
-
672
- La til støtte for å bruke --success og --error modifiers fra `ffe-system-message`
673
-
674
- ## 0.0.1
675
-
676
- Første versjon
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- var _react = _interopRequireDefault(require("react"));
4
-
5
- var _enzyme = require("enzyme");
6
-
7
- var _ = require(".");
8
-
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
-
11
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
-
13
- var defaultProps = {
14
- children: /*#__PURE__*/_react.default.createElement("span", null, "Message")
15
- };
16
-
17
- var getWrapper = function getWrapper(Comp) {
18
- return function (props) {
19
- return (0, _enzyme.mount)( /*#__PURE__*/_react.default.createElement(Comp, _extends({}, defaultProps, props)));
20
- };
21
- };
22
-
23
- var getErrorWrapper = getWrapper(_.SystemErrorMessage);
24
- var getInfoWrapper = getWrapper(_.SystemInfoMessage);
25
- var getNewsWrapper = getWrapper(_.SystemNewsMessage);
26
- var getSuccessWrapper = getWrapper(_.SystemSuccessMessage);
27
- describe('<SystemMessage />', function () {
28
- it('renders without exploding', function () {
29
- var wrapper = getInfoWrapper();
30
- expect(wrapper.exists()).toBe(true);
31
- });
32
- it('applies the correct modifier classes to each type', function () {
33
- var errorWrapper = getErrorWrapper();
34
- expect(errorWrapper.find('.ffe-system-message-wrapper').hasClass('ffe-system-message-wrapper--error')).toBe(true);
35
- var infoWrapper = getInfoWrapper();
36
- expect(infoWrapper.find('.ffe-system-message-wrapper').hasClass('ffe-system-message-wrapper--info')).toBe(true);
37
- var newsWrapper = getNewsWrapper();
38
- expect(newsWrapper.find('.ffe-system-message-wrapper').hasClass('ffe-system-message-wrapper--news')).toBe(true);
39
- var successWrapper = getSuccessWrapper();
40
- expect(successWrapper.find('.ffe-system-message-wrapper').hasClass('ffe-system-message-wrapper--success')).toBe(true);
41
- });
42
- it('collapses when close button is clicked', function (done) {
43
- var wrapper = getInfoWrapper({
44
- animationLengthMs: 10
45
- });
46
- expect(wrapper.find('.ffe-system-message-wrapper').exists()).toBe(true);
47
- wrapper.find('button').simulate('click');
48
- setTimeout(function () {
49
- wrapper.update();
50
- expect(wrapper.find('.ffe-system-message-wrapper').exists()).toBe(false);
51
- done();
52
- }, 20);
53
- });
54
- it('calls onClose prop when close button is clicked', function (done) {
55
- var onClickSpy = jest.fn();
56
- var wrapper = getInfoWrapper({
57
- animationLengthMs: 10,
58
- onClose: onClickSpy
59
- });
60
- expect(wrapper.find('.ffe-system-message-wrapper').exists()).toBe(true);
61
- wrapper.find('button').simulate('click');
62
- setTimeout(function () {
63
- wrapper.update();
64
- expect(onClickSpy).toHaveBeenCalledTimes(1);
65
- done();
66
- }, 20);
67
- });
68
- it('renders a Norwegian aria label on the close button by default', function () {
69
- var wrapper = getInfoWrapper();
70
- expect(wrapper.find('button').prop('aria-label')).toBe('Lukk');
71
- });
72
- it('renders an English aria-label if locale is "en"', function () {
73
- var wrapper = getInfoWrapper({
74
- locale: 'en'
75
- });
76
- expect(wrapper.find('button').prop('aria-label')).toBe('Close');
77
- });
78
- });