@asd20/ui 3.2.1044 → 3.2.1045

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.
Files changed (23) hide show
  1. package/.eslintrc.js +44 -5
  2. package/package.json +25 -32
  3. package/src/components/atoms/Asd20Factoid/index.vue +1 -1
  4. package/src/components/organisms/Asd20SiteMenu/index.vue +1 -1
  5. package/src/components/templates/Asd20ProfileTemplate/index.vue +1 -1
  6. package/src/components/templates/Asd20SchoolHomeTemplate/index.vue +1 -1
  7. package/src/components/templates/Asd20SchoolHomeVideoTemplate/index.vue +1 -1
  8. package/vue.config.js +41 -15
  9. package/package-lock.json +0 -93773
  10. package/src/components/organisms/Asd20BackToSchoolHeader/index.stories.js +0 -20
  11. package/src/components/organisms/Asd20BackToSchoolHeader/index.vue +0 -131
  12. package/src/components/organisms/Asd20CampaignPageHeader/index.stories.js +0 -35
  13. package/src/components/organisms/Asd20CampaignPageHeader/index.vue +0 -512
  14. package/src/components/organisms/Asd20ChoiceHeader/index.stories.js +0 -32
  15. package/src/components/organisms/Asd20ChoiceHeader/index.vue +0 -464
  16. package/src/components/organisms/Asd20CovidHeader/index.stories.js +0 -34
  17. package/src/components/organisms/Asd20CovidHeader/index.vue +0 -571
  18. package/src/components/organisms/Asd20GraduationHeader/index.stories.js +0 -33
  19. package/src/components/organisms/Asd20GraduationHeader/index.vue +0 -456
  20. package/src/components/organisms/Asd20KindergartenHeader/index.stories.js +0 -20
  21. package/src/components/organisms/Asd20KindergartenHeader/index.vue +0 -124
  22. package/src/components/organisms/Asd20ReturnToSchoolHeader/index.stories.js +0 -32
  23. package/src/components/organisms/Asd20ReturnToSchoolHeader/index.vue +0 -306
package/.eslintrc.js CHANGED
@@ -1,15 +1,54 @@
1
+ // .eslintrc.js (for @asd20/ui)
1
2
  module.exports = {
2
3
  root: true,
4
+
3
5
  env: {
6
+ browser: true,
4
7
  node: true,
5
- jest: true,
8
+ jest: true
6
9
  },
7
- extends: ['plugin:vue/essential', '@vue/prettier'],
10
+
11
+ // Use vue-eslint-parser for SFCs; delegate <script> to @babel/eslint-parser
12
+ parser: 'vue-eslint-parser',
13
+ parserOptions: {
14
+ parser: '@babel/eslint-parser',
15
+ requireConfigFile: false,
16
+ babelOptions: {
17
+ presets: ['@vue/cli-plugin-babel/preset']
18
+ },
19
+ ecmaVersion: 2020,
20
+ sourceType: 'module'
21
+ },
22
+
23
+ extends: [
24
+ 'eslint:recommended',
25
+ 'plugin:vue/recommended'
26
+ // If you use Prettier formatting, add '@vue/eslint-config-prettier'
27
+ ],
28
+
8
29
  rules: {
9
30
  'no-console': 'off',
10
31
  'no-debugger': 'off',
32
+ 'vue/v-slot-style': 'off'
11
33
  },
12
- parserOptions: {
13
- parser: 'babel-eslint',
14
- },
34
+
35
+ // Useful in a component library to avoid linting built artfacts and external deps
36
+ ignorePatterns: ['dist', 'node_modules', 'packages/**/dist', 'storybook-static'],
37
+
38
+ overrides: [
39
+ // Loosen rules slightly for Storybook stories
40
+ {
41
+ files: ['**/*.stories.@(js|jsx|ts|tsx)'],
42
+ rules: {
43
+ 'vue/no-unused-components': 'warn'
44
+ }
45
+ },
46
+ // Keep Vue SFCs consistent
47
+ {
48
+ files: ['**/*.vue'],
49
+ rules: {
50
+ 'vue/no-unused-components': 'warn'
51
+ }
52
+ }
53
+ ]
15
54
  }
package/package.json CHANGED
@@ -1,24 +1,26 @@
1
1
  {
2
2
  "name": "@asd20/ui",
3
+ "version": "3.2.1045",
4
+ "private": false,
5
+ "license": "MIT",
3
6
  "sideEffects": [
4
7
  "*.css",
5
8
  "*.scss",
6
9
  "*.vue"
7
10
  ],
8
- "version": "3.2.1044",
9
- "private": false,
10
- "license": "MIT",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "https://asd20dev@dev.azure.com/asd20dev/asd20-ui/_git/asd20-ui"
14
14
  },
