@royaloperahouse/harmonic 0.1.0 → 0.1.1-b-test

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 (81) hide show
  1. package/CHANGELOG.md +607 -0
  2. package/README.md +8 -0
  3. package/dist/components/Typography/AltHeaders/AltHeaders.d.ts +4 -0
  4. package/dist/components/Typography/TextLink/TextLink.d.ts +5 -0
  5. package/dist/components/Typography/Typography.d.ts +11 -0
  6. package/dist/components/Typography/index.d.ts +3 -0
  7. package/dist/components/atoms/Account/Account.d.ts +2 -1
  8. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +0 -1
  9. package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +0 -1
  10. package/dist/components/atoms/Buttons/Secondary/SecondaryButtonWrapper.style.d.ts +0 -1
  11. package/dist/components/atoms/Dropdown/Dropdown.d.ts +2 -1
  12. package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +2 -1
  13. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +0 -1
  14. package/dist/components/atoms/Logo/Logo.d.ts +2 -1
  15. package/dist/components/atoms/Radio/Radio.d.ts +2 -1
  16. package/dist/components/atoms/Radio2/Radio2.d.ts +0 -19
  17. package/dist/components/atoms/RotatorButtons/RotatorButtons.d.ts +2 -1
  18. package/dist/components/atoms/Search/Search.d.ts +2 -1
  19. package/dist/components/atoms/SectionSplitter/SectionSplitter.d.ts +2 -1
  20. package/dist/components/atoms/Stepper/Stepper.d.ts +2 -2
  21. package/dist/components/atoms/Tab/Tab.d.ts +2 -1
  22. package/dist/components/atoms/TextArea/TextArea.d.ts +5 -4
  23. package/dist/components/atoms/TextField/TextField.d.ts +0 -38
  24. package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +3 -2
  25. package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +0 -19
  26. package/dist/components/atoms/TypeTags/TypeTags.d.ts +2 -1
  27. package/dist/components/atoms/Typography/Typography.d.ts +8 -6
  28. package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +2 -2
  29. package/dist/components/index.d.ts +3 -0
  30. package/dist/components/molecules/Basket/Basket.d.ts +2 -1
  31. package/dist/components/molecules/Cards/Cards.d.ts +2 -1
  32. package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +2 -1
  33. package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
  34. package/dist/components/molecules/Information/InfoCta.d.ts +2 -2
  35. package/dist/components/molecules/Information/Information.style.d.ts +6 -3
  36. package/dist/components/molecules/NavTop/NavTop.d.ts +2 -1
  37. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +3 -4
  38. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +5 -1
  39. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +3 -1
  40. package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +2 -1
  41. package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +1 -0
  42. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +2 -3
  43. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +2 -1
  44. package/dist/components/molecules/SearchBar/SearchBar.d.ts +2 -1
  45. package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +2 -1
  46. package/dist/components/molecules/Select/Select.d.ts +2 -1
  47. package/dist/components/molecules/Select/Select.style.d.ts +0 -1
  48. package/dist/components/molecules/Select2/Select2.d.ts +2 -2
  49. package/dist/components/molecules/Tabs/Tabs.d.ts +2 -1
  50. package/dist/components/molecules/UpsellCard/OfferText.d.ts +2 -1
  51. package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +2 -2
  52. package/dist/components/organisms/Navigation/Navigation.d.ts +2 -1
  53. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +0 -1
  54. package/dist/harmonic.cjs.development.css +320 -0
  55. package/dist/harmonic.cjs.development.js +2502 -3394
  56. package/dist/harmonic.cjs.development.js.map +1 -1
  57. package/dist/harmonic.cjs.production.min.js +1 -1
  58. package/dist/harmonic.cjs.production.min.js.map +1 -1
  59. package/dist/harmonic.esm.js +2534 -3397
  60. package/dist/harmonic.esm.js.map +1 -1
  61. package/dist/helpers/arrays.d.ts +2 -6
  62. package/dist/index.d.ts +2 -2
  63. package/dist/styles/ThemeProvider.d.ts +2 -1
  64. package/dist/types/auxiliaryNav.d.ts +15 -15
  65. package/dist/types/buttonTypes.d.ts +2 -2
  66. package/dist/types/card.d.ts +3 -1
  67. package/dist/types/contactCard.d.ts +4 -1
  68. package/dist/types/creditListing.d.ts +1 -0
  69. package/dist/types/editorial.d.ts +4 -1
  70. package/dist/types/formTypes.d.ts +1 -1
  71. package/dist/types/image.d.ts +4 -1
  72. package/dist/types/impactHeader.d.ts +18 -18
  73. package/dist/types/index.d.ts +2 -1
  74. package/dist/types/information.d.ts +19 -13
  75. package/dist/types/navigation.d.ts +3 -4
  76. package/dist/types/quote.d.ts +3 -1
  77. package/dist/types/tableTypes.d.ts +2 -1
  78. package/dist/types/types.d.ts +36 -22
  79. package/dist/types/typography.d.ts +33 -3
  80. package/dist/types/upsell.d.ts +1 -2
  81. package/package.json +68 -47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-b-test",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -12,24 +12,25 @@
