@micromag/screen-quote 0.3.444 → 0.3.447

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.
Files changed (3) hide show
  1. package/es/index.js +2 -27
  2. package/lib/index.js +2 -27
  3. package/package.json +11 -11
package/es/index.js CHANGED
@@ -14,9 +14,6 @@ import Header from '@micromag/element-header';
14
14
  import Layout, { Spacer } from '@micromag/element-layout';
15
15
  import Quote from '@micromag/element-quote';
16
16
  import Text from '@micromag/element-text';
17
- import _objectSpread from '@babel/runtime/helpers/objectSpread2';
18
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
19
- import { Quote as Quote$1, Author, Container as Container$1 } from '@micromag/transforms/apple-news';
20
17
 
21
18
  var styles = {"container":"micromag-screen-quote-container","background":"micromag-screen-quote-background","disabled":"micromag-screen-quote-disabled","hidden":"micromag-screen-quote-hidden","placeholder":"micromag-screen-quote-placeholder","content":"micromag-screen-quote-content","emptyQuote":"micromag-screen-quote-emptyQuote","emptyAuthor":"micromag-screen-quote-emptyAuthor","quote":"micromag-screen-quote-quote","withMargin":"micromag-screen-quote-withMargin","isPlaceholder":"micromag-screen-quote-isPlaceholder","layout":"micromag-screen-quote-layout"};
22
19
 
@@ -175,29 +172,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
175
172
  QuoteScreen.propTypes = propTypes;
176
173
  QuoteScreen.defaultProps = defaultProps;
177
174
 
178
- var transform = function transform(newStory, _ref) {
179
- var quote = _ref.quote,
180
- author = _ref.author;
181
- var _Quote = Quote$1(newStory, quote),
182
- quoteStory = _Quote.story,
183
- quoteComponent = _Quote.component;
184
- var _Author = Author(quoteStory, author),
185
- authorStory = _Author.story,
186
- authorComponent = _Author.component;
187
- var _Container = Container$1(authorStory, [].concat(_toConsumableArray(quoteComponent ? [quoteComponent] : []), _toConsumableArray(authorComponent ? [authorComponent] : []))),
188
- containerStory = _Container.story,
189
- containerComponent = _Container.component;
190
- return _objectSpread(_objectSpread({}, containerStory), {}, {
191
- components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
192
- });
193
- };
194
-
195
- // eslint-disable-next-line
196
-
197
- var transforms = /*#__PURE__*/Object.freeze({
198
- __proto__: null,
199
- appleNews: transform
200
- });
175
+ // import * as transforms from './transforms/index';
201
176
 
202
177
  var definition = {
203
178
  id: 'quote',
@@ -221,7 +196,7 @@ var definition = {
221
196
  }),
222
197
  component: QuoteScreen,
223
198
  layouts: ['top', 'middle', 'bottom', 'split'],
224
- transforms: transforms,
199
+ // transforms,
225
200
  fields: [{
226
201
  name: 'layout',
227
202
  type: 'screen-layout',
package/lib/index.js CHANGED
@@ -18,9 +18,6 @@ var Header = require('@micromag/element-header');
18
18
  var Layout = require('@micromag/element-layout');
19
19
  var Quote = require('@micromag/element-quote');
20
20
  var Text = require('@micromag/element-text');
21
- var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
22
- var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
23
- var appleNews = require('@micromag/transforms/apple-news');
24
21
 
25
22
  var styles = {"container":"micromag-screen-quote-container","background":"micromag-screen-quote-background","disabled":"micromag-screen-quote-disabled","hidden":"micromag-screen-quote-hidden","placeholder":"micromag-screen-quote-placeholder","content":"micromag-screen-quote-content","emptyQuote":"micromag-screen-quote-emptyQuote","emptyAuthor":"micromag-screen-quote-emptyAuthor","quote":"micromag-screen-quote-quote","withMargin":"micromag-screen-quote-withMargin","isPlaceholder":"micromag-screen-quote-isPlaceholder","layout":"micromag-screen-quote-layout"};
26
23
 
@@ -179,29 +176,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
179
176
  QuoteScreen.propTypes = propTypes;
180
177
  QuoteScreen.defaultProps = defaultProps;
181
178
 
182
- var transform = function transform(newStory, _ref) {
183
- var quote = _ref.quote,
184
- author = _ref.author;
185
- var _Quote = appleNews.Quote(newStory, quote),
186
- quoteStory = _Quote.story,
187
- quoteComponent = _Quote.component;
188
- var _Author = appleNews.Author(quoteStory, author),
189
- authorStory = _Author.story,
190
- authorComponent = _Author.component;
191
- var _Container = appleNews.Container(authorStory, [].concat(_toConsumableArray(quoteComponent ? [quoteComponent] : []), _toConsumableArray(authorComponent ? [authorComponent] : []))),
192
- containerStory = _Container.story,
193
- containerComponent = _Container.component;
194
- return _objectSpread(_objectSpread({}, containerStory), {}, {
195
- components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
196
- });
197
- };
198
-
199
- // eslint-disable-next-line
200
-
201
- var transforms = /*#__PURE__*/Object.freeze({
202
- __proto__: null,
203
- appleNews: transform
204
- });
179
+ // import * as transforms from './transforms/index';
205
180
 
206
181
  var definition = {
207
182
  id: 'quote',
@@ -225,7 +200,7 @@ var definition = {
225
200
  }),
226
201
  component: QuoteScreen,
227
202
  layouts: ['top', 'middle', 'bottom', 'split'],
228
- transforms: transforms,
203
+ // transforms,
229
204
  fields: [{
230
205
  name: 'layout',
231
206
  type: 'screen-layout',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-quote",
3
- "version": "0.3.444",
3
+ "version": "0.3.447",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -59,15 +59,15 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
- "@micromag/core": "^0.3.444",
63
- "@micromag/element-background": "^0.3.444",
64
- "@micromag/element-container": "^0.3.444",
65
- "@micromag/element-footer": "^0.3.444",
66
- "@micromag/element-header": "^0.3.444",
67
- "@micromag/element-layout": "^0.3.444",
68
- "@micromag/element-quote": "^0.3.444",
69
- "@micromag/element-text": "^0.3.444",
70
- "@micromag/transforms": "^0.3.444",
62
+ "@micromag/core": "^0.3.447",
63
+ "@micromag/element-background": "^0.3.447",
64
+ "@micromag/element-container": "^0.3.447",
65
+ "@micromag/element-footer": "^0.3.447",
66
+ "@micromag/element-header": "^0.3.447",
67
+ "@micromag/element-layout": "^0.3.447",
68
+ "@micromag/element-quote": "^0.3.447",
69
+ "@micromag/element-text": "^0.3.447",
70
+ "@micromag/transforms": "^0.3.447",
71
71
  "classnames": "^2.2.6",
72
72
  "lodash": "^4.17.21",
73
73
  "prop-types": "^15.7.2",
@@ -78,5 +78,5 @@
78
78
  "access": "public",
79
79
  "registry": "https://registry.npmjs.org/"
80
80
  },
81
- "gitHead": "40bfd80ccd7a777ffebb0a6d9006c8ebad6a22bd"
81
+ "gitHead": "ec175c602ce6f59b7561f57c92da443814109d50"
82
82
  }