@micromag/screen-urbania-article 0.4.98 → 0.4.109

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/es/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HeadingElement, AuthorElement, Header, Footer, VisualElement, TextElement, Color, BackgroundElement, MediaElement } from '@micromag/core';
3
1
  import React, { ForwardedRef } from 'react';
2
+ import { HeadingElement, AuthorElement, Header, Footer, VisualElement, TextElement, Color, BackgroundElement, MediaElement } from '@micromag/core';
4
3
 
5
4
  interface UrbaniaLoaderProps {
6
5
  component?: unknown;
@@ -21,7 +20,7 @@ interface UrbaniaLoaderProps {
21
20
  type?: string;
22
21
  } | null;
23
22
  }
24
- declare function UrbaniaLoader({ component: Component, title, articleType, overTitle, sponsorLabel, author, image, header, footer, url, article: initialArticle, ...props }: UrbaniaLoaderProps): react_jsx_runtime.JSX.Element;
23
+ declare function UrbaniaLoader({ component: Component, title, articleType, overTitle, sponsorLabel, author, image, header, footer, url, article: initialArticle, ...props }: UrbaniaLoaderProps): React.JSX.Element;
25
24
 
26
25
  declare const _default$1: {
27
26
  id: string;
@@ -116,7 +115,7 @@ declare const _default$1: {
116
115
  })[];
117
116
  };
118
117
 
119
- declare function UrbaniaCardLoader(props: any): react_jsx_runtime.JSX.Element;
118
+ declare function UrbaniaCardLoader(props: any): React.JSX.Element;
120
119
 
121
120
  declare const _default: {
122
121
  id: string;
@@ -196,7 +195,7 @@ interface UrbaniaArticleProps {
196
195
  mediaRef?: ForwardedRef<MediaElement> | null;
197
196
  className?: string | null;
198
197
  }
199
- declare function UrbaniaArticle({ hasArticle, type, image, title, description, overTitle, author, sponsors, sponsorPrefix, sponsorColor, site, header, footer, background, current, preload, spacing, mediaRef: customMediaRef, className, }: UrbaniaArticleProps): react_jsx_runtime.JSX.Element;
198
+ declare function UrbaniaArticle({ hasArticle, type, image, title, description, overTitle, author, sponsors, sponsorPrefix, sponsorColor, site, header, footer, background, current, preload, spacing, mediaRef: customMediaRef, className, }: UrbaniaArticleProps): React.JSX.Element;
200
199
 
201
200
  interface UrbaniaArticleCardProps {
202
201
  hasArticle?: boolean;
@@ -214,6 +213,6 @@ interface UrbaniaArticleCardProps {
214
213
  mediaRef?: ForwardedRef<MediaElement> | null;
215
214
  className?: string | null;
216
215
  }
217
- declare function UrbaniaArticleCard({ hasArticle, url, title, author, text, image, header, background, callToAction, current, preload, spacing, mediaRef: customMediaRef, className, }: UrbaniaArticleCardProps): react_jsx_runtime.JSX.Element;
216
+ declare function UrbaniaArticleCard({ hasArticle, url, title, author, text, image, header, background, callToAction, current, preload, spacing, mediaRef: customMediaRef, className, }: UrbaniaArticleCardProps): React.JSX.Element;
218
217
 
219
218
  export { UrbaniaLoader as UrbaniaArticle, UrbaniaCardLoader as UrbaniaArticleCard, UrbaniaArticle as UrbaniaBaseArticle, UrbaniaArticleCard as UrbaniaBaseArticleCard, _default$1 as default, _default as definitionCard };
package/es/index.js CHANGED
@@ -18,7 +18,7 @@ import Visual from '@micromag/element-visual';
18
18
  import { jsx, jsxs } from 'react/jsx-runtime';
19
19
  import { easings, useSpring, animated } from '@react-spring/web';
20
20
  import { useGesture } from '@use-gesture/react';
21
- import isString from 'lodash/isString';
21
+ import isString from 'lodash-es/isString';
22
22
  import queryString from 'query-string';
23
23
  import Layout from '@micromag/element-layout';
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-urbania-article",
3
- "version": "0.4.98",
3
+ "version": "0.4.109",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -11,6 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/urbania-media/micromag-js.git"
13
13
  },
14
+ "license": "ISC",
14
15
  "author": {
15
16
  "name": "Folklore",
16
17
  "email": "info@folklore.email"
@@ -29,10 +30,10 @@
29
30
  "email": "jc@folklore.email"
30
31
  }
31
32
  ],
