@plasmicapp/react-web
Advanced tools
Comparing version 0.2.16 to 0.2.18
import * as React from "react"; | ||
export { default as createUseScreenVariants } from "./createUseScreenVariants"; | ||
export declare type StrictProps<T, TExpected> = Exclude<keyof T, keyof TExpected> extends never ? {} : "Unexpected extraneous props"; | ||
@@ -202,2 +203,1 @@ interface Variants { | ||
export declare function useTrigger(trigger: TriggerType, opts: TriggerOpts): [boolean, React.HTMLAttributes<HTMLElement>]; | ||
export {}; |
@@ -58,2 +58,4 @@ "use strict"; | ||
var React = __importStar(require("react")); | ||
var createUseScreenVariants_1 = require("./createUseScreenVariants"); | ||
Object.defineProperty(exports, "createUseScreenVariants", { enumerable: true, get: function () { return createUseScreenVariants_1.default; } }); | ||
function hasVariant(variants, groupName, variant) { | ||
@@ -632,6 +634,5 @@ if (variants == null) { | ||
if (value === "PLEASE_RENDER_INSIDE_PROVIDER") { | ||
var providerName = key === "screen" | ||
? "ScreenVariantProvider" | ||
: "" + key[0].toUpperCase() + key.substring(1) + "Context.Provider"; | ||
throw new Error("Plasmic context value for global variant \"" + key + "\" was not provided; please use " + providerName + " at the root of your React app. Learn More: https://www.plasmic.app/learn/other-assets/#global-variants"); | ||
var providerName = "" + key[0].toUpperCase() + key.substring(1) + "Context.Provider"; | ||
console.warn("Plasmic context value for global variant \"" + key + "\" was not provided; please use " + providerName + " at the root of your React app. Learn More: https://www.plasmic.app/learn/other-assets/#global-variants"); | ||
globalVariantValues[key] = undefined; | ||
} | ||
@@ -638,0 +639,0 @@ }); |
{ | ||
"name": "@plasmicapp/react-web", | ||
"version": "0.2.16", | ||
"version": "0.2.18", | ||
"description": "plasmic library for rendering in the presentational style", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
51135
12
1173