@1urso/generic-editor 0.1.4 → 0.1.6

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.
@@ -8250,6 +8250,7 @@ const ElementContextMenu = ({ children: s, element: d }) => {
8250
8250
  }),
8251
8251
  V && createPortal(/* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
8252
8252
  className: "custom-context-menu-overlay",
8253
+ style: { zIndex: 2147483646 },
8253
8254
  onClick: qD,
8254
8255
  onContextMenu: (s) => {
8255
8256
  s.preventDefault(), qD();
@@ -8258,7 +8259,8 @@ const ElementContextMenu = ({ children: s, element: d }) => {
8258
8259
  className: "custom-context-menu",
8259
8260
  style: {
8260
8261
  top: Math.min(V.y, window.innerHeight - 300),
8261
- left: Math.min(V.x, window.innerWidth - 250)
8262
+ left: Math.min(V.x, window.innerWidth - 250),
8263
+ zIndex: 2147483647
8262
8264
  },
8263
8265
  children: [
8264
8266
  /* @__PURE__ */ jsxs(SubMenu, {
@@ -13222,47 +13224,84 @@ var EditorContent = ({ layout: s, initialState: C, onSave: w, theme: k = "light"
13222
13224
  flexShrink: 0,
13223
13225
  height: "100%"
13224
13226
  },
13225
- children: [/* @__PURE__ */ jsx(c, {
13227
+ children: [/* @__PURE__ */ jsx(p$1, {
13228
+ p: "4",
13229
+ style: {
13230
+ borderBottom: "1px solid var(--gray-5)",
13231
+ backgroundColor: "var(--gray-2)"
13232
+ },
13233
+ children: /* @__PURE__ */ jsx(p, {
13234
+ direction: "column",
13235
+ gap: "3",
13236
+ children: /* @__PURE__ */ jsxs(p$1, { children: [
13237
+ /* @__PURE__ */ jsx(p$2, {
13238
+ size: "2",
13239
+ weight: "bold",
13240
+ mb: "2",
13241
+ as: "div",
13242
+ children: "Editor"
13243
+ }),
13244
+ /* @__PURE__ */ jsxs(I$1, { children: [/* @__PURE__ */ jsx(h, { children: /* @__PURE__ */ jsx(o, {
13245
+ variant: "solid",
13246
+ color: "green",
13247
+ size: "3",
13248
+ style: {
13249
+ width: "100%",
13250
+ cursor: "pointer",
13251
+ justifyContent: "center",
13252
+ marginBottom: "8px"
13253
+ },
13254
+ children: "Adicionar Novo +"
13255
+ }) }), /* @__PURE__ */ jsxs(g, {
13256
+ style: { width: "240px" },
13257
+ children: [
13258
+ /* @__PURE__ */ jsx(v$1, {
13259
+ onSelect: () => X("text"),
13260
+ children: "Texto"
13261
+ }),
13262
+ /* @__PURE__ */ jsx(v$1, {
13263
+ onSelect: () => X("image"),
13264
+ children: "Imagem"
13265
+ }),
13266
+ /* @__PURE__ */ jsx(v$1, {
13267
+ onSelect: () => X("box"),
13268
+ children: "Caixa (Container)"
13269
+ })
13270
+ ]
13271
+ })] }),
13272
+ /* @__PURE__ */ jsxs(o, {
13273
+ variant: "soft",
13274
+ color: "blue",
13275
+ style: {
13276
+ width: "100%",
13277
+ justifyContent: "center",
13278
+ cursor: "pointer"
13279
+ },
13280
+ onClick: () => {
13281
+ if (w) {
13282
+ let s = {
13283
+ elements: J.elements,
13284
+ isList: J.isList,
13285
+ mockData: J.mockData,
13286
+ singleMockData: J.singleMockData,
13287
+ listSettings: J.listSettings
13288
+ };
13289
+ w(JSON.stringify(s, null, 2));
13290
+ }
13291
+ },
13292
+ children: [/* @__PURE__ */ jsx(Share1Icon, {}), " Salvar Alterações"]
13293
+ })
13294
+ ] })
13295
+ })
13296
+ }), /* @__PURE__ */ jsx(c, {
13226
13297
  type: "auto",
13227
13298
  scrollbars: "vertical",
13228
13299
  style: { flex: 1 },
13229
- children: /* @__PURE__ */ jsxs(p, {
13300
+ children: /* @__PURE__ */ jsx(p, {
13230
13301
  direction: "column",
13231
13302
  gap: "4",
13232
13303
  p: "4",
13233
- children: [/* @__PURE__ */ jsxs(p$1, { children: [/* @__PURE__ */ jsx(p$2, {
13234
- size: "2",
13235
- weight: "bold",
13236
- mb: "2",
13237
- as: "div",
13238
- children: "Elementos"
13239
- }), /* @__PURE__ */ jsxs(I$1, { children: [/* @__PURE__ */ jsx(h, { children: /* @__PURE__ */ jsx(o, {
13240
- variant: "solid",
13241
- color: "green",
13242
- size: "3",
13243
- style: {
13244
- width: "100%",
13245
- cursor: "pointer",
13246
- justifyContent: "center"
13247
- },
13248
- children: "Adicionar Novo +"
13249
- }) }), /* @__PURE__ */ jsxs(g, {
13250
- style: { width: "240px" },
13251
- children: [
13252
- /* @__PURE__ */ jsx(v$1, {
13253
- onSelect: () => X("text"),
13254
- children: "Texto"
13255
- }),
13256
- /* @__PURE__ */ jsx(v$1, {
13257
- onSelect: () => X("image"),
13258
- children: "Imagem"
13259
- }),
13260
- /* @__PURE__ */ jsx(v$1, {
13261
- onSelect: () => X("box"),
13262
- children: "Caixa (Container)"
13263
- })
13264
- ]
13265
- })] })] }), /* @__PURE__ */ jsxs(p$1, { children: [
13304
+ children: /* @__PURE__ */ jsxs(p$1, { children: [
13266
13305
  /* @__PURE__ */ jsx(p$2, {
13267
13306
  size: "2",
13268
13307
  weight: "bold",
@@ -13304,51 +13343,7 @@ var EditorContent = ({ layout: s, initialState: C, onSave: w, theme: k = "light"
13304
13343
  children: "Nenhuma variável configurada."
13305
13344
  })]
13306
13345
  })
13307
- ] })]
13308
- })
13309
- }), /* @__PURE__ */ jsx(p$1, {
13310
- p: "4",
13311
- pb: "6",
13312
- style: {
13313
- borderTop: "1px solid var(--gray-5)",
13314
- backgroundColor: "var(--color-background)"
13315
- },
13316
- children: /* @__PURE__ */ jsx(p, {
13317
- direction: "column",
13318
- gap: "3",
13319
- children: /* @__PURE__ */ jsxs(p$1, { children: [/* @__PURE__ */ jsx(p$2, {
13320
- size: "2",
13321
- weight: "bold",
13322
- mb: "2",
13323
- as: "div",
13324
- children: "Ações"
13325
- }), /* @__PURE__ */ jsx(p, {
13326
- gap: "3",
13327
- direction: "column",
13328
- children: /* @__PURE__ */ jsxs(o, {
13329
- variant: "soft",
13330
- color: "blue",
13331
- style: {
13332
- width: "100%",
13333
- justifyContent: "center",
13334
- cursor: "pointer",
13335
- marginBottom: "12px"
13336
- },
13337
- onClick: () => {
13338
- if (w) {
13339
- let s = {
13340
- elements: J.elements,
13341
- isList: J.isList,
13342
- mockData: J.mockData,
13343
- singleMockData: J.singleMockData,
13344
- listSettings: J.listSettings
13345
- };
13346
- w(JSON.stringify(s, null, 2));
13347
- }
13348
- },
13349
- children: [/* @__PURE__ */ jsx(Share1Icon, {}), " Salvar Alterações"]
13350
- })
13351
- })] })
13346
+ ] })
13352
13347
  })
13353
13348
  })]
13354
13349
  }), /* @__PURE__ */ jsxs(p$1, {