@liiift-studio/sanity-font-manager 2.2.0
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 +263 -0
- package/dist/index.js +3699 -0
- package/dist/index.mjs +3622 -0
- package/package.json +77 -0
- package/src/components/BatchUploadFonts.jsx +639 -0
- package/src/components/FontScriptUploaderComponent.jsx +463 -0
- package/src/components/GenerateCollectionsPairsComponent.jsx +259 -0
- package/src/components/PriceInput.jsx +26 -0
- package/src/components/RegenerateSubfamiliesComponent.jsx +185 -0
- package/src/components/SingleUploaderTool.jsx +673 -0
- package/src/components/StatusDisplay.jsx +26 -0
- package/src/components/UpdateScriptsComponent.jsx +76 -0
- package/src/components/UploadButton.jsx +43 -0
- package/src/components/UploadScriptsComponent.jsx +537 -0
- package/src/hooks/useSanityClient.js +9 -0
- package/src/index.js +56 -0
- package/src/utils/generateCssFile.js +197 -0
- package/src/utils/generateFontData.js +145 -0
- package/src/utils/generateFontFile.js +38 -0
- package/src/utils/generateKeywords.js +185 -0
- package/src/utils/generateSubset.js +45 -0
- package/src/utils/getEmptyFontKit.js +99 -0
- package/src/utils/parseVariableFontInstances.js +211 -0
- package/src/utils/processFontFiles.js +477 -0
- package/src/utils/regenerateFontData.js +146 -0
- package/src/utils/sanitizeForSanityId.js +65 -0
- package/src/utils/updateFontPrices.js +94 -0
- package/src/utils/updateTypefaceDocument.js +160 -0
- package/src/utils/uploadFontFiles.js +316 -0
- package/src/utils/utils.js +16 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@liiift-studio/sanity-font-manager",
|
|
3
|
+
"version": "2.2.0",
|
|
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
|
+
"license": "MIT",
|
|
6
|
+
"author": "Liiift Studio",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"sanity",
|
|
9
|
+
"sanity-plugin",
|
|
10
|
+
"sanity-studio",
|
|
11
|
+
"font",
|
|
12
|
+
"font-management",
|
|
13
|
+
"font-manager",
|
|
14
|
+
"font-upload",
|
|
15
|
+
"typeface",
|
|
16
|
+
"woff2",
|
|
17
|
+
"font-conversion",
|
|
18
|
+
"css-generation",
|
|
19
|
+
"collections",
|
|
20
|
+
"variable-font"
|
|
21
|
+
],
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"module": "./dist/index.mjs",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"source": "./src/index.js",
|
|
27
|
+
"import": "./dist/index.mjs",
|
|
28
|
+
"require": "./dist/index.js",
|
|
29
|
+
"default": "./dist/index.mjs"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"src/components",
|
|
35
|
+
"src/hooks",
|
|
36
|
+
"src/utils",
|
|
37
|
+
"src/index.js"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"test:watch": "vitest",
|
|
42
|
+
"build": "npm run test && tsup",
|
|
43
|
+
"dev": "tsup --watch",
|
|
44
|
+
"prepublishOnly": "npm run build",
|
|
45
|
+
"link:darden": "npm link && cd ../../../sites/darden/sanity && npm link @liiift-studio/sanity-font-manager",
|
|
46
|
+
"link:tdf": "npm link && cd ../../../sites/tdf/sanity && npm link @liiift-studio/sanity-font-manager",
|
|
47
|
+
"link:mckl": "npm link && cd ../../../sites/mckl/cms && npm link @liiift-studio/sanity-font-manager",
|
|
48
|
+
"link:all": "npm link && cd ../../../sites/darden/sanity && npm link @liiift-studio/sanity-font-manager && cd ../../tdf/sanity && npm link @liiift-studio/sanity-font-manager && cd ../../mckl/cms && npm link @liiift-studio/sanity-font-manager"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"base-64": "^1.0.0",
|
|
52
|
+
"buffer": "^6.0.3",
|
|
53
|
+
"fontkit": "^2.0.2",
|
|
54
|
+
"nanoid": "^5.0.0",
|
|
55
|
+
"slugify": "^1.6.6"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@sanity/icons": ">=3",
|
|
59
|
+
"@sanity/ui": ">=3",
|
|
60
|
+
"react": ">=18",
|
|
61
|
+
"sanity": ">=3"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@sanity/icons": "^3",
|
|
65
|
+
"@sanity/ui": "^3",
|
|
66
|
+
"@types/react": "^19",
|
|
67
|
+
"react": "^19",
|
|
68
|
+
"sanity": "^5",
|
|
69
|
+
"tsup": "^8",
|
|
70
|
+
"typescript": "^5",
|
|
71
|
+
"vitest": "^4.1.5"
|
|
72
|
+
},
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/Liiift-Studio/sanity-tools.git"
|
|
76
|
+
}
|
|
77
|
+
}
|