sliftutils 1.8.18 → 1.8.20
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/.cursor/rules/mobx-state.mdc +1 -1
- package/CLAUDE.md +1 -1
- package/electron/electronRenderer.tsx +1 -3
- package/examplestorage/browser.tsx +1 -3
- package/examplestorage/exampleserver.ts +0 -1
- package/index.d.ts +3 -2
- package/misc/apiKeys.tsx +1 -3
- package/package.json +1 -1
- package/render-utils/DropdownCustom.tsx +1 -3
- package/render-utils/FullscreenModal.tsx +1 -3
- package/render-utils/InputLabel.tsx +1 -3
- package/render-utils/InputPicker.tsx +1 -3
- package/render-utils/LocalStorageParam.ts +1 -3
- package/render-utils/SyncedController.ts +1 -3
- package/render-utils/Table.tsx +1 -3
- package/render-utils/URLParam.ts +1 -3
- package/render-utils/asyncObservable.ts +1 -3
- package/render-utils/dist/LocalStorageParam.ts.cache +4 -5
- package/render-utils/mobxTyped.d.ts +2 -1
- package/render-utils/mobxTyped.ts +5 -3
- package/render-utils/modal.tsx +1 -4
- package/render-utils/observer.d.ts +1 -1
- package/render-utils/observer.tsx +1 -5
- package/storage/FileFolderAPI.tsx +1 -3
- package/storage/PendingManager.tsx +1 -3
- package/storage/StorageObservable.ts +1 -3
- package/storage/remoteStorage/accessPage.tsx +0 -2
- package/storage/remoteStorage/storageServer.ts +0 -2
- package/testsite/browser.tsx +1 -3
- package/testsite/server.ts +0 -1
- package/web/ExamplePage.tsx +1 -3
- package/web/browser.tsx +1 -3
- package/yarn.lock +2224 -0
package/CLAUDE.md
CHANGED
|
@@ -56,7 +56,7 @@ We use MobX. Components store local state in a field called `synced`, which is a
|
|
|
56
56
|
|
|
57
57
|
```tsx
|
|
58
58
|
import preact from "preact";
|
|
59
|
-
import { observable } from "
|
|
59
|
+
import { observable } from "sliftutils/render-utils/mobxTyped";
|
|
60
60
|
import { observer } from "sliftutils/render-utils/observer";
|
|
61
61
|
|
|
62
62
|
@observer
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import * as preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
5
3
|
import { observer } from "../render-utils/observer";
|
|
6
4
|
import { isNode } from "typesafecss";
|
|
7
5
|
import { enableHotReloading } from "../builders/hotReload";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
5
3
|
import { observer } from "../render-utils/observer";
|
|
6
4
|
import { isNode } from "socket-function/src/misc";
|
|
7
5
|
import { delay } from "socket-function/src/batching";
|
package/index.d.ts
CHANGED
|
@@ -852,7 +852,8 @@ declare module "sliftutils/render-utils/colors" {
|
|
|
852
852
|
}
|
|
853
853
|
|
|
854
854
|
declare module "sliftutils/render-utils/mobxTyped" {
|
|
855
|
-
|
|
855
|
+
import { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved, Reaction } from "mobx";
|
|
856
|
+
export { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved, Reaction };
|
|
856
857
|
export declare function configureMobxNextFrameScheduler(): void;
|
|
857
858
|
|
|
858
859
|
}
|
|
@@ -880,7 +881,7 @@ declare module "sliftutils/render-utils/niceStringify" {
|
|
|
880
881
|
|
|
881
882
|
declare module "sliftutils/render-utils/observer" {
|
|
882
883
|
import * as preact from "preact";
|
|
883
|
-
import { Reaction } from "
|
|
884
|
+
import { Reaction } from "./mobxTyped";
|
|
884
885
|
export declare function observer<T extends {
|
|
885
886
|
new (...args: any[]): {
|
|
886
887
|
render(): preact.ComponentChild;
|
package/misc/apiKeys.tsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
2
|
import { cache, lazy } from "socket-function/src/caching";
|
|
5
3
|
import { css, isNode } from "typesafecss";
|
|
6
4
|
import fs from "fs";
|
|
7
5
|
import os from "os";
|
|
8
|
-
import { observable } from "
|
|
6
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
9
7
|
import { InputLabel } from "../render-utils/InputLabel";
|
|
10
8
|
import { showModal } from "../render-utils/modal";
|
|
11
9
|
import { observer } from "../render-utils/observer";
|
package/package.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "./mobxTyped";
|
|
5
3
|
import { observer } from "./observer";
|
|
6
4
|
import { css } from "typesafecss";
|
|
7
5
|
import { LengthOrPercentage, LengthOrPercentageOrAuto } from "typesafecss/cssTypes";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
2
|
import { showModal } from "./modal";
|
|
5
|
-
import { observable } from "
|
|
3
|
+
import { observable } from "./mobxTyped";
|
|
6
4
|
import { observer } from "./observer";
|
|
7
5
|
|
|
8
6
|
export function showFullscreenModal(config: {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
2
|
import { Input } from "./Input";
|
|
5
3
|
import { css } from "typesafecss";
|
|
6
4
|
import { lazy } from "socket-function/src/caching";
|
|
7
5
|
import { observer } from "./observer";
|
|
8
|
-
import { observable } from "
|
|
6
|
+
import { observable } from "./mobxTyped";
|
|
9
7
|
|
|
10
8
|
// IMPORTANT! InputProps is in both InputLabel.tsx and Input.tsx, so the types export correctly
|
|
11
9
|
export type InputProps = (
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "./mobxTyped";
|
|
5
3
|
import { observer } from "./observer";
|
|
6
4
|
import { sort } from "socket-function/src/misc";
|
|
7
5
|
import { css } from "typesafecss";
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import { SocketFunction } from "socket-function/SocketFunction";
|
|
4
2
|
import { SocketRegistered } from "socket-function/SocketFunctionTypes";
|
|
5
3
|
import { onHotReload } from "socket-function/hot/HotReloadController";
|
|
6
4
|
import { cache } from "socket-function/src/caching";
|
|
7
5
|
import { nextId } from "socket-function/src/misc";
|
|
8
6
|
import { MaybePromise } from "socket-function/src/types";
|
|
9
|
-
import { observable } from "
|
|
7
|
+
import { observable } from "./mobxTyped";
|
|
10
8
|
import { formatTime } from "socket-function/src/formatting/format";
|
|
11
9
|
import { isNode } from "typesafecss";
|
|
12
10
|
import { delay } from "socket-function/src/batching";
|
package/render-utils/Table.tsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
2
|
import { css } from "typesafecss";
|
|
5
3
|
import { formatValue, JSXFormatter, toSpaceCase } from "./GenericFormat";
|
|
6
4
|
import { observer } from "./observer";
|
|
7
5
|
import { canHaveChildren } from "socket-function/src/types";
|
|
8
6
|
import { showFullscreenModal } from "./FullscreenModal";
|
|
9
|
-
import { observable } from "
|
|
7
|
+
import { observable } from "./mobxTyped";
|
|
10
8
|
|
|
11
9
|
// Null means the column is removed
|
|
12
10
|
export type ColumnType<T = unknown, Row extends RowType = RowType> = undefined | null | {
|
package/render-utils/URLParam.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import { isNode } from "typesafecss";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "./mobxTyped";
|
|
5
3
|
import { throttleFunction } from "socket-function/src/misc";
|
|
6
4
|
import { createSingleton } from "socket-function/src/createSingleton";
|
|
7
5
|
import { niceParse, niceStringify } from "./niceStringify";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict"; var console = (function shimConsole() { let baseConsole = globalThis.console; if (typeof window !== "undefined") return baseConsole; let name = __filename.replaceAll("\\", "/").split("/").pop(); let dirName = __dirname.replaceAll("\\", "/").split("/").pop(); let context = { __FILE__: __filename, __DIR__: __dirname, __NAME__: name, __DIRNAME__: dirName }; let newConsole = { ...baseConsole }; for (let shim of ["log", "info", "warn", "error"]) { newConsole[shim] = (...args) => { args.push(context); baseConsole[shim](...args); }; } newConsole.__context = context; return newConsole; })(); "use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true , configurable: true});
|
|
3
3
|
//exports.LocalStorageParamStr = void 0;
|
|
4
|
-
process.env.NODE_ENV = "production";
|
|
5
4
|
const typesafecss_1 = require("typesafecss");
|
|
6
|
-
const
|
|
5
|
+
const mobxTyped_1 = require("./mobxTyped");
|
|
7
6
|
let allParams = [];
|
|
8
7
|
class LocalStorageParamStr {
|
|
9
8
|
constructor(storageKey, defaultValue = "") {
|
|
10
9
|
this.storageKey = storageKey;
|
|
11
10
|
this.defaultValue = defaultValue;
|
|
12
|
-
this.state = (0,
|
|
11
|
+
this.state = (0, mobxTyped_1.observable)({
|
|
13
12
|
seqNum: 0
|
|
14
13
|
});
|
|
15
14
|
this.lastSetValue = "";
|
|
@@ -58,5 +57,5 @@ if (!(0, typesafecss_1.isNode)()) {
|
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
62
|
-
/* _JS_SOURCE_HASH = "
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9jYWxTdG9yYWdlUGFyYW0uanMiLCJzb3VyY2VSb290I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VLZXkpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbSh0aGlzLnN0b3JhZ2VLZXksIHZhbHVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBsZXQgYWZ0ZXIgPSB0aGlzLmdldCgpO1xuICAgICAgICBpZiAocHJldiAhPT0gYWZ0ZXIpIHtcbiAgICAgICAgICAgIHRoaXMuc3RhdGUuc2VxTnVtKys7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0IHZhbHVlKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5nZXQoKSB8fCB0aGlzLmRlZmF1bHRWYWx1ZTtcbiAgICB9XG4gICAgcHVibGljIHNldCB2YWx1ZSh2YWx1ZTogc3RyaW5nKSB7XG4gICAgICAgIHRoaXMuc2V0KHZhbHVlKTtcbiAgICB9XG59XG5cbmlmICghaXNOb2RlKCkpIHtcbiAgICAvLyBXYXRjaCBmb3Igc3RvcmFnZSBldmVudHMgZnJvbSBvdGhlciB0YWJzL3dpbmRvd3NcbiAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcihcInN0b3JhZ2VcIiwgKGUpID0+IHtcbiAgICAgICAgZm9yIChsZXQgcGFyYW0gb2YgYWxsUGFyYW1zKSB7XG4gICAgICAgICAgICBpZiAoZS5rZXkgPT09IHBhcmFtLnN0b3JhZ2VLZXkpIHtcbiAgICAgICAgICAgICAgICBwYXJhbS5mb3JjZVVwZGF0ZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSk7XG59XG4iXX0=
|
|
61
|
+
/* _JS_SOURCE_HASH = "5466f08de8de5a62b1bf7013d692bb483c05d10612e9c9babe2c5cf5ce0050e1"; */
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved, Reaction } from "mobx";
|
|
2
|
+
export { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved, Reaction };
|
|
2
3
|
export declare function configureMobxNextFrameScheduler(): void;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
process.env.NODE_ENV = "production";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved, Reaction, configure } from "mobx";
|
|
4
|
+
import { setFlag } from "socket-function/require/compileFlags";
|
|
4
5
|
import { batchFunction } from "socket-function/src/batching";
|
|
5
6
|
|
|
6
7
|
// Re-export the core mobx primitives so downstream packages (which may have their own duplicate mobx in node_modules) can share THIS mobx instance, otherwise reactivity doesn't cross package boundaries.
|
|
7
|
-
export { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved }
|
|
8
|
+
export { observable, runInAction, computed, autorun, onBecomeObserved, onBecomeUnobserved, Reaction };
|
|
9
|
+
setFlag(require, "mobx", "allowclient", true);
|
|
8
10
|
export function configureMobxNextFrameScheduler() {
|
|
9
11
|
// NOTE: This makes a big difference if we do await calls in a loop which mutates observable state. BUT... we should probably just do those await calls before the loop?
|
|
10
12
|
let batchReactionScheduler = batchFunction({
|
|
@@ -19,7 +21,7 @@ export function configureMobxNextFrameScheduler() {
|
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
let lastRenderTime = 0;
|
|
22
|
-
|
|
24
|
+
configure({
|
|
23
25
|
enforceActions: "never",
|
|
24
26
|
reactionScheduler(callback) {
|
|
25
27
|
let now = performance.now();
|
package/render-utils/modal.tsx
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
5
|
-
import * as mobx from "mobx";
|
|
2
|
+
import { observable } from "./mobxTyped";
|
|
6
3
|
import { observer } from "./observer";
|
|
7
4
|
import { lazy } from "socket-function/src/caching";
|
|
8
5
|
import { nextId } from "socket-function/src/misc";
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import * as preact from "preact";
|
|
4
|
-
import { observable, Reaction } from "
|
|
5
|
-
import { setFlag } from "socket-function/require/compileFlags";
|
|
6
|
-
setFlag(require, "mobx", "allowclient", true);
|
|
2
|
+
import { observable, Reaction } from "./mobxTyped";
|
|
7
3
|
import { measureBlock } from "socket-function/src/profiling/measure";
|
|
8
4
|
|
|
9
5
|
let globalConstructOrder = 1;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
2
|
import { findGrantedPointerHandle, getFileSystemPointer, storeFileSystemPointer } from "./fileSystemPointer";
|
|
5
|
-
import { observable } from "
|
|
3
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
6
4
|
import { observer } from "../render-utils/observer";
|
|
7
5
|
import { cache, lazy } from "socket-function/src/caching";
|
|
8
6
|
import { css, isNode } from "typesafecss";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import { throttleFunction } from "socket-function/src/misc";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
5
3
|
import preact from "preact";
|
|
6
4
|
import { css } from "typesafecss";
|
|
7
5
|
import { observer } from "../render-utils/observer";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { observable } from "mobx";
|
|
1
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
4
2
|
import { deepFreezeObject, freezeObject, isDefined } from "../misc/types";
|
|
5
3
|
import { IStorage, IStorageSync } from "./IStorage";
|
|
6
4
|
import { PromiseObj } from "socket-function/src/misc";
|
package/testsite/browser.tsx
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
5
3
|
import { observer } from "../render-utils/observer";
|
|
6
4
|
import { isNode } from "socket-function/src/misc";
|
|
7
5
|
import { css } from "typesafecss";
|
package/testsite/server.ts
CHANGED
package/web/ExamplePage.tsx
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { observable } from "mobx";
|
|
1
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
4
2
|
import { list } from "socket-function/src/misc";
|
|
5
3
|
import { css } from "typesafecss";
|
|
6
4
|
import { URLParam } from "../render-utils/URLParam";
|
package/web/browser.tsx
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
process.env.NODE_ENV = "production";
|
|
2
|
-
|
|
3
1
|
import * as preact from "preact";
|
|
4
|
-
import { observable } from "
|
|
2
|
+
import { observable } from "../render-utils/mobxTyped";
|
|
5
3
|
import { observer } from "../render-utils/observer";
|
|
6
4
|
import { css, isNode } from "typesafecss";
|
|
7
5
|
import { list } from "socket-function/src/misc";
|