Socket
Socket
Sign inDemoInstall

cms-client-dane

Package Overview
Dependencies
13
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.19 to 0.0.21

18

dist/index.js

@@ -166,2 +166,3 @@ "use strict";

var DELETE = "DELETE";
var EDIT = "EDIT";
var MessageEvent_AllowNavigate = import_zod.z.object({

@@ -190,2 +191,8 @@ _action: import_zod.z.literal(ALLOW_NAVIGATE),

});
var MessageEvent_Edit = import_zod.z.object({
_action: import_zod.z.literal(EDIT),
id: import_zod.z.string().cuid(),
field: import_zod.z.string(),
value: import_zod.z.any()
});

@@ -337,2 +344,3 @@ // src/components/DropZone.tsx

// src/components/Editable.tsx
var import_zod3 = require("zod");
var import_jsx_runtime3 = require("react/jsx-runtime");

@@ -361,7 +369,5 @@ function Editable({ index, content, isParentHovered, dataPath, valuePath, onDrop }) {

}, []);
useListener(getMessage, MessageEvent_Dragging);
useListener(getMessage, import_zod3.z.union([MessageEvent_Dragging, MessageEvent_Edit]));
function getMessage(event) {
var _a;
if (event.origin !== CMSPARENT2)
return;
if (event.data._action === DRAGGING) {

@@ -371,3 +377,3 @@ const bounds = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.getBoundingClientRect();

}
if (event.data.id === id) {
if (event.data.id === id && event.data._action === EDIT) {
setComponentData((data2) => {

@@ -578,3 +584,3 @@ return {

// src/components/Page.tsx
var import_zod3 = require("zod");
var import_zod4 = require("zod");
var import_jsx_runtime5 = require("react/jsx-runtime");

@@ -605,3 +611,3 @@ var editColor = "dodgerblue";

getMessage,
import_zod3.z.union([MessageEvent_AllowNavigate, MessageEvent_Dragging, MessageEvent_Dropped])
import_zod4.z.union([MessageEvent_AllowNavigate, MessageEvent_Dragging, MessageEvent_Dropped])
);

@@ -608,0 +614,0 @@ function getMessage(event) {

{
"name": "cms-client-dane",
"version": "0.0.19",
"version": "0.0.21",
"description": "",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc