@ultrst-armada/floks 1.5.6 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.krusbl-release-attestation.json +3 -3
- package/package.json +14 -3
- package/packages/canvas-ui/dist/authoring/index.d.ts +16 -1
- package/packages/canvas-ui/dist/authoring/index.js +5 -1
- package/packages/canvas-ui/dist/{chunk-NJOTRYYJ.js → chunk-TS7P3WWH.js} +52 -1
- package/packages/canvas-ui/dist/chunk-ZJXRL74D.js +239 -0
- package/packages/canvas-ui/dist/editor/index.d.ts +6 -1
- package/packages/canvas-ui/dist/editor/index.js +1 -1
- package/packages/canvas-ui/dist/index.d.ts +2 -1
- package/packages/canvas-ui/dist/index.js +18 -14
- package/packages/canvas-ui/dist/predictive/index.js +1 -1
- package/packages/canvas-ui/package.json +2 -2
- package/packages/ui/dist/{chunk-CUQ7R3H2.js → chunk-7IKBKQGJ.js} +1 -1
- package/packages/ui/dist/{chunk-KIFQA7L6.js → chunk-CWBCW6N2.js} +19 -45
- package/packages/ui/dist/chunk-DWMKISE5.js +28 -0
- package/packages/ui/dist/chunk-FA45WRNL.js +952 -0
- package/packages/ui/dist/components/ai/index.css +183 -0
- package/packages/ui/dist/components/ai/index.d.ts +279 -0
- package/packages/ui/dist/components/ai/index.js +39 -0
- package/packages/ui/dist/components/auth/index.js +3 -3
- package/packages/ui/dist/components/base/index.js +6 -4
- package/packages/ui/dist/components/composite/index.js +2 -2
- package/packages/ui/dist/components/layout/index.js +2 -2
- package/packages/ui/dist/components/settings/index.js +2 -2
- package/packages/ui/dist/frnl/index.js +3 -3
- package/packages/ui/dist/hierarchy/index.js +2 -2
- package/packages/ui/dist/index.d.ts +2 -0
- package/packages/ui/dist/index.js +75 -39
- package/packages/ui/package.json +6 -1
- package/packages/canvas-ui/dist/chunk-5I3TTHDX.js +0 -140
- package/packages/ui/dist/{chunk-GWW3BGOB.js → chunk-MYXPGPI3.js} +3 -3
- package/packages/ui/dist/{chunk-ZPQC46RO.js → chunk-NPIMIWVO.js} +4 -4
- package/packages/ui/dist/{chunk-YVWJ4SW7.js → chunk-PUHHHRQO.js} +3 -3
- package/packages/ui/dist/{chunk-DGZBP3ND.js → chunk-USCLIIBR.js} +3 -3
- package/packages/ui/dist/{chunk-SXRIBCJX.js → chunk-Y2QQZATG.js} +3 -3
|
@@ -2,48 +2,24 @@ import {
|
|
|
2
2
|
BaseTooltip
|
|
3
3
|
} from "./chunk-GKP6KHTI.js";
|
|
4
4
|
|
|
5
|
-
// src/components/base/BaseTextarea.tsx
|
|
6
|
-
import { forwardRef } from "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
var BaseTextarea = forwardRef(({
|
|
9
|
-
className = "",
|
|
10
|
-
...props
|
|
11
|
-
}, ref) => {
|
|
12
|
-
return /* @__PURE__ */ jsx("textarea", { ref, className: `skipo-textarea ${className}`, ...props });
|
|
13
|
-
});
|
|
14
|
-
BaseTextarea.displayName = "BaseTextarea";
|
|
15
|
-
|
|
16
|
-
// src/components/base/BaseSelect.tsx
|
|
17
|
-
import { forwardRef as forwardRef2 } from "react";
|
|
18
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
19
|
-
var BaseSelect = forwardRef2(({
|
|
20
|
-
options,
|
|
21
|
-
error,
|
|
22
|
-
className = "",
|
|
23
|
-
...props
|
|
24
|
-
}, ref) => {
|
|
25
|
-
return /* @__PURE__ */ jsx2("select", { ref, className: `skipo-select ${className}`, "data-error": error, ...props, children: options.map((o) => /* @__PURE__ */ jsx2("option", { value: o.value, children: o.label }, o.value)) });
|
|
26
|
-
});
|
|
27
|
-
BaseSelect.displayName = "BaseSelect";
|
|
28
|
-
|
|
29
5
|
// src/components/base/BaseToggle.tsx
|
|
30
|
-
import { forwardRef
|
|
31
|
-
import { jsx
|
|
32
|
-
var BaseToggle =
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
var BaseToggle = forwardRef(({
|
|
33
9
|
label,
|
|
34
10
|
className = "",
|
|
35
11
|
...props
|
|
36
12
|
}, ref) => {
|
|
37
13
|
return /* @__PURE__ */ jsxs("label", { className: "skipo-toggle-label", children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
label && /* @__PURE__ */
|
|
14
|
+
/* @__PURE__ */ jsx("input", { ref, type: "checkbox", className: `skipo-toggle ${className}`, ...props }),
|
|
15
|
+
label && /* @__PURE__ */ jsx("span", { children: label })
|
|
40
16
|
] });
|
|
41
17
|
});
|
|
42
18
|
BaseToggle.displayName = "BaseToggle";
|
|
43
19
|
|
|
44
20
|
// src/components/base/CredentialField.tsx
|
|
45
|
-
import { forwardRef as
|
|
46
|
-
import { Fragment, jsx as
|
|
21
|
+
import { forwardRef as forwardRef2, useState } from "react";
|
|
22
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
47
23
|
var KNOWN_CREDENTIAL_URLS = {
|
|
48
24
|
openai: { name: "OpenAI API Keys", url: "https://platform.openai.com/api-keys" },
|
|
49
25
|
anthropic: { name: "Anthropic Console", url: "https://console.anthropic.com/settings/keys" },
|
|
@@ -60,7 +36,7 @@ var KNOWN_CREDENTIAL_URLS = {
|
|
|
60
36
|
github: { name: "GitHub Personal Access Tokens", url: "https://github.com/settings/tokens" },
|
|
61
37
|
openrouter: { name: "OpenRouter Keys", url: "https://openrouter.ai/keys" }
|
|
62
38
|
};
|
|
63
|
-
var CredentialField =
|
|
39
|
+
var CredentialField = forwardRef2(({
|
|
64
40
|
serviceId,
|
|
65
41
|
credentialUrl,
|
|
66
42
|
serviceLabel,
|
|
@@ -82,7 +58,7 @@ var CredentialField = forwardRef4(({
|
|
|
82
58
|
width: "100%"
|
|
83
59
|
},
|
|
84
60
|
children: [
|
|
85
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ jsx2(
|
|
86
62
|
"input",
|
|
87
63
|
{
|
|
88
64
|
ref,
|
|
@@ -103,7 +79,7 @@ var CredentialField = forwardRef4(({
|
|
|
103
79
|
gap: "2px"
|
|
104
80
|
},
|
|
105
81
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ jsx2(BaseTooltip, { content: showSecret ? "HIDE SECRET CREDENTIAL" : "SHOW SECRET CREDENTIAL", children: /* @__PURE__ */ jsx2(
|
|
107
83
|
"button",
|
|
108
84
|
{
|
|
109
85
|
type: "button",
|
|
@@ -118,16 +94,16 @@ var CredentialField = forwardRef4(({
|
|
|
118
94
|
display: "flex",
|
|
119
95
|
alignItems: "center"
|
|
120
96
|
},
|
|
121
|
-
children: /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ jsx2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: showSecret ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
98
|
+
/* @__PURE__ */ jsx2("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
|
|
99
|
+
/* @__PURE__ */ jsx2("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
|
124
100
|
] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ jsx2("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
102
|
+
/* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "3" })
|
|
127
103
|
] }) })
|
|
128
104
|
}
|
|
129
105
|
) }),
|
|
130
|
-
resolvedUrl && /* @__PURE__ */
|
|
106
|
+
resolvedUrl && /* @__PURE__ */ jsx2(BaseTooltip, { content: `GET CREDENTIALS: OPEN ${resolvedLabel.toUpperCase()} (EXTERNAL LINK)`, children: /* @__PURE__ */ jsx2(
|
|
131
107
|
"a",
|
|
132
108
|
{
|
|
133
109
|
href: resolvedUrl,
|
|
@@ -143,9 +119,9 @@ var CredentialField = forwardRef4(({
|
|
|
143
119
|
textDecoration: "none"
|
|
144
120
|
},
|
|
145
121
|
children: /* @__PURE__ */ jsxs2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ jsx2("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
123
|
+
/* @__PURE__ */ jsx2("polyline", { points: "15 3 21 3 21 9" }),
|
|
124
|
+
/* @__PURE__ */ jsx2("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
149
125
|
] })
|
|
150
126
|
}
|
|
151
127
|
) })
|
|
@@ -159,8 +135,6 @@ var CredentialField = forwardRef4(({
|
|
|
159
135
|
CredentialField.displayName = "CredentialField";
|
|
160
136
|
|
|
161
137
|
export {
|
|
162
|
-
BaseTextarea,
|
|
163
|
-
BaseSelect,
|
|
164
138
|
BaseToggle,
|
|
165
139
|
KNOWN_CREDENTIAL_URLS,
|
|
166
140
|
CredentialField
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/components/base/BaseTextarea.tsx
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var BaseTextarea = forwardRef(({
|
|
5
|
+
className = "",
|
|
6
|
+
...props
|
|
7
|
+
}, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx("textarea", { ref, className: `skipo-textarea ${className}`, ...props });
|
|
9
|
+
});
|
|
10
|
+
BaseTextarea.displayName = "BaseTextarea";
|
|
11
|
+
|
|
12
|
+
// src/components/base/BaseSelect.tsx
|
|
13
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
14
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
15
|
+
var BaseSelect = forwardRef2(({
|
|
16
|
+
options,
|
|
17
|
+
error,
|
|
18
|
+
className = "",
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => {
|
|
21
|
+
return /* @__PURE__ */ jsx2("select", { ref, className: `skipo-select ${className}`, "data-error": error, ...props, children: options.map((o) => /* @__PURE__ */ jsx2("option", { value: o.value, children: o.label }, o.value)) });
|
|
22
|
+
});
|
|
23
|
+
BaseSelect.displayName = "BaseSelect";
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
BaseTextarea,
|
|
27
|
+
BaseSelect
|
|
28
|
+
};
|