@designa8/vibedesign-v6 1.20.16 → 1.20.17
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/README.md +1 -1
- package/dist/index.cjs +22 -7
- package/dist/index.js +22 -7
- package/dist/styles.css +15 -0
- package/package.json +1 -1
- package/src/atoms/PublishModal/PublishModal.tsx +30 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plasma/vibedesign-v6
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **1.20.
|
|
3
|
+
Complete design system generated by Atoms Design, version **1.20.17**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -6160,15 +6160,18 @@ var PublishModal = import_react30.default.forwardRef(
|
|
|
6160
6160
|
isOpen,
|
|
6161
6161
|
onClose,
|
|
6162
6162
|
onPublish,
|
|
6163
|
-
packageName
|
|
6164
|
-
currentVersion
|
|
6163
|
+
packageName,
|
|
6164
|
+
currentVersion,
|
|
6165
6165
|
defaultNextVersion,
|
|
6166
6166
|
defaultTarget = "production",
|
|
6167
6167
|
loading = false
|
|
6168
6168
|
}, ref) => {
|
|
6169
6169
|
const target = defaultTarget;
|
|
6170
|
-
const version = defaultNextVersion ?? currentVersion;
|
|
6170
|
+
const version = defaultNextVersion ?? currentVersion ?? "";
|
|
6171
6171
|
const isProduction = target === "production";
|
|
6172
|
+
const hasPackageName = Boolean(packageName && packageName.length > 0);
|
|
6173
|
+
const hasCurrentVersion = Boolean(currentVersion && currentVersion.length > 0);
|
|
6174
|
+
const showLinkCommand = !isProduction && hasPackageName;
|
|
6172
6175
|
const introText = isProduction ? "Publish your package to the npm registry so others can install and use it." : "Publish this package locally with npm link for testing and internal use before a real release.";
|
|
6173
6176
|
const noticeText = isProduction ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version." : "Local publish creates an npm link only visible on this machine, for testing and internal use before a real release.";
|
|
6174
6177
|
const handlePublish = () => onPublish?.(target, version);
|
|
@@ -6211,16 +6214,28 @@ var PublishModal = import_react30.default.forwardRef(
|
|
|
6211
6214
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
|
|
6212
6215
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6213
6216
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
|
|
6214
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
|
|
6217
|
+
hasPackageName ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6218
|
+
"div",
|
|
6219
|
+
{
|
|
6220
|
+
className: "h-4 w-40 animate-pulse rounded-sm bg-surface-soft border border-hairline",
|
|
6221
|
+
"aria-hidden": "true"
|
|
6222
|
+
}
|
|
6223
|
+
)
|
|
6215
6224
|
] }),
|
|
6216
6225
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6217
6226
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
|
|
6218
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
|
|
6227
|
+
hasCurrentVersion ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-xs", children: [
|
|
6219
6228
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
|
|
6220
6229
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
|
|
6221
|
-
] })
|
|
6230
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
6231
|
+
"div",
|
|
6232
|
+
{
|
|
6233
|
+
className: "h-4 w-20 animate-pulse rounded-sm bg-surface-soft border border-hairline",
|
|
6234
|
+
"aria-hidden": "true"
|
|
6235
|
+
}
|
|
6236
|
+
)
|
|
6222
6237
|
] }),
|
|
6223
|
-
|
|
6238
|
+
showLinkCommand && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-xxs", children: [
|
|
6224
6239
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
|
|
6225
6240
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
|
|
6226
6241
|
"npm link ",
|
package/dist/index.js
CHANGED
|
@@ -6093,15 +6093,18 @@ var PublishModal = React33.forwardRef(
|
|
|
6093
6093
|
isOpen,
|
|
6094
6094
|
onClose,
|
|
6095
6095
|
onPublish,
|
|
6096
|
-
packageName
|
|
6097
|
-
currentVersion
|
|
6096
|
+
packageName,
|
|
6097
|
+
currentVersion,
|
|
6098
6098
|
defaultNextVersion,
|
|
6099
6099
|
defaultTarget = "production",
|
|
6100
6100
|
loading = false
|
|
6101
6101
|
}, ref) => {
|
|
6102
6102
|
const target = defaultTarget;
|
|
6103
|
-
const version = defaultNextVersion ?? currentVersion;
|
|
6103
|
+
const version = defaultNextVersion ?? currentVersion ?? "";
|
|
6104
6104
|
const isProduction = target === "production";
|
|
6105
|
+
const hasPackageName = Boolean(packageName && packageName.length > 0);
|
|
6106
|
+
const hasCurrentVersion = Boolean(currentVersion && currentVersion.length > 0);
|
|
6107
|
+
const showLinkCommand = !isProduction && hasPackageName;
|
|
6105
6108
|
const introText = isProduction ? "Publish your package to the npm registry so others can install and use it." : "Publish this package locally with npm link for testing and internal use before a real release.";
|
|
6106
6109
|
const noticeText = isProduction ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version." : "Local publish creates an npm link only visible on this machine, for testing and internal use before a real release.";
|
|
6107
6110
|
const handlePublish = () => onPublish?.(target, version);
|
|
@@ -6144,16 +6147,28 @@ var PublishModal = React33.forwardRef(
|
|
|
6144
6147
|
/* @__PURE__ */ jsx33("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
|
|
6145
6148
|
/* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
|
|
6146
6149
|
/* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
|
|
6147
|
-
/* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: packageName })
|
|
6150
|
+
hasPackageName ? /* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: packageName }) : /* @__PURE__ */ jsx33(
|
|
6151
|
+
"div",
|
|
6152
|
+
{
|
|
6153
|
+
className: "h-4 w-40 animate-pulse rounded-sm bg-surface-soft border border-hairline",
|
|
6154
|
+
"aria-hidden": "true"
|
|
6155
|
+
}
|
|
6156
|
+
)
|
|
6148
6157
|
] }),
|
|
6149
6158
|
/* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
|
|
6150
6159
|
/* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
|
|
6151
|
-
/* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
|
|
6160
|
+
hasCurrentVersion ? /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-xs", children: [
|
|
6152
6161
|
/* @__PURE__ */ jsx33("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
|
|
6153
6162
|
/* @__PURE__ */ jsx33(Chip, { label: "Latest", variant: "primary", size: "sm" })
|
|
6154
|
-
] })
|
|
6163
|
+
] }) : /* @__PURE__ */ jsx33(
|
|
6164
|
+
"div",
|
|
6165
|
+
{
|
|
6166
|
+
className: "h-4 w-20 animate-pulse rounded-sm bg-surface-soft border border-hairline",
|
|
6167
|
+
"aria-hidden": "true"
|
|
6168
|
+
}
|
|
6169
|
+
)
|
|
6155
6170
|
] }),
|
|
6156
|
-
|
|
6171
|
+
showLinkCommand && /* @__PURE__ */ jsxs31("div", { className: "space-y-xxs", children: [
|
|
6157
6172
|
/* @__PURE__ */ jsx33("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
|
|
6158
6173
|
/* @__PURE__ */ jsxs31("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
|
|
6159
6174
|
"npm link ",
|
package/dist/styles.css
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
48
48
|
--animate-spin: spin 1s linear infinite;
|
|
49
49
|
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
50
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
50
51
|
--default-transition-duration: 150ms;
|
|
51
52
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
52
53
|
--default-font-family: var(--font-body);
|
|
@@ -695,6 +696,12 @@
|
|
|
695
696
|
.w-16 {
|
|
696
697
|
width: calc(var(--spacing) * 16);
|
|
697
698
|
}
|
|
699
|
+
.w-20 {
|
|
700
|
+
width: calc(var(--spacing) * 20);
|
|
701
|
+
}
|
|
702
|
+
.w-40 {
|
|
703
|
+
width: calc(var(--spacing) * 40);
|
|
704
|
+
}
|
|
698
705
|
.w-56 {
|
|
699
706
|
width: calc(var(--spacing) * 56);
|
|
700
707
|
}
|
|
@@ -848,6 +855,9 @@
|
|
|
848
855
|
.animate-ping {
|
|
849
856
|
animation: var(--animate-ping);
|
|
850
857
|
}
|
|
858
|
+
.animate-pulse {
|
|
859
|
+
animation: var(--animate-pulse);
|
|
860
|
+
}
|
|
851
861
|
.animate-spin {
|
|
852
862
|
animation: var(--animate-spin);
|
|
853
863
|
}
|
|
@@ -2372,6 +2382,11 @@
|
|
|
2372
2382
|
opacity: 0;
|
|
2373
2383
|
}
|
|
2374
2384
|
}
|
|
2385
|
+
@keyframes pulse {
|
|
2386
|
+
50% {
|
|
2387
|
+
opacity: 0.5;
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2375
2390
|
@layer properties {
|
|
2376
2391
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
2377
2392
|
*, ::before, ::after, ::backdrop {
|
package/package.json
CHANGED
|
@@ -13,9 +13,9 @@ export interface PublishModalProps {
|
|
|
13
13
|
onClose: () => void;
|
|
14
14
|
/** Called when the user confirms the publish/link action */
|
|
15
15
|
onPublish?: (target: PublishTarget, version: string) => void;
|
|
16
|
-
/** Package name shown in the details panel */
|
|
16
|
+
/** Package name shown in the details panel. Omit/empty while still loading — a skeleton renders instead of a placeholder value. */
|
|
17
17
|
packageName?: string;
|
|
18
|
-
/** Currently published version */
|
|
18
|
+
/** Currently published version. Omit/empty while still loading — a skeleton renders instead of a placeholder value. */
|
|
19
19
|
currentVersion?: string;
|
|
20
20
|
/** Suggested next version. Kept for backwards compatibility; version bumping is automatic server-side and no longer editable in this UI. */
|
|
21
21
|
defaultNextVersion?: string;
|
|
@@ -31,8 +31,8 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
|
|
|
31
31
|
isOpen,
|
|
32
32
|
onClose,
|
|
33
33
|
onPublish,
|
|
34
|
-
packageName
|
|
35
|
-
currentVersion
|
|
34
|
+
packageName,
|
|
35
|
+
currentVersion,
|
|
36
36
|
defaultNextVersion,
|
|
37
37
|
defaultTarget = "production",
|
|
38
38
|
loading = false,
|
|
@@ -40,9 +40,14 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
|
|
|
40
40
|
ref
|
|
41
41
|
) => {
|
|
42
42
|
const target = defaultTarget;
|
|
43
|
-
const version = defaultNextVersion ?? currentVersion;
|
|
43
|
+
const version = defaultNextVersion ?? currentVersion ?? "";
|
|
44
44
|
|
|
45
45
|
const isProduction = target === "production";
|
|
46
|
+
const hasPackageName = Boolean(packageName && packageName.length > 0);
|
|
47
|
+
const hasCurrentVersion = Boolean(currentVersion && currentVersion.length > 0);
|
|
48
|
+
// Only reveal the local npm-link UI once we actually have a real package
|
|
49
|
+
// name to link against — never show it as a loading placeholder.
|
|
50
|
+
const showLinkCommand = !isProduction && hasPackageName;
|
|
46
51
|
|
|
47
52
|
const introText = isProduction
|
|
48
53
|
? "Publish your package to the npm registry so others can install and use it."
|
|
@@ -98,20 +103,34 @@ export const PublishModal = React.forwardRef<HTMLDivElement, PublishModalProps>(
|
|
|
98
103
|
<p className="text-caption uppercase tracking-wide text-muted">
|
|
99
104
|
Package
|
|
100
105
|
</p>
|
|
101
|
-
|
|
106
|
+
{hasPackageName ? (
|
|
107
|
+
<p className="text-body-md text-ink font-mono">{packageName}</p>
|
|
108
|
+
) : (
|
|
109
|
+
<div
|
|
110
|
+
className="h-4 w-40 animate-pulse rounded-sm bg-surface-soft border border-hairline"
|
|
111
|
+
aria-hidden="true"
|
|
112
|
+
/>
|
|
113
|
+
)}
|
|
102
114
|
</div>
|
|
103
115
|
|
|
104
116
|
<div className="space-y-xxs">
|
|
105
117
|
<p className="text-caption uppercase tracking-wide text-muted">
|
|
106
118
|
Current version
|
|
107
119
|
</p>
|
|
108
|
-
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
{hasCurrentVersion ? (
|
|
121
|
+
<div className="flex items-center gap-xs">
|
|
122
|
+
<p className="text-body-md text-ink font-mono">{currentVersion}</p>
|
|
123
|
+
<Chip label="Latest" variant="primary" size="sm" />
|
|
124
|
+
</div>
|
|
125
|
+
) : (
|
|
126
|
+
<div
|
|
127
|
+
className="h-4 w-20 animate-pulse rounded-sm bg-surface-soft border border-hairline"
|
|
128
|
+
aria-hidden="true"
|
|
129
|
+
/>
|
|
130
|
+
)}
|
|
112
131
|
</div>
|
|
113
132
|
|
|
114
|
-
{
|
|
133
|
+
{showLinkCommand && (
|
|
115
134
|
<div className="space-y-xxs">
|
|
116
135
|
<p className="text-caption uppercase tracking-wide text-muted">
|
|
117
136
|
Link command
|