Skip to content

Commit

Permalink
chore: version packages (#762)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored May 28, 2024
1 parent 4e8fcde commit 2792b0d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
5 changes: 0 additions & 5 deletions .changeset/gorgeous-ducks-give.md

This file was deleted.

28 changes: 16 additions & 12 deletions packages/pharos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ithaka/pharos

## 14.2.2

### Patch Changes

- [#761](https://github.com/ithaka/pharos/pull/761) [`4e8fcde`](https://github.com/ithaka/pharos/commit/4e8fcdef7696d3876f5a2c6c6757e8f7ab209b6f) Thanks [@michael-iden](https://github.com/michael-iden)! - Fix behavior allowing tab panel contents scroll independently of the page by setting a defined height on an element wrapping the tabs

## 14.2.1

### Patch Changes
Expand Down Expand Up @@ -584,22 +590,20 @@
- Add register utility to simplify component registration and ensure trivial classes are used for custom elements:

```javascript
import { PharosAlert, PharosButton, PharosIcon } from "@ithaka/pharos";
import registerComponents from "@ithaka/pharos/lib/utils/registerComponents";
import { PharosAlert, PharosButton, PharosIcon } from '@ithaka/pharos';
import registerComponents from '@ithaka/pharos/lib/utils/registerComponents';

registerComponents("{prefix}", [PharosAlert, PharosButton, PharosIcon]);
registerComponents('{prefix}', [PharosAlert, PharosButton, PharosIcon]);
```

- Add a React Pharos context provider for consumers to indicate prefix used for registration:

```jsx
import { PharosContext } from "@ithaka/pharos/lib/utils/PharosContext";
import { PharosContext } from '@ithaka/pharos/lib/utils/PharosContext';
const context = { prefix: "homepage" };
const context = { prefix: 'homepage' };
<PharosContext.Provider value={context}>
...app code
</PharosContext.Provider>;
<PharosContext.Provider value={context}>...app code</PharosContext.Provider>;
```

### Patch Changes
Expand Down Expand Up @@ -636,9 +640,9 @@
2. Register them with a custom tag in your app's entrypoint in the form of `{app/bundle}-pharos-{component}`:
```javascript
import { PharosAlert } from "@ithaka/pharos/lib/components/alert/pharos-alert";
import { PharosAlert } from '@ithaka/pharos/lib/components/alert/pharos-alert';
customElements.define("homepage-pharos-alert", PharosAlert);
customElements.define('homepage-pharos-alert', PharosAlert);
```
3. Update templates, queries, unit tests, and integration tests with the newly defined tag names.
Expand Down Expand Up @@ -675,8 +679,8 @@
6. Import the JSDOM patch in your Jest setup file if you use Jest for unit testing:

```javascript
import "@ithaka/pharos/lib/patches/jsdom";
import "your-pharos-component-registration-file";
import '@ithaka/pharos/lib/patches/jsdom';
import 'your-pharos-component-registration-file';
```

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pharos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "14.2.1",
"version": "14.2.2",
"description": "Pharos web components for products and experiences",
"files": [
"lib",
Expand Down

0 comments on commit 2792b0d

Please sign in to comment.