@gem-sdk/core 1.8.9 → 1.8.11

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.
@@ -8,6 +8,10 @@ const ModalContext = /*#__PURE__*/ react.createContext(null);
8
8
  const createModalProvider = (data)=>zustand.createStore((set)=>({
9
9
  activeId: data,
10
10
  setModalActive: (id)=>{
11
+ window?.parent?.postMessage?.(JSON.stringify({
12
+ type: 'active-element',
13
+ uid: id
14
+ }), '*');
11
15
  set({
12
16
  activeId: id
13
17
  });
@@ -6,7 +6,7 @@ var makeStyle = require('./make-style.js');
6
6
  const getBorderStyle = (value)=>{
7
7
  return makeStyle.makeStyle({
8
8
  b: value?.border,
9
- bc: colors.isColor(value?.color) ? value?.color : colors.getSingleColorVariable(value?.color),
9
+ bc: colors.getSingleColorVariable(value?.color),
10
10
  bw: value?.width
11
11
  });
12
12
  };
@@ -22,7 +22,7 @@ const getAttrValue = (attr, value, tag)=>{
22
22
  case 'd':
23
23
  if (!value) return 'none';
24
24
  if (value && tag && constant.layoutComponent.includes(tag)) return 'grid';
25
- return 'inline';
25
+ return 'block';
26
26
  default:
27
27
  return value;
28
28
  }
@@ -6,6 +6,10 @@ const ModalContext = /*#__PURE__*/ createContext(null);
6
6
  const createModalProvider = (data)=>createStore((set)=>({
7
7
  activeId: data,
8
8
  setModalActive: (id)=>{
9
+ window?.parent?.postMessage?.(JSON.stringify({
10
+ type: 'active-element',
11
+ uid: id
12
+ }), '*');
9
13
  set({
10
14
  activeId: id
11
15
  });
@@ -1,10 +1,10 @@
1
- import { isColor, getSingleColorVariable, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStateResponsiveClass, getGlobalColorStateClass } from './colors.js';
1
+ import { getSingleColorVariable, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStateResponsiveClass, getGlobalColorStateClass } from './colors.js';
2
2
  import { makeStyle, makeStyleResponsiveState, makeStyleState } from './make-style.js';
3
3
 
4
4
  const getBorderStyle = (value)=>{
5
5
  return makeStyle({
6
6
  b: value?.border,
7
- bc: isColor(value?.color) ? value?.color : getSingleColorVariable(value?.color),
7
+ bc: getSingleColorVariable(value?.color),
8
8
  bw: value?.width
9
9
  });
10
10
  };
@@ -20,7 +20,7 @@ const getAttrValue = (attr, value, tag)=>{
20
20
  case 'd':
21
21
  if (!value) return 'none';
22
22
  if (value && tag && layoutComponent.includes(tag)) return 'grid';
23
- return 'inline';
23
+ return 'block';
24
24
  default:
25
25
  return value;
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.8.9",
3
+ "version": "1.8.11",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",