AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(google-docs): ui improvement (#16404)
Talal Jaber16fecbbdf08c
diff --git a/bun.lock b/bun.lockindex 7ada3dec019..3d934f86ab6 100644--- a/bun.lock+++ b/bun.lock@@ -3866,7 +3866,7 @@},"packages/pieces/community/google-docs": {"name": "@activepieces/piece-google-docs",- "version": "0.5.4",+ "version": "0.6.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/google-docs/package.json b/packages/pieces/community/google-docs/package.jsonindex dd1b853e395..0641226e009 100644--- a/packages/pieces/community/google-docs/package.json+++ b/packages/pieces/community/google-docs/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-google-docs",- "version": "0.5.4",+ "version": "0.6.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/google-docs/src/lib/actions/append-text.ts b/packages/pieces/community/google-docs/src/lib/actions/append-text.tsindex ee4175d0f25..f70cf78457c 100644--- a/packages/pieces/community/google-docs/src/lib/actions/append-text.ts+++ b/packages/pieces/community/google-docs/src/lib/actions/append-text.ts@@ -16,6 +16,22 @@ export const appendText = createAction({idempotent: false,},displayName: 'Append Text',+ propertyGroups: [+ {+ key: 'document',+ display: 'section',+ label: 'Document',+ icon: 'file',+ props: ['documentId'],+ },+ {+ key: 'content',+ display: 'section',+ label: 'Content',+ icon: 'text',+ props: ['text'],+ },+ ],props: {documentId: documentIdProp(),text: Property.LongText({diff --git a/packages/pieces/community/google-docs/src/lib/actions/create-document-based-on-template.action.ts b/packages/pieces/community/google-docs/src/lib/actions/create-document-based-on-template.action.tsindex 37c94834456..14847b37b04 100644--- a/packages/pieces/community/google-docs/src/lib/actions/create-document-based-on-template.action.ts+++ b/packages/pieces/community/google-docs/src/lib/actions/create-document-based-on-template.action.ts@@ -30,6 +30,29 @@ export const createDocumentBasedOnTemplate = createAction({idempotent: true,},displayName: 'Edit Template File',+ propertyGroups: [+ {+ key: 'document',+ display: 'section',+ label: 'Document',+ icon: 'file',+ props: ['template'],+ },+ {+ key: 'placeholders',+ display: 'section',+ label: 'Placeholders',+ icon: 'tag',+ props: ['placeholder_format', 'values'],+ },+ {+ key: 'images',+ display: 'section',+ label: 'Images',+ icon: 'paperclip',+ props: ['images'],+ },+ ],props: {template: documentIdProp({description: 'Placeholders in this document are replaced in place.',@@ -57,7 +80,6 @@ export const createDocumentBasedOnTemplate = createAction({displayName: 'Image Replacements',description: 'Each row swaps one image in the document for a new one.',required: false,- advanced: true,properties: {imageObjectId: Property.ShortText({displayName: 'Image Object ID',diff --git a/packages/pieces/community/google-docs/src/lib/actions/create-document.ts b/packages/pieces/community/google-docs/src/lib/actions/create-document.tsindex 37cafef9bf4..0445ad7f7a4 100644--- a/packages/pieces/community/google-docs/src/lib/actions/create-document.ts+++ b/packages/pieces/community/google-docs/src/lib/actions/create-document.ts@@ -15,6 +15,22 @@ export const createDocument = createAction({idempotent: false,},displayName: 'Create Document',+ propertyGroups: [+ {+ key: 'document',+ display: 'section',+ label: 'Document',+ icon: 'file',+ props: ['title'],+ },+ {+ key: 'content',+ display: 'section',+ label: 'Content',+ icon: 'text',+ props: ['body'],+ },+ ],props: {title: docsCommon.title,body: docsCommon.body,diff --git a/packages/pieces/community/google-docs/src/lib/actions/find-document.ts b/packages/pieces/community/google-docs/src/lib/actions/find-document.tsindex ee7f74fbc5d..c8f730654a7 100644--- a/packages/pieces/community/google-docs/src/lib/actions/find-document.ts+++ b/packages/pieces/community/google-docs/src/lib/actions/find-document.ts@@ -21,6 +21,22 @@ export const findDocumentAction = createAction({'Searches Google Drive for a Google Docs document whose name contains the given text, optionally scoped to a folder, and returns the first match. Use when an agent has a document name but not its ID and needs to resolve it. Idempotent only when used purely for lookup; enabling "Create a new document if not found" makes it create (and optionally move) a new document on each miss, which is a mutating side effect.',idempotent: false,},+ propertyGroups: [+ {+ key: 'search',+ display: 'section',+ label: 'Search',+ icon: 'filter',+ props: ['name', 'folderId'],+ },+ {+ key: 'notFound',+ display: 'section',+ label: 'If Not Found',+ icon: 'file',+ props: ['createIfNotFound', 'newDocumentProps'],+ },+ ],props: {name: Property.ShortText({displayName: 'Document Name',