-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
figma-bot
committed
Jan 28, 2025
1 parent
bbd08d4
commit 8206e0b
Showing
63 changed files
with
1,900 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/node_modules/@types/prompts/index.d.ts b/node_modules/@types/prompts/index.d.ts | ||
index e3124b0..f4fac10 100644 | ||
--- a/node_modules/@types/prompts/index.d.ts | ||
+++ b/node_modules/@types/prompts/index.d.ts | ||
@@ -91,6 +91,7 @@ declare namespace prompts { | ||
mask?: string | PrevCaller<T, string | Falsy> | undefined; | ||
stdout?: Writable | undefined; | ||
stdin?: Readable | undefined; | ||
+ submitOnEscapeKey?: boolean | undefined; | ||
} | ||
|
||
type Answers<T extends string> = { [id in T]: any }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/prompts/lib/elements/prompt.js b/node_modules/prompts/lib/elements/prompt.js | ||
index b793330..836de28 100644 | ||
--- a/node_modules/prompts/lib/elements/prompt.js | ||
+++ b/node_modules/prompts/lib/elements/prompt.js | ||
@@ -26,6 +26,9 @@ class Prompt extends EventEmitter { | ||
const isSelect = [ 'SelectPrompt', 'MultiselectPrompt' ].indexOf(this.constructor.name) > -1; | ||
const keypress = (str, key) => { | ||
let a = action(key, isSelect); | ||
+ if (key.name === 'escape' && a === 'exit' && opts.submitOnEscapeKey) { | ||
+ a = 'submit' | ||
+ } | ||
if (a === false) { | ||
this._ && this._(str, key); | ||
} else if (typeof this[a] === 'function') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...connect/__test__/e2e/e2e_parse_command/dummy_api_response_for_wizard_many_components.json
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...src/connect/__test__/e2e/e2e_parse_command/react_storybook/ReactApiComponent.figmadoc.tsx
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
.../connect/__test__/e2e/e2e_parse_command/react_storybook/ReactButtonComponent.figmadoc.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import figma from '../../../../../react/index_react' | ||
|
||
import { ReactButtonComponent } from './ReactButtonComponent' | ||
|
||
figma.connect(ReactButtonComponent, 'ui/button') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...c/connect/__test__/e2e/e2e_parse_command/react_storybook/ReactLabelComponent.figmadoc.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import figma from '../../../../../react/index_react' | ||
import { ReactLabelComponent } from './ReactLabelComponent' | ||
|
||
figma.connect(ReactLabelComponent, 'ui/label') |
16 changes: 16 additions & 0 deletions
16
cli/src/connect/__test__/e2e/e2e_parse_command/react_storybook/ReactLabelComponent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
|
||
interface LabelProps { | ||
disabled: boolean | ||
children: any | ||
} | ||
|
||
/** | ||
* @description This is a label | ||
* @param children text to render | ||
* @param disabled disable the button | ||
* @returns JSX element | ||
*/ | ||
export const ReactLabelComponent = ({ children, disabled = false }: LabelProps) => { | ||
return <div style={{ pointerEvents: disabled ? 'none' : 'inherit' }}>{children}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.