12
12
  "node": ">=10"
13
13
  },
14
14
  "repository": {
15
- "type": "git",
16
- "url": "https://bitbucket.org/rohorguk/harmonic-library.git"
15
+ "type": "git",
16
+ "url": "https://bitbucket.org/rohorguk/harmonic-library.git"
17
17
  },
18
18
  "scripts": {
19
19
  "start": "tsdx watch",
20
20
  "build": "tsdx build",
21
- "test": "tsdx test --passWithNoTests",
22
- "test:watch": "tsdx test --watch --verbose --passWithNoTests",
23
- "lint": "tsdx lint src",
21
+ "test": "jest --passWithNoTests",
22
+ "test:watch": "jest --watch --verbose --passWithNoTests",
23
+ "lint": "eslint src",
24
+ "format": "prettier --write src",
24
25
  "prepare": "tsdx build",
25
26
  "size": "size-limit",
26
27
  "analyze": "size-limit --why",
27
- "storybook": "start-storybook -s ./external -p 6006",
28
- "build-storybook-dev": "build-storybook",
29
- "build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
28
+ "storybook": "storybook dev -p 6006",
29
+ "build-storybook-dev": "storybook build",
30
+ "build-storybook": "rm -rf ./storybook-static; storybook build -o ./storybook-static; cp -r ./external/ ./storybook-static/",
30
31
  "deploy-storybook-dev": "chromatic --build-script-name build-storybook-dev",
31
32
  "deploy-storybook": "storybook-to-aws-s3 --bucket-path=harmonic.roh.org.uk --aws-profile=parent --existing-output-dir=storybook-static --s3-sync-options=--acl=public-read",
32
- "test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
33
+ "test-storybook": "jest --json --passWithNoTests --outputFile=./test/jest-test-results.json",
33
34
  "publish-release": "make prepare-release-candidate; make publish-release",
34
35
  "publish-snapshot": "make prepare-release-candidate; make publish-npm-snapshot"
35
36
  },
@@ -44,15 +45,9 @@
44
45
  },
45
46
  "husky": {
46
47
  "hooks": {
47
- "pre-commit": "tsdx lint"
48
+ "pre-commit": "lint-staged"
48
49
  }
49
50
  },
50
- "prettier": {
51
- "printWidth": 120,
52
- "semi": true,
53
- "singleQuote": true,
54
- "trailingComma": "es5"
55
- },
56
51
  "module": "dist/harmonic.esm.js",
57
52
  "size-limit": [
58
53
  {
@@ -64,54 +59,70 @@
64
59
  "limit": "10 KB"
65
60
  }
66
61
  ],