15
+ "engines": {
16
+ "node": ">=20",
17
+ "npm": ">=10"
18
+ },
15
19
  "scripts": {
16
20
  "serve": "vue-cli-service serve",
17
21
  "build": "vue-cli-service build",
18
22
  "lint": "vue-cli-service lint",
19
- "storybook": "start-storybook -s ./public -p 9000",
20
- "test:e2e": "vue-cli-service test:e2e",
21
- "test:unit": "vue-cli-service test:unit",
23
+ "storybook": "start-storybook -p 9000",
22
24
  "build:package": "./build-scripts/build-components.sh",
23
25
  "build:icons": "./build-scripts/build-icons.sh",
24
26
  "release": "release-it"
@@ -27,7 +29,7 @@
27
29
  "vue": "2.6.14"
28
30
  },
29
31
  "dependencies": {
30
- "axios": "^0.19.2",
32
+ "axios": "^1.12.2",
31
33
  "basicscroll": "^3.0.2",
32
34
  "countup.js": "^2.0.0",
33
35
  "date-fns": "^2.30.0",
@@ -50,41 +52,33 @@
50
52
  "vuex": "^3.0.1"
51
53
  },
52
54
  "devDependencies": {
53
- "@babel/core": "^7.3.4",
54
- "@release-it/conventional-changelog": "^1",
55
+ "@babel/core": "^7.28.4",
56
+ "@babel/eslint-parser": "^7.28.4",
57
+ "@release-it/conventional-changelog": "^10.0.1",
55
58
  "@storybook/addon-a11y": "^6.5.16",
56
59
  "@storybook/addon-actions": "^6.5.16",
57
60
  "@storybook/addon-controls": "^6.5.16",
58
61
  "@storybook/addon-docs": "^6.5.16",
59
62
  "@storybook/addon-knobs": "^6.4.0",
60
63
  "@storybook/addon-links": "^6.5.16",
64
+ "@storybook/builder-webpack5": "^6.5.16",
65
+ "@storybook/manager-webpack5": "^6.5.16",
61
66
  "@storybook/vue": "^6.5.16",
62
- "@vue/cli-plugin-babel": "^3.4.0",
63
- "@vue/cli-plugin-e2e-cypress": "^3.4.0",
64
- "@vue/cli-plugin-eslint": "^3.4.0",
65
- "@vue/cli-plugin-unit-jest": "^3.9.0",
66
- "@vue/cli-service": "^3.7.0",
67
+ "@vue/cli-plugin-babel": "^5.0.8",
68
+ "@vue/cli-plugin-eslint": "^5.0.8",
69
+ "@vue/cli-service": "^5.0.8",
67
70
  "@vue/eslint-config-prettier": "^4.0.1",
68
- "@vue/test-utils": "^1.0.0-beta.20",
69
- "array-to-tree": "^3.3.0",
70
71
  "babel-core": "7.0.0-bridge.0",
71
- "babel-eslint": "^10.0.1",
72
- "babel-jest": "^23.6.0",
73
- "babel-loader": "^8.0.5",
74
- "babel-polyfill": "^6.26.0",
75
- "babel-preset-vue": "^2.0.2",
76
- "css-loader": "^2.1.0",
77
- "eslint": "^5.8.0",
78
- "eslint-plugin-vue": "^5.0.0",
79
- "html-webpack-plugin": "^3.2.0",
80
- "jest-image-snapshot": "^2.5.0",
81
- "lint-staged": "^8.1.0",
82
- "puppeteer": "^1.9.0",
72
+ "core-js": "^3.37.1",
73
+ "eslint": "^7.32.0",
74
+ "eslint-plugin-import": "^2.29.1",
75
+ "eslint-plugin-vue": "^7.20.0",
76
+ "lint-staged": "^15.2.9",
83
77
  "react": "16.14.0",
84
78
  "react-dom": "16.14.0",
85
- "release-it": "^10.2.0",
79
+ "release-it": "^19.0.5",
86
80
  "sass": "^1.69.0",
87
- "sass-loader": "10.1.1",
81
+ "sass-loader": "13.3.2",
88
82
  "storybook-addon-vue-info": "^1.4.1",
89
83
  "stylelint": "^9.10.1",
90
84
  "stylelint-config-css-modules": "^1.3.0",
@@ -94,13 +88,12 @@
94
88
  "vue": "2.6.14",
95
89
  "vue-class-component": "^7.0.2",
96
90
  "vue-docgen-api": "^3.26.0",
97
- "vue-loader": "^15.8.3",
91
+ "vue-loader": "^15.11.1",
98
92
  "vue-router": "^3.1.4",
99
93
  "vue-style-loader": "^4.1.2",
100
94
  "vue-template-compiler": "2.6.14",
101
95
  "vuex-pathify": "^1.1.3"
102
96
  },
