@nocode-factory/sanity-kit 2.62.0-rc.0 → 2.62.0-rc.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/dist/index.d.ts +1 -1
- package/dist/index.js +33 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/tools/navbar/KitUpdate.tsx +8 -15
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {useState} from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import {Button, Flex, Stack, Text} from '@sanity/ui'
|
|
3
3
|
import {ArrowUpIcon} from '@sanity/icons/ArrowUp'
|
|
4
4
|
import {CheckmarkIcon} from '@sanity/icons/Checkmark'
|
|
5
5
|
import {CopyIcon} from '@sanity/icons/Copy'
|
|
6
6
|
import {InlinePopover} from '../../ui/Popover'
|
|
7
7
|
import {useKitUpdate} from '../../hooks/useKitUpdate'
|
|
8
|
-
import {BORDER, MONO} from '../../ui/tokens'
|
|
9
8
|
|
|
10
9
|
const CHANGELOG = 'https://github.com/nocode-factory/ncf-sanity-kit/blob/main/docs/CHANGELOG.md'
|
|
11
10
|
|
|
@@ -65,12 +64,6 @@ export function NcfKitUpdate(props: {inline?: boolean}) {
|
|
|
65
64
|
</Text>
|
|
66
65
|
</Stack>
|
|
67
66
|
|
|
68
|
-
<Card padding={2} radius={2} style={{border: `1px solid ${BORDER}`}}>
|
|
69
|
-
<Text size={0} style={{...MONO, whiteSpace: 'pre-wrap', wordBreak: 'break-word', maxHeight: 160, overflowY: 'auto', display: 'block'}}>
|
|
70
|
-
{update.prompt}
|
|
71
|
-
</Text>
|
|
72
|
-
</Card>
|
|
73
|
-
|
|
74
67
|
<Flex gap={2} wrap="wrap">
|
|
75
68
|
<Button
|
|
76
69
|
mode="default"
|
|
@@ -94,13 +87,13 @@ export function NcfKitUpdate(props: {inline?: boolean}) {
|
|
|
94
87
|
/>
|
|
95
88
|
</Flex>
|
|
96
89
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</
|
|
90
|
+
{/* Pas de texte de la consigne ici : le panneau (240 px) le couperait et
|
|
91
|
+
cacherait le bouton. Le bouton suffit ; la consigne est dans le presse-papiers. */}
|
|
92
|
+
<Text size={0} muted>
|
|
93
|
+
Copies the full instructions for Claude Code. Paste them into Claude Code, opened
|
|
94
|
+
on this project: it updates the kit, wires what the project needs and redeploys
|
|
95
|
+
the Studio.
|
|
96
|
+
</Text>
|
|
104
97
|
</Stack>
|
|
105
98
|
)}
|
|
106
99
|
</InlinePopover>
|
package/src/version.ts
CHANGED