From 5ccb1ae9950e578ea0e4f0d00cd26f11ac8aa6ca Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 Jan 2025 16:24:49 +0000 Subject: [PATCH] ci: release (next) --- .changeset/pre.json | 22 ++++++++++++ .storybook/main.ts | 4 +-- CHANGELOG.md | 35 +++++++++++++++++++ package-lock.json | 4 +-- package.json | 2 +- src/common/charts/shared.ts | 4 +-- src/common/dropdown/index.ts | 10 ++++-- src/components/ebay-accordion/README.md | 6 ++-- .../ebay-accordion/accordion.stories.ts | 3 +- src/components/ebay-accordion/component.ts | 10 +++--- src/components/ebay-area-chart/README.md | 6 ++-- .../ebay-area-chart/area-chart.stories.ts | 4 +-- src/components/ebay-bar-chart/component.ts | 2 +- src/components/ebay-date-textbox/component.ts | 5 ++- .../ebay-details/details.stories.ts | 6 ++-- .../ebay-filter-menu-button/component.ts | 5 ++- src/components/ebay-line-chart/component.ts | 2 +- .../ebay-listbox-button/component.ts | 5 ++- src/components/ebay-menu-button/component.ts | 4 +-- src/components/ebay-table/table.stories.ts | 7 +--- 20 files changed, 104 insertions(+), 42 deletions(-) create mode 100644 .changeset/pre.json diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 000000000..7a56bab35 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,22 @@ +{ + "mode": "pre", + "tag": "next", + "initialVersions": { + "@ebay/ebayui-core": "14.6.9" + }, + "changesets": [ + "breezy-toys-agree", + "fast-toys-sparkle", + "healthy-ducks-sip", + "lemon-mangos-thank", + "poor-mirrors-float", + "rotten-geckos-sniff", + "sharp-bees-grin", + "short-crabs-retire", + "sixty-experts-marry", + "smooth-rules-laugh", + "thirty-walls-notice", + "tidy-rockets-wonder", + "wet-wombats-roll" + ] +} diff --git a/.storybook/main.ts b/.storybook/main.ts index 0577782eb..7f2548159 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -44,8 +44,8 @@ export default { // Pre-bundle @storybook/addon-docs/blocks to avoid runtime errors // This is needed because MDX documentation requires these blocks to be available // during dynamic imports - include: ['@storybook/addon-docs/blocks'] - } + include: ["@storybook/addon-docs/blocks"], + }, }); }, }; diff --git a/CHANGELOG.md b/CHANGELOG.md index bf6306f26..1013d1d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # eBayUI-Core Changelog +## 15.0.0-next.0 + +### Major Changes + +- [#2384](https://github.com/eBay/ebayui-core/pull/2384) [`aad6f91`](https://github.com/eBay/ebayui-core/commit/aad6f91497c136185490bbf6218a8d38b1dd3093) Thanks [@agliga](https://github.com/agliga)! - fix(combobox): remove view all options + `view-all-options` is no longer a valid option for combobox. Use `autocomplete: none` instead + +- [#2357](https://github.com/eBay/ebayui-core/pull/2357) [`549c3c3`](https://github.com/eBay/ebayui-core/commit/549c3c3f7369df4d7e3d0ae0fb3d7549ee315c17) Thanks [@saiponnada](https://github.com/saiponnada)! - feat(ebay-accordion): new component + +- [#2381](https://github.com/eBay/ebayui-core/pull/2381) [`02f0cd8`](https://github.com/eBay/ebayui-core/commit/02f0cd887d0eb073bb1378ef515aa9e4db9d4d0a) Thanks [@agliga](https://github.com/agliga)! - feat(dropdowns): added support for floating-ui + +- [#2411](https://github.com/eBay/ebayui-core/pull/2411) [`57d2b60`](https://github.com/eBay/ebayui-core/commit/57d2b6009bdb25543845f30f0cc298d6d44a1c3f) Thanks [@agliga](https://github.com/agliga)! - chore: renamed ebay-fullscreen-dialog to ebay-fullscreen-dialog-deprecated and ebay-drawer-dialog to ebay-drawer-dialog-deprecated + +- [#2406](https://github.com/eBay/ebayui-core/pull/2406) [`7dfbfce`](https://github.com/eBay/ebayui-core/commit/7dfbfce3d8b56d8895b130507666d5ce0010de43) Thanks [@agliga](https://github.com/agliga)! - chore: removed deprecated code + +### Minor Changes + +- [#2405](https://github.com/eBay/ebayui-core/pull/2405) [`e40437c`](https://github.com/eBay/ebayui-core/commit/e40437cf8c2e301ed00958831e14996b2fec2757) Thanks [@github-actions](https://github.com/apps/github-actions)! - fix(ebay-table): update row-header attribute, removed aria-pressed + +- [#2405](https://github.com/eBay/ebayui-core/pull/2405) [`6bddc30`](https://github.com/eBay/ebayui-core/commit/6bddc309ac8ffbff98302ec88ecd403e5c962723) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add area chart + +### Patch Changes + +- [#2407](https://github.com/eBay/ebayui-core/pull/2407) [`e40902f`](https://github.com/eBay/ebayui-core/commit/e40902f378ffdd69b79bab48356ada97725bd7a2) Thanks [@LuLaValva](https://github.com/LuLaValva)! - Ensure custom styles are included in build + +- [#2405](https://github.com/eBay/ebayui-core/pull/2405) [`c2b5b9d`](https://github.com/eBay/ebayui-core/commit/c2b5b9d6678516df4a7dc40aef5f37df1fad6b01) Thanks [@github-actions](https://github.com/apps/github-actions)! - Refactor to simplify types + +- [#2408](https://github.com/eBay/ebayui-core/pull/2408) [`eb53ada`](https://github.com/eBay/ebayui-core/commit/eb53adaf7b1380ffa13292a844f47c00549c5cfe) Thanks [@LuLaValva](https://github.com/LuLaValva)! - Remove chevron from combobox + +- [#2405](https://github.com/eBay/ebayui-core/pull/2405) [`bd170c2`](https://github.com/eBay/ebayui-core/commit/bd170c2448a49d2e3cc8f7441063b94f9b1156c5) Thanks [@github-actions](https://github.com/apps/github-actions)! - TS fix for combobox + +- [#2405](https://github.com/eBay/ebayui-core/pull/2405) [`21197e5`](https://github.com/eBay/ebayui-core/commit/21197e55618b0c01fb522d6417307d0e4c6d4877) Thanks [@github-actions](https://github.com/apps/github-actions)! - Upgrade dependencies + +- [#2405](https://github.com/eBay/ebayui-core/pull/2405) [`d316e9f`](https://github.com/eBay/ebayui-core/commit/d316e9f7eac27aea776d11ed5ed556c1928cfd9d) Thanks [@github-actions](https://github.com/apps/github-actions)! - Updated the component-browser.ts file to reference shared attributes from tags-html.d.ts and added the Textbox class implementation. + ## 14.6.9 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index 903dee472..700f07961 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ebay/ebayui-core", - "version": "14.6.9", + "version": "15.0.0-next.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ebay/ebayui-core", - "version": "14.6.9", + "version": "15.0.0-next.0", "license": "MIT", "dependencies": { "@floating-ui/dom": "^1.6.13", diff --git a/package.json b/package.json index 867f03d0e..beb729c70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ebay/ebayui-core", - "version": "14.6.9", + "version": "15.0.0-next.0", "description": "Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.", "keywords": [ "marko-components" diff --git a/src/common/charts/shared.ts b/src/common/charts/shared.ts index 22302a6a2..4a4deb748 100644 --- a/src/common/charts/shared.ts +++ b/src/common/charts/shared.ts @@ -80,14 +80,12 @@ export const chartFontFamily = '"Market Sans", Arial, sans-serif', if (series[i].type === "bar") { (series[i] as Highcharts.SeriesBarOptions).borderColor = color; (series[i] as Highcharts.SeriesBarOptions).color = color; - } - else { + } else { (series[i] as Highcharts.SeriesAreaOptions).lineColor = color; (series[i] as Highcharts.SeriesAreaOptions).fillOpacity = 1; } } }, - setDonutColors = function (series: any) { const colors = [ { lineColor: chartPrimaryColor, borderColor: chartPrimaryColor }, diff --git a/src/common/dropdown/index.ts b/src/common/dropdown/index.ts index 06450bf57..757c6d7d6 100644 --- a/src/common/dropdown/index.ts +++ b/src/common/dropdown/index.ts @@ -4,12 +4,12 @@ import { computePosition, shift, offset, - type ReferenceElement + type ReferenceElement, } from "@floating-ui/dom"; interface DropdownUtilOptions { reverse?: boolean; - offset?: number + offset?: number; } export class DropdownUtil { @@ -18,7 +18,11 @@ export class DropdownUtil { declare cleanupFn: any; declare options: DropdownUtilOptions; - constructor(host: HTMLElement, overlay: HTMLElement, options?: DropdownUtilOptions) { + constructor( + host: HTMLElement, + overlay: HTMLElement, + options?: DropdownUtilOptions, + ) { this.host = host as ReferenceElement; this.overlay = overlay as HTMLElement; this.options = options ?? {}; diff --git a/src/components/ebay-accordion/README.md b/src/components/ebay-accordion/README.md index 9c92cc1e2..722e4e07b 100644 --- a/src/components/ebay-accordion/README.md +++ b/src/components/ebay-accordion/README.md @@ -9,6 +9,6 @@ ## Examples and Documentation -- [Storybook](https://ebay.github.io/ebayui-core/?path=/story/navigation-disclosure-ebay-accordion) -- [Storybook Docs](https://ebay.github.io/ebayui-core/?path=/docs/navigation-disclosure-ebay-accordion) -- [Code Examples](https://github.com/eBay/ebayui-core/tree/master/src/components/ebay-accordion/examples) +- [Storybook](https://ebay.github.io/ebayui-core/?path=/story/navigation-disclosure-ebay-accordion) +- [Storybook Docs](https://ebay.github.io/ebayui-core/?path=/docs/navigation-disclosure-ebay-accordion) +- [Code Examples](https://github.com/eBay/ebayui-core/tree/master/src/components/ebay-accordion/examples) diff --git a/src/components/ebay-accordion/accordion.stories.ts b/src/components/ebay-accordion/accordion.stories.ts index b87b1e04a..d26d8d10f 100644 --- a/src/components/ebay-accordion/accordion.stories.ts +++ b/src/components/ebay-accordion/accordion.stories.ts @@ -63,7 +63,8 @@ export default { }, onToggle: { action: "on-toggle", - description: "Triggered on toggle of details to control auto-collapse", + description: + "Triggered on toggle of details to control auto-collapse", table: { category: "Events", defaultValue: { diff --git a/src/components/ebay-accordion/component.ts b/src/components/ebay-accordion/component.ts index d9bb07da1..aa3cc21ba 100644 --- a/src/components/ebay-accordion/component.ts +++ b/src/components/ebay-accordion/component.ts @@ -26,13 +26,15 @@ class Accordion extends Marko.Component { }; } - handleToggle(index: number, event: { originalEvent: Event; open: boolean; }) { - + handleToggle( + index: number, + event: { originalEvent: Event; open: boolean }, + ) { const { autoCollapse } = this.input; - if(autoCollapse && event.open) { + if (autoCollapse && event.open) { this.state.index = index; } - + this.emit("toggle", { originalEvent: event.originalEvent, open: (event.originalEvent.target as HTMLDetailsElement).open, diff --git a/src/components/ebay-area-chart/README.md b/src/components/ebay-area-chart/README.md index 396a18cd5..d83a2e2a8 100644 --- a/src/components/ebay-area-chart/README.md +++ b/src/components/ebay-area-chart/README.md @@ -11,6 +11,6 @@ The area chart displays one to five series of data points as an interactive stac ## Examples and Documentation -- [Storybook](https://ebay.github.io/ebayui-core/?path=/docs/charts-ebay-area-chart) -- [Storybook Docs](https://ebay.github.io/ebayui-core/?path=/docs/charts-ebay-area-chart) -- [Code Examples](https://github.com/eBay/ebayui-core/tree/master/src/components/ebay-area-chart/examples) +- [Storybook](https://ebay.github.io/ebayui-core/?path=/docs/charts-ebay-area-chart) +- [Storybook Docs](https://ebay.github.io/ebayui-core/?path=/docs/charts-ebay-area-chart) +- [Code Examples](https://github.com/eBay/ebayui-core/tree/master/src/components/ebay-area-chart/examples) diff --git a/src/components/ebay-area-chart/area-chart.stories.ts b/src/components/ebay-area-chart/area-chart.stories.ts index 918c61e47..54571d40a 100644 --- a/src/components/ebay-area-chart/area-chart.stories.ts +++ b/src/components/ebay-area-chart/area-chart.stories.ts @@ -19,7 +19,7 @@ const seriesDataWithoutLabels = sampleSeriesData.map((series) => { return rest; }), }; -}) +}); export default { title: "charts/ebay-area-chart", @@ -226,4 +226,4 @@ CustomHighchartOptions.args = { tickAmount: 4, }, }, -}; \ No newline at end of file +}; diff --git a/src/components/ebay-bar-chart/component.ts b/src/components/ebay-bar-chart/component.ts index f385c21a2..7a5c27c47 100644 --- a/src/components/ebay-bar-chart/component.ts +++ b/src/components/ebay-bar-chart/component.ts @@ -97,7 +97,7 @@ class BarChart extends Marko.Component { : [this.input.series]; const stacked = this.input.stacked; const title = this.input.title; - + // controls rounded corders and spacing at the bottom of data points if (stacked) { series[0].bottom = true; // set a variable on the first series so it renders rounder corners on the bottom of the bar diff --git a/src/components/ebay-date-textbox/component.ts b/src/components/ebay-date-textbox/component.ts index 9ecd8a03c..59fbb95b7 100644 --- a/src/components/ebay-date-textbox/component.ts +++ b/src/components/ebay-date-textbox/component.ts @@ -76,7 +76,10 @@ class DateTextbox extends Marko.Component { autoCollapse: true, }); - this.dropdownUtil = new DropdownUtil(this.el as HTMLElement, this.getEl("popover")) + this.dropdownUtil = new DropdownUtil( + this.el as HTMLElement, + this.getEl("popover"), + ); } onDestroy() { diff --git a/src/components/ebay-details/details.stories.ts b/src/components/ebay-details/details.stories.ts index 97908dc26..bb158af1b 100644 --- a/src/components/ebay-details/details.stories.ts +++ b/src/components/ebay-details/details.stories.ts @@ -24,7 +24,8 @@ export default { renderBody: {}, summary: { name: "@summary", - description: "The body which will be wrapped as the details summary", + description: + "The body which will be wrapped as the details summary", table: { category: "@attribute tags", }, @@ -91,8 +92,7 @@ export default { export const Standard = Template.bind({}); Standard.args = { - renderBody: - `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`, + renderBody: `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`, summary: { renderBody: `Show me details!`, }, diff --git a/src/components/ebay-filter-menu-button/component.ts b/src/components/ebay-filter-menu-button/component.ts index c49630ccc..2b07a727c 100644 --- a/src/components/ebay-filter-menu-button/component.ts +++ b/src/components/ebay-filter-menu-button/component.ts @@ -165,10 +165,9 @@ export default class extends MenuUtils { this.getEl("button"), this.getEl("menu"), { - offset: 8 - } + offset: 8, + }, ); - } _cleanupMakeup() { diff --git a/src/components/ebay-line-chart/component.ts b/src/components/ebay-line-chart/component.ts index 884234888..f9506ae2d 100644 --- a/src/components/ebay-line-chart/component.ts +++ b/src/components/ebay-line-chart/component.ts @@ -25,7 +25,7 @@ declare const Highcharts: typeof HighchartsTypes; interface SeriesLineOptions extends Highcharts.PlotLineOptions { data: Highcharts.PointOptionsObject[]; - type: "line", + type: "line"; } interface LineChartInput extends Omit { diff --git a/src/components/ebay-listbox-button/component.ts b/src/components/ebay-listbox-button/component.ts index a82784941..c938cf6a2 100644 --- a/src/components/ebay-listbox-button/component.ts +++ b/src/components/ebay-listbox-button/component.ts @@ -126,7 +126,10 @@ class ListboxButton extends Marko.Component { scrollKeyPreventer.add(this.getEl("button")); } - this.dropdownUtil = new DropdownUtil(this.getEl("button"), this.getEl("options")) + this.dropdownUtil = new DropdownUtil( + this.getEl("button"), + this.getEl("options"), + ); } _cleanupMakeup() { diff --git a/src/components/ebay-menu-button/component.ts b/src/components/ebay-menu-button/component.ts index d7def53c2..d26e4c6d9 100644 --- a/src/components/ebay-menu-button/component.ts +++ b/src/components/ebay-menu-button/component.ts @@ -234,8 +234,8 @@ export default class extends MenuUtils { this.getEl("button"), this.getEl("content"), { - reverse: this.input.reverse - } + reverse: this.input.reverse, + }, ); } diff --git a/src/components/ebay-table/table.stories.ts b/src/components/ebay-table/table.stories.ts index e2e288833..bf3b34b97 100644 --- a/src/components/ebay-table/table.stories.ts +++ b/src/components/ebay-table/table.stories.ts @@ -73,12 +73,7 @@ export default { columnType: { name: "column-type", control: { type: "select" }, - options: [ - "normal", - "numeric", - "layout", - "icon-action", - ], + options: ["normal", "numeric", "layout", "icon-action"], table: { category: "@header attribute tags", defaultValue: {