67
- "jest": {
68
- "setupFilesAfterEnv": [
69
- "<rootDir>/src/jest.setup.ts"
70
- ],
71
- "moduleNameMapper": {
72
- "\\.(png|jpg|jpeg)$": "<rootDir>/external/images/mock-image.js"
73
- },
74
- "modulePathIgnorePatterns": [
75
- "<rootDir>/storybook-static"
76
- ]
77
- },
78
62
  "devDependencies": {
79
63
  "@babel/core": "^7.16.0",
80
64
  "@babel/plugin-transform-modules-commonjs": "^7.16.0",
81
- "@size-limit/preset-small-lib": "^6.0.4",
82
- "@storybook/addon-a11y": "^6.3.12",
83
- "@storybook/addon-essentials": "^6.3.12",
84
- "@storybook/addon-info": "^5.3.21",
85
- "@storybook/addon-jest": "^6.3.12",
86
- "@storybook/addon-links": "^6.3.12",
87
- "@storybook/addons": "^6.3.12",
88
- "@storybook/react": "^6.3.12",
89
- "@storybook/storybook-deployer": "^2.8.11",
90
- "@testing-library/jest-dom": "^5.15.0",
65
+ "@size-limit/file": "^11.1.6",
66
+ "@size-limit/webpack": "^11.1.6",
67
+ "@size-limit/webpack-why": "^11.1.6",
68
+ "@storybook/addon-a11y": "8.4.0",
69
+ "@storybook/addon-docs": "8.4.0",
70
+ "@storybook/addon-essentials": "8.4.0",
71
+ "@storybook/addon-jest": "8.4.0",
72
+ "@storybook/addon-links": "8.4.0",
73
+ "@storybook/addon-mdx-gfm": "8.4.0",
74
+ "@storybook/addon-toolbars": "8.4.0",
75
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
76
+ "@storybook/addons": "7.6.20",
77
+ "@storybook/blocks": "8.4.0",
78
+ "@storybook/react": "8.4.0",
79
+ "@storybook/react-webpack5": "8.4.0",
80
+ "@storybook/storybook-deployer": "2.8.11",
81
+ "@storybook/theming": "8.4.0",
82
+ "@testing-library/jest-dom": "^6.0.0",
91
83
  "@testing-library/react": "^12.1.2",
92
84
  "@testing-library/user-event": "^13.5.0",
93
85
  "@types/dompurify": "^2.4.0",
94
- "@types/jest": "^27.0.2",
86
+ "@types/jest": "^29.0.0",
95
87
  "@types/react": "^17.0.34",
96
88
  "@types/react-dom": "^17.0.11",
97
89
  "@types/react-modal": "^3.16.3",
98
90
  "@types/react-select": "^5.0.1",
99
91
  "@types/react-test-renderer": "^17.0.1",
100
- "@types/styled-components": "^5.1.15",
101
- "@types/testing-library__jest-dom": "^5.14.1",
92
+ "@types/styled-components": "5.1.26",
93
+ "@types/testing-library__jest-dom": "^5.9.1",
94
+ "@typescript-eslint/eslint-plugin": "^5.0.0",
95
+ "@typescript-eslint/parser": "^5.0.0",
96
+ "autoprefixer": "^10.4.20",
102
97
  "babel-loader": "^8.2.3",
103
- "chromatic": "^11.5.5",
98
+ "chromatic": "^11.20.2",
99
+ "eslint": "^8.57.1",
100
+ "eslint-config-airbnb": "^19.0.0",
101
+ "eslint-config-prettier": "^8.0.0",
102
+ "eslint-config-react-app": "^7.0.0",
103
+ "eslint-plugin-flowtype": "^8.0.0",
104
+ "eslint-plugin-import": "^2.25.0",
105
+ "eslint-plugin-jsx-a11y": "^6.5.1",
106
+ "eslint-plugin-prettier": "^5.2.1",
107
+ "eslint-plugin-react": "^7.28.0",
108
+ "eslint-plugin-react-hooks": "^4.3.0",
109
+ "eslint-plugin-storybook": "^0.9.0",
104
110
  "husky": "^7.0.4",
111
+ "identity-obj-proxy": "^3.0.0",
112
+ "jest": "^29.0.0",
113
+ "jest-environment-jsdom": "^29.7.0",
114
+ "lint-staged": "^15.2.10",
115
+ "prettier": "^3.3.3",
105
116
  "react": "^17.0.2",
106
117
  "react-dom": "^17.0.2",
107
118
  "react-is": "^17.0.2",
108
119
  "react-router-dom": "^6.22.3",
109
120
  "react-test-renderer": "^17.0.2",
110
- "size-limit": "^6.0.4",
111
- "storybook-addon-designs": "^6.2.0",
112
- "storybook-addon-pseudo-states": "^1.0.0",
113
- "styled-components": "^5.3.9",
114
- "ts-jest": "^27.0.7",
121
+ "rollup-plugin-postcss": "^4.0.2",
122
+ "size-limit": "^11.1.6",
123
+ "storybook": "8.4.0",
124
+ "styled-components": "5.3.9",
125
+ "ts-jest": "^29.0.0",
115
126
  "tsdx": "^0.14.1",
116
127
  "tslib": "^2.3.1",
117
128
  "typescript": "^4.4.4"
@@ -121,5 +132,15 @@
121
132
  "react-modal": "^3.16.1",
122
133
  "react-scrolllock": "^5.0.1",
123
134
  "react-select": "^5.8.0"
135
+ },
136
+ "resolutions": {
137
+ "@types/react": "^17.0.34",
138
+ "@types/react-dom": "^17.0.11"
139
+ },
140
+ "lint-staged": {
141
+ "*.{js,jsx,json,css,scss,md,ts,tsx,html}": [
142
+ "npx eslint src --fix ",
143
+ "npx prettier src --write --uncommitted"
144
+ ]
124
145
  }
125
146
  }