diff --git a/package-lock.json b/package-lock.json index 111deb9..ec89c80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.0.3", "license": "AGPL-3.0-or-later", "dependencies": { - "zotero-plugin-toolkit": "^4.0.16" + "zotero-plugin-toolkit": "^4.1.0" }, "devDependencies": { "@eslint/js": "^9.14.0", @@ -19,7 +19,7 @@ "typescript": "^5.7.2", "typescript-eslint": "^8.18.2", "zotero-plugin-scaffold": "^0.1.7", - "zotero-types": "^3.0.11" + "zotero-types": "^3.1.1" } }, "node_modules/@babel/code-frame": { @@ -7897,20 +7897,20 @@ } }, "node_modules/zotero-plugin-toolkit": { - "version": "4.0.16", - "resolved": "https://registry.npmjs.org/zotero-plugin-toolkit/-/zotero-plugin-toolkit-4.0.16.tgz", - "integrity": "sha512-VNBmvIpdBDRyV4ze553V5u8jUPo3FOkGkMWrDgDsFn5H3ckFo5EDKGuBOdOHaRgUI/F0zCI3iV3MbGdxHMheDQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/zotero-plugin-toolkit/-/zotero-plugin-toolkit-4.1.0.tgz", + "integrity": "sha512-WBtvDyuEl1A6xveQ6GnV0ZMLJ5J0Jscz5+cVVxrXGuyPq0nepzJBW7HsREOKom2ME0advYpuh2SZ6BfDY3Ky7Q==", "engines": { "node": ">=18" }, "peerDependencies": { - "zotero-types": "^3.0.10" + "zotero-types": "^3.1.0" } }, "node_modules/zotero-types": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/zotero-types/-/zotero-types-3.0.11.tgz", - "integrity": "sha512-/7IcnnvXAn6KmtH2iPdfE8ZjDf3ZZC3hgkp6nZaRlfd7OHZUgIN0O7zLj2TwWWm2Af1EDl+Dv+qeXcCJ+0S0bw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/zotero-types/-/zotero-types-3.1.1.tgz", + "integrity": "sha512-p+EDhCf9jtaobOLN41kKPmc2GPF5+7TnJIHqjUOssJ2uvj8c7C4nnmyRiEPK46+ZzsNY2gNZFw2+Vm8feQL6yw==", "peerDependencies": { "@types/bluebird": "*", "@types/react": "*", diff --git a/package.json b/package.json index e1a3b59..1443e92 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "update-deps": "npm update --save" }, "dependencies": { - "zotero-plugin-toolkit": "^4.0.16" + "zotero-plugin-toolkit": "^4.1.0" }, "devDependencies": { "@eslint/js": "^9.14.0", @@ -39,7 +39,7 @@ "typescript": "^5.7.2", "typescript-eslint": "^8.18.2", "zotero-plugin-scaffold": "^0.1.7", - "zotero-types": "^3.0.11" + "zotero-types": "^3.1.1" }, "prettier": { "printWidth": 80, diff --git a/src/modules/examples.ts b/src/modules/examples.ts index 7c0682c..d03a894 100644 --- a/src/modules/examples.ts +++ b/src/modules/examples.ts @@ -481,12 +481,12 @@ export class PromptExampleFactory { hasValidCondition = true; s.addCondition( "joinMode", - joinMode as Zotero.Search.Operator, + joinMode as _ZoteroTypes.Search.Operator, "", ); s.addCondition( conditions[0] as string, - conditions[1] as Zotero.Search.Operator, + conditions[1] as _ZoteroTypes.Search.Operator, conditions[2] as string, ); }