proto-plugin 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-plugin",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
@@ -52,7 +52,8 @@ export function PrototypeGalleryClient({
52
52
 
53
53
  return (
54
54
  <>
55
- <div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
55
+ <div className="@container/gallery w-full">
56
+ <div className="grid grid-cols-1 gap-4 @xl/gallery:grid-cols-2 @4xl/gallery:grid-cols-3">
56
57
  <PrototypeGalleryAddCard onClick={() => setCreateModalOpen(true)} />
57
58
  {prototypes.map((prototype) => (
58
59
  <Link
@@ -78,7 +79,7 @@ export function PrototypeGalleryClient({
78
79
  width={1600}
79
80
  height={900}
80
81
  quality={90}
81
- sizes="(min-width: 1024px) 33vw, (min-width: 768px) 50vw, 100vw"
82
+ sizes="(min-width: 80rem) calc((100vw - 14rem) / 3), (min-width: 55rem) calc((100vw - 14rem) / 2), 100vw"
82
83
  className="h-full w-full object-cover object-top"
83
84
  />
84
85
  </div>
@@ -86,6 +87,7 @@ export function PrototypeGalleryClient({
86
87
  <p className={prototypeGalleryTitleClassName}>{prototype.title}</p>
87
88
  </Link>
88
89
  ))}
90
+ </div>
89
91
  </div>
90
92
 
91
93
  <PrototypeCreatePrototypeModal
@@ -21,15 +21,13 @@ function PrototypeCommentProviderInner({
21
21
  const { readHandlers } = usePrototypeCommentRegistry();
22
22
 
23
23
  return (
24
- <ChangelogMetaProvider slug={slug}>
25
- <CommentProvider
26
- slug={slug}
27
- getLiveState={() => readHandlers()?.getLiveState() ?? {}}
28
- onRestore={(live) => readHandlers()?.onRestore(live)}
29
- >
30
- {children}
31
- </CommentProvider>
32
- </ChangelogMetaProvider>
24
+ <CommentProvider
25
+ slug={slug}
26
+ getLiveState={() => readHandlers()?.getLiveState() ?? {}}
27
+ onRestore={(live) => readHandlers()?.onRestore(live)}
28
+ >
29
+ {children}
30
+ </CommentProvider>
33
31
  );
34
32
  }
35
33
 
@@ -104,7 +104,7 @@ export function PrototypeGalleryNav({
104
104
  ) : (
105
105
  <Button
106
106
  type="button"
107
- variant="outline"
107
+ variant="chrome"
108
108
  onClick={() => setLinkSourceOpen(true)}
109
109
  className="h-9 min-w-0 flex-1 justify-center rounded-lg text-sm font-medium"
110
110
  >
package/src/index.ts CHANGED
@@ -123,6 +123,10 @@ export {
123
123
  } from "./lib/prototypes/link-source-prompt";
124
124
  export type { PrototypePreviewState } from "./lib/prototypes/prototype-preview-state-types";
125
125
 
126
+ export {
127
+ buildChangelogDescriptionCopyText,
128
+ buildChangelogDescriptionPrompt,
129
+ } from "./lib/prototypes/changelog-description-prompt";
126
130
  export {
127
131
  buildAddReferenceDocCopyText,
128
132
  buildAddReferenceDocPrompt,