Skip to content

Commit

Permalink
refactor name
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-or-not-tobi committed Aug 1, 2024
1 parent 24a73db commit ba65090
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion libs/domain/product/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export * from '../media/src/media.def';
export * from '../price/src/price.def';
export * from '../relations/relations.def';
export * from '../title/src/title.def';
export * from '../variant-list/variant-list.def';
export * from '../variant-selector/variant-selector.def';
2 changes: 0 additions & 2 deletions libs/domain/product/variant-list/index.ts

This file was deleted.

16 changes: 0 additions & 16 deletions libs/domain/product/variant-list/variant-list.def.ts

This file was deleted.

2 changes: 2 additions & 0 deletions libs/domain/product/variant-selector/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './variant-selector.component';
export * from './variant-selector.styles';
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import {
} from '@oryx-frontend/utilities/src/signals/core';
import { LitElement, TemplateResult, html } from 'lit';
import { repeat } from 'lit/directives/repeat.js';
import { variantListStyle } from './variant-list.styles';
import { variantListStyle } from './variant-selector.styles';

@hydrate({ context: PRODUCT })
@signalAware()
export class ProductVariantListComponent extends ProductMixin(
export class ProductVariantSelectorComponent extends ProductMixin(
LayoutMixin(LitElement)
) {
static styles = variantListStyle;
Expand Down
16 changes: 16 additions & 0 deletions libs/domain/product/variant-selector/variant-selector.def.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { componentDef } from '@oryx-frontend/utilities';
import { ProductVariantSelectorComponent } from './variant-selector.component';

declare global {
interface FeatureOptions {
'oryx-product-variant-selector'?: ProductVariantSelectorComponent;
}
}

export const productVariantSelectorComponent = componentDef({
name: 'oryx-product-variant-selector',
impl: () =>
import('./variant-selector.component').then(
(m) => m.ProductVariantSelectorComponent
),
});
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const productPage: ExperienceComponent = {
},
{ type: 'oryx-product-average-rating' },
{ type: 'oryx-product-id' },
{ type: 'oryx-product-variant-list' },
{ type: 'oryx-product-variant-selector' },
{
type: 'oryx-product-price',
options: { enableSalesLabel: true },
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
"libs/domain/product/relations/index.ts"
],
"@oryx-frontend/product/title": ["libs/domain/product/title/index.ts"],
"@oryx-frontend/product/variant-list": [
"libs/domain/product/variant-list/index.ts"
"@oryx-frontend/product/variant-selector": [
"libs/domain/product/variant-selector/index.ts"
],
"@oryx-frontend/push-notification": [
"libs/platform/push-notification/src/index.ts"
Expand Down

0 comments on commit ba65090

Please sign in to comment.