diff --git a/.github/workflows/integration-tests-basic.yaml b/.github/workflows/integration-tests-basic.yaml index 587bbfe3..9b34706f 100644 --- a/.github/workflows/integration-tests-basic.yaml +++ b/.github/workflows/integration-tests-basic.yaml @@ -9,9 +9,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-12, macos-13, windows-2022] + os: [macos-13, windows-2022] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - node-version: [18, 20] + node-version: [20] timeout-minutes: 8 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/integration-tests-extended.yaml b/.github/workflows/integration-tests-extended.yaml index c8608442..c4546c5c 100644 --- a/.github/workflows/integration-tests-extended.yaml +++ b/.github/workflows/integration-tests-extended.yaml @@ -9,9 +9,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-12, macos-13, windows-2022] + os: [macos-13, windows-2022] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - node-version: [18, 20] + node-version: [20] timeout-minutes: 11 steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index cc98b6e0..9c071215 100644 --- a/README.md +++ b/README.md @@ -309,8 +309,8 @@ google.script.run .addSheet(sheetTitle); // Using gas-client we can use more familiar promises style like this: -import Server from 'gas-client'; -const { serverFunctions } = new Server(); +import { GASClient } from 'gas-client'; +const { serverFunctions, scriptHostFunctions } = new GASClient({}); // We now have access to all our server functions, which return promises! serverFunctions @@ -327,6 +327,12 @@ async () => { handleError(err); } }; + +// Use scriptHostFunctions to control dialogs +scriptHostFunctions.close(); // close a dialog or sidebar +scriptHostFunctions.setWidth(400); // set dialog width to 400px +scriptHostFunctions.setHeight(800); // set dialog height to 800px + ``` In development, `gas-client` will allow you to call server-side functions from your local environment. In production, it will use Google's underlying `google.script.run` utility. diff --git a/dev/dev-server-wrapper.html b/dev/dev-server-wrapper.html index c050c058..4c129e59 100644 --- a/dev/dev-server-wrapper.html +++ b/dev/dev-server-wrapper.html @@ -20,7 +20,7 @@ Dev Server - +