@liiift-studio/sanity-font-manager 2.3.11 → 2.3.12
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.js +0 -6
- package/dist/index.mjs +0 -6
- package/package.json +2 -8
- package/src/schema/stylesField.js +0 -6
package/dist/index.js
CHANGED
|
@@ -6806,7 +6806,6 @@ var stylisticSetField = {
|
|
|
6806
6806
|
};
|
|
6807
6807
|
|
|
6808
6808
|
// src/schema/stylesField.js
|
|
6809
|
-
var import_sanity_advanced_reference_array = require("sanity-advanced-reference-array");
|
|
6810
6809
|
var field = (condition, def) => condition ? [def] : [];
|
|
6811
6810
|
var fontsFilter = async ({ getClient, document, parent }) => {
|
|
6812
6811
|
const client = getClient({ apiVersion: "2022-11-09" });
|
|
@@ -6881,7 +6880,6 @@ function createStylesField({
|
|
|
6881
6880
|
title: "Fonts",
|
|
6882
6881
|
name: "fonts",
|
|
6883
6882
|
type: "array",
|
|
6884
|
-
components: { input: import_sanity_advanced_reference_array.AdvancedRefArray },
|
|
6885
6883
|
of: [{ type: "reference", weak: true, to: [{ type: "font" }] }],
|
|
6886
6884
|
options: {
|
|
6887
6885
|
sortable: true,
|
|
@@ -6958,7 +6956,6 @@ function createStylesField({
|
|
|
6958
6956
|
title: "Fonts",
|
|
6959
6957
|
name: "fonts",
|
|
6960
6958
|
type: "array",
|
|
6961
|
-
components: { input: import_sanity_advanced_reference_array.AdvancedRefArray },
|
|
6962
6959
|
of: [{
|
|
6963
6960
|
type: "reference",
|
|
6964
6961
|
weak: true,
|
|
@@ -6971,7 +6968,6 @@ function createStylesField({
|
|
|
6971
6968
|
title: "Variable Fonts",
|
|
6972
6969
|
name: "variableFont",
|
|
6973
6970
|
type: "array",
|
|
6974
|
-
components: { input: import_sanity_advanced_reference_array.AdvancedRefArray },
|
|
6975
6971
|
of: [{
|
|
6976
6972
|
type: "reference",
|
|
6977
6973
|
weak: true,
|
|
@@ -7002,7 +6998,6 @@ function createStylesField({
|
|
|
7002
6998
|
title: "Collections",
|
|
7003
6999
|
name: "collections",
|
|
7004
7000
|
type: "array",
|
|
7005
|
-
components: { input: import_sanity_advanced_reference_array.AdvancedRefArray },
|
|
7006
7001
|
of: [{ type: "reference", weak: true, to: [{ type: "collection" }] }],
|
|
7007
7002
|
options: { sortable: true },
|
|
7008
7003
|
validation: (Rule) => Rule.unique()
|
|
@@ -7011,7 +7006,6 @@ function createStylesField({
|
|
|
7011
7006
|
title: "Pairs",
|
|
7012
7007
|
name: "pairs",
|
|
7013
7008
|
type: "array",
|
|
7014
|
-
components: { input: import_sanity_advanced_reference_array.AdvancedRefArray },
|
|
7015
7009
|
of: [{ type: "reference", weak: true, to: [{ type: "pair" }] }],
|
|
7016
7010
|
options: { sortable: true },
|
|
7017
7011
|
validation: (Rule) => Rule.unique(),
|
package/dist/index.mjs
CHANGED
|
@@ -6716,7 +6716,6 @@ var stylisticSetField = {
|
|
|
6716
6716
|
};
|
|
6717
6717
|
|
|
6718
6718
|
// src/schema/stylesField.js
|
|
6719
|
-
import { AdvancedRefArray } from "sanity-advanced-reference-array";
|
|
6720
6719
|
var field = (condition, def) => condition ? [def] : [];
|
|
6721
6720
|
var fontsFilter = async ({ getClient, document, parent }) => {
|
|
6722
6721
|
const client = getClient({ apiVersion: "2022-11-09" });
|
|
@@ -6791,7 +6790,6 @@ function createStylesField({
|
|
|
6791
6790
|
title: "Fonts",
|
|
6792
6791
|
name: "fonts",
|
|
6793
6792
|
type: "array",
|
|
6794
|
-
components: { input: AdvancedRefArray },
|
|
6795
6793
|
of: [{ type: "reference", weak: true, to: [{ type: "font" }] }],
|
|
6796
6794
|
options: {
|
|
6797
6795
|
sortable: true,
|
|
@@ -6868,7 +6866,6 @@ function createStylesField({
|
|
|
6868
6866
|
title: "Fonts",
|
|
6869
6867
|
name: "fonts",
|
|
6870
6868
|
type: "array",
|
|
6871
|
-
components: { input: AdvancedRefArray },
|
|
6872
6869
|
of: [{
|
|
6873
6870
|
type: "reference",
|
|
6874
6871
|
weak: true,
|
|
@@ -6881,7 +6878,6 @@ function createStylesField({
|
|
|
6881
6878
|
title: "Variable Fonts",
|
|
6882
6879
|
name: "variableFont",
|
|
6883
6880
|
type: "array",
|
|
6884
|
-
components: { input: AdvancedRefArray },
|
|
6885
6881
|
of: [{
|
|
6886
6882
|
type: "reference",
|
|
6887
6883
|
weak: true,
|
|
@@ -6912,7 +6908,6 @@ function createStylesField({
|
|
|
6912
6908
|
title: "Collections",
|
|
6913
6909
|
name: "collections",
|
|
6914
6910
|
type: "array",
|
|
6915
|
-
components: { input: AdvancedRefArray },
|
|
6916
6911
|
of: [{ type: "reference", weak: true, to: [{ type: "collection" }] }],
|
|
6917
6912
|
options: { sortable: true },
|
|
6918
6913
|
validation: (Rule) => Rule.unique()
|
|
@@ -6921,7 +6916,6 @@ function createStylesField({
|
|
|
6921
6916
|
title: "Pairs",
|
|
6922
6917
|
name: "pairs",
|
|
6923
6918
|
type: "array",
|
|
6924
|
-
components: { input: AdvancedRefArray },
|
|
6925
6919
|
of: [{ type: "reference", weak: true, to: [{ type: "pair" }] }],
|
|
6926
6920
|
options: { sortable: true },
|
|
6927
6921
|
validation: (Rule) => Rule.unique(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liiift-studio/sanity-font-manager",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.12",
|
|
4
4
|
"description": "Sanity Studio plugin — full font management suite with batch upload, format conversion, metadata extraction, CSS generation, collection/pair generation, and script variant support. Supports Sanity v3, v4, and v5.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Liiift Studio",
|
|
@@ -59,13 +59,7 @@
|
|
|
59
59
|
"@sanity/icons": ">=3",
|
|
60
60
|
"@sanity/ui": ">=3",
|
|
61
61
|
"react": ">=18",
|
|
62
|
-
"sanity": ">=3"
|
|
63
|
-
"sanity-advanced-reference-array": ">=1"
|
|
64
|
-
},
|
|
65
|
-
"peerDependenciesMeta": {
|
|
66
|
-
"sanity-advanced-reference-array": {
|
|
67
|
-
"optional": true
|
|
68
|
-
}
|
|
62
|
+
"sanity": ">=3"
|
|
69
63
|
},
|
|
70
64
|
"devDependencies": {
|
|
71
65
|
"@sanity/icons": "^3",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Sanity schema factory function for the Styles object field — call createStylesField(options) to generate the field definition for a typeface document
|
|
2
|
-
import { AdvancedRefArray } from 'sanity-advanced-reference-array';
|
|
3
2
|
import { RegenerateSubfamiliesComponent } from '../components/RegenerateSubfamiliesComponent.jsx';
|
|
4
3
|
|
|
5
4
|
// Conditionally includes a field definition in an array
|
|
@@ -102,7 +101,6 @@ export function createStylesField({
|
|
|
102
101
|
title: 'Fonts',
|
|
103
102
|
name: 'fonts',
|
|
104
103
|
type: 'array',
|
|
105
|
-
components: { input: AdvancedRefArray },
|
|
106
104
|
of: [{ type: 'reference', weak: true, to: [{ type: 'font' }] }],
|
|
107
105
|
options: {
|
|
108
106
|
sortable: true,
|
|
@@ -181,7 +179,6 @@ export function createStylesField({
|
|
|
181
179
|
title: 'Fonts',
|
|
182
180
|
name: 'fonts',
|
|
183
181
|
type: 'array',
|
|
184
|
-
components: { input: AdvancedRefArray },
|
|
185
182
|
of: [{
|
|
186
183
|
type: 'reference',
|
|
187
184
|
weak: true,
|
|
@@ -194,7 +191,6 @@ export function createStylesField({
|
|
|
194
191
|
title: 'Variable Fonts',
|
|
195
192
|
name: 'variableFont',
|
|
196
193
|
type: 'array',
|
|
197
|
-
components: { input: AdvancedRefArray },
|
|
198
194
|
of: [{
|
|
199
195
|
type: 'reference',
|
|
200
196
|
weak: true,
|
|
@@ -222,7 +218,6 @@ export function createStylesField({
|
|
|
222
218
|
title: 'Collections',
|
|
223
219
|
name: 'collections',
|
|
224
220
|
type: 'array',
|
|
225
|
-
components: { input: AdvancedRefArray },
|
|
226
221
|
of: [{ type: 'reference', weak: true, to: [{ type: 'collection' }] }],
|
|
227
222
|
options: { sortable: true },
|
|
228
223
|
validation: Rule => Rule.unique(),
|
|
@@ -231,7 +226,6 @@ export function createStylesField({
|
|
|
231
226
|
title: 'Pairs',
|
|
232
227
|
name: 'pairs',
|
|
233
228
|
type: 'array',
|
|
234
|
-
components: { input: AdvancedRefArray },
|
|
235
229
|
of: [{ type: 'reference', weak: true, to: [{ type: 'pair' }] }],
|
|
236
230
|
options: { sortable: true },
|
|
237
231
|
validation: Rule => Rule.unique(),
|