sanity-plugin-singleton-management 1.0.5 → 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.5",
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,21 +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
64
  "@semantic-release/github": "^11.0.6",
65
65
  "@semantic-release/npm": "^13.1.2",
66
66
  "@testing-library/jest-dom": "^6.4.6",
67
- "@types/react": "^19.1.13",
67
+ "@types/react": "^19.2.7",
68
68
  "@typescript-eslint/eslint-plugin": "^8.44.0",
69
69
  "@typescript-eslint/parser": "^8.44.0",
70
70
  "@vitest/coverage-v8": "^4.0.4",
@@ -80,11 +80,11 @@
80
80
  "npm-run-all": "^4.1.5",
81
81
  "prettier": "^3.2.5",
82
82
  "prettier-plugin-packagejson": "^2.4.12",
83
- "react": "^19.2.1",
84
- "react-dom": "^19.2.1",
85
- "react-is": "^19.2.1",
83
+ "react": "^19.2.3",
84
+ "react-dom": "^19.2.3",
85
+ "react-is": "^19.2.3",
86
86
  "rimraf": "^6.0.1",
87
- "sanity": "^4.11.0",
87
+ "sanity": "^5.0.0",
88
88
  "semantic-release": "^25.0.2",
89
89
  "styled-components": "^6.1.15",
90
90
  "typescript": "^5.3.3",
@@ -109,5 +109,15 @@
109
109
  "type": "git",
110
110
  "url": "https://github.com/rcmaples/sanity-plugin-singleton-management"
111
111
  },
112
- "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
+ }
113
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";