103
- "gitHooks": {},
104
97
  "lint-staged": {
105
98
  "*.js": [
106
99
  "vue-cli-service lint",
@@ -94,7 +94,7 @@ $factoid-fg: var(--website-card__reverse-background-color);
94
94
  text-align: center;
95
95
  padding: space(1) 0;
96
96
  background: $factoid-bg;
97
- // background-image: url('/statics/images/chalk-dark.png');
97
+ // background-image: var(--website-texture__default);
98
98
  background-size: 320px auto;
99
99
  background-position-y: top;
100
100
  box-sizing: border-box;
@@ -127,7 +127,7 @@
127
127
  <script>
128
128
  // import Vue from 'vue'
129
129
 
130
- import { setTimeout } from 'timers'
130
+ // import { setTimeout } from 'timers'
131
131
  import { FocusTrap } from 'focus-trap-vue'
132
132
  import Asd20Icon from '../../atoms/Asd20Icon'
133
133
  // import VScrollLock from 'v-scroll-lock'
@@ -669,7 +669,7 @@ export default {
669
669
 
670
670
  &__primary-content {
671
671
  background: asd20-swatch('background-alt', 7);
672
- background-image: url('/img/chalk-dark.png');
672
+ background-image: var(--website-texture__default);
673
673
  background-position-y: top;
674
674
  padding: 0 space(1);
675
675
  display: flex;
@@ -364,7 +364,7 @@ export default {
364
364
 
365
365
  &::v-deep .widgets-section {
366
366
  background: var(--website-page__alternate-background-t70);
367
- background-image: url('/statics/images/chalk-dark.png');
367
+ background-image: var(--website-texture__default);
368
368
  background-position-y: top;
369
369
  padding-top: 1px; //fix bug
370
370
 
@@ -320,7 +320,7 @@ export default {
320
320
 
321
321
  &::v-deep .widgets-section {
322
322
  background: var(--website-page__alternate-background-t70);
323
- background-image: url('/statics/images/chalk-dark.png');
323
+ background-image: var(--website-texture__default);
324
324
  background-position-y: top;
325
325
  padding-top: 1px;
326
326
 
package/vue.config.js CHANGED
@@ -1,25 +1,51 @@
1
+ // vue.config.js
2
+ const path = require('path')
3
+
1
4
  module.exports = {
2
- chainWebpack: config => {
3
- config.devServer.disableHostCheck(true)
4
- },
5
+ // For consumers that import from @asd20/ui in Vue 2 apps
6
+ transpileDependencies: ['@asd20/ui'],
7
+
5
8
  configureWebpack: {
6
- // We provide the app's title in Webpack's name field, so that
7
- // it can be accessed in index.html to inject the correct title.
8
- name: 'Academy District 20',
9
- // Set up all the aliases we use in our app.
10
- resolve: {
11
- alias: require('./aliases.config').webpack,
12
- },
13
- devtool: 'source-map',
9
+ name: 'Academy District 20 UI',
10
+ resolve: { alias: require('./aliases.config').webpack },
11
+ devtool: 'source-map'
14
12
  },
15
13
 
14
+ // Keep CSS maps on for library dev; you can turn off for prod if desired
16
15
  css: {
17
- // Enable CSS source maps.
18
16
  sourceMap: true,
19
- extract: true,
17
+ extract: true
18
+ },
19
+
20
+ // Match your apps: warn instead of error on lint
21
+ lintOnSave: 'warning',
22
+
23
+ // Example: if you maintain an internal SVG sprite for docs/dev
24
+ chainWebpack: (config) => {
25
+ const iconsDir = path.resolve(__dirname, 'src/assets/icons')
26
+ // If you don’t use a sprite here, you can remove this whole block
27
+ config.module.rule('svg').exclude.add(iconsDir)
28
+ config.module
29
+ .rule('svg-sprite')
30
+ .test(/\.svg$/)
31
+ .include.add(iconsDir)
32
+ .end()
33
+ .use('svg-sprite-loader')
34
+ .loader('svg-sprite-loader')
35
+ .options({ symbolId: 'icon-[name]' })
36
+ .end()
37
+ .use('svgo-loader')
38
+ .loader('svgo-loader')
39
+ .options({
40
+ plugins: [
41
+ { name: 'preset-default' },
42
+ { name: 'removeViewBox', active: false }
43
+ ]
44
+ })
20
45
  },
21
46
 
22
- lintOnSave: undefined,
47
+ // Smaller, cleaner prod builds like the apps
48
+ productionSourceMap: false,
23
49
 
24
- pluginOptions: {},
50
+ pluginOptions: {}
25
51
  }