@times-components/save-and-share-bar 0.9.71 → 0.9.75

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 CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.9.75](https://github.com/newsuk/times-components/compare/@times-components/save-and-share-bar@0.9.74...@times-components/save-and-share-bar@0.9.75) (2021-12-02)
7
+
8
+ **Note:** Version bump only for package @times-components/save-and-share-bar
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.9.74](https://github.com/newsuk/times-components/compare/@times-components/save-and-share-bar@0.9.73...@times-components/save-and-share-bar@0.9.74) (2021-11-25)
15
+
16
+ **Note:** Version bump only for package @times-components/save-and-share-bar
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.9.73](https://github.com/newsuk/times-components/compare/@times-components/save-and-share-bar@0.9.72...@times-components/save-and-share-bar@0.9.73) (2021-11-16)
23
+
24
+ **Note:** Version bump only for package @times-components/save-and-share-bar
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.9.72](https://github.com/newsuk/times-components/compare/@times-components/save-and-share-bar@0.9.71...@times-components/save-and-share-bar@0.9.72) (2021-10-28)
31
+
32
+ **Note:** Version bump only for package @times-components/save-and-share-bar
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.9.71](https://github.com/newsuk/times-components/compare/@times-components/save-and-share-bar@0.9.70...@times-components/save-and-share-bar@0.9.71) (2021-09-24)
7
39
 
8
40
  **Note:** Version bump only for package @times-components/save-and-share-bar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/save-and-share-bar",
3
- "version": "0.9.71",
3
+ "version": "0.9.75",
4
4
  "description": "Save and Share bar",
5
5
  "main": "dist/save-and-share-bar",
6
6
  "dev": "src/save-and-share-bar",
@@ -35,26 +35,26 @@
35
35
  "homepage": "https://github.com/newsuk/times-components#readme",
36
36
  "dependencies": {
37
37
  "@storybook/addon-knobs": "5.3.18",
38
- "@times-components/context": "1.2.26",
39
- "@times-components/icons": "2.16.3",
40
- "@times-components/link": "3.6.44",
41
- "@times-components/message-bar": "0.3.67",
42
- "@times-components/provider-queries": "2.15.1",
43
- "@times-components/save-star-web": "0.6.67",
44
- "@times-components/styleguide": "3.38.22",
45
- "@times-components/tracking": "2.8.5",
46
- "@times-components/user-state": "0.1.63",
47
- "@times-components/utils": "6.5.6",
38
+ "@times-components/context": "1.2.28",
39
+ "@times-components/icons": "2.16.5",
40
+ "@times-components/link": "3.6.46",
41
+ "@times-components/message-bar": "0.3.69",
42
+ "@times-components/provider-queries": "2.15.3",
43
+ "@times-components/save-star-web": "0.6.71",
44
+ "@times-components/styleguide": "3.38.24",
45
+ "@times-components/tracking": "2.9.2",
46
+ "@times-components/user-state": "0.1.65",
47
+ "@times-components/utils": "6.5.8",
48
48
  "prop-types": "15.7.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "7.4.4",
52
- "@times-components/eslint-config-thetimes": "0.8.17",
53
- "@times-components/jest-configurator": "2.7.2",
54
- "@times-components/jest-serializer": "3.2.26",
55
- "@times-components/provider-test-tools": "1.19.10",
56
- "@times-components/storybook": "4.1.66",
57
- "@times-components/webpack-configurator": "2.0.28",
52
+ "@times-components/eslint-config-thetimes": "0.8.18",
53
+ "@times-components/jest-configurator": "2.7.4",
54
+ "@times-components/jest-serializer": "3.2.28",
55
+ "@times-components/provider-test-tools": "1.20.2",
56
+ "@times-components/storybook": "4.1.68",
57
+ "@times-components/webpack-configurator": "2.0.29",
58
58
  "babel-jest": "24.8.0",
59
59
  "eslint": "5.9.0",
60
60
  "jest": "24.8.0",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "456079ed3a4253154eedd02eb70eac079b965f93"
82
+ "gitHead": "eec604346ec793e27892f0522ab81cafde40fd9e"
83
83
  }
@@ -1,52 +0,0 @@
1
- import React from "react";
2
- import { boolean } from "@storybook/addon-knobs/react";
3
- import { scales } from "@times-components/styleguide";
4
- import { MessageManager, MessageContext } from "@times-components/message-bar";
5
- import { MockBookmarksProvider } from "@times-components/provider-test-tools";
6
- import SaveAndShareBar from "./src/save-and-share-bar";
7
-
8
- const articleId = "5504b5a8-b1c0-11e8-a553-a0ee9be48bc6";
9
-
10
- const mockGetTokenisedArticleUrl = id =>
11
- new Promise(resolve =>
12
- setTimeout(
13
- () =>
14
- resolve({
15
- data: {
16
- article: {
17
- tokenisedUrl: `https://www.thetimes.co.uk/article/${id}?shareToken=333310c5af52a3c6e467e3b15516c950`
18
- }
19
- }
20
- }),
21
- 1000
22
- )
23
- );
24
-
25
- export default {
26
- children: [
27
- {
28
- component: () => (
29
- <MockBookmarksProvider delay={1000} articleId={articleId}>
30
- <MessageManager animate delay={3000} scale={scales.medium}>
31
- <MessageContext.Consumer>
32
- {({ showMessage }) => (
33
- <SaveAndShareBar
34
- articleId={articleId}
35
- articleHeadline="test-headline"
36
- articleUrl="https://www.thetimes.co.uk/"
37
- onCopyLink={() => showMessage("Article link copied")}
38
- getTokenisedShareUrl={mockGetTokenisedArticleUrl}
39
- savingEnabled={boolean("Is Saving Enabled", true)}
40
- sharingEnabled={boolean("Is Sharing Enabled", true)}
41
- />
42
- )}
43
- </MessageContext.Consumer>
44
- </MessageManager>
45
- </MockBookmarksProvider>
46
- ),
47
- name: "Save and Share bar",
48
- type: "story"
49
- }
50
- ],
51
- name: "Composed/Save and Share bar"
52
- };