32
- "license": "ISC",
33
+ "sideEffects": [
34
+ "**/*.css"
35
+ ],
33
36
  "type": "module",
34
- "module": "es/index.js",
35
- "style": "assets/css/styles.css",
36
37
  "exports": {
37
38
  ".": {
38
39
  "types": "./es/index.d.ts",
@@ -42,55 +43,57 @@
42
43
  "./assets/css/styles": "./assets/css/styles.css",
43
44
  "./assets/css/styles.css": "./assets/css/styles.css"
44
45
  },
46
+ "module": "es/index.js",
47
+ "types": "es/index.d.ts",
48
+ "style": "assets/css/styles.css",
45
49
  "files": [
46
50
  "lib",
47
51
  "es",
48
52
  "assets"
49
53
  ],
50
54
  "scripts": {
55
+ "build": "../../scripts/prepare-package.sh --types",
51
56
  "clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf styles",
52
- "prepublishOnly": "npm run build",
53
- "build": "../../scripts/prepare-package.sh --types"
54
- },
55
- "devDependencies": {
56
- "react": "^19.0.0",
57
- "react-dom": "^19.0.0"
58
- },
59
- "peerDependencies": {
60
- "react": "^19.0.0",
61
- "react-dom": "^19.0.0"
57
+ "prepublishOnly": "npm run build"
62
58
  },
63
59
  "dependencies": {
64
60
  "@babel/runtime": "^7.28.6",
65
61
  "@folklore/fetch": "^0.1.17",
66
62
  "@folklore/size": "^0.1.20",
67
- "@micromag/core": "^0.4.98",
68
- "@micromag/element-background": "^0.4.98",
69
- "@micromag/element-button": "^0.4.98",
70
- "@micromag/element-closed-captions": "^0.4.98",
71
- "@micromag/element-container": "^0.4.98",
72
- "@micromag/element-footer": "^0.4.98",
73
- "@micromag/element-header": "^0.4.98",
74
- "@micromag/element-heading": "^0.4.98",
75
- "@micromag/element-image": "^0.4.98",
76
- "@micromag/element-layout": "^0.4.98",
77
- "@micromag/element-text": "^0.4.98",
78
- "@micromag/element-urbania-author": "^0.4.98",
79
- "@micromag/element-video": "^0.4.98",
80
- "@micromag/element-visual": "^0.4.98",
81
- "@micromag/transforms": "^0.4.98",
63
+ "@micromag/core": "^0.4.109",
64
+ "@micromag/element-background": "^0.4.109",
65
+ "@micromag/element-button": "^0.4.109",
66
+ "@micromag/element-closed-captions": "^0.4.109",
67
+ "@micromag/element-container": "^0.4.109",
68
+ "@micromag/element-footer": "^0.4.109",
69
+ "@micromag/element-header": "^0.4.109",
70
+ "@micromag/element-heading": "^0.4.109",
71
+ "@micromag/element-image": "^0.4.109",
72
+ "@micromag/element-layout": "^0.4.109",
73
+ "@micromag/element-text": "^0.4.109",
74
+ "@micromag/element-urbania-author": "^0.4.109",
75
+ "@micromag/element-video": "^0.4.109",
76
+ "@micromag/element-visual": "^0.4.109",
77
+ "@micromag/transforms": "^0.4.109",
82
78
  "@react-spring/web": "^10.0.3",
83
79
  "@use-gesture/react": "^10.3.0",
84
80
  "classnames": "^2.2.6",
85
- "lodash": "^4.17.23",
81
+ "lodash-es": "^4.17.23",
86
82
  "query-string": "^9.1.1",
87
83
  "react-intl": "^8.1.3 || ^10.0.0",
88
84
  "uuid": "^9.0.0"
89
85
  },
86
+ "devDependencies": {
87
+ "react": "^19.0.0",
88
+ "react-dom": "^19.0.0"
89
+ },
90
+ "peerDependencies": {
91
+ "react": "^19.0.0",
92
+ "react-dom": "^19.0.0"
93
+ },
90
94
  "publishConfig": {
91
95
  "access": "public",
92
96
  "registry": "https://registry.npmjs.org/"
93
97
  },
94
- "gitHead": "5b90ff3e707ec3b96a1c6ae07812ce29a105d1c8",
95
- "types": "es/index.d.ts"
98
+ "gitHead": "0eb452de33304b91642b48c12088758a8f0573a5"
96
99
  }