atom.io 0.6.0 → 0.6.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom.io",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Reactive state graph for React, Preact, and vanilla",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,7 +42,7 @@ module.exports = __toCommonJS(react_exports);
42
42
  // ../src/react/store-context.tsx
43
43
  var React = __toESM(require("react"));
44
44
  var AtomIO = __toESM(require("atom.io"));
45
- var import_jsx_runtime = require("@emotion/react/jsx-runtime");
45
+ var import_jsx_runtime = require("react/jsx-runtime");
46
46
  var StoreContext = React.createContext(
47
47
  AtomIO.__INTERNAL__.IMPLICIT.STORE
48
48
  );
@@ -1,7 +1,7 @@
1
1
  // ../src/react/store-context.tsx
2
2
  import * as React from "react";
3
3
  import * as AtomIO from "atom.io";
4
- import { jsx } from "@emotion/react/jsx-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  var StoreContext = React.createContext(
6
6
  AtomIO.__INTERNAL__.IMPLICIT.STORE
7
7
  );
@@ -211,7 +211,7 @@ var JSON_DEFAULTS = {
211
211
 
212
212
  // ../../hamr/src/react-elastic-input/ElasticInput.tsx
213
213
  var import_react = require("react");
214
- var import_jsx_runtime = require("@emotion/react/jsx-runtime");
214
+ var import_jsx_runtime = require("react/jsx-runtime");
215
215
  var ElasticInput = (0, import_react.forwardRef)(function ElasticInputFC(props, ref) {
216
216
  var _a2, _b, _c, _d;
217
217
  const inputRef = (0, import_react.useRef)(null);
@@ -277,7 +277,7 @@ var import_function7 = require("fp-ts/function");
277
277
  var clampInto = ([min, max]) => (value) => value < min ? min : value > max ? max : value;
278
278
 
279
279
  // ../../hamr/src/react-elastic-input/NumberInput.tsx
280
- var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
280
+ var import_jsx_runtime2 = require("react/jsx-runtime");
281
281
  function round(value, decimalPlaces) {
282
282
  if (decimalPlaces === void 0)
283
283
  return value;
@@ -408,7 +408,7 @@ var NumberInput = ({
408
408
  };
409
409
 
410
410
  // ../../hamr/src/react-elastic-input/TextInput.tsx
411
- var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
411
+ var import_jsx_runtime3 = require("react/jsx-runtime");
412
412
  var TextInput = ({
413
413
  value,
414
414
  set,
@@ -451,7 +451,7 @@ var makeElementSetters = (data, set) => data.map(
451
451
  );
452
452
 
453
453
  // ../../hamr/src/react-json-editor/json-editor-internal.tsx
454
- var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
454
+ var import_jsx_runtime4 = require("react/jsx-runtime");
455
455
  var JsonEditor_INTERNAL = ({
456
456
  data,
457
457
  set,
@@ -516,7 +516,7 @@ var JsonEditor_INTERNAL = ({
516
516
  };
517
517
 
518
518
  // ../../hamr/src/react-json-editor/editors-by-type/array-editor.tsx
519
- var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
519
+ var import_jsx_runtime5 = require("react/jsx-runtime");
520
520
  var ArrayEditor = ({
521
521
  path = [],
522
522
  isReadonly = () => false,
@@ -1106,7 +1106,7 @@ var makePropertySorter = (data, set, sortFn) => () => {
1106
1106
  };
1107
1107
 
1108
1108
  // ../../hamr/src/react-json-editor/editors-by-type/object-editor.tsx
1109
- var import_jsx_runtime6 = require("@emotion/react/jsx-runtime");
1109
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1110
1110
  var PropertyAdder = ({
1111
1111
  addProperty,
1112
1112
  disabled,
@@ -1201,7 +1201,7 @@ var ObjectEditor = ({
1201
1201
  };
1202
1202
 
1203
1203
  // ../../hamr/src/react-json-editor/editors-by-type/primitive-editors.tsx
1204
- var import_jsx_runtime7 = require("@emotion/react/jsx-runtime");
1204
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1205
1205
  var BooleanEditor = ({
1206
1206
  data,
1207
1207
  set
@@ -1249,7 +1249,7 @@ var import_react4 = require("react");
1249
1249
  var import_recoil = require("recoil");
1250
1250
 
1251
1251
  // ../../hamr/src/react-error-boundary/DefaultFallback.tsx
1252
- var import_jsx_runtime8 = require("@emotion/react/jsx-runtime");
1252
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1253
1253
  var DefaultFallback = ({ error, errorInfo }) => {
1254
1254
  var _a2, _b;
1255
1255
  const component = errorInfo == null ? void 0 : errorInfo.componentStack.split(` `).filter(Boolean)[2];
@@ -1299,7 +1299,7 @@ var DefaultFallback = ({ error, errorInfo }) => {
1299
1299
  };
1300
1300
 
1301
1301
  // ../../hamr/src/react-error-boundary/ErrorBoundary.tsx
1302
- var import_jsx_runtime9 = require("@emotion/react/jsx-runtime");
1302
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1303
1303
  var ErrorBoundary = class extends import_react4.Component {
1304
1304
  constructor(props) {
1305
1305
  super(props);
@@ -1325,7 +1325,7 @@ var findErrorBoundaryState = (0, import_recoil.atomFamily)({
1325
1325
  });
1326
1326
 
1327
1327
  // ../../hamr/src/react-json-editor/default-components.tsx
1328
- var import_jsx_runtime10 = require("@emotion/react/jsx-runtime");
1328
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1329
1329
  var DEFAULT_JSON_EDITOR_COMPONENTS = {
1330
1330
  ErrorBoundary: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ErrorBoundary, { children }),
1331
1331
  Button: ({ onClick, children, disabled }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { className: "json_editor_button", onClick, disabled, children }),
@@ -1364,7 +1364,7 @@ var DEFAULT_JSON_EDITOR_COMPONENTS = {
1364
1364
  // ../../hamr/src/react-json-editor/developer-interface.tsx
1365
1365
  var import_react5 = require("react");
1366
1366
  var import_ajv = __toESM(require("ajv"));
1367
- var import_jsx_runtime11 = require("@emotion/react/jsx-runtime");
1367
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1368
1368
  var JsonEditor = ({
1369
1369
  data,
1370
1370
  set,
@@ -1417,7 +1417,7 @@ var SubEditors = {
1417
1417
  };
1418
1418
 
1419
1419
  // ../src/react-devtools/StateEditor.tsx
1420
- var import_jsx_runtime12 = require("@emotion/react/jsx-runtime");
1420
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1421
1421
  var StateEditor = ({ storeHooks, token }) => {
1422
1422
  const [data, set] = storeHooks.useIO(token);
1423
1423
  return isPlainJson(data) ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(JsonEditor, { data, set, schema: true }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "json_editor", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -1454,7 +1454,7 @@ var StoreEditor = ({ storeHooks, token }) => {
1454
1454
  };
1455
1455
 
1456
1456
  // ../src/react-devtools/TokenList.tsx
1457
- var import_jsx_runtime13 = require("@emotion/react/jsx-runtime");
1457
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1458
1458
  var TokenList = ({ storeHooks, tokenIndex }) => {
1459
1459
  const tokenIds = storeHooks.useO(tokenIndex);
1460
1460
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, { children: Object.entries(tokenIds).map(([key, token]) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react6.Fragment, { children: key.startsWith(`\u{1F441}\u200D\u{1F5E8}_`) ? null : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "node", children: `type` in token ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
@@ -1486,7 +1486,7 @@ var persistAtom = (storage) => ({ stringify, parse }) => (key) => ({ setSelf, on
1486
1486
  var lazyLocalStorageEffect = persistAtom(localStorage)(JSON);
1487
1487
 
1488
1488
  // ../src/react-devtools/AtomIODevtools.tsx
1489
- var import_jsx_runtime14 = require("@emotion/react/jsx-runtime");
1489
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1490
1490
  var { atomTokenIndexState, selectorTokenIndexState } = import_atom2.__INTERNAL__.META.attachMetaState();
1491
1491
  var devtoolsAreOpenState = (0, import_atom2.atom)({
1492
1492
  key: `\u{1F441}\u200D\u{1F5E8}_devtools_are_open`,
@@ -184,7 +184,7 @@ import {
184
184
  useRef,
185
185
  useState
186
186
  } from "react";
187
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
187
+ import { jsx, jsxs } from "react/jsx-runtime";
188
188
  var ElasticInput = forwardRef(function ElasticInputFC(props, ref) {
189
189
  var _a2, _b, _c, _d;
190
190
  const inputRef = useRef(null);
@@ -250,7 +250,7 @@ import { pipe as pipe5 } from "fp-ts/function";
250
250
  var clampInto = ([min, max]) => (value) => value < min ? min : value > max ? max : value;
251
251
 
252
252
  // ../../hamr/src/react-elastic-input/NumberInput.tsx
253
- import { jsx as jsx2, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
253
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
254
254
  function round(value, decimalPlaces) {
255
255
  if (decimalPlaces === void 0)
256
256
  return value;
@@ -381,7 +381,7 @@ var NumberInput = ({
381
381
  };
382
382
 
383
383
  // ../../hamr/src/react-elastic-input/TextInput.tsx
384
- import { jsx as jsx3, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
384
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
385
385
  var TextInput = ({
386
386
  value,
387
387
  set,
@@ -424,7 +424,7 @@ var makeElementSetters = (data, set) => data.map(
424
424
  );
425
425
 
426
426
  // ../../hamr/src/react-json-editor/json-editor-internal.tsx
427
- import { jsx as jsx4, jsxs as jsxs4 } from "@emotion/react/jsx-runtime";
427
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
428
428
  var JsonEditor_INTERNAL = ({
429
429
  data,
430
430
  set,
@@ -489,7 +489,7 @@ var JsonEditor_INTERNAL = ({
489
489
  };
490
490
 
491
491
  // ../../hamr/src/react-json-editor/editors-by-type/array-editor.tsx
492
- import { Fragment, jsx as jsx5 } from "@emotion/react/jsx-runtime";
492
+ import { Fragment, jsx as jsx5 } from "react/jsx-runtime";
493
493
  var ArrayEditor = ({
494
494
  path = [],
495
495
  isReadonly = () => false,
@@ -1079,7 +1079,7 @@ var makePropertySorter = (data, set, sortFn) => () => {
1079
1079
  };
1080
1080
 
1081
1081
  // ../../hamr/src/react-json-editor/editors-by-type/object-editor.tsx
1082
- import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
1082
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
1083
1083
  var PropertyAdder = ({
1084
1084
  addProperty,
1085
1085
  disabled,
@@ -1174,7 +1174,7 @@ var ObjectEditor = ({
1174
1174
  };
1175
1175
 
1176
1176
  // ../../hamr/src/react-json-editor/editors-by-type/primitive-editors.tsx
1177
- import { jsx as jsx7 } from "@emotion/react/jsx-runtime";
1177
+ import { jsx as jsx7 } from "react/jsx-runtime";
1178
1178
  var BooleanEditor = ({
1179
1179
  data,
1180
1180
  set
@@ -1222,7 +1222,7 @@ import { useId as useId2, Component } from "react";
1222
1222
  import { atomFamily, useRecoilState, useResetRecoilState } from "recoil";
1223
1223
 
1224
1224
  // ../../hamr/src/react-error-boundary/DefaultFallback.tsx
1225
- import { jsx as jsx8, jsxs as jsxs6 } from "@emotion/react/jsx-runtime";
1225
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1226
1226
  var DefaultFallback = ({ error, errorInfo }) => {
1227
1227
  var _a2, _b;
1228
1228
  const component = errorInfo == null ? void 0 : errorInfo.componentStack.split(` `).filter(Boolean)[2];
@@ -1272,7 +1272,7 @@ var DefaultFallback = ({ error, errorInfo }) => {
1272
1272
  };
1273
1273
 
1274
1274
  // ../../hamr/src/react-error-boundary/ErrorBoundary.tsx
1275
- import { jsx as jsx9, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
1275
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1276
1276
  var ErrorBoundary = class extends Component {
1277
1277
  constructor(props) {
1278
1278
  super(props);
@@ -1298,7 +1298,7 @@ var findErrorBoundaryState = atomFamily({
1298
1298
  });
1299
1299
 
1300
1300
  // ../../hamr/src/react-json-editor/default-components.tsx
1301
- import { jsx as jsx10, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
1301
+ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
1302
1302
  var DEFAULT_JSON_EDITOR_COMPONENTS = {
1303
1303
  ErrorBoundary: ({ children }) => /* @__PURE__ */ jsx10(ErrorBoundary, { children }),
1304
1304
  Button: ({ onClick, children, disabled }) => /* @__PURE__ */ jsx10("button", { className: "json_editor_button", onClick, disabled, children }),
@@ -1337,7 +1337,7 @@ var DEFAULT_JSON_EDITOR_COMPONENTS = {
1337
1337
  // ../../hamr/src/react-json-editor/developer-interface.tsx
1338
1338
  import { useMemo } from "react";
1339
1339
  import Ajv from "ajv";
1340
- import { jsx as jsx11 } from "@emotion/react/jsx-runtime";
1340
+ import { jsx as jsx11 } from "react/jsx-runtime";
1341
1341
  var JsonEditor = ({
1342
1342
  data,
1343
1343
  set,
@@ -1390,7 +1390,7 @@ var SubEditors = {
1390
1390
  };
1391
1391
 
1392
1392
  // ../src/react-devtools/StateEditor.tsx
1393
- import { jsx as jsx12 } from "@emotion/react/jsx-runtime";
1393
+ import { jsx as jsx12 } from "react/jsx-runtime";
1394
1394
  var StateEditor = ({ storeHooks, token }) => {
1395
1395
  const [data, set] = storeHooks.useIO(token);
1396
1396
  return isPlainJson(data) ? /* @__PURE__ */ jsx12(JsonEditor, { data, set, schema: true }) : /* @__PURE__ */ jsx12("div", { className: "json_editor", children: /* @__PURE__ */ jsx12(
@@ -1427,7 +1427,7 @@ var StoreEditor = ({ storeHooks, token }) => {
1427
1427
  };
1428
1428
 
1429
1429
  // ../src/react-devtools/TokenList.tsx
1430
- import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
1430
+ import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
1431
1431
  var TokenList = ({ storeHooks, tokenIndex }) => {
1432
1432
  const tokenIds = storeHooks.useO(tokenIndex);
1433
1433
  return /* @__PURE__ */ jsx13(Fragment4, { children: Object.entries(tokenIds).map(([key, token]) => /* @__PURE__ */ jsx13(Fragment3, { children: key.startsWith(`\u{1F441}\u200D\u{1F5E8}_`) ? null : /* @__PURE__ */ jsx13("div", { className: "node", children: `type` in token ? /* @__PURE__ */ jsxs9(Fragment4, { children: [
@@ -1459,7 +1459,7 @@ var persistAtom = (storage) => ({ stringify, parse }) => (key) => ({ setSelf, on
1459
1459
  var lazyLocalStorageEffect = persistAtom(localStorage)(JSON);
1460
1460
 
1461
1461
  // ../src/react-devtools/AtomIODevtools.tsx
1462
- import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
1462
+ import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
1463
1463
  var { atomTokenIndexState, selectorTokenIndexState } = __INTERNAL__.META.attachMetaState();
1464
1464
  var devtoolsAreOpenState = atom({
1465
1465
  key: `\u{1F441}\u200D\u{1F5E8}_devtools_are_open`,
@@ -59,7 +59,7 @@ var myIdState = AtomIO.selector({
59
59
  });
60
60
 
61
61
  // ../src/realtime-react/realtime-context.tsx
62
- var import_jsx_runtime = require("@emotion/react/jsx-runtime");
62
+ var import_jsx_runtime = require("react/jsx-runtime");
63
63
  var RealtimeContext = React.createContext({
64
64
  socket: (0, import_socket.io)()
65
65
  });
@@ -83,7 +83,7 @@ var AtomIO3 = __toESM(require("atom.io"));
83
83
  // ../src/react/store-context.tsx
84
84
  var React2 = __toESM(require("react"));
85
85
  var AtomIO2 = __toESM(require("atom.io"));
86
- var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
86
+ var import_jsx_runtime2 = require("react/jsx-runtime");
87
87
  var StoreContext = React2.createContext(
88
88
  AtomIO2.__INTERNAL__.IMPLICIT.STORE
89
89
  );
@@ -15,7 +15,7 @@ var myIdState = AtomIO.selector({
15
15
  });
16
16
 
17
17
  // ../src/realtime-react/realtime-context.tsx
18
- import { jsx } from "@emotion/react/jsx-runtime";
18
+ import { jsx } from "react/jsx-runtime";
19
19
  var RealtimeContext = React.createContext({
20
20
  socket: io()
21
21
  });
@@ -39,7 +39,7 @@ import * as AtomIO3 from "atom.io";
39
39
  // ../src/react/store-context.tsx
40
40
  import * as React2 from "react";
41
41
  import * as AtomIO2 from "atom.io";
42
- import { jsx as jsx2 } from "@emotion/react/jsx-runtime";
42
+ import { jsx as jsx2 } from "react/jsx-runtime";
43
43
  var StoreContext = React2.createContext(
44
44
  AtomIO2.__INTERNAL__.IMPLICIT.STORE
45
45
  );