New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@plasmicapp/host

Package Overview
Dependencies
Maintainers
1
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plasmicapp/host - npm Package Compare versions

Comparing version 1.0.209 to 1.0.210

21

dist/host.esm.js
'use client';
import * as PlasmicQuery from '@plasmicapp/query';
import * as React from 'react';
import React__default, { useState, useCallback, createContext, useContext, isValidElement, cloneElement } from 'react';
import React__default, { useState, useCallback, createContext, useContext, useMemo, isValidElement, cloneElement } from 'react';
import * as ReactDOM from 'react-dom';

@@ -21,3 +21,3 @@

***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */

@@ -350,11 +350,16 @@ var extendStatics = function(d, b) {

function DataProvider(_a) {
var _b;
var _c;
var name = _a.name, data = _a.data, hidden = _a.hidden, advanced = _a.advanced, label = _a.label, children = _a.children;
var existingEnv = (_c = useDataEnv()) !== null && _c !== void 0 ? _c : {};
if (!name) {
var parentContext = useDataEnv();
var childContext = useMemo(function () {
var _a;
if (!name) {
return null;
}
return __assign(__assign({}, parentContext), (_a = {}, _a[name] = data, _a[mkMetaName(name)] = mkMetaValue({ hidden: hidden, advanced: advanced, label: label }), _a));
}, [parentContext, name, data, hidden, advanced, label]);
if (childContext === null) {
return React__default.createElement(React__default.Fragment, null, children);
}
else {
return (React__default.createElement(DataContext.Provider, { value: __assign(__assign({}, existingEnv), (_b = {}, _b[name] = data, _b[mkMetaName(name)] = mkMetaValue({ hidden: hidden, advanced: advanced, label: label }), _b)) }, children));
return (React__default.createElement(DataContext.Provider, { value: childContext }, children));
}

@@ -602,3 +607,3 @@ }

var hostVersion = "1.0.209";
var hostVersion = "1.0.210";

@@ -605,0 +610,0 @@ var _a;

@@ -43,3 +43,3 @@ 'use client';

***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */

@@ -372,11 +372,16 @@ var extendStatics = function(d, b) {

function DataProvider(_a) {
var _b;
var _c;
var name = _a.name, data = _a.data, hidden = _a.hidden, advanced = _a.advanced, label = _a.label, children = _a.children;
var existingEnv = (_c = useDataEnv()) !== null && _c !== void 0 ? _c : {};
if (!name) {
var parentContext = useDataEnv();
var childContext = React.useMemo(function () {
var _a;
if (!name) {
return null;
}
return __assign(__assign({}, parentContext), (_a = {}, _a[name] = data, _a[mkMetaName(name)] = mkMetaValue({ hidden: hidden, advanced: advanced, label: label }), _a));
}, [parentContext, name, data, hidden, advanced, label]);
if (childContext === null) {
return React.createElement(React.Fragment, null, children);
}
else {
return (React.createElement(DataContext.Provider, { value: __assign(__assign({}, existingEnv), (_b = {}, _b[name] = data, _b[mkMetaName(name)] = mkMetaValue({ hidden: hidden, advanced: advanced, label: label }), _b)) }, children));
return (React.createElement(DataContext.Provider, { value: childContext }, children));
}

@@ -624,3 +629,3 @@ }

var hostVersion = "1.0.209";
var hostVersion = "1.0.210";

@@ -627,0 +632,0 @@ var _a;

@@ -1,1 +0,1 @@

export declare const hostVersion = "1.0.209";
export declare const hostVersion = "1.0.210";
{
"name": "@plasmicapp/host",
"version": "1.0.209",
"version": "1.0.210",
"description": "plasmic library for app hosting",

@@ -69,3 +69,3 @@ "main": "dist/index.cjs.js",

},
"gitHead": "a68b0dbe021bc38f355643251cf4150d949f92c6"
"gitHead": "7f923856013e0efa4eb893fa16c2f48bd4edc9c3"
}

@@ -1,1 +0,1 @@

export declare const hostVersion = "1.0.209";
export declare const hostVersion = "1.0.210";

@@ -1,1 +0,1 @@

export declare const hostVersion = "1.0.209";
export declare const hostVersion = "1.0.210";

@@ -1,1 +0,1 @@

export declare const hostVersion = "1.0.209";
export declare const hostVersion = "1.0.210";

@@ -1,1 +0,1 @@

export declare const hostVersion = "1.0.209";
export declare const hostVersion = "1.0.210";

@@ -1,1 +0,1 @@

export declare const hostVersion = "1.0.209";
export declare const hostVersion = "1.0.210";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc