@gem-sdk/core 1.45.0 → 1.45.1-staging.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.
@@ -111,7 +111,7 @@ const AIContentGenerator = ({ ...props })=>{
111
111
  className: "gp-gen-content-toolbar gp-border-r-[#6a6a6a] gp-border-r gp-pr-1 gp-mr-1",
112
112
  children: /*#__PURE__*/ jsxRuntime.jsxs("button", {
113
113
  className: classNames({
114
- 'gp-bg-[#3B3B3B]': isShowPopup
114
+ 'gp-toolbar-ai-active': isShowPopup
115
115
  }, 'gp-p-1 gp-text-xs gp-flex gp-gap-1 gp-items-center gp-rounded-md hover:gp-bg-[#3B3B3B] gp-font-medium'),
116
116
  onClick: togglePopup,
117
117
  children: [
@@ -7,8 +7,8 @@ var zustand = require('zustand');
7
7
  const ModalContext = /*#__PURE__*/ react.createContext(null);
8
8
  const createModalProvider = (data)=>zustand.createStore((set)=>({
9
9
  activeId: data,
10
- setModalActive: (id)=>{
11
- window?.parent?.postMessage?.(JSON.stringify({
10
+ setModalActive: (id, postMessage)=>{
11
+ postMessage && window?.parent?.postMessage?.(JSON.stringify({
12
12
  type: 'active-element',
13
13
  uid: id
14
14
  }), '*');
@@ -109,7 +109,7 @@ const AIContentGenerator = ({ ...props })=>{
109
109
  className: "gp-gen-content-toolbar gp-border-r-[#6a6a6a] gp-border-r gp-pr-1 gp-mr-1",
110
110
  children: /*#__PURE__*/ jsxs("button", {
111
111
  className: classNames({
112
- 'gp-bg-[#3B3B3B]': isShowPopup
112
+ 'gp-toolbar-ai-active': isShowPopup
113
113
  }, 'gp-p-1 gp-text-xs gp-flex gp-gap-1 gp-items-center gp-rounded-md hover:gp-bg-[#3B3B3B] gp-font-medium'),
114
114
  onClick: togglePopup,
115
115
  children: [
@@ -5,8 +5,8 @@ import { useStore, createStore } from 'zustand';
5
5
  const ModalContext = /*#__PURE__*/ createContext(null);
6
6
  const createModalProvider = (data)=>createStore((set)=>({
7
7
  activeId: data,
8
- setModalActive: (id)=>{
9
- window?.parent?.postMessage?.(JSON.stringify({
8
+ setModalActive: (id, postMessage)=>{
9
+ postMessage && window?.parent?.postMessage?.(JSON.stringify({
10
10
  type: 'active-element',
11
11
  uid: id
12
12
  }), '*');
@@ -28850,7 +28850,7 @@ declare const useCollectionStore: <U>(selector: (state: ExtractState<StoreApi<Co
28850
28850
 
28851
28851
  type ModalContextProps = {
28852
28852
  activeId?: string;
28853
- setModalActive: (id?: string) => void;
28853
+ setModalActive: (id?: string, postMessage?: boolean) => void;
28854
28854
  clearModal: () => void;
28855
28855
  };
28856
28856
  type ModalProviderProps = Pick<ModalContextProps, 'activeId'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.45.0",
3
+ "version": "1.45.1-staging.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@gem-sdk/adapter-shopify": "1.45.0",
31
- "@gem-sdk/styles": "1.45.0",
31
+ "@gem-sdk/styles": "1.45.1-staging.0",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {