@gem-sdk/pages 1.50.0 → 1.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,10 @@ const DropElement = ()=>{
12
12
  });
13
13
  window.dispatchEvent(event);
14
14
  };
15
+ const handleClickGenerate = (e)=>{
16
+ const event = new CustomEvent('editor:sidebar:click-img-to-layout-gallery-btn', e);
17
+ window.dispatchEvent(event);
18
+ };
15
19
  return /*#__PURE__*/ jsxRuntime.jsxs("div", {
16
20
  className: "gp-flex gp-w-full gp-flex-col gp-items-center gp-justify-center",
17
21
  children: [
@@ -144,6 +148,8 @@ const DropElement = ()=>{
144
148
  /*#__PURE__*/ jsxRuntime.jsx("div", {
145
149
  className: "gp-flex gp-items-center gp-gap-2 gp-text-xs",
146
150
  children: /*#__PURE__*/ jsxRuntime.jsx("div", {
151
+ onClick: handleClickGenerate,
152
+ "aria-hidden": "true",
147
153
  id: "gp-img-to-layout-gallery-btn",
148
154
  className: "gp-relative gp-cursor-pointer gp-text-[14px] gp-font-medium gp-text-[#3C67FF]",
149
155
  children: "Start with Generating from URL or image"
@@ -10,6 +10,10 @@ const DropElement = ()=>{
10
10
  });
11
11
  window.dispatchEvent(event);
12
12
  };
13
+ const handleClickGenerate = (e)=>{
14
+ const event = new CustomEvent('editor:sidebar:click-img-to-layout-gallery-btn', e);
15
+ window.dispatchEvent(event);
16
+ };
13
17
  return /*#__PURE__*/ jsxs("div", {
14
18
  className: "gp-flex gp-w-full gp-flex-col gp-items-center gp-justify-center",
15
19
  children: [
@@ -142,6 +146,8 @@ const DropElement = ()=>{
142
146
  /*#__PURE__*/ jsx("div", {
143
147
  className: "gp-flex gp-items-center gp-gap-2 gp-text-xs",
144
148
  children: /*#__PURE__*/ jsx("div", {
149
+ onClick: handleClickGenerate,
150
+ "aria-hidden": "true",
145
151
  id: "gp-img-to-layout-gallery-btn",
146
152
  className: "gp-relative gp-cursor-pointer gp-text-[14px] gp-font-medium gp-text-[#3C67FF]",
147
153
  children: "Start with Generating from URL or image"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -26,10 +26,10 @@
26
26
  "next": "latest"
27
27
  },
28
28
  "devDependencies": {
29
- "@gem-sdk/core": "1.50.0",
30
- "@gem-sdk/plugin-cookie-bar": "1.50.0",
31
- "@gem-sdk/plugin-quick-view": "1.50.0",
32
- "@gem-sdk/plugin-sticky-add-to-cart": "1.50.0"
29
+ "@gem-sdk/core": "1.51.0",
30
+ "@gem-sdk/plugin-cookie-bar": "1.51.0",
31
+ "@gem-sdk/plugin-quick-view": "1.51.0",
32
+ "@gem-sdk/plugin-sticky-add-to-cart": "1.51.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "next": ">=13"