UNPKG

691 BJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jotai-optics")):"function"==typeof define&&define.amd?define(["exports","jotai-optics"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jotaiOptics={},e.JotaiOptics)}(this,(function(e,t){"use strict";function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var i=o(t);e.focusAtom=function(){return console.warn("[DEPRECATED] use `jotai-optics` instead."),i.focusAtom.apply(i,arguments)}}));