@fils/sanity-components 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.
@@ -182,10 +182,7 @@ export const VideoURLNoThumb = defineType({
182
182
  fields: [
183
183
  defineField({
184
184
  name: 'video',
185
- type: 'file',
186
- options: {
187
- accept: 'video/mp4, video/webm'
188
- }
185
+ type: 'url',
189
186
  })
190
187
  ],
191
188
  components: {
@@ -0,0 +1,2 @@
1
+ export * from './components/deploy/DeployButton';
2
+ export * from './components/deploy/GithubTokenConfig';
package/lib/deploy.js ADDED
@@ -0,0 +1,4 @@
1
+ // deploy.ts - Separate entry point for deployment components
2
+ // These require @sanity/studio-secrets to be installed
3
+ export * from './components/deploy/DeployButton';
4
+ export * from './components/deploy/GithubTokenConfig';
package/lib/main.d.ts CHANGED
@@ -2,6 +2,4 @@ export * from './components/core/SEOImage';
2
2
  export * from './components/core/SEO';
3
3
  export * from './validators/utils';
4
4
  export * from './components/deploy/EnvUtils';
5
- export * from './components/deploy/DeployButton';
6
- export * from './components/deploy/GithubTokenConfig';
7
5
  export * from './components/video/VideoSchemas';
package/lib/main.js CHANGED
@@ -3,6 +3,9 @@ export * from './components/core/SEO';
3
3
  // export * from './config/utils';
4
4
  export * from './validators/utils';
5
5
  export * from './components/deploy/EnvUtils';
6
- export * from './components/deploy/DeployButton';
7
- export * from './components/deploy/GithubTokenConfig';
8
6
  export * from './components/video/VideoSchemas';
7
+ // Components with optional dependencies should be imported via subpath:
8
+ // import { DeployButton } from '@fils/sanity-components/deploy'
9
+ // import { GithubTokenConfig } from '@fils/sanity-components/deploy'
10
+ //
11
+ // This prevents errors when @sanity/studio-secrets is not installed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fils/sanity-components",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Fil's Components for Sanity Back-Ends",
5
5
  "repository": "git@github.com:fil-studio/fils.git",
6
6
  "author": "Fil Studio <hello@fil.studio>",
@@ -16,6 +16,10 @@
16
16
  ".": {
17
17
  "import": "./lib/main.js",
18
18
  "types": "./lib/main.d.ts"
19
+ },
20
+ "./deploy": {
21
+ "import": "./lib/deploy.js",
22
+ "types": "./lib/deploy.d.ts"
19
23
  }
20
24
  },
21
25
  "publishConfig": {
@@ -59,4 +63,4 @@
59
63
  "optional": true
60
64
  }
61
65
  }
62
- }
66
+ }
@@ -190,10 +190,7 @@ export const VideoURLNoThumb = defineType({
190
190
  fields: [
191
191
  defineField({
192
192
  name: 'video',
193
- type: 'file',
194
- options: {
195
- accept: 'video/mp4, video/webm'
196
- }
193
+ type: 'url',
197
194
  })
198
195
  ],
199
196
  components: {
package/src/deploy.ts ADDED
@@ -0,0 +1,4 @@
1
+ // deploy.ts - Separate entry point for deployment components
2
+ // These require @sanity/studio-secrets to be installed
3
+ export * from './components/deploy/DeployButton';
4
+ export * from './components/deploy/GithubTokenConfig';
package/src/main.ts CHANGED
@@ -3,6 +3,10 @@ export * from './components/core/SEO';
3
3
  // export * from './config/utils';
4
4
  export * from './validators/utils';
5
5
  export * from './components/deploy/EnvUtils';
6
- export * from './components/deploy/DeployButton';
7
- export * from './components/deploy/GithubTokenConfig';
8
- export * from './components/video/VideoSchemas';
6
+ export * from './components/video/VideoSchemas';
7
+
8
+ // Components with optional dependencies should be imported via subpath:
9
+ // import { DeployButton } from '@fils/sanity-components/deploy'
10
+ // import { GithubTokenConfig } from '@fils/sanity-components/deploy'
11
+ //
12
+ // This prevents errors when @sanity/studio-secrets is not installed