Commit Graph

1769 Commits

Author SHA1 Message Date
dependabot[bot]
75cb33f931 Bump brace-expansion
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 22:19:47 +00:00
Oliver Dunk
11898ee8eb Fix issue in advanced fontSettings sample (#1523)
We were using the wrong key when importing settings from a file.
Additionally, added a reload to fix an issue where the UI was not
updated when new settings were imported.

Fixes #1519
2025-08-05 18:33:39 +01:00
Vin Lim
5f6f02b924 Fix prompt format for image description in prompt array (#1516)
* Fix prompt format for image description in prompt array

* [Bug] Fix syntax error (#1515)

* Fix syntax error

* Fix prompt format for audio transcription in session.promptStreaming

* Fix formatting

---------

Co-authored-by: Sebastian Benz <sbenz@google.com>
2025-07-29 08:42:39 +02:00
Vin Lim
eca778c3c6 Fix/format issue (#1518)
* Fix prompt format for image description in prompt array

* Fix formatting for audio scribe example

* Revert unrelated commit
2025-07-29 08:40:22 +02:00
Vin Lim
62de17bf69 [Bug] Fix syntax error (#1515)
* Fix syntax error

* Fix prompt format for audio transcription in session.promptStreaming
2025-07-28 13:28:13 +02:00
Oliver Dunk
517cf1093e Move sw-tips tutorial to use chrome.dev (#1505)
Moves from the Glitch URL to chrome.dev, and removes the host
permissions as we now set CORS headers.
2025-07-10 15:31:51 +02:00
Oliver Dunk
b55612ae64 Handle SPA navigations in reading time example. (#1496)
In the move to new infrastructure for https://developer.chrome.com/, the
site became an SPA which can soft navigate outside of browser
navigations. Therefore, we need to update the sample to watch for
changes to content after the content script is injected.
2025-06-23 09:34:53 +02:00
dependabot[bot]
8d6e02ae45 Bump eslint-plugin-prettier from 5.2.1 to 5.4.1 (#1487)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.2.1 to 5.4.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.1...v5.4.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.4.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-10 15:30:28 +01:00
dependabot[bot]
fb85450cc0 Bump dompurify in /functional-samples/ai.gemini-on-device (#1448)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.1.6 to 3.2.4.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.1.6...3.2.4)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-10 15:30:01 +01:00
Chris Ho
9911b0a667 on installation open up the sidepanel for users (#1483)
* on installation open up the sidepanel for users

* ran 'npm run lint:fix'
2025-06-05 13:05:41 +01:00
Oliver Dunk
08e8c96c5f Add linter fixes for new AI samples (#1484) 2025-06-02 13:46:10 +02:00
Sebastian Benz
20d36c7780 Fixes to AI samples (#1479)
* Migrate to latest summarizer API

* fix temperature to be less creative
2025-05-23 17:29:23 +02:00
Sebastian Benz
a8aec773d8 add audio scribe sample (#1475)
* add audio scribe sample

* Fix wrong parameter name

* Cleanup and more robust audio scribe

* better manifest descriptions

* demo chat app clean up
2025-05-20 08:37:50 +02:00
Sebastian Benz
a42c4121cc Add new AI samples and update existing to use new API shape (#1474)
* Add new AI samples and update existing to use new API shape

* address comments
2025-05-16 20:43:25 +02:00
Zaif Senpai
0a67271feb Replaced clearbit API (deprecated) (#1453) (#1456)
* Replaced clearbit API (deprecated) with Google's favicon snatcher

* Updated UI designs for optional_permissions examples of both mv2 and mv3

Using chrome's build in favicon provider for optional_permissions examples

* Run linter

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-05-08 13:59:07 +01:00
Oliver Dunk
5113e3c266 Use Puppeteer LaunchOptions for loading extensions. (#1466)
This is supported in the latest release: https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-core-v24.8.0
2025-05-07 11:08:10 +01:00
Oliver Dunk
9b88cf7e14 Address feedback on mole game tutorial code. (#1462) 2025-04-30 17:14:43 +01:00
Oliver Dunk
aab4aa91fd Partial fixes for sample list generator (#1464)
* Partial fixes for sample list generator

A number of fixes for the sample list generator:

- Removes a comment from one of our manifest files, as we don't
  currently support JSONC.
- Ignores the `node_modules` folder since we have recently added some AI
  samples with a build step.
- Adds the `aiOriginTrial` API to the list of recognised APIs.
- Updates `extension-apis.json` with the latest data from the
  `chrome-types` package.

Updating recognised extension APIs still requires access to a
non-existent storage bucket, so this does not fully fix the process.

* Fix linter issue
2025-04-30 17:14:32 +01:00
Thomas Steiner
8fe3174642 Update to new API shape 2025-04-22 06:52:37 -07:00
Thomas Steiner
66672f857a Update to new API shape 2025-04-22 06:48:54 -07:00
ljjlee
1cf9c53d4b Add getProfileUserInfo example to sample identity extension (#1454)
* Add getProfileUserInfo example to sample identity extension

* Clarify UI

* Run prettier

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-04-07 16:41:09 -07:00
ljjlee
b0f55f9d15 Disambiguate account/local folders sample bookmarks extension (#1435)
* Disambiguate account/local folders in the UI for sample bookmarks extension

* Code-review markups

* Fix lint issues
2025-04-03 11:05:22 +01:00
Oliver Dunk
6116518873 Add mole game tutorial (#1433)
LGTN
2025-04-02 18:10:45 +01:00
Oliver Dunk
8cf0e9a827 Fix linter error and run on PRs (#1447)
Fixes a linter error in the `identity` API sample, and updates the
linter to run on all PRs going forward.
2025-03-31 15:17:58 +02:00
ljjlee
40456c76c1 Don't assume existence of hard-coded bookmark Ids (#1434)
Instead, use the default location on the create() call.
2025-03-31 12:30:15 +01:00
ljjlee
db2d231476 Add sample Identity API extension (#1432)
* Initial copy of _archive/apps/samples/identity

* Modify to run be an extension rather than a Chrome App.

* Update extension to manifest v3

* Update README

* Remove references to chrome://identity-internals

* Use Promises rather than callbacks

See https://developer.chrome.com/docs/extensions/develop/migrate/api-calls#replace-callbacks

* Apply code-review markups.

* Apply more code-review markups

* Format with prettier

* Use Promise.catch instead of runtime.lastError

* Update screenshot

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-03-20 14:17:39 +00:00
dependabot[bot]
8f97d22fdc Bump cross-spawn in /functional-samples/tutorial.terminate-sw/puppeteer (#1399)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 21:14:15 +01:00
dependabot[bot]
50a4cadc20 Bump eslint from 9.12.0 to 9.19.0 (#1396)
Bumps [eslint](https://github.com/eslint/eslint) from 9.12.0 to 9.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.12.0...v9.19.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:59:37 +00:00
dependabot[bot]
882a24a6a5 Bump chrome-types from 0.1.312 to 0.1.335 (#1398)
Bumps [chrome-types](https://github.com/GoogleChrome/chrome-types) from 0.1.312 to 0.1.335.
- [Commits](https://github.com/GoogleChrome/chrome-types/commits)

---
updated-dependencies:
- dependency-name: chrome-types
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:52:21 +00:00
dependabot[bot]
9350c3a6a4 Bump globals from 15.11.0 to 15.14.0 (#1379)
Bumps [globals](https://github.com/sindresorhus/globals) from 15.11.0 to 15.14.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v15.11.0...v15.14.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:51:50 +00:00
dependabot[bot]
509a5d2df5 Bump eslint-plugin-jest from 28.8.3 to 28.11.0 (#1392)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 28.8.3 to 28.11.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v28.8.3...v28.11.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:51:20 +00:00
dependabot[bot]
f475b140a4 Bump cross-spawn in /functional-samples/tutorial.puppeteer (#1358)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:50:41 +00:00
dependabot[bot]
21b2ba2138 Bump @eslint/js from 9.12.0 to 9.19.0 (#1397)
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.12.0 to 9.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.19.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:50:10 +00:00
Rishi Kumar Tiwari
40e9576a29 Added README Files For Tutorials (#1371)
* tutorials redme

* update 404 URLs

* tutorials redme

* readme files

* readme

* readme

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* url change not required

* Update functional-samples/tutorial.tabs-manager/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update README.md

* Update functional-samples/tutorial.tabs-manager/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.hello-world/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.hello-world/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* foxed typo for tabGroups

* Fixed typo for tabGroups

---------

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
2025-01-13 10:15:28 +00:00
minggeorgelei
692e9a990e fix: the extension page will refresh after clicking the button. We need to add preventDefault to prevent form default behavior. (#1378)
Co-authored-by: George <minggeorgelei@gmail.com>
2024-12-24 21:25:29 +00:00
Justin Lulejian
5064031481 Remove notification permission from push cookbook sample (#1365)
* Remove notification permission from push cookbook sample

As of [M132] this requirement is no longer necessary (unless the extension chooses to show a notification).

[M132]: https://chromiumdash.appspot.com/commit/ed68ac786e9a276ef2b627b7e21cf0d20cc6d798

* address review comments

* Add note about minimum Chrome version

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2024-12-24 21:08:12 +00:00
Oliver Dunk
600017fca8 Add environment variable for configuring storage bucket (#1372)
Adds the STORAGE_BUCKET environment variable which is used for
determining which bucket the prepare-chrome-types script loads type data
from.
2024-12-20 19:52:52 +00:00
Justin Lulejian
74bca08177 Run prettier on repository (#1366) 2024-12-03 10:50:45 +00:00
Oliver Dunk
74e1edfac3 Rename addSiteAccessRequest to addHostAccessRequest (#1356) 2024-11-26 14:29:59 +01:00
Oliver Dunk
6b4db6a6c0 Add permissions.addSiteAccessRequest() sample (#1322)
* Add permissions.addSiteAccessRequest() demo

Adds an example of using the permissions.addSiteAccessRequest() API to
request access to a checkout page. This matches the example used in our
upcoming blog post.

* Add banner to show that the extension has access.
2024-11-18 13:31:46 +00:00
Muhammad Mahad
4fb578eb1d Rename privacy,txt to privacy.txt (#1350) 2024-11-18 09:47:37 +00:00
Sebastian Benz
ba5b96aba0 inc manifest version (#1348) 2024-11-12 15:35:27 +01:00
Sebastian Benz
2f056ff117 Update Geminin nano samples (#1347)
* Link to latest articles
* Add systemprompt to prompt sample to provide better guidance on simple
  prompts such as 'hello'.
* Limit default topK to 3 (the default is currently set too high, this
  will change).
* Fix setup instructions in the readmes.
2024-11-12 14:02:43 +01:00
Sebastian Benz
fc7c4b34f1 Summarizer sample: Format markdown output (#1283)
* Format markdown output

* updates & fixes

* Styles and config

* Some CSS love with open props
* Make summary configurable

* Update functional-samples/ai.gemini-on-device-summarization/sidepanel/index.js

Shorter and worker-compatible

Co-authored-by: Thomas Steiner <tomac@google.com>

* Update functional-samples/ai.gemini-on-device-summarization/manifest.json

Co-authored-by: Thomas Steiner <tomac@google.com>

---------

Co-authored-by: Thomas Steiner <tomac@google.com>
2024-11-09 13:14:30 +01:00
Sebastian Benz
69f946b35e Improve prompt API sample (#1344)
* Improve prompt API sample

* Render response as markdown
* Fix initial maxK and temperature values
* Add privacy statement (for webstore submission)
* Regenerate key and trial token

* fix formatting errors

* Update functional-samples/ai.gemini-on-device/sidepanel/index.js

Update maxTemperature

Co-authored-by: Thomas Steiner <tomac@google.com>

* Update functional-samples/ai.gemini-on-device/sidepanel/index.js

Better string comparison

Co-authored-by: Thomas Steiner <tomac@google.com>

---------

Co-authored-by: Thomas Steiner <tomac@google.com>
2024-11-08 15:35:27 +01:00
patrick kettner
d2fd736ac0 Add an example that shows how to polyfill XHR in an extension (#1343)
* add an example that shows how to polyfill XHR in an extension

* updates from feedback

* update based on third party OSS requirements

* update readme links
2024-11-07 04:30:06 -05:00
Thomas Steiner
b939ca2db9 Change on-device example to use the origin trial API (#1337)
* Add scaffolding for Prompt API OT example

* Rewrite existing example to use the OT

* Add trial token and key

* Update error message, add `minimum_chrome_version`

* Fix feature detection

* Some README refinements

* Correct instructions

* OT refinement
2024-10-31 15:46:16 +01:00
dependabot[bot]
31704be55b Bump chrome-types from 0.1.309 to 0.1.312 (#1336)
Bumps [chrome-types](https://github.com/GoogleChrome/chrome-types) from 0.1.309 to 0.1.312.
- [Commits](https://github.com/GoogleChrome/chrome-types/commits)

---
updated-dependencies:
- dependency-name: chrome-types
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 16:00:59 +00:00
Gitesh Mahadik
e5598ed5a5 Fix ai.assistant Session Creation Issue in ai.gemini-on-device (#1330)
* Updated: Session creation

* Updated: Session creation

* Updated: Session Creation
2024-10-23 22:24:32 +02:00
dependabot[bot]
7fbd761614 Bump eslint from 9.10.0 to 9.12.0 (#1316)
Bumps [eslint](https://github.com/eslint/eslint) from 9.10.0 to 9.12.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.10.0...v9.12.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:29:27 +01:00