@ultrst-armada/floks 1.6.1 → 1.7.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 +1 -1
- package/packages/ui/dist/{chunk-7IKBKQGJ.js → chunk-CUQ7R3H2.js} +1 -1
- package/packages/ui/dist/{chunk-CWBCW6N2.js → chunk-KIFQA7L6.js} +45 -19
- package/packages/ui/dist/{chunk-FA45WRNL.js → chunk-UJK3JKRK.js} +383 -72
- package/packages/ui/dist/components/ai/index.d.ts +110 -2
- package/packages/ui/dist/components/ai/index.js +19 -2
- package/packages/ui/dist/components/auth/index.js +3 -3
- package/packages/ui/dist/components/base/index.js +4 -6
- package/packages/ui/dist/components/composite/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 +1 -1
- package/packages/ui/dist/index.js +36 -24
- package/packages/ui/dist/chunk-DWMKISE5.js +0 -28
- package/packages/ui/dist/{chunk-USCLIIBR.js → chunk-DGZBP3ND.js} +3 -3
- package/packages/ui/dist/{chunk-Y2QQZATG.js → chunk-SXRIBCJX.js} +3 -3
- package/packages/ui/dist/{chunk-PUHHHRQO.js → chunk-YVWJ4SW7.js} +3 -3
- package/packages/ui/dist/{chunk-NPIMIWVO.js → chunk-ZPQC46RO.js} +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@ultrst-armada/floks",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "1.7.1",
|
|
5
|
+
"sourceCommit": "8bdcd5922c85a4281f3c7805670565f7eaf1ad0f",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "40842965438"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -2,24 +2,48 @@ import {
|
|
|
2
2
|
BaseTooltip
|
|
3
3
|
} from "./chunk-GKP6KHTI.js";
|
|
4
4
|
|
|
5
|
-
// src/components/base/
|
|
5
|
+
// src/components/base/BaseTextarea.tsx
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
|
-
import { jsx
|
|
8
|
-
var
|
|
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
|
+
// src/components/base/BaseToggle.tsx
|
|
30
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
31
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
32
|
+
var BaseToggle = forwardRef3(({
|
|
9
33
|
label,
|
|
10
34
|
className = "",
|
|
11
35
|
...props
|
|
12
36
|
}, ref) => {
|
|
13
37
|
return /* @__PURE__ */ jsxs("label", { className: "skipo-toggle-label", children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
label && /* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ jsx3("input", { ref, type: "checkbox", className: `skipo-toggle ${className}`, ...props }),
|
|
39
|
+
label && /* @__PURE__ */ jsx3("span", { children: label })
|
|
16
40
|
] });
|
|
17
41
|
});
|
|
18
42
|
BaseToggle.displayName = "BaseToggle";
|
|
19
43
|
|
|
20
44
|
// src/components/base/CredentialField.tsx
|
|
21
|
-
import { forwardRef as
|
|
22
|
-
import { Fragment, jsx as
|
|
45
|
+
import { forwardRef as forwardRef4, useState } from "react";
|
|
46
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
23
47
|
var KNOWN_CREDENTIAL_URLS = {
|
|
24
48
|
openai: { name: "OpenAI API Keys", url: "https://platform.openai.com/api-keys" },
|
|
25
49
|
anthropic: { name: "Anthropic Console", url: "https://console.anthropic.com/settings/keys" },
|
|
@@ -36,7 +60,7 @@ var KNOWN_CREDENTIAL_URLS = {
|
|
|
36
60
|
github: { name: "GitHub Personal Access Tokens", url: "https://github.com/settings/tokens" },
|
|
37
61
|
openrouter: { name: "OpenRouter Keys", url: "https://openrouter.ai/keys" }
|
|
38
62
|
};
|
|
39
|
-
var CredentialField =
|
|
63
|
+
var CredentialField = forwardRef4(({
|
|
40
64
|
serviceId,
|
|
41
65
|
credentialUrl,
|
|
42
66
|
serviceLabel,
|
|
@@ -58,7 +82,7 @@ var CredentialField = forwardRef2(({
|
|
|
58
82
|
width: "100%"
|
|
59
83
|
},
|
|
60
84
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ jsx4(
|
|
62
86
|
"input",
|
|
63
87
|
{
|
|
64
88
|
ref,
|
|
@@ -79,7 +103,7 @@ var CredentialField = forwardRef2(({
|
|
|
79
103
|
gap: "2px"
|
|
80
104
|
},
|
|
81
105
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ jsx4(BaseTooltip, { content: showSecret ? "HIDE SECRET CREDENTIAL" : "SHOW SECRET CREDENTIAL", children: /* @__PURE__ */ jsx4(
|
|
83
107
|
"button",
|
|
84
108
|
{
|
|
85
109
|
type: "button",
|
|
@@ -94,16 +118,16 @@ var CredentialField = forwardRef2(({
|
|
|
94
118
|
display: "flex",
|
|
95
119
|
alignItems: "center"
|
|
96
120
|
},
|
|
97
|
-
children: /* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
121
|
+
children: /* @__PURE__ */ jsx4("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: showSecret ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
122
|
+
/* @__PURE__ */ jsx4("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" }),
|
|
123
|
+
/* @__PURE__ */ jsx4("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
|
100
124
|
] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ jsx4("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
126
|
+
/* @__PURE__ */ jsx4("circle", { cx: "12", cy: "12", r: "3" })
|
|
103
127
|
] }) })
|
|
104
128
|
}
|
|
105
129
|
) }),
|
|
106
|
-
resolvedUrl && /* @__PURE__ */
|
|
130
|
+
resolvedUrl && /* @__PURE__ */ jsx4(BaseTooltip, { content: `GET CREDENTIALS: OPEN ${resolvedLabel.toUpperCase()} (EXTERNAL LINK)`, children: /* @__PURE__ */ jsx4(
|
|
107
131
|
"a",
|
|
108
132
|
{
|
|
109
133
|
href: resolvedUrl,
|
|
@@ -119,9 +143,9 @@ var CredentialField = forwardRef2(({
|
|
|
119
143
|
textDecoration: "none"
|
|
120
144
|
},
|
|
121
145
|
children: /* @__PURE__ */ jsxs2("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ jsx4("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
147
|
+
/* @__PURE__ */ jsx4("polyline", { points: "15 3 21 3 21 9" }),
|
|
148
|
+
/* @__PURE__ */ jsx4("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
125
149
|
] })
|
|
126
150
|
}
|
|
127
151
|
) })
|
|
@@ -135,6 +159,8 @@ var CredentialField = forwardRef2(({
|
|
|
135
159
|
CredentialField.displayName = "CredentialField";
|
|
136
160
|
|
|
137
161
|
export {
|
|
162
|
+
BaseTextarea,
|
|
163
|
+
BaseSelect,
|
|
138
164
|
BaseToggle,
|
|
139
165
|
KNOWN_CREDENTIAL_URLS,
|
|
140
166
|
CredentialField
|