@financial-times/o-teaser 6.0.3 → 6.2.2

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,8 @@
1
+ printWidth = 80
2
+ trailingComma = "es5"
3
+ semi = true
4
+ singleQuote = true
5
+ useTabs = true
6
+ bracketSpacing = false
7
+ jsxBracketSameLine = true
8
+ arrowParens = "avoid"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ### [6.2.2](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.2.1...o-teaser-v6.2.2) (2022-01-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * expand all uses of docs to documentation ([26f8d9d](https://www.github.com/Financial-Times/origami/commit/26f8d9d8cbbe3e78902d8c3951b37e08150a77bd))
9
+
10
+ ### [6.2.1](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.2.0...o-teaser-v6.2.1) (2021-12-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * only output the o-teaser__tag link if a tag exists ([1ffadca](https://www.github.com/Financial-Times/origami/commit/1ffadca7d12f753cf949a935ced0ee0969703446))
16
+ * run o-date in the demos to give the teasers a relative time ([9709af5](https://www.github.com/Financial-Times/origami/commit/9709af5472ea919c89a9311d4efe6183430e8864))
17
+
18
+ ## [6.2.0](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.1.0...o-teaser-v6.2.0) (2021-11-24)
19
+
20
+
21
+ ### Features
22
+
23
+ * allow npm 8 in engines config ([eeb1cae](https://www.github.com/Financial-Times/origami/commit/eeb1cae6e7f0379e647f2b41240b1f294997d528))
24
+
25
+ ## [6.1.0](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.0.3...o-teaser-v6.1.0) (2021-11-08)
26
+
27
+
28
+ ### Features
29
+
30
+ * Rename master brand in component origami.json ([f642faf](https://www.github.com/Financial-Times/origami/commit/f642faf0574d84ea8185b56e6090c8015def27e6))
31
+
3
32
  ### [6.0.3](https://www.github.com/Financial-Times/origami/compare/o-teaser-v6.0.2...o-teaser-v6.0.3) (2021-09-21)
4
33
 
5
34
 
package/MIGRATION.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  v6 drops support for Bower and version 2 of the Origami Build Service.
6
6
 
7
- Follow [the migration guide on the Origami website](https://origami.ft.com/docs/tutorials/bower-to-npm/).
7
+ Follow [the migration guide on the Origami website](https://origami.ft.com/documentation/tutorials/bower-to-npm/).
8
8
 
9
9
  ## Migrating from v4 to v5
10
10
 
package/README.md CHANGED
@@ -12,7 +12,7 @@ This component is for displaying teasers which link through to articles.
12
12
 
13
13
  ## Usage
14
14
 
15
- Check out [how to include Origami components in your project](https://origami.ft.com/docs/components/#including-origami-components-in-your-project) to get started with `o-teaser`.
15
+ Check out [how to include Origami components in your project](https://origami.ft.com/documentation/components/#including-origami-components-in-your-project) to get started with `o-teaser`.
16
16
 
17
17
  ## Development
18
18
 
@@ -179,14 +179,11 @@ State | Major Version | Last Minor Release | Migration guide |
179
179
  ╳ deprecated | 2 | 2.5 | [migrate to v2](MIGRATION.md#migrating-from-v1-to-v2) |
180
180
  ╳ deprecated | 1 | 1.9 | - |
181
181
 
182
- ----
183
-
184
182
  ## Contact
185
183
 
186
184
  If you have any questions or comments about this component, or need help using it, please either [raise an issue](https://github.com/Financial-Times/o-teaser/issues), visit [#origami-support](https://financialtimes.slack.com/messages/origami-support/) or email [Origami Support](mailto:origami-support@ft.com).
187
185
 
188
-
189
- ----
186
+ ***
190
187
 
191
188
  ## Licence
192
189
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="o-teaser__meta">
7
7
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
8
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
8
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
9
9
  {{#article-duration}}
10
10
  <time class="o-teaser__tag-suffix" datetime="PT4M07S">4 mins</time>
11
11
  {{/article-duration}}
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="o-teaser__meta">
7
7
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
8
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
8
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
9
9
  {{#article-duration}}
10
10
  <time class="o-teaser__tag-suffix" datetime="PT4M07S">4 mins</time>
11
11
  {{/article-duration}}
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="o-teaser__meta">
7
7
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
8
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
8
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
9
9
  {{#article-duration}}
10
10
  <time class="o-teaser__tag-suffix" datetime="PT3M07S">3:07min</time>
11
11
  {{/article-duration}}
@@ -3,7 +3,7 @@
3
3
  <div class="o-teaser__content">
4
4
  <div class="o-teaser__meta">
5
5
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
6
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
6
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
7
7
  {{#article-duration}}
8
8
  <time class="o-teaser__tag-suffix" datetime="PT3M07S">3:07min</time>
9
9
  {{/article-duration}}
@@ -4,7 +4,7 @@
4
4
  <div class="o-teaser__content">
5
5
  <div class="o-teaser__meta">
6
6
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
7
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
7
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
8
8
  {{#article-duration}}
9
9
  <time class="o-teaser__tag-suffix" datetime="PT3M07S">3:07min</time>
10
10
  {{/article-duration}}
@@ -5,7 +5,7 @@
5
5
  <div class="o-teaser__meta">
6
6
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
7
7
  {{#article-genre}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-genre}}
8
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
8
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
9
9
  </div>
10
10
 
11
11
  <h2 class="o-teaser__heading">
@@ -4,7 +4,7 @@
4
4
  <div class="o-teaser__content">
5
5
  <div class="o-teaser__meta">
6
6
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
7
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
7
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
8
8
  {{#article-duration}}
9
9
  <time class="o-teaser__tag-suffix" datetime="PT3M07S">3:07min</time>
10
10
  {{/article-duration}}
@@ -4,7 +4,7 @@
4
4
  <div class="o-teaser__content">
5
5
  <div class="o-teaser__meta">
6
6
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
7
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
7
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
8
8
  {{#article-duration}}
9
9
  <time class="o-teaser__tag-suffix" datetime="PT3M07S">3:07min</time>
10
10
  {{/article-duration}}
@@ -4,7 +4,7 @@
4
4
  <div class="o-teaser__content">
5
5
  <div class="o-teaser__meta">
6
6
  {{#article-tag-prefix}}<span class="o-teaser__tag-prefix">{{.}}</span>{{/article-tag-prefix}}
7
- <a href="#" class="o-teaser__tag">{{article-tag}}</a>
7
+ {{#article-tag}}<a href="#" class="o-teaser__tag">{{article-tag}}</a>{{/article-tag}}
8
8
  {{#article-duration}}
9
9
  <time class="o-teaser__tag-suffix" datetime="PT3M07S">3:07min</time>
10
10
  {{/article-duration}}
package/demos/src/demo.js CHANGED
@@ -1,5 +1,8 @@
1
+ import ODate from '@financial-times/o-date';
2
+
1
3
  function initDemos() {
2
4
  document.addEventListener('DOMContentLoaded', function() {
5
+ ODate.init();
3
6
  document.dispatchEvent(new CustomEvent('o.DOMContentLoaded'));
4
7
  });
5
8
  }
package/origami.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "origamiType": "component",
3
3
  "origamiVersion": "2.0",
4
4
  "brands": [
5
- "master"
5
+ "core"
6
6
  ],
7
7
  "support": "https://github.com/Financial-Times/origami/issues/new?labels=o-teaser,components",
8
8
  "supportContact": {
@@ -14,11 +14,7 @@
14
14
  "demosDefaults": {
15
15
  "sass": "demos/src/demo.scss",
16
16
  "js": "demos/src/demo.js",
17
- "documentClasses": "",
18
- "dependencies": [
19
- "o-date@^5.0.0",
20
- "o-normalise@^3.0.0"
21
- ]
17
+ "documentClasses": ""
22
18
  },
23
19
  "demos": [
24
20
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/o-teaser",
3
- "version": "6.0.3",
3
+ "version": "6.2.2",
4
4
  "description": "Provides styling for teaser elements, which contain information about an article and link through to it",
5
5
  "keywords": [
6
6
  "article",
@@ -17,22 +17,30 @@
17
17
  "type": "module",
18
18
  "scripts": {
19
19
  "start": "npx serve ./demos/local",
20
- "build": "npm_config_yes=true npx \"origami-build-tools@11\" install && npm_config_yes=true npx \"origami-build-tools@11\" demo"
20
+ "build": "bash ../../scripts/component/build.bash",
21
+ "test": "bash ../../scripts/component/test.bash",
22
+ "lint": "bash ../../scripts/component/lint.bash"
21
23
  },
22
24
  "peerDependencies": {
23
25
  "@financial-times/o-colors": "^6.0.1",
24
26
  "@financial-times/o-grid": "^6.0.0",
25
27
  "@financial-times/o-icons": "^7.0.1",
26
28
  "@financial-times/o-labels": "^6.0.0",
27
- "@financial-times/o-normalise": "^3.0.0",
29
+ "@financial-times/o-normalise": "^3.2.0",
28
30
  "@financial-times/o-spacing": "^3.0.0",
29
31
  "@financial-times/o-typography": "^7.0.1"
30
32
  },
33
+ "devDependencies": {
34
+ "@financial-times/o-date": "^5.2.0",
35
+ "@financial-times/o-normalise": "^3.2.0"
36
+ },
31
37
  "engines": {
32
- "npm": "^7"
38
+ "npm": "^7 || ^8"
33
39
  },
34
40
  "volta": {
35
41
  "node": "14.16.1",
36
42
  "npm": "7.11.1"
37
- }
43
+ },
44
+ "percy": true,
45
+ "private": false
38
46
  }
package/app.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "name": "o-teaser",
3
- "scripts": {},
4
- "env": {},
5
- "formation": {},
6
- "addons": [],
7
- "buildpacks": [
8
- {
9
- "url": "heroku/nodejs"
10
- }
11
- ]
12
- }