@visitscotland/component-library 3.0.13 → 3.0.15
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 +1842 -0
- package/dist/client/manifest.json +18 -18
- package/dist/client/scripts/23ef0151265f281015f8.js +1 -0
- package/dist/client/scripts/40916c320a726e9d566d.js +1 -0
- package/dist/client/scripts/701adfa121f6b1f8822f.js +1 -0
- package/dist/client/scripts/{3f076d8e7a9978382389.js → 90e733241a352f54cc9c.js} +1 -1
- package/dist/client/styles/{9cb341082008e923f222.css → 23ef0151265f281015f8.css} +1 -1
- package/dist/client/styles/40916c320a726e9d566d.css +1 -0
- package/dist/client/styles/{6b89e1ea236b40bbcb29.css → 701adfa121f6b1f8822f.css} +1 -1
- package/dist/client/styles/{3f076d8e7a9978382389.css → 90e733241a352f54cc9c.css} +1 -1
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +176 -176
- package/dist/components/vs-component-library.mjs +8270 -8215
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{0e23e43e17837f8b10ba.css → f04e63c81ef3b8a3a7c0.css} +4 -4
- package/package.json +230 -230
- package/dist/client/scripts/6b89e1ea236b40bbcb29.js +0 -1
- package/dist/client/scripts/9cb341082008e923f222.js +0 -1
- package/dist/client/scripts/c95930ffa2e73a2cc9f9.js +0 -1
- package/dist/client/styles/c95930ffa2e73a2cc9f9.css +0 -1
package/package.json
CHANGED
|
@@ -1,230 +1,230 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@visitscotland/component-library",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "VisitScotland Component Library",
|
|
5
|
-
"author": "VisitScotland",
|
|
6
|
-
"homepage": "https://github.com/visitscotland/vs-component-library#readme",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"require": "./dist/ssr/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./components": {
|
|
15
|
-
"import": "./dist/components/vs-component-library.mjs",
|
|
16
|
-
"require": "./dist/components/vs-component-library.umd.js",
|
|
17
|
-
"types": "./dist/components/component-entry.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./maps": {
|
|
20
|
-
"import": "./dist/components/maps.mjs"
|
|
21
|
-
},
|
|
22
|
-
"./components/style.css": "./dist/components/vs-component-library.css",
|
|
23
|
-
"./components/fonts.css": "./dist/components/fonts.css",
|
|
24
|
-
"./components/icons.css": "./dist/components/icons.css"
|
|
25
|
-
},
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"scripts": {
|
|
28
|
-
"storybook": "yarn theo && storybook dev -p 6006",
|
|
29
|
-
"build-storybook": "yarn theo && storybook build",
|
|
30
|
-
"build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
|
|
31
|
-
"build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
|
|
32
|
-
"build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
|
|
33
|
-
"build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
|
|
34
|
-
"build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
|
|
35
|
-
"build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
|
|
36
|
-
"build:vite": "yarn theo && vite build",
|
|
37
|
-
"build:vite-no-theo": "vite build",
|
|
38
|
-
"test": "yarn theo && jest --config ./test/unit/jest.conf.js",
|
|
39
|
-
"test:no-theo": "jest --config ./test/unit/jest.conf.js",
|
|
40
|
-
"lint": "eslint",
|
|
41
|
-
"lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
|
|
42
|
-
"lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
|
|
43
|
-
"lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
|
|
44
|
-
"lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
|
|
45
|
-
"lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
|
|
46
|
-
"prettier": "prettier . --list-different",
|
|
47
|
-
"theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
|
|
48
|
-
"third-party": "webpack --config ./build/third-party.webpack.conf.js",
|
|
49
|
-
"commit": "cz",
|
|
50
|
-
"prepare": "husky install",
|
|
51
|
-
"prepack": "yarn build",
|
|
52
|
-
"release:patch": "standard-version --release-as patch",
|
|
53
|
-
"release:minor": "standard-version --release-as minor",
|
|
54
|
-
"release:major": "standard-version --release-as major"
|
|
55
|
-
},
|
|
56
|
-
"lint-staged": {
|
|
57
|
-
"*.{js,vue,ts}": "eslint"
|
|
58
|
-
},
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "https://github.com/visitscotland/vs-component-library.git"
|
|
62
|
-
},
|
|
63
|
-
"keywords": [
|
|
64
|
-
"vue.js",
|
|
65
|
-
"visit scotland",
|
|
66
|
-
"vue",
|
|
67
|
-
"design system",
|
|
68
|
-
"design",
|
|
69
|
-
"system"
|
|
70
|
-
],
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@babel/core": "^7.23.2",
|
|
73
|
-
"@babel/eslint-parser": "^7.21.8",
|
|
74
|
-
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
75
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
76
|
-
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
77
|
-
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
78
|
-
"@babel/polyfill": "^7.10.4",
|
|
79
|
-
"@babel/preset-env": "^7.23.2",
|
|
80
|
-
"@babel/preset-react": "7.12.13",
|
|
81
|
-
"@chromatic-com/storybook": "^1.3.4",
|
|
82
|
-
"@originjs/vite-plugin-require-context": "^1.0.9",
|
|
83
|
-
"@rushstack/eslint-patch": "^1.3.0",
|
|
84
|
-
"@storybook/addon-a11y": "^8.0.10",
|
|
85
|
-
"@storybook/addon-essentials": "^8.0.10",
|
|
86
|
-
"@storybook/addon-interactions": "^8.0.10",
|
|
87
|
-
"@storybook/addon-links": "^8.0.10",
|
|
88
|
-
"@storybook/blocks": "8.0.10",
|
|
89
|
-
"@storybook/vue3": "^8.0.10",
|
|
90
|
-
"@storybook/vue3-vite": "^8.0.10",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
92
|
-
"@typescript-eslint/parser": "^5.59.8",
|
|
93
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
94
|
-
"@vue/eslint-config-airbnb": "^7.0.0",
|
|
95
|
-
"@vue/test-utils": "^2.3.2",
|
|
96
|
-
"@vue/vue3-jest": "^29.2.4",
|
|
97
|
-
"babel-jest": "^29.5.0",
|
|
98
|
-
"babel-loader": "^9.1.2",
|
|
99
|
-
"babel-plugin-macros": "^2.4.2",
|
|
100
|
-
"bootstrap": "^5.3.2",
|
|
101
|
-
"chromatic": "^6.17.3",
|
|
102
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
103
|
-
"commitizen": "^4.3.0",
|
|
104
|
-
"cross-env": "^7.0.3",
|
|
105
|
-
"css-loader": "^6.7.3",
|
|
106
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
107
|
-
"dotenv-webpack": "^8.0.1",
|
|
108
|
-
"eslint": "^8.2.0",
|
|
109
|
-
"eslint-import-resolver-webpack": "^0.13.2",
|
|
110
|
-
"eslint-plugin-import": "^2.25.2",
|
|
111
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
-
"eslint-plugin-vue": "^9.11.1",
|
|
113
|
-
"eslint-webpack-plugin": "^4.0.1",
|
|
114
|
-
"file-loader": "^6.2.0",
|
|
115
|
-
"husky": "^8.0.3",
|
|
116
|
-
"jest": "^29.5.0",
|
|
117
|
-
"jest-axe": "^8.0.0",
|
|
118
|
-
"jest-environment-jsdom": "^29.5.0",
|
|
119
|
-
"jest-serializer-vue": "^3.1.0",
|
|
120
|
-
"lint-staged": "^15.2.2",
|
|
121
|
-
"mini-css-extract-plugin": "^2.7.5",
|
|
122
|
-
"moxios": "^0.4.0",
|
|
123
|
-
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
124
|
-
"node-sass": "^8.0.0",
|
|
125
|
-
"npm-run-all": "^4.1.5",
|
|
126
|
-
"optimist": "^0.6.1",
|
|
127
|
-
"path": "^0.12.7",
|
|
128
|
-
"postcss-safe-parser": "^6.0.0",
|
|
129
|
-
"prettier": "^3.2.5",
|
|
130
|
-
"require-context.macro": "^1.2.2",
|
|
131
|
-
"sass": "^1.62.1",
|
|
132
|
-
"sass-loader": "^13.2.2",
|
|
133
|
-
"speed-measure-webpack-plugin": "^1.5.0",
|
|
134
|
-
"standard-version": "^9.5.0",
|
|
135
|
-
"storybook": "^8.0.10",
|
|
136
|
-
"storybook-addon-datalayer-watcher": "^1.0.2",
|
|
137
|
-
"storybook-addon-mock": "^5.0.0",
|
|
138
|
-
"style-loader": "^3.3.2",
|
|
139
|
-
"svgo-loader": "^4.0.0",
|
|
140
|
-
"theo": "^8.1.5",
|
|
141
|
-
"time-analytics-webpack-plugin": "^0.1.20",
|
|
142
|
-
"ts-jest": "^29.1.0",
|
|
143
|
-
"ts-loader": "^9.4.3",
|
|
144
|
-
"typescript": "^5.0.4",
|
|
145
|
-
"upgrade": "^1.1.0",
|
|
146
|
-
"vite": "^5.2.10",
|
|
147
|
-
"vite-plugin-dts": "^3.7.2",
|
|
148
|
-
"vite-plugin-turbosnap": "^1.0.2",
|
|
149
|
-
"vue": "^3.4.19",
|
|
150
|
-
"vue-jest": "^5.0.0-alpha.10",
|
|
151
|
-
"vue-loader": "^17.1.0",
|
|
152
|
-
"vue-style-loader": "^4.1.3",
|
|
153
|
-
"webpack": "^5.81.0",
|
|
154
|
-
"webpack-cli": "^5.0.2",
|
|
155
|
-
"webpack-manifest-plugin": "^5.0.0",
|
|
156
|
-
"webpack-merge": "^5.1.4",
|
|
157
|
-
"webpack-node-externals": "^3.0.0"
|
|
158
|
-
},
|
|
159
|
-
"dependencies": {
|
|
160
|
-
"@mapbox/geojson-extent": "^1.0.1",
|
|
161
|
-
"@pinia/testing": "^0.1.3",
|
|
162
|
-
"@storybook/addon-a11y": "^7.5.3",
|
|
163
|
-
"@storybook/test": "^8.0.10",
|
|
164
|
-
"@vuelidate/core": "^2.0.2",
|
|
165
|
-
"@vuelidate/validators": "^2.0.2",
|
|
166
|
-
"axios": "^1.4.0",
|
|
167
|
-
"bootstrap-vue-next": "^0.17.0",
|
|
168
|
-
"glob": "^8.1.0",
|
|
169
|
-
"lodash": "^4.17.21",
|
|
170
|
-
"mapbox-gl": "^1.11.1",
|
|
171
|
-
"mitt": "^3.0.0",
|
|
172
|
-
"pinia": "^2.1.3",
|
|
173
|
-
"vite": "^5.1.3",
|
|
174
|
-
"vue": "^3.3.4",
|
|
175
|
-
"vue-combo-blocks": "^2.1.1",
|
|
176
|
-
"vue-recaptcha": "^2.0.1",
|
|
177
|
-
"vue-youtube-vue-3": "^1.5.0",
|
|
178
|
-
"vue3-charts": "^1.1.33",
|
|
179
|
-
"vue3-lazy-hydration": "^1.2.1",
|
|
180
|
-
"vue3-simple-typeahead": "^1.0.11",
|
|
181
|
-
"vuelidate": "^0.7.7",
|
|
182
|
-
"vuex": "^4.1.0",
|
|
183
|
-
"webpack-merge": "^5.1.4",
|
|
184
|
-
"webpack-node-externals": "^3.0.0"
|
|
185
|
-
},
|
|
186
|
-
"peerDependencies": {
|
|
187
|
-
"@popperjs/core": "*",
|
|
188
|
-
"postcss": "*"
|
|
189
|
-
},
|
|
190
|
-
"engines": {
|
|
191
|
-
"node": ">= 16.20.0",
|
|
192
|
-
"npm": ">= 6.14.5",
|
|
193
|
-
"yarn": ">= 1.22.4"
|
|
194
|
-
},
|
|
195
|
-
"browserslist": [
|
|
196
|
-
"> 1%",
|
|
197
|
-
"last 2 versions",
|
|
198
|
-
"not Explorer > 0",
|
|
199
|
-
"IE 11",
|
|
200
|
-
"not ExplorerMobile > 0",
|
|
201
|
-
"not BlackBerry > 0",
|
|
202
|
-
"not OperaMini all",
|
|
203
|
-
"not OperaMobile > 0"
|
|
204
|
-
],
|
|
205
|
-
"jest": {
|
|
206
|
-
"testPathIgnorePatterns": [
|
|
207
|
-
".test",
|
|
208
|
-
"node_modules"
|
|
209
|
-
],
|
|
210
|
-
"jest.pathToJest": "node_modules/.bin/jest"
|
|
211
|
-
},
|
|
212
|
-
"config": {
|
|
213
|
-
"commitizen": {
|
|
214
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"bugs": {
|
|
218
|
-
"url": "https://github.com/visitscotland/vs-component-library/issues"
|
|
219
|
-
},
|
|
220
|
-
"resolutions": {
|
|
221
|
-
"minimist": "^0.2.4",
|
|
222
|
-
"json5": "^1.0.2",
|
|
223
|
-
"word-wrap": "^1.2.4",
|
|
224
|
-
"highlight.js": "^10.4.1",
|
|
225
|
-
"semver": "^7.5.4",
|
|
226
|
-
"get-func-name": "^2.0.1",
|
|
227
|
-
"svgo": "3.2.0"
|
|
228
|
-
},
|
|
229
|
-
"packageManager": "yarn@4.3.1"
|
|
230
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@visitscotland/component-library",
|
|
3
|
+
"version": "3.0.15",
|
|
4
|
+
"description": "VisitScotland Component Library",
|
|
5
|
+
"author": "VisitScotland",
|
|
6
|
+
"homepage": "https://github.com/visitscotland/vs-component-library#readme",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./dist/ssr/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./components": {
|
|
15
|
+
"import": "./dist/components/vs-component-library.mjs",
|
|
16
|
+
"require": "./dist/components/vs-component-library.umd.js",
|
|
17
|
+
"types": "./dist/components/component-entry.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./maps": {
|
|
20
|
+
"import": "./dist/components/maps.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./components/style.css": "./dist/components/vs-component-library.css",
|
|
23
|
+
"./components/fonts.css": "./dist/components/fonts.css",
|
|
24
|
+
"./components/icons.css": "./dist/components/icons.css"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"storybook": "yarn theo && storybook dev -p 6006",
|
|
29
|
+
"build-storybook": "yarn theo && storybook build",
|
|
30
|
+
"build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
|
|
31
|
+
"build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
|
|
32
|
+
"build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
|
|
33
|
+
"build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
|
|
34
|
+
"build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
|
|
35
|
+
"build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
|
|
36
|
+
"build:vite": "yarn theo && vite build",
|
|
37
|
+
"build:vite-no-theo": "vite build",
|
|
38
|
+
"test": "yarn theo && jest --config ./test/unit/jest.conf.js",
|
|
39
|
+
"test:no-theo": "jest --config ./test/unit/jest.conf.js",
|
|
40
|
+
"lint": "eslint",
|
|
41
|
+
"lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
|
|
42
|
+
"lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
|
|
43
|
+
"lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
|
|
44
|
+
"lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
|
|
45
|
+
"lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
|
|
46
|
+
"prettier": "prettier . --list-different",
|
|
47
|
+
"theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
|
|
48
|
+
"third-party": "webpack --config ./build/third-party.webpack.conf.js",
|
|
49
|
+
"commit": "cz",
|
|
50
|
+
"prepare": "husky install",
|
|
51
|
+
"prepack": "yarn build",
|
|
52
|
+
"release:patch": "standard-version --release-as patch",
|
|
53
|
+
"release:minor": "standard-version --release-as minor",
|
|
54
|
+
"release:major": "standard-version --release-as major"
|
|
55
|
+
},
|
|
56
|
+
"lint-staged": {
|
|
57
|
+
"*.{js,vue,ts}": "eslint"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/visitscotland/vs-component-library.git"
|
|
62
|
+
},
|
|
63
|
+
"keywords": [
|
|
64
|
+
"vue.js",
|
|
65
|
+
"visit scotland",
|
|
66
|
+
"vue",
|
|
67
|
+
"design system",
|
|
68
|
+
"design",
|
|
69
|
+
"system"
|
|
70
|
+
],
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@babel/core": "^7.23.2",
|
|
73
|
+
"@babel/eslint-parser": "^7.21.8",
|
|
74
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
75
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
76
|
+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
77
|
+
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
78
|
+
"@babel/polyfill": "^7.10.4",
|
|
79
|
+
"@babel/preset-env": "^7.23.2",
|
|
80
|
+
"@babel/preset-react": "7.12.13",
|
|
81
|
+
"@chromatic-com/storybook": "^1.3.4",
|
|
82
|
+
"@originjs/vite-plugin-require-context": "^1.0.9",
|
|
83
|
+
"@rushstack/eslint-patch": "^1.3.0",
|
|
84
|
+
"@storybook/addon-a11y": "^8.0.10",
|
|
85
|
+
"@storybook/addon-essentials": "^8.0.10",
|
|
86
|
+
"@storybook/addon-interactions": "^8.0.10",
|
|
87
|
+
"@storybook/addon-links": "^8.0.10",
|
|
88
|
+
"@storybook/blocks": "8.0.10",
|
|
89
|
+
"@storybook/vue3": "^8.0.10",
|
|
90
|
+
"@storybook/vue3-vite": "^8.0.10",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
92
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
93
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
94
|
+
"@vue/eslint-config-airbnb": "^7.0.0",
|
|
95
|
+
"@vue/test-utils": "^2.3.2",
|
|
96
|
+
"@vue/vue3-jest": "^29.2.4",
|
|
97
|
+
"babel-jest": "^29.5.0",
|
|
98
|
+
"babel-loader": "^9.1.2",
|
|
99
|
+
"babel-plugin-macros": "^2.4.2",
|
|
100
|
+
"bootstrap": "^5.3.2",
|
|
101
|
+
"chromatic": "^6.17.3",
|
|
102
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
103
|
+
"commitizen": "^4.3.0",
|
|
104
|
+
"cross-env": "^7.0.3",
|
|
105
|
+
"css-loader": "^6.7.3",
|
|
106
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
107
|
+
"dotenv-webpack": "^8.0.1",
|
|
108
|
+
"eslint": "^8.2.0",
|
|
109
|
+
"eslint-import-resolver-webpack": "^0.13.2",
|
|
110
|
+
"eslint-plugin-import": "^2.25.2",
|
|
111
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
+
"eslint-plugin-vue": "^9.11.1",
|
|
113
|
+
"eslint-webpack-plugin": "^4.0.1",
|
|
114
|
+
"file-loader": "^6.2.0",
|
|
115
|
+
"husky": "^8.0.3",
|
|
116
|
+
"jest": "^29.5.0",
|
|
117
|
+
"jest-axe": "^8.0.0",
|
|
118
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
119
|
+
"jest-serializer-vue": "^3.1.0",
|
|
120
|
+
"lint-staged": "^15.2.2",
|
|
121
|
+
"mini-css-extract-plugin": "^2.7.5",
|
|
122
|
+
"moxios": "^0.4.0",
|
|
123
|
+
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
124
|
+
"node-sass": "^8.0.0",
|
|
125
|
+
"npm-run-all": "^4.1.5",
|
|
126
|
+
"optimist": "^0.6.1",
|
|
127
|
+
"path": "^0.12.7",
|
|
128
|
+
"postcss-safe-parser": "^6.0.0",
|
|
129
|
+
"prettier": "^3.2.5",
|
|
130
|
+
"require-context.macro": "^1.2.2",
|
|
131
|
+
"sass": "^1.62.1",
|
|
132
|
+
"sass-loader": "^13.2.2",
|
|
133
|
+
"speed-measure-webpack-plugin": "^1.5.0",
|
|
134
|
+
"standard-version": "^9.5.0",
|
|
135
|
+
"storybook": "^8.0.10",
|
|
136
|
+
"storybook-addon-datalayer-watcher": "^1.0.2",
|
|
137
|
+
"storybook-addon-mock": "^5.0.0",
|
|
138
|
+
"style-loader": "^3.3.2",
|
|
139
|
+
"svgo-loader": "^4.0.0",
|
|
140
|
+
"theo": "^8.1.5",
|
|
141
|
+
"time-analytics-webpack-plugin": "^0.1.20",
|
|
142
|
+
"ts-jest": "^29.1.0",
|
|
143
|
+
"ts-loader": "^9.4.3",
|
|
144
|
+
"typescript": "^5.0.4",
|
|
145
|
+
"upgrade": "^1.1.0",
|
|
146
|
+
"vite": "^5.2.10",
|
|
147
|
+
"vite-plugin-dts": "^3.7.2",
|
|
148
|
+
"vite-plugin-turbosnap": "^1.0.2",
|
|
149
|
+
"vue": "^3.4.19",
|
|
150
|
+
"vue-jest": "^5.0.0-alpha.10",
|
|
151
|
+
"vue-loader": "^17.1.0",
|
|
152
|
+
"vue-style-loader": "^4.1.3",
|
|
153
|
+
"webpack": "^5.81.0",
|
|
154
|
+
"webpack-cli": "^5.0.2",
|
|
155
|
+
"webpack-manifest-plugin": "^5.0.0",
|
|
156
|
+
"webpack-merge": "^5.1.4",
|
|
157
|
+
"webpack-node-externals": "^3.0.0"
|
|
158
|
+
},
|
|
159
|
+
"dependencies": {
|
|
160
|
+
"@mapbox/geojson-extent": "^1.0.1",
|
|
161
|
+
"@pinia/testing": "^0.1.3",
|
|
162
|
+
"@storybook/addon-a11y": "^7.5.3",
|
|
163
|
+
"@storybook/test": "^8.0.10",
|
|
164
|
+
"@vuelidate/core": "^2.0.2",
|
|
165
|
+
"@vuelidate/validators": "^2.0.2",
|
|
166
|
+
"axios": "^1.4.0",
|
|
167
|
+
"bootstrap-vue-next": "^0.17.0",
|
|
168
|
+
"glob": "^8.1.0",
|
|
169
|
+
"lodash": "^4.17.21",
|
|
170
|
+
"mapbox-gl": "^1.11.1",
|
|
171
|
+
"mitt": "^3.0.0",
|
|
172
|
+
"pinia": "^2.1.3",
|
|
173
|
+
"vite": "^5.1.3",
|
|
174
|
+
"vue": "^3.3.4",
|
|
175
|
+
"vue-combo-blocks": "^2.1.1",
|
|
176
|
+
"vue-recaptcha": "^2.0.1",
|
|
177
|
+
"vue-youtube-vue-3": "^1.5.0",
|
|
178
|
+
"vue3-charts": "^1.1.33",
|
|
179
|
+
"vue3-lazy-hydration": "^1.2.1",
|
|
180
|
+
"vue3-simple-typeahead": "^1.0.11",
|
|
181
|
+
"vuelidate": "^0.7.7",
|
|
182
|
+
"vuex": "^4.1.0",
|
|
183
|
+
"webpack-merge": "^5.1.4",
|
|
184
|
+
"webpack-node-externals": "^3.0.0"
|
|
185
|
+
},
|
|
186
|
+
"peerDependencies": {
|
|
187
|
+
"@popperjs/core": "*",
|
|
188
|
+
"postcss": "*"
|
|
189
|
+
},
|
|
190
|
+
"engines": {
|
|
191
|
+
"node": ">= 16.20.0",
|
|
192
|
+
"npm": ">= 6.14.5",
|
|
193
|
+
"yarn": ">= 1.22.4"
|
|
194
|
+
},
|
|
195
|
+
"browserslist": [
|
|
196
|
+
"> 1%",
|
|
197
|
+
"last 2 versions",
|
|
198
|
+
"not Explorer > 0",
|
|
199
|
+
"IE 11",
|
|
200
|
+
"not ExplorerMobile > 0",
|
|
201
|
+
"not BlackBerry > 0",
|
|
202
|
+
"not OperaMini all",
|
|
203
|
+
"not OperaMobile > 0"
|
|
204
|
+
],
|
|
205
|
+
"jest": {
|
|
206
|
+
"testPathIgnorePatterns": [
|
|
207
|
+
".test",
|
|
208
|
+
"node_modules"
|
|
209
|
+
],
|
|
210
|
+
"jest.pathToJest": "node_modules/.bin/jest"
|
|
211
|
+
},
|
|
212
|
+
"config": {
|
|
213
|
+
"commitizen": {
|
|
214
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"bugs": {
|
|
218
|
+
"url": "https://github.com/visitscotland/vs-component-library/issues"
|
|
219
|
+
},
|
|
220
|
+
"resolutions": {
|
|
221
|
+
"minimist": "^0.2.4",
|
|
222
|
+
"json5": "^1.0.2",
|
|
223
|
+
"word-wrap": "^1.2.4",
|
|
224
|
+
"highlight.js": "^10.4.1",
|
|
225
|
+
"semver": "^7.5.4",
|
|
226
|
+
"get-func-name": "^2.0.1",
|
|
227
|
+
"svgo": "3.2.0"
|
|
228
|
+
},
|
|
229
|
+
"packageManager": "yarn@4.3.1"
|
|
230
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2710],{30246:function(){},99750:function(t,n,o){"use strict";var e=o(34352),r=o(2543);n.A={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:e.UV},props:{text:{type:String,default:""}},computed:{nonButtonContentSlots:function(){return(0,r.reject)(this.$slots,{name:"button-content"})}}}},8846:function(t,n,o){"use strict";o.d(n,{X:function(){return s}});var e=o(20641),r=o(90033);function s(t,n,o,s,u,c){var i=(0,e.g2)("BDropdown");return(0,e.uX)(),(0,e.Wv)(i,(0,e.v6)(t.$attrs,{variant:"primary",class:"vs-dropdown"}),(0,e.eX)({"button-content":(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"button-content",{},(function(){return[(0,e.eW)((0,r.toDisplayString)(o.text),1)]}))]})),default:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"default")]})),_:2},[(0,e.pI)(c.nonButtonContentSlots,(function(n,o){return{name:o,fn:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,o)]}))}}))]),1040)}},308:function(t,n,o){"use strict";var e=o(85072),r=o.n(e),s=o(97825),u=o.n(s),c=o(77659),i=o.n(c),a=o(55056),l=o.n(a),f=o(10540),p=o.n(f),d=o(41113),v=o.n(d),m=o(30246),b=o.n(m),y={};y.styleTagTransform=v(),y.setAttributes=l(),y.insert=i().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=p(),r()(b(),y),b()&&b().locals&&b().locals},62710:function(t,n,o){"use strict";o.r(n);var e=o(8846),r=o(45754);o(58600);const s=(0,o(66262).A)(r.A,[["render",e.X]]);n.default=s},45754:function(t,n,o){"use strict";o.d(n,{A:function(){return e.A}});var e=o(99750)},58600:function(t,n,o){"use strict";o(308)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2329],{72878:function(){},8049:function(t,n,e){"use strict";var o=e(11438),s=e(34352),i=e(48836),r=e(98745);n.A={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:s.UV,VsCol:o.Il,VsContainer:o.T$,VsRow:o.AQ,VsButton:i.default},mixins:[r.default],props:{menuToggleAltText:{type:String,required:!0}},mounted:function(){var t=this;this.emitter&&(this.emitter.on("bv::dropdown::show",(function(){t.$emit("menuToggled")})),this.emitter.on("bv::dropdown::hide",(function(){t.$emit("menuToggled")}))),window.addEventListener("resize",this.closeMenu)},beforeUnmount:function(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu:function(){this.$refs.dropdown.hide()},dataLayerSubmit:function(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){var t={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",t,null)}}}}},56844:function(t,n,e){"use strict";e.d(n,{X:function(){return a}});var o=e(20641),s=e(90033),i={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown"},r={role:"menuitem"},u={class:"visually-hidden"};function a(t,n,e,a,l,c){var d=(0,o.g2)("VsButton"),f=(0,o.g2)("VsCol"),m=(0,o.g2)("VsRow"),p=(0,o.g2)("VsContainer"),v=(0,o.g2)("BDropdown");return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.bF)(v,{variant:"transparent",ref:"dropdown",onShow:n[0]||(n[0]=function(t){return c.dataLayerSubmit(t)})},{"button-content":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"button-content")]})),default:(0,o.k6)((function(){return[(0,o.Lk)("li",r,[(0,o.bF)(p,{fluid:"lg",class:"px-0 px-lg-3"},{default:(0,o.k6)((function(){return[(0,o.bF)(m,{class:"g-0"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,{cols:"12",class:"position-relative"},{default:(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"cta-link"),(0,o.RG)(t.$slots,"dropdown-content"),(0,o.bF)(d,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:c.closeMenu},{default:(0,o.k6)((function(){return[(0,o.Lk)("span",u,(0,s.toDisplayString)(e.menuToggleAltText),1)]})),_:1},8,["onClick"])]})),_:3})]})),_:3})]})),_:3})])]})),_:3},512)])}},3552:function(t,n,e){"use strict";var o=e(85072),s=e.n(o),i=e(97825),r=e.n(i),u=e(77659),a=e.n(u),l=e(55056),c=e.n(l),d=e(10540),f=e.n(d),m=e(41113),p=e.n(m),v=e(72878),g=e.n(v),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=a().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=f(),s()(g(),b),g()&&g().locals&&g().locals},62329:function(t,n,e){"use strict";e.r(n);var o=e(54716),s=e(6381);e(43108);const i=(0,e(66262).A)(s.A,[["render",o.X]]);n.default=i},6381:function(t,n,e){"use strict";e.d(n,{A:function(){return o.A}});var o=e(8049)},54716:function(t,n,e){"use strict";e.d(n,{X:function(){return o.X}});var o=e(56844)},43108:function(t,n,e){"use strict";e(3552)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNav=t():e.VsMegaNav=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[823],{16865:function(){},86309:function(e,t,n){"use strict";var o=n(11438),a=n(47553),s=n(61718),i=n(4953),l=n(48836),u=n(57033),r=n(12152),c=n(34982),g=n(80617),d=n(98745);t.A={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol:o.Il,VsRow:o.AQ,VsContainer:o.T$,VsSvgLink:a.default,VsMegaNavTopMenu:s.default,VsMegaNavMobileMenu:i.default,VsSiteSearch:u.default,VsSiteSearchForm:r.default,VsButton:l.default},directives:{clickOutside:g.A},mixins:[d.default],provide:function(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},noSearch:{type:Boolean,default:!1},isStatic:{type:Boolean,default:!1}},data:function(){return{isOpen:!1,showSearch:!1,tokens:c}},mounted:function(){this.addTabClose()},methods:{menuToggle:function(){this.isOpen=!this.isOpen},toggleSearch:function(){this.showSearch=!this.showSearch},closeMenu:function(e){var t=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!t.contains(e.target)&&(this.isOpen=!1)},addTabClose:function(){var e=this;document.body.addEventListener("focusin",(function(t){e.isOpen&&(t.target.closest("#vs-mega-nav__menu-mobile")||(e.isOpen=!1))}))}}}},66729:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var o=n(20641),a=n(90033),s=n(53751),i={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},l={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"},u={class:"visually-hidden"};function r(e,t,n,r,c,g){var d=(0,o.g2)("VsSvgLink"),f=(0,o.g2)("VsCol"),v=(0,o.g2)("VsMegaNavTopMenu"),m=(0,o.g2)("VsSiteSearch"),h=(0,o.g2)("VsButton"),b=(0,o.g2)("VsMegaNavMobileMenu"),p=(0,o.g2)("VsRow"),S=(0,o.g2)("VsContainer"),k=(0,o.g2)("VsSiteSearchForm"),y=(0,o.gN)("click-outside");return(0,o.uX)(),(0,o.CE)("div",null,[(0,o.Lk)("nav",i,[(0,o.bF)(S,{fluid:"lg",class:"h-100"},{default:(0,o.k6)((function(){return[(0,o.bF)(p,{class:"align-items-center h-100"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,{cols:"8",md:"4",lg:"3"},{default:(0,o.k6)((function(){return[(0,o.Lk)("div",null,[(0,o.bF)(d,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":n.logoAltText,href:n.href,"svg-fill":c.tokens["vs-color-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]})),_:1}),(0,o.bF)(f,{cols:"4",md:"6",lg:n.noSearch?9:7,class:"vs-mega-nav__menu d-none d-lg-block"},{default:(0,o.k6)((function(){return[(0,o.bF)(v,null,{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"mega-nav-top-menu-items")]})),_:3})]})),_:3},8,["lg"]),(0,o.bF)(f,{cols:"4",md:"8",lg:"2",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:(0,o.k6)((function(){return[n.noSearch?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.Wv)(m,{key:0,onToggleAction:g.toggleSearch,"is-showing":c.showSearch},{default:(0,o.k6)((function(){return[(0,o.eW)((0,a.toDisplayString)(n.searchButtonText),1)]})),_:1},8,["onToggleAction","is-showing"])),(0,o.Lk)("div",l,[(0,o.bF)(h,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:c.isOpen?"close":"bars-mobile-menu",variant:"transparent",onClick:t[0]||(t[0]=function(e){return g.menuToggle()}),ref:"toggleButton","aria-haspopup":"true"},{default:(0,o.k6)((function(){return[(0,o.Lk)("span",u,(0,a.toDisplayString)(n.menuToggleAltText),1)]})),_:1},8,["icon"]),c.isOpen?(0,o.bo)(((0,o.uX)(),(0,o.Wv)(b,{key:0},{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"mega-nav-accordion-items")]})),_:3})),[[y,g.closeMenu]]):(0,o.Q3)("",!0)])]})),_:3})]})),_:3})]})),_:3})]),(0,o.bo)((0,o.bF)(k,{onToggleAction:g.toggleSearch,"is-showing":c.showSearch,"label-text":n.searchLabelText,"submit-button-text":n.searchButtonText,"clear-button-text":n.searchClearButtonText,"close-button-text":n.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","clear-button-text","close-button-text"]),[[s.vShow,c.showSearch]])])}},80617:function(e,t){"use strict";var n={mounted:function(e,t){e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted:function(e){document.body.removeEventListener("click",e.clickOutsideEvent)}};t.A=n},3415:function(e,t,n){"use strict";var o=n(85072),a=n.n(o),s=n(97825),i=n.n(s),l=n(77659),u=n.n(l),r=n(55056),c=n.n(r),g=n(10540),d=n.n(g),f=n(41113),v=n.n(f),m=n(16865),h=n.n(m),b={};b.styleTagTransform=v(),b.setAttributes=c(),b.insert=u().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=d(),a()(h(),b),h()&&h().locals&&h().locals},77311:function(e,t,n){"use strict";n.r(t);var o=n(92505),a=n(16649);n(63475);const s=(0,n(66262).A)(a.A,[["render",o.X]]);t.default=s},16649:function(e,t,n){"use strict";n.d(t,{A:function(){return o.A}});var o=n(86309)},92505:function(e,t,n){"use strict";n.d(t,{X:function(){return o.X}});var o=n(66729)},63475:function(e,t,n){"use strict";n(3415)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,3453,281,6422,8745,8836,8638,2368,7521,1438,5676,4282,4448,2142,6494,4982,7553,2152,7033,4953,1718],(function(){return 77311,e(e.s=77311)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vs-mega-nav{position:relative;display:flex;align-items:center;height:45px;box-shadow:0 2px 6px 0px rgba(0,0,0,.15)}@media(min-width: 992px){.vs-mega-nav{height:55px}}.vs-mega-nav__logo{display:inline-block;height:calc(2rem + 0.25rem)}@media(min-width: 992px){.vs-mega-nav__logo{height:calc(2rem + 0.5rem)}}.vs-mega-nav__logo svg{width:184px;vertical-align:top;margin-top:.25rem}.vs-mega-nav .vs-mega-nav__menu{position:static}.vs-mega-nav .vs-mega-nav__menu-mobile{margin-left:.5rem}.vs-mega-nav__mobile-menu-toggle{position:relative;letter-spacing:0;font-weight:400;line-height:1.2;border-radius:0;border:0;height:1.75rem;width:1.75rem;font-size:0;padding:0}.vs-mega-nav__mobile-menu{display:none}.no-js .vs-mega-nav{box-shadow:none;height:auto}.no-js .vs-mega-nav__menu-mobile{display:none !important}.no-js .vs-mega-nav__menu{display:block !important;width:100%;max-width:100%;flex:0 0 100%;position:relative}
|