@royaloperahouse/harmonic 0.14.0-b → 0.15.0-a
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 +7 -3
- package/README.md +18 -2
- package/dist/components/molecules/CastFilter/CastFilters.style.d.ts +4 -2
- package/dist/harmonic.cjs.development.js +10 -7
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +10 -7
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/anchorBar.d.ts +3 -0
- package/dist/types/types.d.ts +10 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
## [0.15.0]
|
|
2
|
+
- PageHeading: Add PageHeadingHighlight component
|
|
3
|
+
|
|
1
4
|
## [0.14.0]
|
|
2
|
-
-
|
|
5
|
+
- CastFilter: Add CastFilter component
|
|
6
|
+
- Swipe: Update focus padding
|
|
3
7
|
|
|
4
8
|
## [0.13.4]
|
|
5
9
|
- Footer: internal links open in the same tab
|
|
@@ -16,8 +20,8 @@
|
|
|
16
20
|
## [0.13.0]
|
|
17
21
|
- Restyled: Quote, Image Gallery, Accordions, BodyContent, AnchorTabBar, PromoWithTags, Section, ContactCard
|
|
18
22
|
|
|
19
|
-
## [0.12.
|
|
20
|
-
-
|
|
23
|
+
## [0.12.1]
|
|
24
|
+
- Table: improve the pagination
|
|
21
25
|
|
|
22
26
|
## [0.12.0]
|
|
23
27
|
- AnchorBar: add visual improvements
|
package/README.md
CHANGED
|
@@ -24,17 +24,33 @@ The Storybook for the latest version of the library is hosted at [Storybook - Ha
|
|
|
24
24
|
|
|
25
25
|
*AWS 'Your Applications' page -> 'Royal Opera House' -> 'Developer Access' -> 'Command line or programmatic access'*
|
|
26
26
|
|
|
27
|
-
* **To deploy a preview** for demo / QA you will need
|
|
27
|
+
* **To deploy a preview** for demo / QA you will need:
|
|
28
|
+
|
|
29
|
+
* A Chromatic account with a **Developer** role in the `roh-ml` project in Chromatic
|
|
30
|
+
* [Mari Lovell](mari.lovell@roh.org.uk) is the current owner of this project, you can contact her to invite you
|
|
31
|
+
* The `CHROMATIC_PROJECT_TOKEN` -- find this in 1Password or ask the project owner.
|
|
28
32
|
|
|
29
33
|
|
|
30
34
|
* **To enable publishing to the NPM package**:
|
|
31
35
|
* Create account / log in to NPM
|
|
32
36
|
* Ask a colleague with admin rights to be added as a contributer
|
|
33
37
|
* Generate your own ROH `NPM_TOKEN` (store this token in 1Password)
|
|
38
|
+
* Set up Two-Factor Authentication for NPM, as you will be prompted by the publishing script
|
|
34
39
|
|
|
35
40
|
|
|
36
41
|
## Versioning
|
|
37
42
|
---
|
|
43
|
+
> NOTE: The following applies while the Harmonic project is in Alpha (before a version 1.0.0 release)
|
|
44
|
+
|
|
45
|
+
We are **not** yet using semantic versioning.
|
|
46
|
+
|
|
47
|
+
When proposing changes to the Harmonic library, increment the patch version (the last number) by one, **only** in the changelog (alternatively, leave the version in the changelog as TBC) along with a note about your changes.
|
|
48
|
+
|
|
49
|
+
Only increment the version in the package.json for releasing snapshots.
|
|
50
|
+
|
|
51
|
+
Once your changes are merged to the main branch and released in a new version, the release manager will be responsible for incrementing that release version.
|
|
52
|
+
|
|
53
|
+
> NOTE: The following **may** apply once the Harmonic project is out of Alpha, but is subject to change before then.
|
|
38
54
|
|
|
39
55
|
We use [Semantic Versioning](https://semver.org/) for Harmonic.
|
|
40
56
|
|
|
@@ -69,7 +85,7 @@ The server will hot-reload on most changes.
|
|
|
69
85
|
|
|
70
86
|
You can deploy a release candidate, or work-in-progress to [Chromatic](https://www.chromatic.com/) for showcase or QA.
|
|
71
87
|
|
|
72
|
-
**NOTE:** you will need the `CHROMATIC_PROJECT_TOKEN` as described in *Prerequisites* above.
|
|
88
|
+
**NOTE:** you will need the `CHROMATIC_PROJECT_TOKEN` and to be invited as a contributor to the Harmonic project in Chromatic, as described in *Prerequisites* above.
|
|
73
89
|
|
|
74
90
|
Either set the token as a shell variable or use a `.env` file in the `harmonic` root directory containing the token, as so:
|
|
75
91
|
|
|
@@ -6,9 +6,11 @@ export declare const PersonWrapper: import("styled-components").StyledComponent<
|
|
|
6
6
|
export declare const PersonToggle: import("styled-components").StyledComponent<"div", any, {
|
|
7
7
|
isSelected: boolean;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const PersonImage: import("styled-components").StyledComponent<"img", any, {
|
|
10
|
-
|
|
9
|
+
export declare const PersonImage: import("styled-components").StyledComponent<"img", any, {
|
|
10
|
+
isDefaultPlaceholder?: boolean | undefined;
|
|
11
|
+
}, never>;
|
|
11
12
|
export declare const PersonName: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
13
|
export declare const Decal: import("styled-components").StyledComponent<"div", any, {
|
|
13
14
|
isSelected: boolean;
|
|
14
15
|
}, never>;
|
|
16
|
+
export declare const EmptySelectionTextSpacer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -10891,6 +10891,12 @@ var AnchorBarContainer = /*#__PURE__*/styled__default(Grid)(_templateObject$1f |
|
|
|
10891
10891
|
var CloseButtonWrapper = /*#__PURE__*/styled__default.a(_templateObject4$G || (_templateObject4$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 24px;\n min-width: 24px;\n max-height: 24px;\n max-width: 24px;\n border: none;\n padding: 0;\n background: none;\n\n :hover {\n cursor: pointer;\n }\n\n @media ", " {\n min-height: 12px;\n min-width: 12px;\n max-height: 12px;\n max-width: 12px;\n }\n"])), devices.mobile);
|
|
10892
10892
|
var ContentWrapper$2 = /*#__PURE__*/styled__default.a(_templateObject5$A || (_templateObject5$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
10893
10893
|
|
|
10894
|
+
var defaultGrid = {
|
|
10895
|
+
columnStartDesktop: 2,
|
|
10896
|
+
columnSpanDesktop: 14,
|
|
10897
|
+
columnStartDevice: 2,
|
|
10898
|
+
columnSpanDevice: 12
|
|
10899
|
+
};
|
|
10894
10900
|
var AnchorBar = function AnchorBar(_ref) {
|
|
10895
10901
|
var cta = _ref.cta,
|
|
10896
10902
|
onClickHandler = _ref.onClickHandler,
|
|
@@ -10899,7 +10905,9 @@ var AnchorBar = function AnchorBar(_ref) {
|
|
|
10899
10905
|
showAnchorBar = _ref$showAnchorBar === void 0 ? true : _ref$showAnchorBar,
|
|
10900
10906
|
className = _ref.className,
|
|
10901
10907
|
_ref$withShadow = _ref.withShadow,
|
|
10902
|
-
withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow
|
|
10908
|
+
withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
|
|
10909
|
+
_ref$grid = _ref.grid,
|
|
10910
|
+
grid = _ref$grid === void 0 ? defaultGrid : _ref$grid;
|
|
10903
10911
|
var _useState = React.useState(showAnchorBar),
|
|
10904
10912
|
isRendered = _useState[0],
|
|
10905
10913
|
setIsRendered = _useState[1];
|
|
@@ -10923,12 +10931,7 @@ var AnchorBar = function AnchorBar(_ref) {
|
|
|
10923
10931
|
"data-testid": "anchor-bar",
|
|
10924
10932
|
className: className,
|
|
10925
10933
|
withShadow: withShadow
|
|
10926
|
-
}, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
10927
|
-
columnStartDesktop: 2,
|
|
10928
|
-
columnSpanDesktop: 14,
|
|
10929
|
-
columnStartDevice: 2,
|
|
10930
|
-
columnSpanDevice: 12
|
|
10931
|
-
}, /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, /*#__PURE__*/React__default.createElement(TextLink, {
|
|
10934
|
+
}, /*#__PURE__*/React__default.createElement(GridItem, Object.assign({}, grid), /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, /*#__PURE__*/React__default.createElement(TextLink, {
|
|
10932
10935
|
href: (_cta$href = cta.href) != null ? _cta$href : '#',
|
|
10933
10936
|
onClick: onCtaClickHandler,
|
|
10934
10937
|
tabIndex: 0
|