Skip to content

Commit

Permalink
chore: removed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Jan 24, 2025
1 parent 02f0cd8 commit b9e2d58
Show file tree
Hide file tree
Showing 28 changed files with 57 additions and 882 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-rockets-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/ebayui-core": major
---

chore: removed deprecated code
5 changes: 2 additions & 3 deletions src/common/menu-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface MenuItem extends Omit<Marko.HTML.Button, `on${string}`> {
export interface BaseMenuInput {
items?: Marko.AttrTag<MenuItem>;
type?: string;
separator?: Marko.AttrTag<{}>;
}

export interface MenuState {
Expand Down Expand Up @@ -55,8 +54,8 @@ export class MenuUtils<
}

getInputState(input: Input) {
/*
ebay-menu uses separators and we need to exclude these
/*
ebay-menu uses separators and we need to exclude these
from items to pass correct indexes to state
Any other component that doesn't have separator should pass through
*/
Expand Down
45 changes: 0 additions & 45 deletions src/common/transformers/menu-separator/index.js

This file was deleted.

This file was deleted.

34 changes: 0 additions & 34 deletions src/common/transformers/menu-separator/test/test.server.js

This file was deleted.

1 change: 0 additions & 1 deletion src/components/ebay-fake-menu-button/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ interface FakeMenuButtonInput extends Omit<Marko.HTML.Span, `on${string}`> {
reverse?: boolean;
"fix-width"?: boolean;
items?: Marko.AttrTag<FakeMenuItem>;
separator?: Marko.AttrTag<{}>;
"collapse-on-select"?: boolean;
"on-expand"?: (event: MenuEvent) => void;
"on-collapse"?: (event: MenuEvent) => void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ebay-fake-menu-button text="eBay Menu separator">
<@item href="#">item 1</@item>
<@item href="#">item 2</@item>
<@separator/>
<@item separator/>
<@item href="#">item 3</@item>
<@item href="#">item 4</@item>
<@item href="#">item 5</@item>
Expand Down
7 changes: 0 additions & 7 deletions src/components/ebay-fake-menu-button/marko-tag.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"template": "./index.marko",
"transformer": "../../common/transformers/menu-separator",
"@*": {
"targetProperty": null,
"type": "expression"
Expand Down Expand Up @@ -49,11 +48,5 @@
"@class": "string",
"@style": "string"
},
"@separator <separator>[]": {
"@html-attributes": "expression",
"@class": "string",
"@style": "string",
"@separator": "boolean"
},
"description": "[view documentation](https://ebay.github.io/ebayui-core/?path=/story/buttons-ebay-fake-menu-button)"
}
1 change: 0 additions & 1 deletion src/components/ebay-fake-menu/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ interface FakeMenuInput
extends BaseMenuInput,
Omit<Marko.HTML.Span, `on${string}`> {
items?: Marko.AttrTag<Item>;
separator?: Marko.AttrTag<Separator>;
"class-prefix"?: string;
reverse?: boolean;
"fix-width"?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ebay-fake-menu/examples/separator.marko
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ebay-fake-menu>
<@item href="#">item 1 that has very long text</@item>
<@item href="#">item 2</@item>
<@separator/>
<@item separator/>
<@item href="#">item 3</@item>
<@item href="#">item 4</@item>
<@item href="#">item 5</@item>
Expand Down
7 changes: 0 additions & 7 deletions src/components/ebay-fake-menu/marko-tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"type": "expression"
},
"template": "./index.marko",
"transformer": "../../common/transformers/menu-separator",
"@html-attributes": "expression",
"@class": "string",
"@style": "string",
Expand All @@ -27,11 +26,5 @@
"@badge-aria-label": "string",
"@separator": "boolean"
},
"@separator <separator>[]": {
"@html-attributes": "expression",
"@class": "string",
"@style": "string",
"@separator": "boolean"
},
"description": "[view documentation](https://ebay.github.io/ebayui-core/?path=/story/building-blocks-ebay-fake-menu)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,6 @@ exports[`infotip modal > renders default 1`] = `
<div
class="lightbox-dialog__window lightbox-dialog__window--animate"
>
<button
aria-label="Maximize Lightbox Dialog"
class="lightbox-dialog__handle"
type="button"
/>
<div
class="lightbox-dialog__header"
>
Expand Down
100 changes: 0 additions & 100 deletions src/components/ebay-lightbox-dialog/component.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/ebay-lightbox-dialog/examples/default.marko
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class {
open=state.open
on-close("closeDialog")
on-open("emit", "open")
on-expanded("emit", "expanded")
on-collapsed("emit", "collapsed")
...dialogBaseInput
>
<if(header && header.renderBody)>
Expand Down
2 changes: 0 additions & 2 deletions src/components/ebay-lightbox-dialog/examples/focus.marko
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
open=state.open
on-close('closeDialog')
on-open("emit", "open")
on-expanded("emit", "expanded")
on-collapsed("emit", "collapsed")
...input
>
<@header>Heading</@header>
Expand Down
2 changes: 0 additions & 2 deletions src/components/ebay-lightbox-dialog/examples/scrolling.marko
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class {
open=state.open
on-close("closeDialog")
on-open("emit", "open")
on-expanded("emit", "expanded")
on-collapsed("emit", "collapsed")
...input
>
<@header>Heading</@header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
open=state.open
on-close("closeDialog")
on-open("emit", "open")
on-expanded("emit", "expanded")
on-collapsed("emit", "collapsed")
...input
>
<@header>Heading</@header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
on-close("closeDialog")
on-open("emit", "open")
on-prevButtonClick("emit", "prev-button-click")
on-expanded("emit", "expanded")
on-collapsed("emit", "collapsed")
...input
>
<@header>Heading</@header>
Expand Down
Loading

0 comments on commit b9e2d58

Please sign in to comment.