Skip to content

Commit 964add6

Browse files
committed
fix: sync component files with latest from example
1 parent 894dcbe commit 964add6

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

src/pages/credential/GetCredentialApiKey.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const GetCredentialApiKey = () => {
1010

1111
<GetCredential.Form title="Get credentials" paragraph="Create unique credentials that you will use to call multiple APIs from your application." className="formClass">
1212

13-
<GetCredential.Form.CredentialName label="Credential name" description="Credential name must be unique and between 3 and 45 characters long. A project will be automatically created with the same name in Adobe Developer Console." range="45" />
13+
<GetCredential.Form.CredentialName label="Credential name" description="Credential name must be unique and between 6 and 45 characters long and must not contain any special characters. A project will be automatically created with the same name in Adobe Developer Console." range="45" />
1414

1515
<GetCredential.Form.AllowedOrigins label="Allowed domains (up to 5)" contextHelp={true} contextHelpHeading="What are allowed domains" placeholder="Example: www.domain-1.com, www.domain-2.com, *.my-domain.com, localhost:5000" contextHelpText="To prevent a third party from using your client ID on their own website, the use of your client ID is restricted to a list of domains that you specifically authorize." contextHelpLink="https://www.adobe.com/" contextHelpLabelForLink="Learn more in our documentation" description="Use wildcards to enter multiple subdomains (*.my-domain.com) or commas to separate multiple domains (www.domain-1.com, www.domain-2.com). During local development, you can include ports greater than 1023 with localhost (e.g. localhost:3000). Standard ports (80, 443) will be used for non-localhost domains." />
1616

@@ -41,7 +41,7 @@ const GetCredentialApiKey = () => {
4141

4242
<GetCredential.UnknownError helpLink="https://some_help_link" helpLinkText="Get Help" className="unKnownError" />
4343

44-
<GetCredential.Card title="Your credential is ready to use" paragraph="Check the downloads section of your browser for the ZIP file, or find it where you save downloads on your machine." nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" devConsoleDirection="/console" developerConsoleManage="Manage on Developer Console" className="card_developer_console">
44+
<GetCredential.Card title="Your credential is ready to use" paragraph="Check the downloads section of your browser for the ZIP file, or find it where you save downloads on your machine." nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" className="card_developer_console">
4545

4646
<GetCredential.Card.Side>
4747
<div style="display : flex ; gap : 16px ; flex-direction : column;">
@@ -67,7 +67,7 @@ const GetCredentialApiKey = () => {
6767

6868
</GetCredential.Card>
6969

70-
<GetCredential.Return title="Previously created projects" paragraph="Select a project and access your existing credentials for Firefly - Firefly and Creative Cloud Automation." devConsoleDirection="/console" nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" developerConsoleManage="Manage on Developer Console" className="card_developer_console">
70+
<GetCredential.Return title="Previously created projects" paragraph="Select a project and access your existing credentials for Firefly - Firefly and Creative Cloud Automation." nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" className="card_developer_console">
7171

7272
<GetCredential.Return.Side>
7373
<GetCredential.Return.Side.Custom>
@@ -125,8 +125,6 @@ const GetCredentialApiKey = () => {
125125
</GetCredential.RequestAccess.RequestAccessSide>
126126
</GetCredential.RequestAccess>
127127

128-
<GetCredential.ErrorCode helpLink="Get help" title="Error code ###" description="Your personal account does not have Developer role permission to access the [Org Name, Inc.] organization in the Adobe Developer Console." buttonLabel="Contact Adobe" buttonLink="https://some_help_link" />
129-
130128
</GetCredential>
131129

132130
)

src/pages/credential/GetCredentialOAuthS2s.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,13 @@ const GetCredentialOAuthS2s = () => {
1212

1313
<GetCredential.Form title="Get credentials" paragraph="Create unique credentials that you will use to call multiple APIs from your application." className="formClass">
1414

15-
<GetCredential.Form.CredentialName label="Credential name" description="Credential name must be unique and between 3 and 45 characters long. A project will be automatically created with the same name in Adobe Developer Console." range="45" />
15+
<GetCredential.Form.CredentialName label="Credential name" description="Credential name must be unique and between 6 and 45 characters long and must not contain any special characters. A project will be automatically created with the same name in Adobe Developer Console." range="45" />
1616

1717
<GetCredential.Form.Products label="Included products and services">
1818
<GetCredential.Form.Product label="Firefly - Firefly Services" icon={firefly} />
1919
<GetCredential.Form.Product label="Adobe Photoshop - Firefly Services" icon={ps} />
2020
</GetCredential.Form.Products>
2121

22-
<GetCredential.Form.Downloads label="Download a personalized code sample" contextHelp={true} contextHelpHeading="Select Language">
23-
<GetCredential.Form.Download title="JavaScript" href="https://acrobatservices.adobe.com/dc-integration-creation-app-cdn/8bab684/files/samples_q3_2023/PROD/dc-pdf-services-sdk-java-samples.zip" />
24-
<GetCredential.Form.Download title=".Net" href="/Net.zip" />
25-
<GetCredential.Form.Download title="Python" href="https://python.zip/" />
26-
<GetCredential.Form.Download title="Ruby" href="https://www.ruby.zip/" />
27-
</GetCredential.Form.Downloads>
28-
2922
<GetCredential.Form.AdobeDeveloperConsole label='By checking this box, you agree to' linkText="Adobe Developer Terms of Use" href="https://wwwimages2.adobe.com/content/dam/cc/en/legal/servicetou/Adobe-Developer-Additional-Terms_en-US_20230822.pdf" />
3023

3124
<GetCredential.Form.Side>
@@ -65,7 +58,7 @@ const GetCredentialOAuthS2s = () => {
6558

6659
<GetCredential.UnknownError helpLink="https://some_help_link" helpLinkText="Get Help" className="unKnownError" />
6760

68-
<GetCredential.Card title="Your credential is ready to use" paragraph="Check the downloads section of your browser for the ZIP file, or find it where you save downloads on your machine." nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" developerConsoleManage="Manage on Developer Console" className="card_developer_console" devConsoleDirection="/console">
61+
<GetCredential.Card title="Your credential is ready to use" paragraph="Check the downloads section of your browser for the ZIP file, or find it where you save downloads on your machine." devConsoleDirection="/console" nextStepsLabel="Next steps" nextStepsHref="/credentials/nextsteps" developerConsoleManage="Manage on Developer Console" className="card_developer_console">
6962

7063
<GetCredential.Card.Side>
7164
<div style={{ display: "flex", gap: "32px", flexDirection: "column" }}>
@@ -154,8 +147,6 @@ const GetCredentialOAuthS2s = () => {
154147

155148
</GetCredential.Return>
156149

157-
<GetCredential.NoDeveloperAccessError title='Get Credentials' docsLinkText="How do I get developer permissions for the [Firefly - Firefly and Creative Cloud Automation API]?" docsLink="" />
158-
159150
<GetCredential.RequestAccess
160151
title="Get credentials"
161152
paragraph="Create unique credentials that you will use to call multiple APIs from your application."
@@ -166,7 +157,6 @@ const GetCredentialOAuthS2s = () => {
166157
<GetCredential.RequestAccess.EdgeCase.NotMember title="Access to Firefly Services APIs is not available at this time." buttonLabel="Learn more about Firefly Services" buttonLink="#someLink" />
167158
<GetCredential.RequestAccess.EdgeCase.NotSignUp title="Firefly Services APIs is available as part of the beta program. Sign up for the program or log in to an account that has access." buttonLabel="Sign up for the beta" buttonLink="#someLink" />
168159
</GetCredential.RequestAccess.EdgeCase>
169-
170160
<GetCredential.RequestAccess.RestrictedAccess
171161
title="Restricted Access"
172162
buttonLabel="Request access"
@@ -216,8 +206,6 @@ const GetCredentialOAuthS2s = () => {
216206
</GetCredential.RequestAccess.RequestAccessSide>
217207
</GetCredential.RequestAccess>
218208

219-
<GetCredential.ErrorCode helpLink="Get help" title="Error code ###" description="Your personal account does not have Developer role permission to access the [Org Name, Inc.] organization in the Adobe Developer Console." buttonLabel="Contact Adobe" buttonLink="https://some_help_link" />
220-
221209
</GetCredential>
222210

223211
)

0 commit comments

Comments
 (0)