@asymmetric-effort/specifyjs 0.2.136 → 0.2.140
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/dist/esm/chunks/{chunk-BGPJRIMR.js → chunk-45EBJMQH.js} +6 -7
- package/dist/esm/chunks/{chunk-4IF6GADP.js → chunk-4TF5WXQG.js} +0 -1
- package/dist/esm/chunks/{chunk-CWCWXKVV.js → chunk-4V37N6QN.js} +0 -1
- package/dist/esm/chunks/{chunk-5OX5JKEY.js → chunk-7OC7LXZ7.js} +1 -2
- package/dist/esm/chunks/{chunk-T7EHIXSF.js → chunk-AE2JTY3A.js} +1 -2
- package/dist/esm/chunks/{chunk-MKUA6QTB.js → chunk-FDNBPWUH.js} +0 -1
- package/dist/esm/chunks/{chunk-LSU3FWKI.js → chunk-H7ZJ2I3D.js} +1 -2
- package/dist/esm/chunks/{chunk-NF4555DU.js → chunk-NKW7RJR3.js} +1 -2
- package/dist/esm/chunks/{chunk-RSL3RU56.js → chunk-SRUWIDIG.js} +1 -2
- package/dist/esm/chunks/{chunk-HINJXYXY.js → chunk-UJTLBTMV.js} +0 -1
- package/dist/esm/chunks/{metrics-AGFZKFUK.js → metrics-ELQJ4BZ7.js} +3 -4
- package/dist/esm/client/index.js +3 -4
- package/dist/esm/components-barrel.js +8 -9
- package/dist/esm/dom/index.js +9 -7
- package/dist/esm/index.js +8 -9
- package/dist/esm/jsx-dev-runtime.js +4 -5
- package/dist/esm/jsx-runtime.js +4 -5
- package/dist/esm/server/index.js +4 -5
- package/dist/esm/telemetry/index.js +5 -6
- package/dist/specifyjs-build.cjs.js +0 -1
- package/dist/specifyjs-build.esm.js +0 -1
- package/dist/specifyjs-client.cjs.js +0 -1
- package/dist/specifyjs-client.esm.js +3 -4
- package/dist/specifyjs-components.cjs.js +0 -1
- package/dist/specifyjs-components.esm.js +8 -9
- package/dist/specifyjs-dom.cjs.js +1 -2
- package/dist/specifyjs-dom.esm.js +9 -7
- package/dist/specifyjs-jsx-dev-runtime.cjs.js +0 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js +4 -5
- package/dist/specifyjs-jsx-runtime.cjs.js +0 -1
- package/dist/specifyjs-jsx-runtime.esm.js +4 -5
- package/dist/specifyjs-server.cjs.js +1 -2
- package/dist/specifyjs-server.esm.js +4 -5
- package/dist/specifyjs-telemetry.cjs.js +0 -1
- package/dist/specifyjs-telemetry.esm.js +5 -6
- package/dist/specifyjs.cjs.js +0 -1
- package/dist/specifyjs.esm.js +8 -9
- package/dist/types/build/index.d.ts +0 -1
- package/dist/types/build/noscript-plugin.d.ts +0 -1
- package/dist/types/build/seo-plugin.d.ts +0 -1
- package/dist/types/client/graphql.d.ts +0 -1
- package/dist/types/client/index.d.ts +0 -1
- package/dist/types/client/protobuf.d.ts +0 -1
- package/dist/types/client/rest.d.ts +0 -1
- package/dist/types/components/component.d.ts +0 -1
- package/dist/types/components/error-boundary.d.ts +0 -1
- package/dist/types/components/feedback/banner/src/Banner.d.ts +14 -0
- package/dist/types/components/feedback/banner/src/index.d.ts +2 -0
- package/dist/types/components/profiler.d.ts +0 -1
- package/dist/types/components/strict-mode.d.ts +0 -1
- package/dist/types/components/suspense.d.ts +0 -1
- package/dist/types/compute/context.d.ts +0 -1
- package/dist/types/compute/cpu-backend.d.ts +0 -1
- package/dist/types/compute/index.d.ts +0 -1
- package/dist/types/compute/types.d.ts +0 -1
- package/dist/types/compute/webgl-backend.d.ts +0 -1
- package/dist/types/compute/webgpu-backend.d.ts +0 -1
- package/dist/types/context/create-context.d.ts +0 -1
- package/dist/types/core/children.d.ts +0 -1
- package/dist/types/core/clone-element.d.ts +0 -1
- package/dist/types/core/create-element.d.ts +0 -1
- package/dist/types/core/create-ref.d.ts +0 -1
- package/dist/types/core/fiber.d.ts +0 -1
- package/dist/types/core/forward-ref.d.ts +0 -1
- package/dist/types/core/fragment.d.ts +0 -1
- package/dist/types/core/is-valid-element.d.ts +0 -1
- package/dist/types/core/lanes.d.ts +0 -1
- package/dist/types/core/lazy.d.ts +0 -1
- package/dist/types/core/memo.d.ts +0 -1
- package/dist/types/core/reconciler.d.ts +0 -1
- package/dist/types/core/scheduler-host-config.d.ts +0 -1
- package/dist/types/core/scheduler.d.ts +0 -1
- package/dist/types/core/src/shared/warnings.d.ts +2 -0
- package/dist/types/core/transitions.d.ts +0 -1
- package/dist/types/devtools/index.d.ts +0 -1
- package/dist/types/dom/create-portal.d.ts +0 -1
- package/dist/types/dom/create-root.d.ts +0 -1
- package/dist/types/dom/flush-sync.d.ts +0 -1
- package/dist/types/dom/index.d.ts +0 -1
- package/dist/types/dom/legacy.d.ts +0 -1
- package/dist/types/dom/synthetic-event.d.ts +0 -1
- package/dist/types/dom/work-loop.d.ts +0 -1
- package/dist/types/features/feature-flags.d.ts +0 -1
- package/dist/types/features/index.d.ts +0 -1
- package/dist/types/hooks/dispatcher.d.ts +0 -1
- package/dist/types/hooks/hook-state.d.ts +0 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/install-dispatcher.d.ts +0 -1
- package/dist/types/hooks/use-head.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/jsx-dev-runtime.d.ts +0 -1
- package/dist/types/jsx-runtime.d.ts +0 -1
- package/dist/types/router/index.d.ts +0 -1
- package/dist/types/router/link-component.d.ts +0 -1
- package/dist/types/router/match-path.d.ts +0 -1
- package/dist/types/router/route-component.d.ts +0 -1
- package/dist/types/router/router-component.d.ts +0 -1
- package/dist/types/router/router-context.d.ts +0 -1
- package/dist/types/router/router-store.d.ts +0 -1
- package/dist/types/router/use-navigate.d.ts +0 -1
- package/dist/types/router/use-params.d.ts +0 -1
- package/dist/types/router/use-router.d.ts +0 -1
- package/dist/types/server/index.d.ts +0 -1
- package/dist/types/server/render-to-pipeable-stream.d.ts +0 -1
- package/dist/types/server/render-to-readable-stream.d.ts +0 -1
- package/dist/types/server/render-to-string.d.ts +0 -1
- package/dist/types/shared/act.d.ts +0 -1
- package/dist/types/shared/aria-warnings.d.ts +0 -1
- package/dist/types/shared/async-compute.d.ts +0 -1
- package/dist/types/shared/component-registry.d.ts +0 -1
- package/dist/types/shared/render-guard.d.ts +0 -1
- package/dist/types/shared/secure-fetch.d.ts +0 -1
- package/dist/types/shared/types.d.ts +0 -1
- package/dist/types/shared/warnings.d.ts +2 -1
- package/dist/types/telemetry/index.d.ts +0 -1
- package/dist/types/telemetry/metrics.d.ts +0 -1
- package/dist/types/telemetry/tracing.d.ts +0 -1
- package/package.json +1 -1
- package/dist/esm/chunks/chunk-4IF6GADP.js.map +0 -7
- package/dist/esm/chunks/chunk-5OX5JKEY.js.map +0 -7
- package/dist/esm/chunks/chunk-BGPJRIMR.js.map +0 -7
- package/dist/esm/chunks/chunk-CWCWXKVV.js.map +0 -7
- package/dist/esm/chunks/chunk-HINJXYXY.js.map +0 -7
- package/dist/esm/chunks/chunk-LSU3FWKI.js.map +0 -7
- package/dist/esm/chunks/chunk-MKUA6QTB.js.map +0 -7
- package/dist/esm/chunks/chunk-NF4555DU.js.map +0 -7
- package/dist/esm/chunks/chunk-RSL3RU56.js.map +0 -7
- package/dist/esm/chunks/chunk-T7EHIXSF.js.map +0 -7
- package/dist/esm/chunks/metrics-AGFZKFUK.js.map +0 -7
- package/dist/specifyjs-build.cjs.js.map +0 -7
- package/dist/specifyjs-build.esm.js.map +0 -7
- package/dist/specifyjs-client.cjs.js.map +0 -7
- package/dist/specifyjs-client.esm.js.map +0 -7
- package/dist/specifyjs-components.cjs.js.map +0 -7
- package/dist/specifyjs-components.esm.js.map +0 -7
- package/dist/specifyjs-dom.cjs.js.map +0 -7
- package/dist/specifyjs-dom.esm.js.map +0 -7
- package/dist/specifyjs-jsx-dev-runtime.cjs.js.map +0 -7
- package/dist/specifyjs-jsx-dev-runtime.esm.js.map +0 -7
- package/dist/specifyjs-jsx-runtime.cjs.js.map +0 -7
- package/dist/specifyjs-jsx-runtime.esm.js.map +0 -7
- package/dist/specifyjs-server.cjs.js.map +0 -7
- package/dist/specifyjs-server.esm.js.map +0 -7
- package/dist/specifyjs-telemetry.cjs.js.map +0 -7
- package/dist/specifyjs-telemetry.esm.js.map +0 -7
- package/dist/specifyjs.cjs.js.map +0 -7
- package/dist/specifyjs.esm.js.map +0 -7
- package/dist/types/build/index.d.ts.map +0 -1
- package/dist/types/build/noscript-plugin.d.ts.map +0 -1
- package/dist/types/build/seo-plugin.d.ts.map +0 -1
- package/dist/types/client/graphql.d.ts.map +0 -1
- package/dist/types/client/index.d.ts.map +0 -1
- package/dist/types/client/protobuf.d.ts.map +0 -1
- package/dist/types/client/rest.d.ts.map +0 -1
- package/dist/types/components/component.d.ts.map +0 -1
- package/dist/types/components/error-boundary.d.ts.map +0 -1
- package/dist/types/components/profiler.d.ts.map +0 -1
- package/dist/types/components/strict-mode.d.ts.map +0 -1
- package/dist/types/components/suspense.d.ts.map +0 -1
- package/dist/types/compute/context.d.ts.map +0 -1
- package/dist/types/compute/cpu-backend.d.ts.map +0 -1
- package/dist/types/compute/index.d.ts.map +0 -1
- package/dist/types/compute/types.d.ts.map +0 -1
- package/dist/types/compute/webgl-backend.d.ts.map +0 -1
- package/dist/types/compute/webgpu-backend.d.ts.map +0 -1
- package/dist/types/context/create-context.d.ts.map +0 -1
- package/dist/types/core/children.d.ts.map +0 -1
- package/dist/types/core/clone-element.d.ts.map +0 -1
- package/dist/types/core/create-element.d.ts.map +0 -1
- package/dist/types/core/create-ref.d.ts.map +0 -1
- package/dist/types/core/fiber.d.ts.map +0 -1
- package/dist/types/core/forward-ref.d.ts.map +0 -1
- package/dist/types/core/fragment.d.ts.map +0 -1
- package/dist/types/core/is-valid-element.d.ts.map +0 -1
- package/dist/types/core/lanes.d.ts.map +0 -1
- package/dist/types/core/lazy.d.ts.map +0 -1
- package/dist/types/core/memo.d.ts.map +0 -1
- package/dist/types/core/reconciler.d.ts.map +0 -1
- package/dist/types/core/scheduler-host-config.d.ts.map +0 -1
- package/dist/types/core/scheduler.d.ts.map +0 -1
- package/dist/types/core/transitions.d.ts.map +0 -1
- package/dist/types/devtools/index.d.ts.map +0 -1
- package/dist/types/dom/create-portal.d.ts.map +0 -1
- package/dist/types/dom/create-root.d.ts.map +0 -1
- package/dist/types/dom/flush-sync.d.ts.map +0 -1
- package/dist/types/dom/index.d.ts.map +0 -1
- package/dist/types/dom/legacy.d.ts.map +0 -1
- package/dist/types/dom/synthetic-event.d.ts.map +0 -1
- package/dist/types/dom/work-loop.d.ts.map +0 -1
- package/dist/types/features/feature-flags.d.ts.map +0 -1
- package/dist/types/features/index.d.ts.map +0 -1
- package/dist/types/hooks/dispatcher.d.ts.map +0 -1
- package/dist/types/hooks/hook-state.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/install-dispatcher.d.ts.map +0 -1
- package/dist/types/hooks/use-head.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/types/jsx-runtime.d.ts.map +0 -1
- package/dist/types/router/index.d.ts.map +0 -1
- package/dist/types/router/link-component.d.ts.map +0 -1
- package/dist/types/router/match-path.d.ts.map +0 -1
- package/dist/types/router/route-component.d.ts.map +0 -1
- package/dist/types/router/router-component.d.ts.map +0 -1
- package/dist/types/router/router-context.d.ts.map +0 -1
- package/dist/types/router/router-store.d.ts.map +0 -1
- package/dist/types/router/use-navigate.d.ts.map +0 -1
- package/dist/types/router/use-params.d.ts.map +0 -1
- package/dist/types/router/use-router.d.ts.map +0 -1
- package/dist/types/server/index.d.ts.map +0 -1
- package/dist/types/server/render-to-pipeable-stream.d.ts.map +0 -1
- package/dist/types/server/render-to-readable-stream.d.ts.map +0 -1
- package/dist/types/server/render-to-string.d.ts.map +0 -1
- package/dist/types/shared/act.d.ts.map +0 -1
- package/dist/types/shared/aria-warnings.d.ts.map +0 -1
- package/dist/types/shared/async-compute.d.ts.map +0 -1
- package/dist/types/shared/component-registry.d.ts.map +0 -1
- package/dist/types/shared/render-guard.d.ts.map +0 -1
- package/dist/types/shared/secure-fetch.d.ts.map +0 -1
- package/dist/types/shared/types.d.ts.map +0 -1
- package/dist/types/shared/warnings.d.ts.map +0 -1
- package/dist/types/telemetry/index.d.ts.map +0 -1
- package/dist/types/telemetry/metrics.d.ts.map +0 -1
- package/dist/types/telemetry/tracing.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
flushPendingTasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7OC7LXZ7.js";
|
|
5
5
|
import {
|
|
6
6
|
isValidElement
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SRUWIDIG.js";
|
|
8
8
|
import {
|
|
9
9
|
createElement
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NKW7RJR3.js";
|
|
11
11
|
import {
|
|
12
12
|
SPEC_CONSUMER_TYPE,
|
|
13
13
|
SPEC_ELEMENT_TYPE,
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
SPEC_PROVIDER_TYPE,
|
|
19
19
|
SPEC_STRICT_MODE_TYPE,
|
|
20
20
|
SPEC_SUSPENSE_TYPE
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UJTLBTMV.js";
|
|
22
22
|
import {
|
|
23
23
|
secureFetch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4TF5WXQG.js";
|
|
25
25
|
import {
|
|
26
26
|
useCallback,
|
|
27
27
|
useContext,
|
|
28
28
|
useEffect,
|
|
29
29
|
useMemo,
|
|
30
30
|
useState
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4V37N6QN.js";
|
|
32
32
|
|
|
33
33
|
// src/context/create-context.ts
|
|
34
34
|
function createContext(defaultValue) {
|
|
@@ -622,4 +622,3 @@ export {
|
|
|
622
622
|
FeatureGate,
|
|
623
623
|
useFeatureFlags
|
|
624
624
|
};
|
|
625
|
-
//# sourceMappingURL=chunk-BGPJRIMR.js.map
|
|
@@ -130,7 +130,7 @@ var pendingTasks = [];
|
|
|
130
130
|
function scheduleUpdate(task) {
|
|
131
131
|
if (isBatchingUpdates) {
|
|
132
132
|
if (pendingTasks.length >= MAX_PENDING_TASKS) {
|
|
133
|
-
if (typeof console !== "undefined")
|
|
133
|
+
if (typeof console !== "undefined" && !(typeof process !== "undefined" && false))
|
|
134
134
|
console.warn(
|
|
135
135
|
"[SpecifyJS] Scheduler: pending task queue exceeded 10000 \u2014 dropping oldest tasks"
|
|
136
136
|
);
|
|
@@ -171,4 +171,3 @@ export {
|
|
|
171
171
|
getComponentTypeTable,
|
|
172
172
|
getComponentName
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chunk-5OX5JKEY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
createElement
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NKW7RJR3.js";
|
|
5
5
|
|
|
6
6
|
// src/jsx-runtime.ts
|
|
7
7
|
function jsx(type, config, maybeKey) {
|
|
@@ -14,4 +14,3 @@ function jsx(type, config, maybeKey) {
|
|
|
14
14
|
export {
|
|
15
15
|
jsx
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-T7EHIXSF.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
assertSecureUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4TF5WXQG.js";
|
|
5
5
|
|
|
6
6
|
// src/telemetry/metrics.ts
|
|
7
7
|
var MAX_DATA_POINTS = 1e4;
|
|
@@ -218,4 +218,3 @@ export {
|
|
|
218
218
|
formatOtlpTraces,
|
|
219
219
|
exportToEndpoint
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=chunk-LSU3FWKI.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SPEC_ELEMENT_TYPE,
|
|
4
4
|
SPEC_FRAGMENT_TYPE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UJTLBTMV.js";
|
|
6
6
|
|
|
7
7
|
// src/core/create-element.ts
|
|
8
8
|
function createElement(type, config, ...children) {
|
|
@@ -55,4 +55,3 @@ export {
|
|
|
55
55
|
createFactory,
|
|
56
56
|
Fragment
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-NF4555DU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SPEC_ELEMENT_TYPE
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UJTLBTMV.js";
|
|
5
5
|
|
|
6
6
|
// src/core/is-valid-element.ts
|
|
7
7
|
function isValidElement(object) {
|
|
@@ -11,4 +11,3 @@ function isValidElement(object) {
|
|
|
11
11
|
export {
|
|
12
12
|
isValidElement
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-RSL3RU56.js.map
|
|
@@ -4,13 +4,12 @@ import {
|
|
|
4
4
|
exportToEndpoint,
|
|
5
5
|
formatOtlpMetrics,
|
|
6
6
|
formatOtlpTraces
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-H7ZJ2I3D.js";
|
|
8
|
+
import "./chunk-4TF5WXQG.js";
|
|
9
|
+
import "./chunk-FDNBPWUH.js";
|
|
10
10
|
export {
|
|
11
11
|
createMeterProvider,
|
|
12
12
|
exportToEndpoint,
|
|
13
13
|
formatOtlpMetrics,
|
|
14
14
|
formatOtlpTraces
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=metrics-AGFZKFUK.js.map
|
package/dist/esm/client/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
assertSecureUrl
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-4TF5WXQG.js";
|
|
5
5
|
import {
|
|
6
6
|
useCallback,
|
|
7
7
|
useEffect,
|
|
8
8
|
useRef,
|
|
9
9
|
useState
|
|
10
|
-
} from "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
10
|
+
} from "../chunks/chunk-4V37N6QN.js";
|
|
11
|
+
import "../chunks/chunk-FDNBPWUH.js";
|
|
12
12
|
|
|
13
13
|
// src/client/rest.ts
|
|
14
14
|
var RestError = class extends Error {
|
|
@@ -667,4 +667,3 @@ export {
|
|
|
667
667
|
useQuery,
|
|
668
668
|
useRest
|
|
669
669
|
};
|
|
670
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
createContext
|
|
4
|
-
} from "./chunks/chunk-
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
4
|
+
} from "./chunks/chunk-45EBJMQH.js";
|
|
5
|
+
import "./chunks/chunk-7OC7LXZ7.js";
|
|
6
|
+
import "./chunks/chunk-SRUWIDIG.js";
|
|
7
7
|
import {
|
|
8
8
|
createElement
|
|
9
|
-
} from "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-NKW7RJR3.js";
|
|
10
|
+
import "./chunks/chunk-UJTLBTMV.js";
|
|
11
|
+
import "./chunks/chunk-4TF5WXQG.js";
|
|
12
12
|
import {
|
|
13
13
|
useCallback,
|
|
14
14
|
useContext,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
useMemo,
|
|
18
18
|
useRef,
|
|
19
19
|
useState
|
|
20
|
-
} from "./chunks/chunk-
|
|
20
|
+
} from "./chunks/chunk-4V37N6QN.js";
|
|
21
21
|
import {
|
|
22
22
|
__publicField
|
|
23
|
-
} from "./chunks/chunk-
|
|
23
|
+
} from "./chunks/chunk-FDNBPWUH.js";
|
|
24
24
|
|
|
25
25
|
// ../components/data/analog-clock/src/AnalogClock.ts
|
|
26
26
|
function getTimeInZone(timezone) {
|
|
@@ -25691,4 +25691,3 @@ export {
|
|
|
25691
25691
|
useLineGraphScales,
|
|
25692
25692
|
useToast
|
|
25693
25693
|
};
|
|
25694
|
-
//# sourceMappingURL=components-barrel.js.map
|
package/dist/esm/dom/index.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
scheduleMicrotask,
|
|
11
11
|
scheduleUpdate,
|
|
12
12
|
startTransition
|
|
13
|
-
} from "../chunks/chunk-
|
|
13
|
+
} from "../chunks/chunk-7OC7LXZ7.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidElement
|
|
16
|
-
} from "../chunks/chunk-
|
|
16
|
+
} from "../chunks/chunk-SRUWIDIG.js";
|
|
17
17
|
import {
|
|
18
18
|
SPEC_CONSUMER_TYPE,
|
|
19
19
|
SPEC_ELEMENT_TYPE,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
SPEC_PROVIDER_TYPE,
|
|
26
26
|
SPEC_STRICT_MODE_TYPE,
|
|
27
27
|
SPEC_SUSPENSE_TYPE
|
|
28
|
-
} from "../chunks/chunk-
|
|
28
|
+
} from "../chunks/chunk-UJTLBTMV.js";
|
|
29
29
|
import {
|
|
30
30
|
__setDispatcher
|
|
31
|
-
} from "../chunks/chunk-
|
|
32
|
-
import "../chunks/chunk-
|
|
31
|
+
} from "../chunks/chunk-4V37N6QN.js";
|
|
32
|
+
import "../chunks/chunk-FDNBPWUH.js";
|
|
33
33
|
|
|
34
34
|
// src/core/fiber.ts
|
|
35
35
|
function getFiberTag(type) {
|
|
@@ -508,7 +508,9 @@ function areDepsEqual(prevDeps, nextDeps) {
|
|
|
508
508
|
// src/shared/warnings.ts
|
|
509
509
|
var MAX_WARNINGS = 1e3;
|
|
510
510
|
var warnedMessages = /* @__PURE__ */ new Set();
|
|
511
|
+
var IS_PRODUCTION = typeof process !== "undefined" && typeof process.env !== "undefined" && false;
|
|
511
512
|
function warn(message) {
|
|
513
|
+
if (IS_PRODUCTION) return;
|
|
512
514
|
if (warnedMessages.has(message)) return;
|
|
513
515
|
if (warnedMessages.size >= MAX_WARNINGS) return;
|
|
514
516
|
warnedMessages.add(message);
|
|
@@ -517,6 +519,7 @@ function warn(message) {
|
|
|
517
519
|
}
|
|
518
520
|
}
|
|
519
521
|
function error(message) {
|
|
522
|
+
if (IS_PRODUCTION) return;
|
|
520
523
|
if (typeof console !== "undefined") {
|
|
521
524
|
console.error(`[SpecifyJS] ${message}`);
|
|
522
525
|
}
|
|
@@ -651,7 +654,7 @@ function useStateImpl(initialState) {
|
|
|
651
654
|
trackStateUpdate(fiber, compName);
|
|
652
655
|
const lane = requestUpdateLane();
|
|
653
656
|
if (queue.length >= 1e4) {
|
|
654
|
-
if (typeof console !== "undefined")
|
|
657
|
+
if (typeof console !== "undefined" && !(typeof process !== "undefined" && false))
|
|
655
658
|
console.warn("[SpecifyJS] Hook update queue exceeded 10000 \u2014 dropping oldest updates");
|
|
656
659
|
queue.splice(0, queue.length - 5e3);
|
|
657
660
|
}
|
|
@@ -1901,4 +1904,3 @@ export {
|
|
|
1901
1904
|
render,
|
|
1902
1905
|
unmountComponentAtNode
|
|
1903
1906
|
};
|
|
1904
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js
CHANGED
|
@@ -24,26 +24,26 @@ import {
|
|
|
24
24
|
useNavigate,
|
|
25
25
|
useParams,
|
|
26
26
|
useRouter
|
|
27
|
-
} from "./chunks/chunk-
|
|
27
|
+
} from "./chunks/chunk-45EBJMQH.js";
|
|
28
28
|
import {
|
|
29
29
|
getComponentTypeTable,
|
|
30
30
|
resolveComponentId,
|
|
31
31
|
setComponentIdsEnabled,
|
|
32
32
|
startTransition
|
|
33
|
-
} from "./chunks/chunk-
|
|
33
|
+
} from "./chunks/chunk-7OC7LXZ7.js";
|
|
34
34
|
import {
|
|
35
35
|
isValidElement
|
|
36
|
-
} from "./chunks/chunk-
|
|
36
|
+
} from "./chunks/chunk-SRUWIDIG.js";
|
|
37
37
|
import {
|
|
38
38
|
Fragment,
|
|
39
39
|
createElement,
|
|
40
40
|
createFactory
|
|
41
|
-
} from "./chunks/chunk-
|
|
42
|
-
import "./chunks/chunk-
|
|
41
|
+
} from "./chunks/chunk-NKW7RJR3.js";
|
|
42
|
+
import "./chunks/chunk-UJTLBTMV.js";
|
|
43
43
|
import {
|
|
44
44
|
assertSecureUrl,
|
|
45
45
|
secureFetch
|
|
46
|
-
} from "./chunks/chunk-
|
|
46
|
+
} from "./chunks/chunk-4TF5WXQG.js";
|
|
47
47
|
import {
|
|
48
48
|
useCallback,
|
|
49
49
|
useContext,
|
|
@@ -61,8 +61,8 @@ import {
|
|
|
61
61
|
useState,
|
|
62
62
|
useSyncExternalStore,
|
|
63
63
|
useTransition
|
|
64
|
-
} from "./chunks/chunk-
|
|
65
|
-
import "./chunks/chunk-
|
|
64
|
+
} from "./chunks/chunk-4V37N6QN.js";
|
|
65
|
+
import "./chunks/chunk-FDNBPWUH.js";
|
|
66
66
|
export {
|
|
67
67
|
Children,
|
|
68
68
|
Component,
|
|
@@ -116,4 +116,3 @@ export {
|
|
|
116
116
|
useSyncExternalStore,
|
|
117
117
|
useTransition
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
jsx
|
|
4
|
-
} from "./chunks/chunk-
|
|
4
|
+
} from "./chunks/chunk-AE2JTY3A.js";
|
|
5
5
|
import {
|
|
6
6
|
Fragment
|
|
7
|
-
} from "./chunks/chunk-
|
|
8
|
-
import "./chunks/chunk-
|
|
9
|
-
import "./chunks/chunk-
|
|
7
|
+
} from "./chunks/chunk-NKW7RJR3.js";
|
|
8
|
+
import "./chunks/chunk-UJTLBTMV.js";
|
|
9
|
+
import "./chunks/chunk-FDNBPWUH.js";
|
|
10
10
|
export {
|
|
11
11
|
Fragment,
|
|
12
12
|
jsx as jsxDEV
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=jsx-dev-runtime.js.map
|
package/dist/esm/jsx-runtime.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
jsx
|
|
4
|
-
} from "./chunks/chunk-
|
|
4
|
+
} from "./chunks/chunk-AE2JTY3A.js";
|
|
5
5
|
import {
|
|
6
6
|
Fragment
|
|
7
|
-
} from "./chunks/chunk-
|
|
8
|
-
import "./chunks/chunk-
|
|
9
|
-
import "./chunks/chunk-
|
|
7
|
+
} from "./chunks/chunk-NKW7RJR3.js";
|
|
8
|
+
import "./chunks/chunk-UJTLBTMV.js";
|
|
9
|
+
import "./chunks/chunk-FDNBPWUH.js";
|
|
10
10
|
export {
|
|
11
11
|
Fragment,
|
|
12
12
|
jsx,
|
|
13
13
|
jsx as jsxs
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=jsx-runtime.js.map
|
package/dist/esm/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isValidElement
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-SRUWIDIG.js";
|
|
5
5
|
import {
|
|
6
6
|
SPEC_FORWARD_REF_TYPE,
|
|
7
7
|
SPEC_FRAGMENT_TYPE,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
SPEC_PROFILER_TYPE,
|
|
10
10
|
SPEC_PROVIDER_TYPE,
|
|
11
11
|
SPEC_STRICT_MODE_TYPE
|
|
12
|
-
} from "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-UJTLBTMV.js";
|
|
13
|
+
import "../chunks/chunk-FDNBPWUH.js";
|
|
14
14
|
|
|
15
15
|
// src/server/render-to-string.ts
|
|
16
16
|
var VOID_ELEMENTS = /* @__PURE__ */ new Set([
|
|
@@ -199,7 +199,7 @@ function renderStyle(style) {
|
|
|
199
199
|
if (value == null) continue;
|
|
200
200
|
const cssProp = prop.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
|
|
201
201
|
let cssValue = typeof value === "number" && value !== 0 && !isUnitlessProp(prop) ? `${value}px` : String(value);
|
|
202
|
-
const normalizedCss = cssValue.replace(/\\[0-9a-fA-F]{1,6}\s?/g, "
|
|
202
|
+
const normalizedCss = cssValue.replace(/\\([0-9a-fA-F]{1,6})\s?/g, (_m, hex) => String.fromCodePoint(parseInt(hex, 16))).replace(/\\/g, "").replace(/\/\*[\s\S]*?\*\//g, "");
|
|
203
203
|
if (/expression\s*\(|javascript\s*:|behavior\s*:|moz-binding|-o-link/i.test(normalizedCss)) {
|
|
204
204
|
cssValue = "";
|
|
205
205
|
}
|
|
@@ -383,4 +383,3 @@ export {
|
|
|
383
383
|
renderToStaticMarkup,
|
|
384
384
|
renderToString
|
|
385
385
|
};
|
|
386
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
exportToEndpoint,
|
|
5
5
|
formatOtlpMetrics,
|
|
6
6
|
formatOtlpTraces
|
|
7
|
-
} from "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-H7ZJ2I3D.js";
|
|
8
|
+
import "../chunks/chunk-4TF5WXQG.js";
|
|
9
9
|
import {
|
|
10
10
|
useEffect,
|
|
11
11
|
useRef
|
|
12
|
-
} from "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-4V37N6QN.js";
|
|
13
|
+
import "../chunks/chunk-FDNBPWUH.js";
|
|
14
14
|
|
|
15
15
|
// src/telemetry/tracing.ts
|
|
16
16
|
function randomBytes(length) {
|
|
@@ -151,7 +151,7 @@ function createTracer(config) {
|
|
|
151
151
|
if (buffer.length === 0) return;
|
|
152
152
|
const toExport = buffer.splice(0, buffer.length);
|
|
153
153
|
if (config.endpoint) {
|
|
154
|
-
const { formatOtlpTraces: formatOtlpTraces2, exportToEndpoint: exportToEndpoint2 } = await import("../chunks/metrics-
|
|
154
|
+
const { formatOtlpTraces: formatOtlpTraces2, exportToEndpoint: exportToEndpoint2 } = await import("../chunks/metrics-ELQJ4BZ7.js");
|
|
155
155
|
const body = formatOtlpTraces2(toExport, config.serviceName, config.serviceVersion);
|
|
156
156
|
await exportToEndpoint2(config.endpoint, config.headers ?? {}, body);
|
|
157
157
|
}
|
|
@@ -187,4 +187,3 @@ export {
|
|
|
187
187
|
startSpan,
|
|
188
188
|
useTracing
|
|
189
189
|
};
|
|
190
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -158,4 +158,3 @@
|
|
|
158
158
|
</div>
|
|
159
159
|
</noscript>`}function f(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function j(t){return{name:"specifyjs-noscript",closeBundle(){let e=y.default.resolve(process.cwd(),"dist"),s=y.default.join(e,"index.html");if(!b.default.existsSync(s)){console.warn("[specifyjs-noscript] index.html not found in dist/");return}let i=S(t);if(!i){console.warn("[specifyjs-noscript] No sections provided, skipping.");return}let o=t.maxContentSize??512*1024,r=Buffer.byteLength(i,"utf-8");r>o&&console.warn(`[specifyjs-noscript] Noscript content is ${(r/1024).toFixed(0)}KB (limit: ${(o/1024).toFixed(0)}KB). Consider reducing section content.`);let n=b.default.readFileSync(s,"utf-8");n=n.replace("</body>",`${i}
|
|
160
160
|
</body>`),b.default.writeFileSync(s,n,"utf-8"),console.log(`Generated: noscript fallback (${t.sections.length} sections, ${(r/1024).toFixed(1)}KB)`)}}}
|
|
161
|
-
//# sourceMappingURL=specifyjs-build.cjs.js.map
|
|
@@ -158,4 +158,3 @@ import d from"fs";import u from"path";function w(t,e){let n=[{dir:t,prefix:""}];
|
|
|
158
158
|
</div>
|
|
159
159
|
</noscript>`}function f(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function A(t){return{name:"specifyjs-noscript",closeBundle(){let e=$.resolve(process.cwd(),"dist"),n=$.join(e,"index.html");if(!x.existsSync(n)){console.warn("[specifyjs-noscript] index.html not found in dist/");return}let s=y(t);if(!s){console.warn("[specifyjs-noscript] No sections provided, skipping.");return}let o=t.maxContentSize??512*1024,r=Buffer.byteLength(s,"utf-8");r>o&&console.warn(`[specifyjs-noscript] Noscript content is ${(r/1024).toFixed(0)}KB (limit: ${(o/1024).toFixed(0)}KB). Consider reducing section content.`);let i=x.readFileSync(n,"utf-8");i=i.replace("</body>",`${s}
|
|
160
160
|
</body>`),x.writeFileSync(n,i,"utf-8"),console.log(`Generated: noscript fallback (${t.sections.length} sections, ${(r/1024).toFixed(1)}KB)`)}}}export{y as generateNoscriptHtml,A as specifyJsNoscriptPlugin,j as specifyJsSeoPlugin,b as stripInteractiveElements};
|
|
161
|
-
//# sourceMappingURL=specifyjs-build.esm.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
"use strict";var O=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.prototype.hasOwnProperty;var ne=(e,t)=>{for(var n in t)O(e,n,{get:t[n],enumerable:!0})},re=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ee(t))!te.call(e,r)&&r!==n&&O(e,r,{get:()=>t[r],enumerable:!(o=Y(t,r))||o.enumerable});return e};var oe=e=>re(O({},"__esModule",{value:!0}),e);var fe={};ne(fe,{RestError:()=>v,createGraphQLClient:()=>B,createGrpcWebClient:()=>j,createRestClient:()=>F,defineMessage:()=>N,gql:()=>_,useMutation:()=>K,useProto:()=>J,useQuery:()=>X,useRest:()=>W});module.exports=oe(fe);var H=null;function G(){if(H===null)throw new Error("Invalid hook call. Hooks can only be called inside the body of a function component.");return H}function w(e){return G().useState(e)}function q(e,t){return G().useEffect(e,t)}function k(e,t){return G().useCallback(e,t)}function x(e){return G().useRef(e)}function L(e){if(e.startsWith("//"))throw new Error(`[SpecifyJS] Protocol-relative URL rejected: "${e}". Use an explicit https:// prefix.`);if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))return;if(e.startsWith("data:")){if(e.length>1024*1024)throw new Error("[SpecifyJS] secureFetch: data: URI exceeds 1MB limit");return}let t;try{t=new URL(e,typeof window<"u"?window.location.href:void 0)}catch{throw new Error(`[SpecifyJS] secureFetch: unable to validate URL "${e}". Provide a valid absolute HTTPS URL or a relative path.`)}if(t.protocol!=="https:"&&!(t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]"||t.hostname==="0.0.0.0"||t.hostname.startsWith("127.")))throw new Error(`[SpecifyJS] Insecure URL rejected: "${e}". SpecifyJS enforces HTTPS-only for all network requests. Use https:// or a relative URL. Localhost URLs are allowed for development.`)}var v=class extends Error{constructor(t,n,o,r,u){super(t),this.name="RestError",this.status=n,this.statusText=o,this.data=r,this.config=u}};function se(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}function ie(e,t){let n=e.endsWith("/")?e.slice(0,-1):e,o=t.startsWith("/")?t:"/"+t;return n+o}function F(e){let{baseURL:t,headers:n={},timeout:o,interceptors:r={}}=e,u=r.request??[],c=r.response??[],f=r.error??[];async function h(l,a,s,p){let i={url:ie(t,a),method:l,headers:{...n,...p?.headers??{}},body:s,signal:p?.signal,timeout:p?.timeout??o};s!=null&&!i.headers["Content-Type"]&&(i.headers["Content-Type"]="application/json");for(let R of u)i=await R(i);let g,d;if(i.timeout&&i.timeout>0&&(d=new AbortController,g=setTimeout(()=>{d.abort()},i.timeout),i.signal)){let R=i.signal;R.aborted?d.abort():R.addEventListener("abort",()=>{d.abort()})}let T=d?d.signal:i.signal,y={method:i.method,headers:i.headers,signal:T};s!=null&&(y.body=JSON.stringify(s));let m;try{L(i.url),m=await fetch(i.url,y)}catch(R){g!==void 0&&clearTimeout(g);let z=R instanceof DOMException&&R.name==="AbortError"?`Request timeout after ${i.timeout}ms`:R instanceof Error?R.message:"Network error",A=new v(z,0,"",null,i);for(let Z of f)A=await Z(A);throw A}g!==void 0&&clearTimeout(g);let E=m.headers.get("content-type")??"",b;if(E.includes("application/json"))b=await m.json();else{let R=await m.text();try{b=JSON.parse(R)}catch{b=R}}let C=se(m.headers);if(!m.ok){let R=new v(`Request failed with status ${m.status}`,m.status,m.statusText,b,i);for(let M of f)R=await M(R);throw R}let P={data:b,status:m.status,headers:C,ok:m.ok};for(let R of c)P=R(P);return P}return{get(l,a){return h("GET",l,void 0,a)},post(l,a,s){return h("POST",l,a,s)},put(l,a,s){return h("PUT",l,a,s)},patch(l,a,s){return h("PATCH",l,a,s)},delete(l,a){return h("DELETE",l,void 0,a)}}}function W(e,t,n){let o=n?.method??"GET",r=n?.body,u=n?.deps??[],c=n?.enabled??!0,[f,h]=w(null),[l,a]=w(c),[s,p]=w(null),i=x(null),g=x(!0),d=k(()=>{if(!c){a(!1);return}i.current&&i.current.abort();let y=new AbortController;i.current=y,a(!0),p(null);let m={signal:y.signal},E,b=o.toUpperCase();b==="POST"?E=e.post(t,r,m):b==="PUT"?E=e.put(t,r,m):b==="PATCH"?E=e.patch(t,r,m):b==="DELETE"?E=e.delete(t,m):E=e.get(t,m),E.then(C=>{g.current&&!y.signal.aborted&&(h(C.data),a(!1))}).catch(C=>{g.current&&!y.signal.aborted&&(p(C instanceof v?C:new v(C instanceof Error?C.message:"Unknown error",0,"",null,{url:t,method:b,headers:{}})),a(!1))})},[e,t,o,r,c,...u]);q(()=>(g.current=!0,d(),()=>{g.current=!1,i.current&&i.current.abort()}),[d]);let T=k(()=>{d()},[d]);return{data:f,loading:l,error:s,refetch:T}}function S(e){let t=[],n=e>>>0;for(;n>127;)t.push(n&127|128),n>>>=7;return t.push(n&127),t}function U(e,t){let n=0,o=0,r=t;for(;r<e.length;){let u=e[r];if(n|=(u&127)<<o,r++,(u&128)===0)return[n>>>0,r];if(o+=7,o>=35)throw new Error("Varint too long")}throw new Error("Unexpected end of data while decoding varint")}var I=0,Q=1,D=2;function ae(e){switch(e){case"int32":case"uint32":case"bool":case"enum":return I;case"float64":return Q;case"string":case"bytes":return D}}function V(e,t){return S(e<<3|t)}function $(e,t){switch(e){case"int32":return S(t|0);case"uint32":return S(t>>>0);case"bool":return S(t?1:0);case"enum":return S(t>>>0);case"float64":{let n=new ArrayBuffer(8);return new DataView(n).setFloat64(0,t,!0),Array.from(new Uint8Array(n))}case"string":{let n=new TextEncoder().encode(t);return[...S(n.length),...n]}case"bytes":{let n=t;return[...S(n.length),...n]}}}function ue(e,t,n,o){switch(t){case I:{let[r,u]=U(n,o);switch(e){case"bool":return[r!==0,u];case"int32":return[r|0,u];case"uint32":case"enum":return[r>>>0,u];default:return[r,u]}}case Q:{if(o+8>n.length)throw new Error("Unexpected end of data while decoding 64-bit value");let r=new ArrayBuffer(8),u=new Uint8Array(r);for(let f=0;f<8;f++)u[f]=n[o+f]??0;return[new DataView(r).getFloat64(0,!0),o+8]}case D:{let[r,u]=U(n,o);if(u+r>n.length)throw new Error("Unexpected end of data while decoding length-delimited value");let c=n.slice(u,u+r);return e==="string"?[new TextDecoder().decode(c),u+r]:[c,u+r]}default:throw new Error(`Unknown wire type: ${t}`)}}function N(e,t){let n=new Map;for(let[u,c]of Object.entries(t))n.set(c.tag,{fieldName:u,descriptor:c});function o(u){let c=[],f=u;for(let[h,l]of Object.entries(t)){let a=f[h];if(a==null)continue;let s=ae(l.type);if(l.repeated){let p=a;for(let i of p)c.push(...V(l.tag,s)),c.push(...$(l.type,i))}else c.push(...V(l.tag,s)),c.push(...$(l.type,a))}return new Uint8Array(c)}function r(u){let c={};for(let[h,l]of Object.entries(t))l.repeated&&(c[h]=[]);let f=0;for(;f<u.length;){let[h,l]=U(u,f),a=h>>>3,s=h&7;f=l;let p=n.get(a);if(!p){f=ce(s,u,f);continue}let[i,g]=ue(p.descriptor.type,s,u,f);f=g,p.descriptor.repeated?c[p.fieldName].push(i):c[p.fieldName]=i}return c}return{name:e,fields:t,encode:o,decode:r}}function ce(e,t,n){switch(e){case I:{let[,o]=U(t,n);return o}case Q:return n+8;case D:{let[o,r]=U(t,n);return r+o}default:throw new Error(`Cannot skip unknown wire type: ${e}`)}}function le(e,t=0){let n=new Uint8Array(5+e.length);return n[0]=t,new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(1,e.length,!1),n.set(e,5),n}function pe(e){if(e.length<5)throw new Error("gRPC-Web frame too short");let t=e[0]??0,o=new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(1,!1);if(e.length<5+o)throw new Error("gRPC-Web frame data incomplete");let r=e.slice(5,5+o);return[t,r,5+o]}function j(e){let{baseURL:t,headers:n}=e;async function o(r,u,c,f,h){let l=c.encode(h),a=le(l),s=`${t.replace(/\/+$/,"")}/${r}/${u}`,p={"Content-Type":"application/grpc-web+proto",Accept:"application/grpc-web+proto","X-Grpc-Web":"1",...n};L(s);let i=await fetch(s,{method:"POST",headers:p,body:a.buffer});if(!i.ok)throw new Error(`gRPC-Web request failed: ${i.status} ${i.statusText}`);let g=new Uint8Array(await i.arrayBuffer()),d=0;for(;d<g.length;){let[T,y,m]=pe(g.subarray(d));if(d+=m,(T&128)===0)return f.decode(y)}throw new Error("No data frame found in gRPC-Web response")}return{unary:o}}function J(e,t,n,o,r,u,c){let[f,h]=w(null),[l,a]=w(!1),[s,p]=w(null),i=x(!0),g=x(u);g.current=u;let d=c?.enabled!==!1,T=k(()=>{d&&(a(!0),p(null),e.unary(t,n,o,r,g.current).then(y=>{i.current&&(h(y),a(!1))}).catch(y=>{i.current&&(p(y instanceof Error?y:new Error(String(y))),a(!1))}))},[e,t,n,o,r,d]);return q(()=>(i.current=!0,T(),()=>{i.current=!1}),[T]),{data:f,loading:l,error:s,refetch:T}}function _(e,...t){let n="";for(let o=0;o<e.length;o++)if(n+=e[o],o<t.length){let r=String(t[o]);if(/[{}():]/.test(r))throw new Error(`[SpecifyJS] gql: Interpolated value "${r}" contains GraphQL metacharacters ({, }, (, ), :). Use the variables parameter instead of string interpolation to prevent injection.`);n+=r}return n.replace(/\s+/g," ").trim()}function B(e){let{url:t,headers:n,credentials:o,cache:r=!1}=e,u=100,c=new Map;function f(a,s){return JSON.stringify({query:a,variables:s})}async function h(a,s){let p={"Content-Type":"application/json",...n},i=JSON.stringify({query:a,variables:s});L(t);let g=await fetch(t,{method:"POST",headers:p,credentials:o,body:i});if(!g.ok)throw new Error(`GraphQL request failed with status ${g.status}`);let d=await g.json();return{data:d.data??null,errors:d.errors??null,...d.extensions!==void 0?{extensions:d.extensions}:{}}}return{async query(a,s){if(r){let p=f(a,s),i=c.get(p);if(i)return i;let g=await h(a,s);if(c.size>=u){let d=c.keys().next().value;d!==void 0&&c.delete(d)}return c.set(p,g),g}return h(a,s)},async mutate(a,s){return h(a,s)},clearCache(){c.clear()},invalidate(a){for(let s of c.keys())try{JSON.parse(s).query===a&&c.delete(s)}catch{}}}}function X(e,t,n){let o=n?.variables,r=n?.deps,u=n?.enabled??!0,[c,f]=w(null),[h,l]=w(u),[a,s]=w(null),p=x(0),i=k(()=>{if(!u)return;let d=++p.current;l(!0),s(null),e.query(t,o).then(T=>{p.current===d&&(f(T.data),s(T.errors),l(!1))}).catch(T=>{p.current===d&&(s([{message:T instanceof Error?T.message:String(T)}]),l(!1))})},[e,t,o,u]),g=r?[i,...r]:[i];return q(()=>{i()},g),{data:c,loading:h,error:a,refetch:i}}function K(e,t){let[n,o]=w(null),[r,u]=w(!1),[c,f]=w(null),h=async a=>{u(!0),f(null);try{let s=await e.mutate(t,a);return o(s.data),f(s.errors),u(!1),s}catch(s){let p=[{message:s instanceof Error?s.message:String(s)}];return f(p),u(!1),{data:null,errors:p,extensions:void 0}}};return[k(((...a)=>h(a[0])),[e,t]),{data:n,loading:r,error:c}]}
|
|
3
|
-
//# sourceMappingURL=specifyjs-client.cjs.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
assertSecureUrl
|
|
4
|
-
} from "./esm/chunks/chunk-
|
|
4
|
+
} from "./esm/chunks/chunk-4TF5WXQG.js";
|
|
5
5
|
import {
|
|
6
6
|
useCallback,
|
|
7
7
|
useEffect,
|
|
8
8
|
useRef,
|
|
9
9
|
useState
|
|
10
|
-
} from "./esm/chunks/chunk-
|
|
11
|
-
import "./esm/chunks/chunk-
|
|
10
|
+
} from "./esm/chunks/chunk-4V37N6QN.js";
|
|
11
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
12
12
|
|
|
13
13
|
// src/client/rest.ts
|
|
14
14
|
var RestError = class extends Error {
|
|
@@ -667,4 +667,3 @@ export {
|
|
|
667
667
|
useQuery,
|
|
668
668
|
useRest
|
|
669
669
|
};
|
|
670
|
-
//# sourceMappingURL=index.js.map
|