-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: lightning-components-stubs v1.0.19 (#281)
- Loading branch information
Showing
27 changed files
with
221 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- | ||
Copyright (c) 2018, salesforce.com, inc. | ||
All rights reserved. | ||
SPDX-License-Identifier: MIT | ||
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
--> | ||
<template></template> |
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,19 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class Alert extends LightningElement { | ||
static open() { | ||
throw new Error( | ||
'The LightningAlert documentation contains examples for mocking .open in Jest', | ||
); | ||
} | ||
@api label; | ||
@api message; | ||
@api theme; | ||
@api variant; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/lightning-stubs/analyticsSmartDataDiscoveryApi/analyticsSmartDataDiscoveryApi.js
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,9 @@ | ||
/* | ||
* Copyright (c) 2022, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { createLdsTestWireAdapter } from '@salesforce/wire-service-jest-util'; | ||
|
||
export const getStories = createLdsTestWireAdapter(jest.fn()); |
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
8 changes: 8 additions & 0 deletions
8
src/lightning-stubs/communityMicrobatchingApi/communityMicrobatchingApi.js
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,8 @@ | ||
/* | ||
* Copyright (c) 2021, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
|
||
export const ingestRecord = jest.fn().mockResolvedValue(); |
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,7 @@ | ||
<!-- | ||
Copyright (c) 2018, salesforce.com, inc. | ||
All rights reserved. | ||
SPDX-License-Identifier: MIT | ||
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
--> | ||
<template></template> |
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,19 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class Confirm extends LightningElement { | ||
static open() { | ||
throw new Error( | ||
'The LightningConfirm documentation contains examples for mocking .open in Jest', | ||
); | ||
} | ||
@api label; | ||
@api message; | ||
@api theme; | ||
@api variant; | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/lightning-stubs/experienceMarketingIntegrationApi/experienceMarketingIntegrationApi.js
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,11 @@ | ||
/* | ||
* Copyright (c) 2021, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { createLdsTestWireAdapter } from '@salesforce/wire-service-jest-util'; | ||
|
||
export const getForm = createLdsTestWireAdapter(jest.fn()); | ||
export const saveForm = jest.fn(); | ||
export const submitForm = jest.fn(); |
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,7 @@ | ||
<!-- | ||
Copyright (c) 2018, salesforce.com, inc. | ||
All rights reserved. | ||
SPDX-License-Identifier: MIT | ||
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
--> | ||
<template></template> |
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 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class Flow extends LightningElement { | ||
@api flowApiName; | ||
@api flowFinishBehavior; | ||
@api flowInputVariables; | ||
@api flowInterviewId; | ||
@api resumeFlow() {} | ||
@api startFlow() {} | ||
} |
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,7 @@ | ||
<!-- | ||
Copyright (c) 2018, salesforce.com, inc. | ||
All rights reserved. | ||
SPDX-License-Identifier: MIT | ||
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
--> | ||
<template></template> |
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,20 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class Prompt extends LightningElement { | ||
static open() { | ||
throw new Error( | ||
'The LightningPrompt documentation contains examples for mocking .open in Jest', | ||
); | ||
} | ||
@api defaultValue; | ||
@api label; | ||
@api message; | ||
@api theme; | ||
@api variant; | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/lightning-stubs/serviceCloudVoiceToolkitApi/serviceCloudVoiceToolkitApi.html
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,7 @@ | ||
<!-- | ||
Copyright (c) 2018, salesforce.com, inc. | ||
All rights reserved. | ||
SPDX-License-Identifier: MIT | ||
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
--> | ||
<template></template> |
11 changes: 11 additions & 0 deletions
11
src/lightning-stubs/serviceCloudVoiceToolkitApi/serviceCloudVoiceToolkitApi.js
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,11 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class ServiceCloudVoiceToolkitApi extends LightningElement { | ||
@api updateNextBestActions() {} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/lightning-stubs/unstable_analyticsWavePrivateApi/analyticsWavePrivateApi.js
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,11 @@ | ||
/* | ||
* Copyright (c) 2021, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { createLdsTestWireAdapter } from '@salesforce/wire-service-jest-util'; | ||
|
||
export const executeQuery = createLdsTestWireAdapter(jest.fn()); | ||
|
||
export const getJwt = createLdsTestWireAdapter(jest.fn()); |
11 changes: 11 additions & 0 deletions
11
src/lightning-stubs/unstable_uiSearchApi/unstable_uiSearchApi.js
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,11 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
import { createLdsTestWireAdapter } from '@salesforce/wire-service-jest-util'; | ||
|
||
export const unstable_getSearchResults = createLdsTestWireAdapter(jest.fn()); | ||
export const unstable_getKeywordSearchResults = createLdsTestWireAdapter(jest.fn()); | ||
export const unstable_getSearchFilterOptions = createLdsTestWireAdapter(jest.fn()); |