Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into benelan/move-actions
Browse files Browse the repository at this point in the history
* origin/main: (35 commits)
  ci: make sure to exit on maitenance milestone failure (#7656)
  chore: release next
  fix(block): provide textual name on collapse and expansion to AT (#7652)
  chore: release main (#7571)
  chore: release next
  fix(block, block-section): improve a11y (#7557)
  chore: release next
  fix: add drag styles for improved UX (#7644)
  fix(input, input-number): correctly sanitize numbers when pasting string with 'e' (#7648)
  chore: release next
  feat(flow): add support for custom flow-item elements (#7608)
  chore: release next
  fix(list, sortable-list, value-list): Emit calciteListOrderChange when dragging between lists (#7614)
  feat(input-number): add integer property (#7646)
  chore: release next
  fix(accordion, accordion-item): improve a11y (#7560)
  refactor(stepper, stepper-item): `getElementProp` is refactored out in favor of inheritable props set directly on parent (#7593)
  docs(contributing): update the commit message format example URL (#7641)
  chore: release next
  feat(input-date-picker): normalize year to current century for user typed values only (#7638)
  ...
  • Loading branch information
benelan committed Sep 1, 2023
2 parents cc7af8f + 6dd8ab3 commit 253292f
Show file tree
Hide file tree
Showing 213 changed files with 12,269 additions and 769 deletions.
1 change: 1 addition & 0 deletions .github/scripts/limitPullRequestsForMaintenanceReleases.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module.exports = async ({ github, context, core }) => {
allowedLabels,
)}.`,
);
process.exit(1)
} else {
core.notice(
"The current milestone is not for a Maintenance release, ending run.",
Expand Down
4 changes: 2 additions & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages/calcite-components": "1.6.1",
"packages/calcite-components-react": "1.6.1",
"packages/calcite-components": "1.7.0",
"packages/calcite-components-react": "1.7.0",
"packages/eslint-plugin-calcite-components": "0.2.2"
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ johndoe/feature/add-something-to-modal

This project follows [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), which are used to generate the changelog. Be sure to provide clear and sufficient information in commit messages. This is important because the commit messages are used to automatically update the changelog.

[Stencil's contributing document](https://github.com/ionic-team/stencil/blob/master/.github/CONTRIBUTING.md#commit-message-format) explains this in great detail, so please refer to this for more details and examples.
[Stencil's contributing document](https://github.com/ionic-team/stencil/blob/main/CONTRIBUTING.md#commit-message-format) explains this in great detail, so please refer to this for more details and examples.

## Breaking changes

Expand Down
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@cspell/eslint-plugin": "7.0.1",
"@esri/calcite-base": "1.2.0",
"@esri/calcite-colors": "6.1.0",
"@rollup/plugin-node-resolve": "15.2.0",
"@rollup/plugin-node-resolve": "15.2.1",
"@rollup/plugin-typescript": "11.1.2",
"@storybook/addon-a11y": "6.5.16",
"@storybook/addon-docs": "6.5.16",
Expand Down
60 changes: 8 additions & 52 deletions packages/calcite-components-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,65 +3,21 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.0-next.13](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.12...@esri/calcite-components-react@1.7.0-next.13) (2023-08-30)
## [1.7.1-next.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0...@esri/calcite-components-react@1.7.1-next.0) (2023-09-01)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.12](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.11...@esri/calcite-components-react@1.7.0-next.12) (2023-08-29)
## [1.7.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.6.1...@esri/calcite-components-react@1.7.0) (2023-09-01)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.11](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.10...@esri/calcite-components-react@1.7.0-next.11) (2023-08-28)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.10](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.9...@esri/calcite-components-react@1.7.0-next.10) (2023-08-28)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.9](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.8...@esri/calcite-components-react@1.7.0-next.9) (2023-08-26)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.8](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.7...@esri/calcite-components-react@1.7.0-next.8) (2023-08-25)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.7](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.6...@esri/calcite-components-react@1.7.0-next.7) (2023-08-25)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.6](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.5...@esri/calcite-components-react@1.7.0-next.6) (2023-08-25)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.5](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.4...@esri/calcite-components-react@1.7.0-next.5) (2023-08-24)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.4](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.3...@esri/calcite-components-react@1.7.0-next.4) (2023-08-23)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.3](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.2...@esri/calcite-components-react@1.7.0-next.3) (2023-08-23)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.1...@esri/calcite-components-react@1.7.0-next.2) (2023-08-23)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.1](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.7.0-next.0...@esri/calcite-components-react@1.7.0-next.1) (2023-08-22)

**Note:** Version bump only for package @esri/calcite-components-react

## [1.7.0-next.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.6.2-next.0...@esri/calcite-components-react@1.7.0-next.0) (2023-08-22)
### Bug Fixes

**Note:** Version bump only for package @esri/calcite-components-react
- Make sure components are defined in environments like in codesandbox ([#7632](https://github.com/Esri/calcite-design-system/issues/7632)) ([7005cce](https://github.com/Esri/calcite-design-system/commit/7005cce95835193c8fc8ab41ad47b64abe9de66e))

## [1.6.2-next.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.6.1...@esri/calcite-components-react@1.6.2-next.0) (2023-08-22)
### Dependencies

**Note:** Version bump only for package @esri/calcite-components-react
- The following workspace dependencies were updated
- dependencies
- @esri/calcite-components bumped from ^1.7.0-next.22 to ^1.7.0

## [1.6.1](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@1.6.0...@esri/calcite-components-react@1.6.1) (2023-08-18)

Expand Down
5 changes: 3 additions & 2 deletions packages/calcite-components-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@esri/calcite-components-react",
"sideEffects": false,
"version": "1.7.0-next.13",
"version": "1.7.1-next.0",
"homepage": "https://developers.arcgis.com/calcite-design-system/",
"description": "A set of React components that wrap calcite components",
"license": "SEE LICENSE.md",
"scripts": {
Expand All @@ -19,7 +20,7 @@
"dist/"
],
"dependencies": {
"@esri/calcite-components": "^1.7.0-next.13"
"@esri/calcite-components": "^1.7.1-next.0"
},
"peerDependencies": {
"react": ">=16.7",
Expand Down
19 changes: 13 additions & 6 deletions packages/calcite-components-react/src/auto-define.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
const isBrowser = (): boolean =>
![typeof window, typeof document, typeof location].includes("undefined") &&
[typeof process, typeof global].includes("undefined") &&
window.location === location &&
window.document === document;
// CodeSandbox exposes `process`, which makes it look like NodeJS. The only way to determine it should be
// be treated as the browser is the non-standard value they use for `process.platform`.
// https://nodejs.org/api/process.html#processplatform
type CodeSandboxWorkaround = NodeJS.Platform | "browser";

// https://github.com/flexdinesh/browser-or-node/blob/master/src/index.js
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
const isNode =
typeof process !== "undefined" &&
process.versions != null &&
process.versions.node != null &&
(process?.platform as CodeSandboxWorkaround) !== "browser";

export function autoDefine(component: string): () => Promise<void> | undefined {
if (isBrowser()) {
if (isBrowser && !isNode) {
return async () => (await import(`@esri/calcite-components/dist/components/${component}.js`)).defineCustomElement();
}
return undefined;
Expand Down

0 comments on commit 253292f

Please sign in to comment.