@lostgradient/cinder 0.9.0 → 0.11.0
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/CHANGELOG.md +16 -0
- package/components.json +82 -4
- package/dist/components/access-gate/index.js +381 -239
- package/dist/components/chat/builders.d.ts +17 -8
- package/dist/components/chat/conversation-model.d.ts +1 -1
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.js +300 -17
- package/dist/components/chat/utilities/conversation.d.ts +6 -6
- package/dist/components/chat-conversation-header/index.js +19 -6
- package/dist/components/chat-conversation-list/index.js +19 -6
- package/dist/components/connection-indicator/connection-indicator.css +136 -0
- package/dist/components/connection-indicator/connection-indicator.css.d.ts +1 -0
- package/dist/components/connection-indicator/connection-indicator.schema.d.ts +3 -0
- package/dist/components/connection-indicator/connection-indicator.schema.js +89 -0
- package/dist/components/connection-indicator/connection-indicator.svelte.d.ts +21 -0
- package/dist/components/connection-indicator/connection-indicator.types.d.ts +46 -0
- package/dist/components/connection-indicator/connection-indicator.variables.d.ts +2 -0
- package/dist/components/connection-indicator/connection-indicator.variables.js +61 -0
- package/dist/components/connection-indicator/index.d.ts +5 -0
- package/dist/components/connection-indicator/index.js +409 -0
- package/dist/components/container/container.schema.js +4 -4
- package/dist/components/invocation-rule-builder/index.d.ts +1 -1
- package/dist/components/invocation-rule-builder/index.js +305 -150
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +28 -0
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.js +89 -5
- package/dist/components/invocation-rule-builder/invocation-rule-builder.svelte.d.ts +2 -1
- package/dist/components/invocation-rule-builder/invocation-rule-builder.types.d.ts +114 -16
- package/dist/components/run-step-timeline/index.d.ts +1 -1
- package/dist/components/run-step-timeline/index.js +992 -559
- package/dist/components/run-step-timeline/run-step-branch-disclosure.svelte.d.ts +17 -0
- package/dist/components/run-step-timeline/run-step-timeline.css +124 -0
- package/dist/components/run-step-timeline/run-step-timeline.schema.js +873 -350
- package/dist/components/run-step-timeline/run-step-timeline.svelte.d.ts +1 -15
- package/dist/components/run-step-timeline/run-step-timeline.types.d.ts +182 -5
- package/dist/components/run-step-timeline/run-step-timeline.utilities.d.ts +52 -0
- package/dist/components/schedule-builder/index.d.ts +5 -0
- package/dist/components/schedule-builder/index.js +3176 -0
- package/dist/components/schedule-builder/schedule-builder.css +121 -0
- package/dist/components/schedule-builder/schedule-builder.css.d.ts +1 -0
- package/dist/components/schedule-builder/schedule-builder.schema.d.ts +3 -0
- package/dist/components/schedule-builder/schedule-builder.schema.js +141 -0
- package/dist/components/schedule-builder/schedule-builder.svelte.d.ts +22 -0
- package/dist/components/schedule-builder/schedule-builder.types.d.ts +130 -0
- package/dist/components/schedule-builder/schedule-builder.utilities.d.ts +78 -0
- package/dist/components/schedule-builder/schedule-builder.variables.d.ts +2 -0
- package/dist/components/schedule-builder/schedule-builder.variables.js +61 -0
- package/dist/components/tag-input/index.js +22 -4
- package/dist/components/tag-input/tag-input.schema.js +5 -1
- package/dist/components/tag-input/tag-input.types.d.ts +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +22704 -20574
- package/dist/server/components/access-gate/index.js +2 -1
- package/dist/server/components/chat/index.js +4 -4
- package/dist/server/components/chat-conversation-header/index.js +5 -5
- package/dist/server/components/chat-conversation-list/index.js +3 -3
- package/dist/server/components/connection-indicator/index.js +16 -0
- package/dist/server/components/data-table/index.js +3 -3
- package/dist/server/components/diff-viewer/index.js +4 -3
- package/dist/server/components/invocation-rule-builder/index.js +1 -1
- package/dist/server/components/json-schema-editor/index.js +4 -3
- package/dist/server/components/review-editor/index.js +4 -3
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/components/schedule-builder/index.js +30 -0
- package/dist/server/components/side-navigation/index.js +2 -2
- package/dist/server/components/table/index.js +3 -3
- package/dist/server/components/tag-input/index.js +1 -1
- package/dist/server/components/time-field/index.js +5 -3
- package/dist/server/index.js +100 -87
- package/dist/server/index.server-0sx92swg.js +9 -0
- package/dist/server/{index.server-mzzb7dnm.js → index.server-2bbwajb2.js} +1 -1
- package/dist/server/{index.server-q7w4jw89.js → index.server-2s5h1d05.js} +2 -2
- package/dist/server/{index.server-dg83ke3k.js → index.server-2zdbz3rj.js} +1 -1
- package/dist/server/{index.server-0jhra85x.js → index.server-3w72dxz7.js} +4 -4
- package/dist/server/{index.server-qh9qzd5t.js → index.server-4x4hgvqe.js} +283 -13
- package/dist/server/{index.server-c6pe4kaf.js → index.server-5gzyqv78.js} +1 -1
- package/dist/server/{index.server-mqt1ngqw.js → index.server-6hnfzc7f.js} +19 -6
- package/dist/server/index.server-be9bpqeh.js +93 -0
- package/dist/server/{index.server-f3z7tpxr.js → index.server-c42b462p.js} +2 -4
- package/dist/server/{index.server-7vyzen5x.js → index.server-c5qv3p61.js} +171 -63
- package/dist/server/index.server-cch0eed5.js +144 -0
- package/dist/server/index.server-gmh5ar16.js +2 -0
- package/dist/server/{index.server-0atyznp7.js → index.server-h89zk5ev.js} +7 -7
- package/dist/server/{index.server-jxg42jpz.js → index.server-jdcq5zza.js} +7 -7
- package/dist/server/{index.server-2dga5yzr.js → index.server-jfrssta6.js} +1 -1
- package/dist/server/{index.server-fy068yne.js → index.server-jj76374p.js} +1 -1
- package/dist/server/index.server-qbkxz7r2.js +750 -0
- package/dist/server/{index.server-marjz8ps.js → index.server-tcay903b.js} +3 -2
- package/dist/server/index.server-z38bxms8.js +734 -0
- package/dist/server/{index.server-yz4k36cw.js → index.server-z7hxtqs1.js} +1 -1
- package/package.json +66 -3
- package/src/components/chat/builders.ts +445 -14
- package/src/components/chat/conversation-model.ts +1 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/utilities/conversation.ts +33 -15
- package/src/components/connection-indicator/connection-indicator.css +136 -0
- package/src/components/connection-indicator/connection-indicator.examples.json +31 -0
- package/src/components/connection-indicator/connection-indicator.schema.json +29 -0
- package/src/components/connection-indicator/connection-indicator.schema.ts +36 -0
- package/src/components/connection-indicator/connection-indicator.svelte +63 -0
- package/src/components/connection-indicator/connection-indicator.types.ts +58 -0
- package/src/components/connection-indicator/connection-indicator.variables.json +1 -0
- package/src/components/connection-indicator/connection-indicator.variables.ts +3 -0
- package/src/components/connection-indicator/index.ts +10 -0
- package/src/components/container/container.schema.json +3 -3
- package/src/components/container/container.schema.ts +3 -3
- package/src/components/invocation-rule-builder/index.ts +4 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.css +28 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.examples.json +6 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.json +76 -3
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.ts +83 -3
- package/src/components/invocation-rule-builder/invocation-rule-builder.svelte +326 -113
- package/src/components/invocation-rule-builder/invocation-rule-builder.types.ts +157 -43
- package/src/components/run-step-timeline/index.ts +8 -0
- package/src/components/run-step-timeline/run-step-branch-disclosure.svelte +16 -0
- package/src/components/run-step-timeline/run-step-timeline.css +124 -0
- package/src/components/run-step-timeline/run-step-timeline.examples.json +18 -0
- package/src/components/run-step-timeline/run-step-timeline.schema.json +872 -349
- package/src/components/run-step-timeline/run-step-timeline.schema.ts +931 -349
- package/src/components/run-step-timeline/run-step-timeline.svelte +387 -268
- package/src/components/run-step-timeline/run-step-timeline.types.ts +192 -5
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +242 -0
- package/src/components/schedule-builder/index.ts +14 -0
- package/src/components/schedule-builder/schedule-builder.css +121 -0
- package/src/components/schedule-builder/schedule-builder.examples.json +31 -0
- package/src/components/schedule-builder/schedule-builder.schema.json +78 -0
- package/src/components/schedule-builder/schedule-builder.schema.ts +86 -0
- package/src/components/schedule-builder/schedule-builder.svelte +629 -0
- package/src/components/schedule-builder/schedule-builder.types.ts +137 -0
- package/src/components/schedule-builder/schedule-builder.utilities.ts +344 -0
- package/src/components/schedule-builder/schedule-builder.variables.json +1 -0
- package/src/components/schedule-builder/schedule-builder.variables.ts +3 -0
- package/src/components/tag-input/tag-input.schema.json +4 -0
- package/src/components/tag-input/tag-input.schema.ts +4 -0
- package/src/components/tag-input/tag-input.svelte +20 -3
- package/src/components/tag-input/tag-input.types.ts +4 -0
- package/src/index.ts +23 -0
- package/src/styles/components.css +2 -0
- package/dist/server/index.server-qk1h0n02.js +0 -393
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
function __accessProp(key) {
|
|
7
|
+
return this[key];
|
|
8
|
+
}
|
|
9
|
+
var __toESMCache_node;
|
|
10
|
+
var __toESMCache_esm;
|
|
11
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
12
|
+
var canCache = mod != null && typeof mod === "object";
|
|
13
|
+
if (canCache) {
|
|
14
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
15
|
+
var cached = cache.get(mod);
|
|
16
|
+
if (cached)
|
|
17
|
+
return cached;
|
|
18
|
+
}
|
|
19
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
20
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
for (let key of __getOwnPropNames(mod))
|
|
22
|
+
if (!__hasOwnProp.call(to, key))
|
|
23
|
+
__defProp(to, key, {
|
|
24
|
+
get: __accessProp.bind(mod, key),
|
|
25
|
+
enumerable: true
|
|
26
|
+
});
|
|
27
|
+
if (canCache)
|
|
28
|
+
cache.set(mod, to);
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
32
|
+
var __returnValue = (v) => v;
|
|
33
|
+
function __exportSetter(name, newValue) {
|
|
34
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
35
|
+
}
|
|
36
|
+
var __export = (target, all) => {
|
|
37
|
+
for (var name in all)
|
|
38
|
+
__defProp(target, name, {
|
|
39
|
+
get: all[name],
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
set: __exportSetter.bind(all, name)
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
46
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
47
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
48
|
+
}) : x)(function(x) {
|
|
49
|
+
if (typeof require !== "undefined")
|
|
50
|
+
return require.apply(this, arguments);
|
|
51
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// src/components/connection-indicator/connection-indicator.schema.ts
|
|
55
|
+
var schema = {
|
|
56
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
57
|
+
type: "object",
|
|
58
|
+
properties: {
|
|
59
|
+
status: {
|
|
60
|
+
enum: ["connecting", "live", "reconnecting", "polling", "stale", "closed"],
|
|
61
|
+
description: "Current connection lifecycle state. Drives icon, text, and color via `data-cinder-status`."
|
|
62
|
+
},
|
|
63
|
+
label: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: 'Optional human label override. Replaces the default text for `status` (and the "Connection: …" accessible name).'
|
|
66
|
+
},
|
|
67
|
+
class: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Extra classes appended to the root element."
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
additionalProperties: false,
|
|
73
|
+
required: ["status"],
|
|
74
|
+
metadata: {
|
|
75
|
+
unsupportedProps: [
|
|
76
|
+
{
|
|
77
|
+
name: "attempt",
|
|
78
|
+
reason: "function-or-snippet",
|
|
79
|
+
description: "Attempt-count content rendered next to the label when `status` is `'reconnecting'`, e.g. \"attempt 3 of 5\". Ignored for other states."
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
var connection_indicator_schema_default = schema;
|
|
85
|
+
export {
|
|
86
|
+
connection_indicator_schema_default as default
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
//# debugId=37FEFFB18DEB9C6764756E2164756E21
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @cinder
|
|
3
|
+
* @category feedback
|
|
4
|
+
* @status beta
|
|
5
|
+
* @purpose Small standalone status pill for a live connection, distinguishing connecting, live, reconnecting, polling, stale, and closed states through icon and text rather than color alone.
|
|
6
|
+
* @tag connection
|
|
7
|
+
* @tag status
|
|
8
|
+
* @tag realtime
|
|
9
|
+
* @useWhen Surfacing the transport-level health of a websocket, SSE stream, or polling loop as a compact, self-contained pill.
|
|
10
|
+
* @useWhen Distinguishing push (`live`) from interval polling (`polling`) so operators don't mistake one for the other.
|
|
11
|
+
* @avoidWhen Annotating a static entity's state (a row, a user, a deployment) rather than a live transport — use status-dot instead. | status-dot
|
|
12
|
+
* @avoidWhen Rendering a full event log with per-event connection transitions — use event-stream-viewer instead. | event-stream-viewer
|
|
13
|
+
* @a11yPattern role="status" live region
|
|
14
|
+
* @a11yNote Status is conveyed by icon and text together, never color alone (WCAG 1.4.1); the live pulsing dot collapses to a static dot under prefers-reduced-motion.
|
|
15
|
+
* @related status-dot, event-stream-viewer, badge
|
|
16
|
+
*/
|
|
17
|
+
export type { ConnectionIndicatorProps, ConnectionIndicatorSchemaProps, ConnectionIndicatorStatus, } from './connection-indicator.types.ts';
|
|
18
|
+
import type { ConnectionIndicatorProps } from './connection-indicator.types.ts';
|
|
19
|
+
declare const ConnectionIndicator: import("svelte").Component<ConnectionIndicatorProps, {}, "">;
|
|
20
|
+
type ConnectionIndicator = ReturnType<typeof ConnectionIndicator>;
|
|
21
|
+
export default ConnectionIndicator;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
/**
|
|
4
|
+
* The six connection lifecycle states ConnectionIndicator understands.
|
|
5
|
+
*
|
|
6
|
+
* Stamped directly onto the root as `data-cinder-status` and driving color
|
|
7
|
+
* exclusively through `connection-indicator.css` — there are no hard-coded
|
|
8
|
+
* color classes on the component. Each state also carries its own icon and
|
|
9
|
+
* text label so status is never communicated by color alone (WCAG 1.4.1).
|
|
10
|
+
*
|
|
11
|
+
* - `connecting` — initial handshake in progress, no data yet.
|
|
12
|
+
* - `live` — connected and actively receiving pushed updates.
|
|
13
|
+
* - `reconnecting` — a previously live connection dropped and is retrying.
|
|
14
|
+
* - `polling` — receiving updates via interval polling rather than push.
|
|
15
|
+
* - `stale` — connected but data has not refreshed within an expected window.
|
|
16
|
+
* - `closed` — the connection is intentionally or terminally closed.
|
|
17
|
+
*/
|
|
18
|
+
export type ConnectionIndicatorStatus = 'connecting' | 'live' | 'reconnecting' | 'polling' | 'stale' | 'closed';
|
|
19
|
+
/**
|
|
20
|
+
* Props for ConnectionIndicator.
|
|
21
|
+
*
|
|
22
|
+
* The component always renders `role="status"` with a computed accessible
|
|
23
|
+
* name of the form "Connection: {label}" (overridable via `aria-label`), so
|
|
24
|
+
* assistive technology gets the same signal as sighted users regardless of
|
|
25
|
+
* which visual treatment (icon, motion, font-weight) carries the difference
|
|
26
|
+
* between states.
|
|
27
|
+
*/
|
|
28
|
+
export type ConnectionIndicatorProps = Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'> & {
|
|
29
|
+
/** Current connection lifecycle state. Drives icon, text, and color via `data-cinder-status`. */
|
|
30
|
+
status: ConnectionIndicatorStatus;
|
|
31
|
+
/** Optional human label override. Replaces the default text for `status` (and the "Connection: …" accessible name). */
|
|
32
|
+
label?: string;
|
|
33
|
+
/** Attempt-count content rendered next to the label when `status` is `'reconnecting'`, e.g. "attempt 3 of 5". Ignored for other states. */
|
|
34
|
+
attempt?: Snippet;
|
|
35
|
+
/** Extra classes appended to the root element. */
|
|
36
|
+
class?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Schema-facing mirror of {@link ConnectionIndicatorProps}, omitting the non-serializable `attempt` snippet and native HTML attribute passthrough. */
|
|
39
|
+
export interface ConnectionIndicatorSchemaProps {
|
|
40
|
+
/** Current connection lifecycle state. Drives icon, text, and color via `data-cinder-status`. */
|
|
41
|
+
status: ConnectionIndicatorStatus;
|
|
42
|
+
/** Optional human label override. Replaces the default text for `status` (and the "Connection: …" accessible name). */
|
|
43
|
+
label?: string;
|
|
44
|
+
/** Extra classes appended to the root element. */
|
|
45
|
+
class?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
function __accessProp(key) {
|
|
7
|
+
return this[key];
|
|
8
|
+
}
|
|
9
|
+
var __toESMCache_node;
|
|
10
|
+
var __toESMCache_esm;
|
|
11
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
12
|
+
var canCache = mod != null && typeof mod === "object";
|
|
13
|
+
if (canCache) {
|
|
14
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
15
|
+
var cached = cache.get(mod);
|
|
16
|
+
if (cached)
|
|
17
|
+
return cached;
|
|
18
|
+
}
|
|
19
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
20
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
for (let key of __getOwnPropNames(mod))
|
|
22
|
+
if (!__hasOwnProp.call(to, key))
|
|
23
|
+
__defProp(to, key, {
|
|
24
|
+
get: __accessProp.bind(mod, key),
|
|
25
|
+
enumerable: true
|
|
26
|
+
});
|
|
27
|
+
if (canCache)
|
|
28
|
+
cache.set(mod, to);
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
32
|
+
var __returnValue = (v) => v;
|
|
33
|
+
function __exportSetter(name, newValue) {
|
|
34
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
35
|
+
}
|
|
36
|
+
var __export = (target, all) => {
|
|
37
|
+
for (var name in all)
|
|
38
|
+
__defProp(target, name, {
|
|
39
|
+
get: all[name],
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
set: __exportSetter.bind(all, name)
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
46
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
47
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
48
|
+
}) : x)(function(x) {
|
|
49
|
+
if (typeof require !== "undefined")
|
|
50
|
+
return require.apply(this, arguments);
|
|
51
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// src/components/connection-indicator/connection-indicator.variables.ts
|
|
55
|
+
var variables = [];
|
|
56
|
+
var connection_indicator_variables_default = variables;
|
|
57
|
+
export {
|
|
58
|
+
connection_indicator_variables_default as default
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//# debugId=87811D7E55D42C3864756E2164756E21
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './connection-indicator.css';
|
|
2
|
+
import ConnectionIndicator from './connection-indicator.svelte';
|
|
3
|
+
export default ConnectionIndicator;
|
|
4
|
+
export type { ConnectionIndicatorProps, ConnectionIndicatorSchemaProps, ConnectionIndicatorStatus, } from './connection-indicator.types.ts';
|
|
5
|
+
export { ConnectionIndicator };
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
function __accessProp(key) {
|
|
7
|
+
return this[key];
|
|
8
|
+
}
|
|
9
|
+
var __toESMCache_node;
|
|
10
|
+
var __toESMCache_esm;
|
|
11
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
12
|
+
var canCache = mod != null && typeof mod === "object";
|
|
13
|
+
if (canCache) {
|
|
14
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
15
|
+
var cached = cache.get(mod);
|
|
16
|
+
if (cached)
|
|
17
|
+
return cached;
|
|
18
|
+
}
|
|
19
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
20
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
for (let key of __getOwnPropNames(mod))
|
|
22
|
+
if (!__hasOwnProp.call(to, key))
|
|
23
|
+
__defProp(to, key, {
|
|
24
|
+
get: __accessProp.bind(mod, key),
|
|
25
|
+
enumerable: true
|
|
26
|
+
});
|
|
27
|
+
if (canCache)
|
|
28
|
+
cache.set(mod, to);
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
32
|
+
var __returnValue = (v) => v;
|
|
33
|
+
function __exportSetter(name, newValue) {
|
|
34
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
35
|
+
}
|
|
36
|
+
var __export = (target, all) => {
|
|
37
|
+
for (var name in all)
|
|
38
|
+
__defProp(target, name, {
|
|
39
|
+
get: all[name],
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
set: __exportSetter.bind(all, name)
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
46
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
47
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
48
|
+
}) : x)(function(x) {
|
|
49
|
+
if (typeof require !== "undefined")
|
|
50
|
+
return require.apply(this, arguments);
|
|
51
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// src/components/connection-indicator/index.ts
|
|
55
|
+
import"@lostgradient/cinder/connection-indicator/styles";
|
|
56
|
+
|
|
57
|
+
// src/components/connection-indicator/connection-indicator.svelte
|
|
58
|
+
import"svelte/internal/disclose-version";
|
|
59
|
+
import * as $8 from "svelte/internal/client";
|
|
60
|
+
|
|
61
|
+
// ../../node_modules/lucide-svelte/dist/icons/loader.svelte
|
|
62
|
+
import"svelte/internal/disclose-version";
|
|
63
|
+
import"svelte/internal/flags/legacy";
|
|
64
|
+
import * as $2 from "svelte/internal/client";
|
|
65
|
+
|
|
66
|
+
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
67
|
+
import"svelte/internal/disclose-version";
|
|
68
|
+
import"svelte/internal/flags/legacy";
|
|
69
|
+
import * as $ from "svelte/internal/client";
|
|
70
|
+
|
|
71
|
+
// ../../node_modules/lucide-svelte/dist/defaultAttributes.js
|
|
72
|
+
var defaultAttributes = {
|
|
73
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
74
|
+
width: 24,
|
|
75
|
+
height: 24,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
fill: "none",
|
|
78
|
+
stroke: "currentColor",
|
|
79
|
+
"stroke-width": 2,
|
|
80
|
+
"stroke-linecap": "round",
|
|
81
|
+
"stroke-linejoin": "round"
|
|
82
|
+
};
|
|
83
|
+
var defaultAttributes_default = defaultAttributes;
|
|
84
|
+
|
|
85
|
+
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
86
|
+
var root = $.from_svg(`<svg><!><!></svg>`);
|
|
87
|
+
function Icon($$anchor, $$props) {
|
|
88
|
+
const $$sanitized_props = $.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
89
|
+
const $$restProps = $.legacy_rest_props($$sanitized_props, [
|
|
90
|
+
"name",
|
|
91
|
+
"color",
|
|
92
|
+
"size",
|
|
93
|
+
"strokeWidth",
|
|
94
|
+
"absoluteStrokeWidth",
|
|
95
|
+
"iconNode"
|
|
96
|
+
]);
|
|
97
|
+
$.push($$props, false);
|
|
98
|
+
let name = $.prop($$props, "name", 8, undefined);
|
|
99
|
+
let color = $.prop($$props, "color", 8, "currentColor");
|
|
100
|
+
let size = $.prop($$props, "size", 8, 24);
|
|
101
|
+
let strokeWidth = $.prop($$props, "strokeWidth", 8, 2);
|
|
102
|
+
let absoluteStrokeWidth = $.prop($$props, "absoluteStrokeWidth", 8, false);
|
|
103
|
+
let iconNode = $.prop($$props, "iconNode", 24, () => []);
|
|
104
|
+
const mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
105
|
+
return Boolean(className) && array.indexOf(className) === index2;
|
|
106
|
+
}).join(" ");
|
|
107
|
+
$.init();
|
|
108
|
+
var svg = root();
|
|
109
|
+
$.attribute_effect(svg, ($0, $1) => ({
|
|
110
|
+
...defaultAttributes_default,
|
|
111
|
+
...$$restProps,
|
|
112
|
+
width: size(),
|
|
113
|
+
height: size(),
|
|
114
|
+
stroke: color(),
|
|
115
|
+
"stroke-width": $0,
|
|
116
|
+
class: $1
|
|
117
|
+
}), [
|
|
118
|
+
() => ($.deep_read_state(absoluteStrokeWidth()), $.deep_read_state(strokeWidth()), $.deep_read_state(size()), $.untrack(() => absoluteStrokeWidth() ? Number(strokeWidth()) * 24 / Number(size()) : strokeWidth())),
|
|
119
|
+
() => ($.deep_read_state(name()), $.deep_read_state($$sanitized_props), $.untrack(() => mergeClasses("lucide-icon", "lucide", name() ? `lucide-${name()}` : "", $$sanitized_props.class)))
|
|
120
|
+
]);
|
|
121
|
+
var node = $.child(svg);
|
|
122
|
+
$.each(node, 1, iconNode, $.index, ($$anchor2, $$item) => {
|
|
123
|
+
var $$array = $.derived(() => $.to_array($.get($$item), 2));
|
|
124
|
+
let tag = () => $.get($$array)[0];
|
|
125
|
+
let attrs = () => $.get($$array)[1];
|
|
126
|
+
var fragment = $.comment();
|
|
127
|
+
var node_1 = $.first_child(fragment);
|
|
128
|
+
$.element(node_1, tag, true, ($$element, $$anchor3) => {
|
|
129
|
+
$.attribute_effect($$element, () => ({ ...attrs() }));
|
|
130
|
+
});
|
|
131
|
+
$.append($$anchor2, fragment);
|
|
132
|
+
});
|
|
133
|
+
var node_2 = $.sibling(node);
|
|
134
|
+
$.slot(node_2, $$props, "default", {}, null);
|
|
135
|
+
$.reset(svg);
|
|
136
|
+
$.append($$anchor, svg);
|
|
137
|
+
$.pop();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// ../../node_modules/lucide-svelte/dist/icons/loader.svelte
|
|
141
|
+
function Loader($$anchor, $$props) {
|
|
142
|
+
const $$sanitized_props = $2.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
143
|
+
const iconNode = [
|
|
144
|
+
["path", { d: "M12 2v4" }],
|
|
145
|
+
["path", { d: "m16.2 7.8 2.9-2.9" }],
|
|
146
|
+
["path", { d: "M18 12h4" }],
|
|
147
|
+
["path", { d: "m16.2 16.2 2.9 2.9" }],
|
|
148
|
+
["path", { d: "M12 18v4" }],
|
|
149
|
+
["path", { d: "m4.9 19.1 2.9-2.9" }],
|
|
150
|
+
["path", { d: "M2 12h4" }],
|
|
151
|
+
["path", { d: "m4.9 4.9 2.9 2.9" }]
|
|
152
|
+
];
|
|
153
|
+
Icon($$anchor, $2.spread_props({ name: "loader" }, () => $$sanitized_props, {
|
|
154
|
+
get iconNode() {
|
|
155
|
+
return iconNode;
|
|
156
|
+
},
|
|
157
|
+
children: ($$anchor2, $$slotProps) => {
|
|
158
|
+
var fragment_1 = $2.comment();
|
|
159
|
+
var node = $2.first_child(fragment_1);
|
|
160
|
+
$2.slot(node, $$props, "default", {}, null);
|
|
161
|
+
$2.append($$anchor2, fragment_1);
|
|
162
|
+
},
|
|
163
|
+
$$slots: { default: true }
|
|
164
|
+
}));
|
|
165
|
+
}
|
|
166
|
+
// ../../node_modules/lucide-svelte/dist/icons/refresh-ccw-dot.svelte
|
|
167
|
+
import"svelte/internal/disclose-version";
|
|
168
|
+
import"svelte/internal/flags/legacy";
|
|
169
|
+
import * as $3 from "svelte/internal/client";
|
|
170
|
+
function Refresh_ccw_dot($$anchor, $$props) {
|
|
171
|
+
const $$sanitized_props = $3.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
172
|
+
const iconNode = [
|
|
173
|
+
["path", { d: "M3 2v6h6" }],
|
|
174
|
+
["path", { d: "M21 12A9 9 0 0 0 6 5.3L3 8" }],
|
|
175
|
+
["path", { d: "M21 22v-6h-6" }],
|
|
176
|
+
["path", { d: "M3 12a9 9 0 0 0 15 6.7l3-2.7" }],
|
|
177
|
+
["circle", { cx: "12", cy: "12", r: "1" }]
|
|
178
|
+
];
|
|
179
|
+
Icon($$anchor, $3.spread_props({ name: "refresh-ccw-dot" }, () => $$sanitized_props, {
|
|
180
|
+
get iconNode() {
|
|
181
|
+
return iconNode;
|
|
182
|
+
},
|
|
183
|
+
children: ($$anchor2, $$slotProps) => {
|
|
184
|
+
var fragment_1 = $3.comment();
|
|
185
|
+
var node = $3.first_child(fragment_1);
|
|
186
|
+
$3.slot(node, $$props, "default", {}, null);
|
|
187
|
+
$3.append($$anchor2, fragment_1);
|
|
188
|
+
},
|
|
189
|
+
$$slots: { default: true }
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
// ../../node_modules/lucide-svelte/dist/icons/refresh-cw.svelte
|
|
193
|
+
import"svelte/internal/disclose-version";
|
|
194
|
+
import"svelte/internal/flags/legacy";
|
|
195
|
+
import * as $4 from "svelte/internal/client";
|
|
196
|
+
function Refresh_cw($$anchor, $$props) {
|
|
197
|
+
const $$sanitized_props = $4.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
198
|
+
const iconNode = [
|
|
199
|
+
[
|
|
200
|
+
"path",
|
|
201
|
+
{ d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }
|
|
202
|
+
],
|
|
203
|
+
["path", { d: "M21 3v5h-5" }],
|
|
204
|
+
[
|
|
205
|
+
"path",
|
|
206
|
+
{ d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }
|
|
207
|
+
],
|
|
208
|
+
["path", { d: "M8 16H3v5" }]
|
|
209
|
+
];
|
|
210
|
+
Icon($$anchor, $4.spread_props({ name: "refresh-cw" }, () => $$sanitized_props, {
|
|
211
|
+
get iconNode() {
|
|
212
|
+
return iconNode;
|
|
213
|
+
},
|
|
214
|
+
children: ($$anchor2, $$slotProps) => {
|
|
215
|
+
var fragment_1 = $4.comment();
|
|
216
|
+
var node = $4.first_child(fragment_1);
|
|
217
|
+
$4.slot(node, $$props, "default", {}, null);
|
|
218
|
+
$4.append($$anchor2, fragment_1);
|
|
219
|
+
},
|
|
220
|
+
$$slots: { default: true }
|
|
221
|
+
}));
|
|
222
|
+
}
|
|
223
|
+
// ../../node_modules/lucide-svelte/dist/icons/triangle-alert.svelte
|
|
224
|
+
import"svelte/internal/disclose-version";
|
|
225
|
+
import"svelte/internal/flags/legacy";
|
|
226
|
+
import * as $5 from "svelte/internal/client";
|
|
227
|
+
function Triangle_alert($$anchor, $$props) {
|
|
228
|
+
const $$sanitized_props = $5.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
229
|
+
const iconNode = [
|
|
230
|
+
[
|
|
231
|
+
"path",
|
|
232
|
+
{
|
|
233
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
["path", { d: "M12 9v4" }],
|
|
237
|
+
["path", { d: "M12 17h.01" }]
|
|
238
|
+
];
|
|
239
|
+
Icon($$anchor, $5.spread_props({ name: "triangle-alert" }, () => $$sanitized_props, {
|
|
240
|
+
get iconNode() {
|
|
241
|
+
return iconNode;
|
|
242
|
+
},
|
|
243
|
+
children: ($$anchor2, $$slotProps) => {
|
|
244
|
+
var fragment_1 = $5.comment();
|
|
245
|
+
var node = $5.first_child(fragment_1);
|
|
246
|
+
$5.slot(node, $$props, "default", {}, null);
|
|
247
|
+
$5.append($$anchor2, fragment_1);
|
|
248
|
+
},
|
|
249
|
+
$$slots: { default: true }
|
|
250
|
+
}));
|
|
251
|
+
}
|
|
252
|
+
// ../../node_modules/lucide-svelte/dist/icons/wifi.svelte
|
|
253
|
+
import"svelte/internal/disclose-version";
|
|
254
|
+
import"svelte/internal/flags/legacy";
|
|
255
|
+
import * as $6 from "svelte/internal/client";
|
|
256
|
+
function Wifi($$anchor, $$props) {
|
|
257
|
+
const $$sanitized_props = $6.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
258
|
+
const iconNode = [
|
|
259
|
+
["path", { d: "M12 20h.01" }],
|
|
260
|
+
["path", { d: "M2 8.82a15 15 0 0 1 20 0" }],
|
|
261
|
+
["path", { d: "M5 12.859a10 10 0 0 1 14 0" }],
|
|
262
|
+
["path", { d: "M8.5 16.429a5 5 0 0 1 7 0" }]
|
|
263
|
+
];
|
|
264
|
+
Icon($$anchor, $6.spread_props({ name: "wifi" }, () => $$sanitized_props, {
|
|
265
|
+
get iconNode() {
|
|
266
|
+
return iconNode;
|
|
267
|
+
},
|
|
268
|
+
children: ($$anchor2, $$slotProps) => {
|
|
269
|
+
var fragment_1 = $6.comment();
|
|
270
|
+
var node = $6.first_child(fragment_1);
|
|
271
|
+
$6.slot(node, $$props, "default", {}, null);
|
|
272
|
+
$6.append($$anchor2, fragment_1);
|
|
273
|
+
},
|
|
274
|
+
$$slots: { default: true }
|
|
275
|
+
}));
|
|
276
|
+
}
|
|
277
|
+
// ../../node_modules/lucide-svelte/dist/icons/wifi-off.svelte
|
|
278
|
+
import"svelte/internal/disclose-version";
|
|
279
|
+
import"svelte/internal/flags/legacy";
|
|
280
|
+
import * as $7 from "svelte/internal/client";
|
|
281
|
+
function Wifi_off($$anchor, $$props) {
|
|
282
|
+
const $$sanitized_props = $7.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
283
|
+
const iconNode = [
|
|
284
|
+
["path", { d: "M12 20h.01" }],
|
|
285
|
+
["path", { d: "M8.5 16.429a5 5 0 0 1 7 0" }],
|
|
286
|
+
["path", { d: "M5 12.859a10 10 0 0 1 5.17-2.69" }],
|
|
287
|
+
["path", { d: "M19 12.859a10 10 0 0 0-2.007-1.523" }],
|
|
288
|
+
["path", { d: "M2 8.82a15 15 0 0 1 4.177-2.643" }],
|
|
289
|
+
["path", { d: "M22 8.82a15 15 0 0 0-11.288-3.764" }],
|
|
290
|
+
["path", { d: "m2 2 20 20" }]
|
|
291
|
+
];
|
|
292
|
+
Icon($$anchor, $7.spread_props({ name: "wifi-off" }, () => $$sanitized_props, {
|
|
293
|
+
get iconNode() {
|
|
294
|
+
return iconNode;
|
|
295
|
+
},
|
|
296
|
+
children: ($$anchor2, $$slotProps) => {
|
|
297
|
+
var fragment_1 = $7.comment();
|
|
298
|
+
var node = $7.first_child(fragment_1);
|
|
299
|
+
$7.slot(node, $$props, "default", {}, null);
|
|
300
|
+
$7.append($$anchor2, fragment_1);
|
|
301
|
+
},
|
|
302
|
+
$$slots: { default: true }
|
|
303
|
+
}));
|
|
304
|
+
}
|
|
305
|
+
// src/utilities/class-names.ts
|
|
306
|
+
function classNames(...parts) {
|
|
307
|
+
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// src/components/connection-indicator/connection-indicator.svelte
|
|
311
|
+
var rest_excludes = new Set([
|
|
312
|
+
"$$slots",
|
|
313
|
+
"$$events",
|
|
314
|
+
"$$legacy",
|
|
315
|
+
"status",
|
|
316
|
+
"label",
|
|
317
|
+
"attempt",
|
|
318
|
+
"class",
|
|
319
|
+
"aria-label",
|
|
320
|
+
"aria-labelledby"
|
|
321
|
+
]);
|
|
322
|
+
var root2 = $8.from_html(`<span class="cinder-connection-indicator__dot" aria-hidden="true"></span>`);
|
|
323
|
+
var root_1 = $8.from_html(`<span class="cinder-connection-indicator__attempt"><!></span>`);
|
|
324
|
+
var root_2 = $8.from_html(`<div><!> <span class="cinder-connection-indicator__icon" aria-hidden="true"><!></span> <span class="cinder-connection-indicator__label"> </span> <!></div>`);
|
|
325
|
+
function Connection_indicator($$anchor, $$props) {
|
|
326
|
+
$8.push($$props, true);
|
|
327
|
+
const statusLabels = {
|
|
328
|
+
connecting: "Connecting",
|
|
329
|
+
live: "Live",
|
|
330
|
+
reconnecting: "Reconnecting",
|
|
331
|
+
polling: "Polling",
|
|
332
|
+
stale: "Stale",
|
|
333
|
+
closed: "Closed"
|
|
334
|
+
};
|
|
335
|
+
const statusIcons = {
|
|
336
|
+
connecting: Loader,
|
|
337
|
+
live: Wifi,
|
|
338
|
+
reconnecting: Refresh_cw,
|
|
339
|
+
polling: Refresh_ccw_dot,
|
|
340
|
+
stale: Triangle_alert,
|
|
341
|
+
closed: Wifi_off
|
|
342
|
+
};
|
|
343
|
+
let rest = $8.rest_props($$props, rest_excludes);
|
|
344
|
+
const normalizedAriaLabel = $8.derived(() => $$props["aria-label"]?.trim() ? $$props["aria-label"].trim() : undefined);
|
|
345
|
+
const normalizedAriaLabelledby = $8.derived(() => $$props["aria-labelledby"]?.trim() ? $$props["aria-labelledby"].trim() : undefined);
|
|
346
|
+
const resolvedLabel = $8.derived(() => $$props.label?.trim() ? $$props.label.trim() : statusLabels[$$props.status]);
|
|
347
|
+
const resolvedAriaLabel = $8.derived(() => $8.get(normalizedAriaLabelledby) !== undefined ? undefined : $8.get(normalizedAriaLabel) ?? `Connection: ${$8.get(resolvedLabel)}`);
|
|
348
|
+
const Icon2 = $8.derived(() => statusIcons[$$props.status]);
|
|
349
|
+
var div = root_2();
|
|
350
|
+
$8.attribute_effect(div, ($0) => ({
|
|
351
|
+
...rest,
|
|
352
|
+
class: $0,
|
|
353
|
+
"data-cinder-status": $$props.status,
|
|
354
|
+
role: "status",
|
|
355
|
+
"aria-live": "polite",
|
|
356
|
+
"aria-atomic": "true",
|
|
357
|
+
"aria-label": $8.get(resolvedAriaLabel),
|
|
358
|
+
"aria-labelledby": $8.get(normalizedAriaLabelledby)
|
|
359
|
+
}), [
|
|
360
|
+
() => classNames("cinder-connection-indicator", $$props.class)
|
|
361
|
+
]);
|
|
362
|
+
var node = $8.child(div);
|
|
363
|
+
{
|
|
364
|
+
var consequent = ($$anchor2) => {
|
|
365
|
+
var span = root2();
|
|
366
|
+
$8.append($$anchor2, span);
|
|
367
|
+
};
|
|
368
|
+
$8.if(node, ($$render) => {
|
|
369
|
+
if ($$props.status === "live")
|
|
370
|
+
$$render(consequent);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
var span_1 = $8.sibling(node, 2);
|
|
374
|
+
var node_1 = $8.child(span_1);
|
|
375
|
+
$8.component(node_1, () => $8.get(Icon2), ($$anchor2, Icon_1) => {
|
|
376
|
+
Icon_1($$anchor2, { size: 13, strokeWidth: 2.25 });
|
|
377
|
+
});
|
|
378
|
+
$8.reset(span_1);
|
|
379
|
+
var span_2 = $8.sibling(span_1, 2);
|
|
380
|
+
var text = $8.child(span_2, true);
|
|
381
|
+
$8.reset(span_2);
|
|
382
|
+
var node_2 = $8.sibling(span_2, 2);
|
|
383
|
+
{
|
|
384
|
+
var consequent_1 = ($$anchor2) => {
|
|
385
|
+
var span_3 = root_1();
|
|
386
|
+
var node_3 = $8.child(span_3);
|
|
387
|
+
$8.snippet(node_3, () => $$props.attempt);
|
|
388
|
+
$8.reset(span_3);
|
|
389
|
+
$8.append($$anchor2, span_3);
|
|
390
|
+
};
|
|
391
|
+
$8.if(node_2, ($$render) => {
|
|
392
|
+
if ($$props.status === "reconnecting" && $$props.attempt)
|
|
393
|
+
$$render(consequent_1);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
$8.reset(div);
|
|
397
|
+
$8.template_effect(() => $8.set_text(text, $8.get(resolvedLabel)));
|
|
398
|
+
$8.append($$anchor, div);
|
|
399
|
+
$8.pop();
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// src/components/connection-indicator/index.ts
|
|
403
|
+
var connection_indicator_default = Connection_indicator;
|
|
404
|
+
export {
|
|
405
|
+
connection_indicator_default as default,
|
|
406
|
+
Connection_indicator as ConnectionIndicator
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
//# debugId=517A5B4D59D61C2864756E2164756E21
|
|
@@ -73,6 +73,9 @@ var schema = {
|
|
|
73
73
|
as: {
|
|
74
74
|
enum: [
|
|
75
75
|
"object",
|
|
76
|
+
"slot",
|
|
77
|
+
"style",
|
|
78
|
+
"title",
|
|
76
79
|
"a",
|
|
77
80
|
"abbr",
|
|
78
81
|
"address",
|
|
@@ -148,11 +151,9 @@ var schema = {
|
|
|
148
151
|
"search",
|
|
149
152
|
"section",
|
|
150
153
|
"select",
|
|
151
|
-
"slot",
|
|
152
154
|
"small",
|
|
153
155
|
"span",
|
|
154
156
|
"strong",
|
|
155
|
-
"style",
|
|
156
157
|
"sub",
|
|
157
158
|
"summary",
|
|
158
159
|
"sup",
|
|
@@ -165,7 +166,6 @@ var schema = {
|
|
|
165
166
|
"th",
|
|
166
167
|
"thead",
|
|
167
168
|
"time",
|
|
168
|
-
"title",
|
|
169
169
|
"tr",
|
|
170
170
|
"u",
|
|
171
171
|
"ul",
|
|
@@ -197,4 +197,4 @@ export {
|
|
|
197
197
|
container_schema_default as default
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
//# debugId=
|
|
200
|
+
//# debugId=94CA2B4BEDD9A8B164756E2164756E21
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './invocation-rule-builder.css';
|
|
2
2
|
import InvocationRuleBuilder from './invocation-rule-builder.svelte';
|
|
3
3
|
export default InvocationRuleBuilder;
|
|
4
|
-
export type { InvocationRule, InvocationRuleAction, InvocationRuleBuilderProps, InvocationRuleBuilderSchemaProps, InvocationRuleChange, InvocationRuleCondition, InvocationRuleOption, } from './invocation-rule-builder.types.ts';
|
|
4
|
+
export type { InvocationRule, InvocationRuleAction, InvocationRuleBuilderMode, InvocationRuleBuilderProps, InvocationRuleBuilderSchemaProps, InvocationRuleChange, InvocationRuleCondition, InvocationRuleConditionsOnlyOperator, InvocationRuleFieldType, InvocationRuleOption, InvocationRuleValueChoice, } from './invocation-rule-builder.types.ts';
|
|
5
5
|
export { InvocationRuleBuilder };
|