Skip to content

Commit 4bb9102

Browse files
authored
Adding action-annotations ESLint rule (#18676)
* Adding action-annotations ESLint rule * pnpm * Adding annotations to components that are missing them
1 parent c888bba commit 4bb9102

File tree

59 files changed

+503
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+503
-93
lines changed

components/afosto/actions/add-information-to-cart/add-information-to-cart.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ export default {
66
key: "afosto-add-information-to-cart",
77
name: "Add Information to Cart",
88
description: "Add customer information to a cart. [See the documentation](https://afosto.com/docs/developers/storefront-js-client/custom-checkout/collecting-customer-data/)",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "action",
11+
annotations: {
12+
destructiveHint: false,
13+
openWorldHint: true,
14+
readOnlyHint: false,
15+
},
1116
props: {
1217
app,
1318
cartId: {

components/afosto/actions/add-item-to-cart/add-item-to-cart.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ export default {
55
key: "afosto-add-item-to-cart",
66
name: "Add Item to Cart",
77
description: "Add an item to a cart. [See the documentation](https://afosto.com/docs/developers/storefront-js-client/integration/add-and-remove-items/)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
10+
annotations: {
11+
destructiveHint: false,
12+
openWorldHint: true,
13+
readOnlyHint: false,
14+
},
1015
props: {
1116
app,
1217
sku: {

components/afosto/actions/add-note-to-cart/add-note-to-cart.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ export default {
55
key: "afosto-add-note-to-cart",
66
name: "Add Note to Cart",
77
description: "Add a note to a cart. [See the documentation](https://afosto.com/docs/developers/storefront-js-client/custom-checkout/checkout-summary/)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
10+
annotations: {
11+
destructiveHint: false,
12+
openWorldHint: true,
13+
readOnlyHint: false,
14+
},
1015
props: {
1116
app,
1217
cartId: {

components/afosto/actions/confirm-cart/confirm-cart.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ export default {
55
key: "afosto-confirm-cart",
66
name: "Confirm Cart",
77
description: "Confirm a cart. [See the documentation](https://afosto.com/docs/developers/storefront-js-client/custom-checkout/payment-process/)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
10+
annotations: {
11+
destructiveHint: false,
12+
openWorldHint: true,
13+
readOnlyHint: false,
14+
},
1015
props: {
1116
app,
1217
cartId: {

components/afosto/actions/create-cart/create-cart.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ export default {
55
key: "afosto-create-cart",
66
name: "Create Cart",
77
description: "Create a new cart. [See the documentation](https://afosto.com/docs/developers/storefront-js-client/integration/create-a-cart/)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
10+
annotations: {
11+
destructiveHint: false,
12+
openWorldHint: true,
13+
readOnlyHint: false,
14+
},
1015
props: {
1116
app,
1217
},

components/airtop/actions/create-session/create-session.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ export default {
66
key: "airtop-create-session",
77
name: "Create Session",
88
description: "Create a new cloud browser session. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/sessions/create)",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "action",
11+
annotations: {
12+
destructiveHint: false,
13+
openWorldHint: true,
14+
readOnlyHint: false,
15+
},
1116
props: {
1217
app,
1318
profileName: {

components/airtop/actions/create-window/create-window.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ export default {
44
key: "airtop-create-window",
55
name: "Create Window",
66
description: "Create a new browser window in an active session. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/windows/create)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: false,
13+
},
914
props: {
1015
app,
1116
sessionId: {

components/airtop/actions/end-session/end-session.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ export default {
44
key: "airtop-end-session",
55
name: "End Session",
66
description: "End a browser session. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/sessions/terminate)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
9+
annotations: {
10+
destructiveHint: true,
11+
openWorldHint: true,
12+
readOnlyHint: false,
13+
},
914
props: {
1015
app,
1116
sessionId: {

components/airtop/actions/load-url/load-url.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ export default {
44
key: "airtop-load-url",
55
name: "Load URL",
66
description: "Navigate a browser window to a specific URL. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/windows/load-url)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: false,
13+
},
914
props: {
1015
app,
1116
sessionId: {

components/airtop/actions/query-page/query-page.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ export default {
44
key: "airtop-query-page",
55
name: "Query Page",
66
description: "Extract data or ask questions about page content using AI. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/windows/page-query)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: true,
13+
},
914
props: {
1015
app,
1116
sessionId: {

0 commit comments

Comments
 (0)