Skip to content

Commit 190ada9

Browse files
committed
Merge remote-tracking branch 'origin/master' into copilot/add-cssnano-integration
2 parents f30300c + 2fc499e commit 190ada9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+159
-169
lines changed

esbuild.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const getTemplatesEndpoint = () => {
2525
return "https://templates.teaser.stackla.com"
2626
case "development":
2727
return "http://localhost:4003"
28+
default:
29+
return "http://localhost:4003"
2830
}
2931
}
3032

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"vitest": "^3.2.4"
104104
},
105105
"dependencies": {
106-
"@stackla/widget-utils": "workspace:*",
106+
"@stackla/widget-utils": "^4.1.2",
107107
"apicache": "^1.6.3",
108108
"cookie-parser": "^1.4.7",
109109
"cors": "^2.8.5",

tests/e2e/assertions/expanded-tile.assert.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export async function shouldHaveProductButtonWithValidURL(page: Page, widgetType
6262
//data-testid="ugc-add-to-cart-button"
6363
const button = page.getByTestId("ugc-add-to-cart-button").first()
6464

65-
await page.pause()
66-
6765
// Wait for the POST request after clicking the button
6866
const [request] = await Promise.all([
6967
page.waitForRequest(

tests/fixtures/widget.options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const widgetOptions: SharedWidgetOptions["widgetOptions"] & {
2828
show_votes: true,
2929
show_cross_sellers: true,
3030
show_add_to_cart: true,
31-
show_carousel_grouping: false
31+
show_carousel_grouping: false,
32+
expanded_tile_variant: "horizontal"
3233
},
3334
tile_options: {
3435
show_comments: true,

types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { Sdk, SwiperData } from "@stackla/widget-utils/types"
1+
export { ISdk, SwiperData } from "@stackla/widget-utils/types"
22
export { BaseConfig } from "./IBaseConfig"
33
export { IWidgetSettings } from "./IWidgetSettings"

widgets/blankcanvas/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export const config: {
7171
// Whether to show the add to cart
7272
show_add_to_cart: true,
7373
// Whether to show the carousel grouping
74-
show_carousel_grouping: true
74+
show_carousel_grouping: true,
75+
expanded_tile_variant: "horizontal"
7576
},
7677
inlineTile: {
7778
// Whether to show the navigation options of the tile

widgets/carousel/inline-carousel-swiper.loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Sdk } from "types"
1+
import { ISdk } from "types"
22
import { initializeInlineSwiper } from "../utils/inline-swiper.loader"
33

4-
declare const sdk: Sdk
4+
declare const sdk: ISdk
55

66
export function initializeInlineSwiperListeners() {
77
initializeInlineSwiper({

widgets/carousel/widget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Sdk } from "types"
1+
import { ISdk } from "types"
22

3-
declare const sdk: Sdk
3+
declare const sdk: ISdk
44

55
import { loadWidget } from "@stackla/widget-utils"
66
import { initializeInlineSwiperListeners } from "./inline-carousel-swiper.loader"

0 commit comments

Comments
 (0)