@financial-times/dotcom-ui-shell 11.2.1 → 11.3.1-beta.0
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/dist/node/components/LinkedData.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -12
- package/src/__test__/components/ResourceHints.test.tsx +1 -1
- package/src/__test__/components/__snapshots__/DocumentHead.test.tsx.snap +1 -1
- package/src/__test__/components/__snapshots__/LinkedData.test.tsx.snap +2 -2
- package/src/__test__/components/__snapshots__/ResourceHints.test.tsx.snap +1 -1
- package/src/__test__/components/__snapshots__/Shell.test.tsx.snap +5 -5
- package/src/__test__/lib/getResourceType.spec.ts +1 -1
- package/src/components/LinkedData.tsx +1 -1
|
@@ -15,7 +15,7 @@ const LinkedData = ({ jsonLd }) => (react_1.default.createElement(react_1.defaul
|
|
|
15
15
|
'@type': 'WebSite',
|
|
16
16
|
name: 'Financial Times',
|
|
17
17
|
alternateName: 'FT.com',
|
|
18
|
-
url: '
|
|
18
|
+
url: 'https://www.ft.com/'
|
|
19
19
|
})
|
|
20
20
|
} })));
|
|
21
21
|
LinkedData.defaultProps = {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"affectsGlobalScope": false
|
|
188
188
|
},
|
|
189
189
|
"../src/components/LinkedData.tsx": {
|
|
190
|
-
"version": "
|
|
190
|
+
"version": "b955c2a483efb47f38fe802665a31fabfb61a3933be99f110757c87de5c7b4e0",
|
|
191
191
|
"signature": "4ce36947f052c63ed207b62dcce0737722096ffa85d77f71279b4a774881b0e3",
|
|
192
192
|
"affectsGlobalScope": false
|
|
193
193
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/dotcom-ui-shell",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.1-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "component.js",
|
|
6
6
|
"browser": "browser.js",
|
|
@@ -13,17 +13,16 @@
|
|
|
13
13
|
"clean:install": "npm run clean && npm i",
|
|
14
14
|
"build:node": "tsc",
|
|
15
15
|
"build": "npm run build:node",
|
|
16
|
-
"dev": "npm run build:node -- --watch"
|
|
17
|
-
"preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
|
|
16
|
+
"dev": "npm run build:node -- --watch"
|
|
18
17
|
},
|
|
19
18
|
"keywords": [],
|
|
20
19
|
"author": "",
|
|
21
20
|
"license": "MIT",
|
|
22
21
|
"dependencies": {
|
|
23
|
-
"@financial-times/dotcom-ui-app-context": "^11.
|
|
24
|
-
"@financial-times/dotcom-ui-base-styles": "^11.
|
|
25
|
-
"@financial-times/dotcom-ui-bootstrap": "^11.
|
|
26
|
-
"@financial-times/dotcom-ui-flags": "^11.
|
|
22
|
+
"@financial-times/dotcom-ui-app-context": "^11.3.1-beta.0",
|
|
23
|
+
"@financial-times/dotcom-ui-base-styles": "^11.3.1-beta.0",
|
|
24
|
+
"@financial-times/dotcom-ui-bootstrap": "^11.3.1-beta.0",
|
|
25
|
+
"@financial-times/dotcom-ui-flags": "^11.3.1-beta.0",
|
|
27
26
|
"mime-types": "^2.1.26"
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
@@ -31,8 +30,7 @@
|
|
|
31
30
|
"react-dom": "17.x || 18.x"
|
|
32
31
|
},
|
|
33
32
|
"engines": {
|
|
34
|
-
"node": "18.x || 20.x"
|
|
35
|
-
"npm": "8.x || 9.x || 10.x"
|
|
33
|
+
"node": "18.x || 20.x || 22.x"
|
|
36
34
|
},
|
|
37
35
|
"files": [
|
|
38
36
|
"dist/",
|
|
@@ -49,8 +47,5 @@
|
|
|
49
47
|
"homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-ui-shell",
|
|
50
48
|
"volta": {
|
|
51
49
|
"extends": "../../package.json"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"check-engine": "^1.10.1"
|
|
55
50
|
}
|
|
56
51
|
}
|
|
@@ -8,7 +8,7 @@ describe('dotcom-ui-shell/src/components/ResourceHints', () => {
|
|
|
8
8
|
'www.example.com/assets/style.css',
|
|
9
9
|
'www.example.com/images/graphic.svg#icon',
|
|
10
10
|
'/assets/public/style.as83hd99.css',
|
|
11
|
-
'/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Bold&system_code=
|
|
11
|
+
'/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Bold&system_code=page-kit&version=1.12'
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
const tree = renderer.create(<Subject resourceHints={fixture} />).toJSON()
|
|
@@ -40,7 +40,7 @@ Array [
|
|
|
40
40
|
<script
|
|
41
41
|
dangerouslySetInnerHTML={
|
|
42
42
|
Object {
|
|
43
|
-
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"
|
|
43
|
+
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"https://www.ft.com/\\"}",
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
type="application/ld+json"
|
|
@@ -4,7 +4,7 @@ exports[`dotcom-ui-shell/src/components/LinkedData renders the base site schema
|
|
|
4
4
|
<script
|
|
5
5
|
dangerouslySetInnerHTML={
|
|
6
6
|
Object {
|
|
7
|
-
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"
|
|
7
|
+
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"https://www.ft.com/\\"}",
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
type="application/ld+json"
|
|
@@ -32,7 +32,7 @@ Array [
|
|
|
32
32
|
<script
|
|
33
33
|
dangerouslySetInnerHTML={
|
|
34
34
|
Object {
|
|
35
|
-
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"
|
|
35
|
+
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"https://www.ft.com/\\"}",
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
type="application/ld+json"
|
|
@@ -40,7 +40,7 @@ Array [
|
|
|
40
40
|
<link
|
|
41
41
|
as="font"
|
|
42
42
|
crossOrigin="anonymous"
|
|
43
|
-
href="/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Bold&system_code=
|
|
43
|
+
href="/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Bold&system_code=page-kit&version=1.12"
|
|
44
44
|
rel="preload"
|
|
45
45
|
type="font/woff2"
|
|
46
46
|
/>,
|
|
@@ -39,7 +39,7 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
|
|
|
39
39
|
<script
|
|
40
40
|
dangerouslySetInnerHTML={
|
|
41
41
|
Object {
|
|
42
|
-
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"
|
|
42
|
+
"__html": "{\\"@context\\":\\"http://schema.org\\",\\"@type\\":\\"WebSite\\",\\"name\\":\\"Financial Times\\",\\"alternateName\\":\\"FT.com\\",\\"url\\":\\"https://www.ft.com/\\"}",
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
type="application/ld+json"
|
|
@@ -102,28 +102,28 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
|
|
|
102
102
|
<link
|
|
103
103
|
as="font"
|
|
104
104
|
crossOrigin="anonymous"
|
|
105
|
-
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=MetricWeb-Regular&system_code=
|
|
105
|
+
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=MetricWeb-Regular&system_code=page-kit&version=1.12"
|
|
106
106
|
rel="preload"
|
|
107
107
|
type="font/woff2"
|
|
108
108
|
/>
|
|
109
109
|
<link
|
|
110
110
|
as="font"
|
|
111
111
|
crossOrigin="anonymous"
|
|
112
|
-
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=MetricWeb-Semibold&system_code=
|
|
112
|
+
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=MetricWeb-Semibold&system_code=page-kit&version=1.12"
|
|
113
113
|
rel="preload"
|
|
114
114
|
type="font/woff2"
|
|
115
115
|
/>
|
|
116
116
|
<link
|
|
117
117
|
as="font"
|
|
118
118
|
crossOrigin="anonymous"
|
|
119
|
-
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Regular&system_code=
|
|
119
|
+
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Regular&system_code=page-kit&version=1.12"
|
|
120
120
|
rel="preload"
|
|
121
121
|
type="font/woff2"
|
|
122
122
|
/>
|
|
123
123
|
<link
|
|
124
124
|
as="font"
|
|
125
125
|
crossOrigin="anonymous"
|
|
126
|
-
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Bold&system_code=
|
|
126
|
+
href="https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=FinancierDisplayWeb-Bold&system_code=page-kit&version=1.12"
|
|
127
127
|
rel="preload"
|
|
128
128
|
type="font/woff2"
|
|
129
129
|
/>
|
|
@@ -7,7 +7,7 @@ describe('dotcom-ui-shell/src/lib/getResourceType', () => {
|
|
|
7
7
|
expect(subject('image.png')).toEqual('image')
|
|
8
8
|
expect(
|
|
9
9
|
subject(
|
|
10
|
-
'https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=MetricWeb-Regular&system_code=
|
|
10
|
+
'https://www.ft.com/__origami/service/build/v3/font?font_format=woff2&font_name=MetricWeb-Regular&system_code=page-kit&version=1.12'
|
|
11
11
|
)
|
|
12
12
|
).toEqual('font')
|
|
13
13
|
})
|