Skip to content

Commit 7014523

Browse files
committed
feat: Remove DRIVE_PICKER_EVENTS constant and add pnpm format to the build script.
1 parent 16fae9d commit 7014523

File tree

5 files changed

+1
-51
lines changed

5 files changed

+1
-51
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "root",
33
"private": true,
44
"scripts": {
5-
"build": "turbo build",
5+
"build": "turbo build && pnpm format",
66
"build:docs": "turbo build:docs",
77
"build:storybook": "turbo build:storybook",
88
"changeset": "changeset",

packages/drive-picker-element/custom-elements.json

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,6 @@
9494
"name": "PickerPickedEvent",
9595
"module": "src/index.ts"
9696
}
97-
},
98-
{
99-
"kind": "js",
100-
"name": "DRIVE_PICKER_EVENTS",
101-
"declaration": {
102-
"name": "DRIVE_PICKER_EVENTS",
103-
"module": "src/index.ts"
104-
}
10597
}
10698
]
10799
},
@@ -240,15 +232,6 @@
240232
"kind": "javascript-module",
241233
"path": "src/drive-picker/drive-picker-element.ts",
242234
"declarations": [
243-
{
244-
"kind": "variable",
245-
"name": "DRIVE_PICKER_EVENTS",
246-
"type": {
247-
"text": "{\n\tPICKED: \"picker:picked\",\n\tCANCELED: \"picker:canceled\",\n\tOAUTH_ERROR: \"picker:oauth:error\",\n\tOAUTH_RESPONSE: \"picker:oauth:response\",\n}"
248-
},
249-
"default": "{ PICKED: \"picker:picked\", CANCELED: \"picker:canceled\", OAUTH_ERROR: \"picker:oauth:error\", OAUTH_RESPONSE: \"picker:oauth:response\", }",
250-
"description": "Events that can be emitted by the `drive-picker` web component."
251-
},
252235
{
253236
"kind": "class",
254237
"description": "The `drive-picker` web component provides a convenient way to declaratively\nbuild\n[`google.picker.Picker`](https://developers.google.com/drive/picker/reference/picker)\nby using the component attributes mapped to the corresponding methods of\n[`google.picker.PickerBuilder`](https://developers.google.com/drive/picker/reference/picker.pickerbuilder).",
@@ -567,14 +550,6 @@
567550
}
568551
],
569552
"exports": [
570-
{
571-
"kind": "js",
572-
"name": "DRIVE_PICKER_EVENTS",
573-
"declaration": {
574-
"name": "DRIVE_PICKER_EVENTS",
575-
"module": "src/drive-picker/drive-picker-element.ts"
576-
}
577-
},
578553
{
579554
"kind": "js",
580555
"name": "DrivePickerElement",
@@ -598,14 +573,6 @@
598573
"module": "./drive-picker-docs-view-element"
599574
}
600575
},
601-
{
602-
"kind": "js",
603-
"name": "DRIVE_PICKER_EVENTS",
604-
"declaration": {
605-
"name": "DRIVE_PICKER_EVENTS",
606-
"module": "./drive-picker-element"
607-
}
608-
},
609576
{
610577
"kind": "js",
611578
"name": "DrivePickerElement",

packages/drive-picker-element/src/drive-picker/drive-picker-element.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ declare global {
6060
}
6161
}
6262

63-
/**
64-
* Events that can be emitted by the `drive-picker` web component.
65-
*/
66-
export const DRIVE_PICKER_EVENTS: Record<
67-
string,
68-
keyof GlobalEventHandlersEventMap
69-
> = {
70-
PICKED: "picker:picked",
71-
CANCELED: "picker:canceled",
72-
OAUTH_ERROR: "picker:oauth:error",
73-
OAUTH_RESPONSE: "picker:oauth:response",
74-
} as const;
75-
7663
/**
7764
* The `drive-picker` web component provides a convenient way to declaratively
7865
* build

packages/drive-picker-element/src/drive-picker/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
export { DrivePickerDocsViewElement } from "./drive-picker-docs-view-element";
1818
export {
19-
DRIVE_PICKER_EVENTS,
2019
DrivePickerElement,
2120
type OAuthErrorEvent,
2221
type OAuthResponseEvent,

packages/drive-picker-element/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
import {
18-
DRIVE_PICKER_EVENTS,
1918
DrivePickerDocsViewElement,
2019
type DrivePickerDocsViewElementProps,
2120
DrivePickerElement,
@@ -50,5 +49,3 @@ export type {
5049
PickerErrorEvent,
5150
PickerPickedEvent,
5251
};
53-
54-
export { DRIVE_PICKER_EVENTS };

0 commit comments

Comments
 (0)