mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #305] [MERGED] Official 1Password Template Function #226
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/305
Author: @gschier
Created: 11/22/2025
Status: ✅ Merged
Merged: 11/22/2025
Merged by: @gschier
Base:
main← Head:1password📝 Commits (2)
7797325Add 1password template function plugin and a ton of surrounding improvements218b434Fix validation of hidden fields📊 Changes
20 files changed (+1441 additions, -143 deletions)
View changed files
📝
package-lock.json(+1023 -3)📝
package.json(+1 -0)📝
packages/plugin-runtime/src/PluginInstance.ts(+18 -7)📝
packages/plugin-runtime/src/common.ts(+28 -1)➕
plugins/template-function-1password/package.json(+20 -0)➕
plugins/template-function-1password/src/index.ts(+123 -0)➕
plugins/template-function-1password/tsconfig.json(+3 -0)📝
plugins/template-function-request/src/index.ts(+16 -0)📝
plugins/template-function-response/src/index.ts(+17 -1)📝
scripts/vendor-plugins.cjs(+1 -1)📝
src-tauri/yaak-templates/src/parser.rs(+1 -1)📝
src-web/components/TemplateFunctionDialog.tsx(+57 -47)📝
src-web/components/core/Editor/Editor.tsx(+4 -30)📝
src-web/components/core/Editor/genericCompletion.ts(+7 -1)📝
src-web/components/core/Editor/twig/completion.ts(+49 -23)📝
src-web/components/core/Editor/twig/templateTags.ts(+17 -5)➕
src-web/components/core/Editor/twig/util.ts(+37 -0)📝
src-web/components/core/Select.tsx(+3 -1)📝
src-web/hooks/useTemplateFunctionConfig.ts(+4 -1)📝
src-web/hooks/useTemplateFunctions.ts(+12 -21)📄 Description
This PR adds a bundled plugin to provide a
1password.item(...)template function, built on github.com/1Password/onepassword-sdk-js.This does not depend on the 1Password CLI, but only to Create a Service Account and reference the generated token.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.