sanity-plugin-singleton-management 1.0.4 → 1.0.6

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.cts CHANGED
@@ -31,6 +31,10 @@ declare interface SingletonPluginListItemsConfig {
31
31
  context: ConfigContext;
32
32
  }
33
33
 
34
+ export declare interface SingletonPluginOptions {
35
+ singleton?: boolean;
36
+ }
37
+
34
38
  export declare const singletonTools: Plugin_2<void>;
35
39
 
36
40
  export {};
@@ -31,6 +31,10 @@ declare interface SingletonPluginListItemsConfig {
31
31
  context: ConfigContext;
32
32
  }
33
33
 
34
+ export declare interface SingletonPluginOptions {
35
+ singleton?: boolean;
36
+ }
37
+
34
38
  export declare const singletonTools: Plugin_2<void>;
35
39
 
36
40
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-singleton-management",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A plugin to streamline singleton management in your Sanity Studio",
5
5
  "keywords": [
6
6
  "sanity",
@@ -23,7 +23,7 @@
23
23
  "type": "module",
24
24
  "main": "./dist/index.cjs",
25
25
  "module": "./dist/index.esm.js",
26
- "types": "./dist/index.d.ts",
26
+ "types": "./dist/index.esm.d.ts",
27
27
  "browserslist": "extends @sanity/browserslist-config",
28
28
  "files": [
29
29
  "dist",
@@ -50,19 +50,21 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@sanity/icons": "^3.7.4",
53
- "@sanity/incompatible-plugin": "^1.0.4"
53
+ "@sanity/incompatible-plugin": "^1.0.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@commitlint/cli": "^20.1.0",
57
57
  "@commitlint/config-conventional": "^20.0.0",
58
58
  "@commitlint/prompt-cli": "^20.1.0",
59
59
  "@sanity/browserslist-config": "^1.0.5",
60
- "@sanity/pkg-utils": "^8.1.24",
60
+ "@sanity/pkg-utils": "^10.2.1",
61
61
  "@sanity/plugin-kit": "^4.0.20",
62
62
  "@semantic-release/changelog": "^6.0.3",
63
63
  "@semantic-release/git": "^10.0.1",
64
+ "@semantic-release/github": "^11.0.6",
65
+ "@semantic-release/npm": "^13.1.2",
64
66
  "@testing-library/jest-dom": "^6.4.6",
65
- "@types/react": "^19.1.13",
67
+ "@types/react": "^19.2.7",
66
68
  "@typescript-eslint/eslint-plugin": "^8.44.0",
67
69
  "@typescript-eslint/parser": "^8.44.0",
68
70
  "@vitest/coverage-v8": "^4.0.4",
@@ -78,12 +80,12 @@
78
80
  "npm-run-all": "^4.1.5",
79
81
  "prettier": "^3.2.5",
80
82
  "prettier-plugin-packagejson": "^2.4.12",
81
- "react": "^19.1.1",
82
- "react-dom": "^19.1.1",
83
- "react-is": "^19.1.1",
83
+ "react": "^19.2.3",
84
+ "react-dom": "^19.2.3",
85
+ "react-is": "^19.2.3",
84
86
  "rimraf": "^6.0.1",
85
- "sanity": "^4.11.0",
86
- "semantic-release": "^25.0.1",
87
+ "sanity": "^5.0.0",
88
+ "semantic-release": "^25.0.2",
87
89
  "styled-components": "^6.1.15",
88
90
  "typescript": "^5.3.3",
89
91
  "typescript-eslint": "^8.44.0",
@@ -93,18 +95,29 @@
93
95
  "esbuild": "0.25.0",
94
96
  "prismjs": "1.30.0",
95
97
  "tmp": "0.2.4",
96
- "min-document": "2.19.0"
98
+ "min-document": "2.19.0",
99
+ "glob": "^10.5.0"
97
100
  },
98
101
  "peerDependencies": {
99
- "react": "^18 || ^19",
100
- "sanity": "^3 || ^4"
102
+ "react": "^18 || ^19.2.1",
103
+ "sanity": "^3 || ^4 || ^5.0.0-0"
101
104
  },
102
105
  "engines": {
103
- "node": "^20.19.5 || ^22.21.1 || >= 24.10.0"
106
+ "node": ">=20"
104
107
  },
105
108
  "repository": {
106
109
  "type": "git",
107
110
  "url": "https://github.com/rcmaples/sanity-plugin-singleton-management"
108
111
  },
109
- "sideEffects": true
112
+ "sideEffects": true,
113
+ "publishConfig": {
114
+ "exports": {
115
+ ".": {
116
+ "import": "./dist/index.esm.js",
117
+ "require": "./dist/index.cjs",
118
+ "default": "./dist/index.esm.js"
119
+ },
120
+ "./package.json": "./package.json"
121
+ }
122
+ }
110
123
  }
package/src/index.ts CHANGED
@@ -11,3 +11,6 @@ export {
11
11
  singletonDocumentListItems,
12
12
  singletonTools,
13
13
  };
14
+
15
+ // Re-export types for module augmentation
16
+ export type { SingletonPluginOptions } from "./types";