Skip to content

Commit

Permalink
fix: remove todos and use latest @types/google.picker (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Nov 1, 2024
1 parent e532706 commit fea7bbc
Show file tree
Hide file tree
Showing 5 changed files with 3,300 additions and 8,398 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,20 @@ The `drive-picker-docs-view` element is used to define a view for the Google Dri

### Properties

| Property | Attribute | Modifiers | Type | Default | Description |
| --------------------- | ----------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `enableDrives` | `enable-drives` | | `boolean \| undefined` | | Indicates whether to enable drives in the view. |
| `includeFolders` | `include-folders` | | `boolean \| undefined` | | Indicates whether to include folders in the view. |
| `label` | `label` | | `string \| undefined` | | The label of the view. |
| `mimeTypes` | `mime-types` | | `string \| undefined` | | The MIME types to filter the view by. |
| `mode` | `mode` | | `"GRID" \| "LIST"` | "GRID" | The mode of the view. This should be one of the values of the `google.picker.DocsViewMode` enum. |
| `ownedByMe` | `owned-by-me` | | `boolean \| undefined` | | Indicates whether to show only files owned by the user in the view. |
| `parent` | `parent` | | `string \| undefined` | | The ID of the parent folder to restrict the view to. |
| `query` | `query` | | `string \| undefined` | | The query string to filter the view by. |
| `selectFolderEnabled` | `select-folder-enabled` | | `boolean \| undefined` | | Indicates whether selecting folders is enabled in the view. |
| `starred` | `starred` | | `boolean \| undefined` | | Indicates whether to show only starred files in the view. |
| `view` | | readonly | `DocsView` | | Gets the Google Drive Picker view based on the current property values. |
| `viewId` | `view-id` | | `"DOCS" \| "DOCS_IMAGES" \| "DOCS_IMAGES_AND_VIDEOS" \| "DOCS_VIDEOS" \| "DOCUMENTS" \| "DRAWINGS" \| "FOLDERS" \| "FORMS" \| "IMAGE_SEARCH" \| "PDFS" \| "PHOTO_ALBUMS" \| "PHOTO_UPLOAD" \| ... 6 more ... \| "YOUTUBE"` | "DOCS" | The ID of the view. This should be one of the values of the<br />`google.picker.ViewId` enum.<br /><br />Note: The default value is `DOCS` which corresponds to the<br />`google.picker.ViewId.DOCS` enum value in the Google Drive Picker API and<br />corresponsds to all Google Drive document types. |
| Property | Attribute | Modifiers | Type | Default | Description |
| --------------------- | ----------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `enableDrives` | `enable-drives` | | `boolean \| undefined` | | Indicates whether to enable drives in the view. |
| `includeFolders` | `include-folders` | | `boolean \| undefined` | | Indicates whether to include folders in the view. |
| `label` | `label` | | `string \| undefined` | | |
| `mimeTypes` | `mime-types` | | `string \| undefined` | | The MIME types to filter the view by. |
| `mode` | `mode` | | `"GRID" \| "LIST"` | "GRID" | The mode of the view. This should be one of the values of the `google.picker.DocsViewMode` enum. |
| `ownedByMe` | `owned-by-me` | | `boolean \| undefined` | | Indicates whether to show only files owned by the user in the view. |
| `parent` | `parent` | | `string \| undefined` | | The ID of the parent folder to restrict the view to. |
| `query` | `query` | | `string \| undefined` | | The query string to filter the view by. |
| `selectFolderEnabled` | `select-folder-enabled` | | `boolean \| undefined` | | Indicates whether selecting folders is enabled in the view. |
| `starred` | `starred` | | `boolean \| undefined` | | Indicates whether to show only starred files in the view. |
| `view` | | readonly | `DocsView` | | Gets the Google Drive Picker view based on the current property values. |
| `viewId` | `view-id` | | `"DOCS" \| "DOCS_IMAGES" \| "DOCS_IMAGES_AND_VIDEOS" \| "DOCS_VIDEOS" \| "DOCUMENTS" \| "DRAWINGS" \| "FOLDERS" \| "FORMS" \| "PDFS" \| "PRESENTATIONS" \| "SPREADSHEETS" \| "IMAGE_SEARCH" \| ... 7 more ... \| "YOUTUBE"` | "DOCS" | The ID of the view. This should be one of the values of the<br />`google.picker.ViewId` enum.<br /><br />Note: The default value is `DOCS` which corresponds to the<br />`google.picker.ViewId.DOCS` enum value in the Google Drive Picker API and<br />corresponsds to all Google Drive document types. |

<!-- END docs -->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@storybook/web-components-vite": "^8.1.9",
"@types/gapi": "^0.0.47",
"@types/google.accounts": "^0.0.14",
"@types/google.picker": "^0.0.42",
"@types/google.picker": "^0.0.44",
"@types/mocha": "^10.0.6",
"@types/node": "^22.4.1",
"@web/dev-server": "^0.4.5",
Expand Down
Loading

0 comments on commit fea7bbc

Please sign in to comment.