Skip to content

Commit

Permalink
Add react router for navigation testing
Browse files Browse the repository at this point in the history
Implement getMeetingDetailsVerbose API (#2206)

* Init commit

* Add and modify e2e test cases

* Add check for new properties

* Add unit tests

* Add telemetry enum for getMeetingDetailsVerbose

* Added change files

* Updated interface description and changelog

* Update E2E test case versions

* Added additional unit and E2E tests

* Modified method to throw real errors

* Fixed build issues

* Updated type of pending properties, updated comment links

* Fixed unit test

* Update test case versions

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Change IOSSdkScheme to IOSSdkSchemeForTest to resolve future variable names conflict (#2280)

* update

* update

* update

Split iOS E2E Testing pipeline to two (#2278)

* Split iOS E2E Testing pipeline to two

* update

* update

* update

* update

* update

* update

* update

Removing beta tag - Vikramtha/update pages current app (#2283)

* Removed beta tage on Pages.currentApp namespace and APIs

* Added changefile

* Update change/@microsoft-teams-js-51421b73-089f-43de-9076-75563e1f064c.json

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Private MessageChannels: split capability and add dataLayer.getDataLayerPort (#2277)

Update Message Channel capability to support sub capabilities, add data layer capability with getDataLayerPort
---------

Co-authored-by: sumathin <sum_nat1@yahoo.com>
Co-authored-by: sumathin <sunatara@microsoft.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Exported Const Enum Backout (#2285)

* backed out all exported const enums

Add release yaml (#2274)

* add sdf release yaml

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Add description for pop-up auth window. (#2291)

* Update comment

* Update changefile

Adding API to support external app authenticate with Power Platform Connector Plugins (#2272)

* Adding PPC auth

* Adding PPCauth UTs

* adding change file

* Resolving comments

* Resolving comments

* Modify hasScriptTags function to handle encoded Input

* Modify hasScriptTags function to handle encoded Input

* updating default input

* Modify hasScriptTags function to handle encoded Input

* adding telemetry tag for ppc auth

* Removing pluginId and adding unit tests

* Changing url to string before passign to psotmessage

* Removing regualr expression for html entities

* Removing regualr expression for html entities

* Modifying comments

* Modifying comments

* Resolving comments

* Resolving comments

---------

Co-authored-by: Lakhveer Kaur <lakhveerkaur@microsoft.com>
Co-authored-by: Erin <erinha@microsoft.com>

Turn webStorage capability into a "real" capability (#2289)

* Webstorage becomes capability

* Update webstorage in test app

* Update webstorage test json

* Add changefile

* Test updates

* Test updates

* Final test updates

* Helpful util

* Empty json test file

Send `validMessageOrigins` to `parentWindow` for verification. (#2293)

Update webStorage.json to not be blank, but almost blank (#2294)

* Not blank, but almost blank

* Updated

Add webstorage E2E tests (#2295)

Publish android artifacts (#2284)

* Publish android artifacts

* Use 1ES publishing steps

* task names

* Use updated artifact location

* Add job attempt

Cleanup configuration files (#2296)

Added in new valid domains for Copilot Chat (#2287)

* Added in new valid domains for Copilot Chat

* Added in changefile

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Trharris/authenticate https (#2270)

* Restrict authentication.authenticate to only accept https urls

* Create @microsoft-teams-js-40968a44-8220-4162-a289-038e99f5bee3.json

* Updated based on PR feedback

* Updated to use new validation functions and added(?) support for URL encoded strings

* abstract out the auth code's use of the a tag and then add tests to make sure URL encoded partial urls work correctly

* Re-order imports

* Updated based on PR feedback

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Fixed incorrect API telemetry label for Pages_NavigateToApp API (#2299)

* Fix incorrect API telemetry label for Pages_NavigateToApp API

* update

* Update @microsoft-teams-js-d2040181-a9a1-42d2-9080-35acb3a380cd.json

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update sdf-release.yml for Azure Pipelines (#2292)

* Update sdf-release.yml for Azure Pipelines

* Update sdf-release.yml for Azure Pipelines

Update custom API test (#2282)

Co-authored-by: sthousto <sthousto@microsoft.com_odspmdb>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Upgrade `pnpm` to v9 (#2301)

* Initial commit

* Update ci

* Update ci

* remove deprecated sub dependencies

* Specify exact version in ci

Update .npmrc location in release helper scripts (#2303)

* Update .npmrc location

* Changefile

* Update @microsoft-teams-js-b63da2d9-3e02-4b83-9664-78aa8f49c713.json

* use new scripts for onebranch pipelines

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update the SDF release yaml (#2308)

* Use inline scripts

* Exclude _manifest artifact from version

* Whitespace

Removed importing from the entire public index.ts file (#2307)

* cleaned up some imports in the private folder

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Updated  and  e2e tests data in teams-js (#2311)

Add production pipeline YAML (#2310)

* add prod pipeline

* restrict branches for prod pipeline

* add DDL pipeline

update routes to properly describe the new page

Revert "update routes to properly describe the new page"

This reverts commit 7d8a4211b24171d4a1f0fe78e698340cc8099c24.

Removing beta tag - Vikramtha/update pages current app (#2283)

* Removed beta tage on Pages.currentApp namespace and APIs

* Added changefile

* Update change/@microsoft-teams-js-51421b73-089f-43de-9076-75563e1f064c.json

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Private MessageChannels: split capability and add dataLayer.getDataLayerPort (#2277)

Update Message Channel capability to support sub capabilities, add data layer capability with getDataLayerPort
---------

Co-authored-by: sumathin <sum_nat1@yahoo.com>
Co-authored-by: sumathin <sunatara@microsoft.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Exported Const Enum Backout (#2285)

* backed out all exported const enums

Add release yaml (#2274)

* add sdf release yaml

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Adding API to support external app authenticate with Power Platform Connector Plugins (#2272)

* Adding PPC auth

* Adding PPCauth UTs

* adding change file

* Resolving comments

* Resolving comments

* Modify hasScriptTags function to handle encoded Input

* Modify hasScriptTags function to handle encoded Input

* updating default input

* Modify hasScriptTags function to handle encoded Input

* adding telemetry tag for ppc auth

* Removing pluginId and adding unit tests

* Changing url to string before passign to psotmessage

* Removing regualr expression for html entities

* Removing regualr expression for html entities

* Modifying comments

* Modifying comments

* Resolving comments

* Resolving comments

---------

Co-authored-by: Lakhveer Kaur <lakhveerkaur@microsoft.com>
Co-authored-by: Erin <erinha@microsoft.com>

Turn webStorage capability into a "real" capability (#2289)

* Webstorage becomes capability

* Update webstorage in test app

* Update webstorage test json

* Add changefile

* Test updates

* Test updates

* Final test updates

* Helpful util

* Empty json test file

Send `validMessageOrigins` to `parentWindow` for verification. (#2293)

Update webStorage.json to not be blank, but almost blank (#2294)

* Not blank, but almost blank

* Updated

Add webstorage E2E tests (#2295)

Publish android artifacts (#2284)

* Publish android artifacts

* Use 1ES publishing steps

* task names

* Use updated artifact location

* Add job attempt

Cleanup configuration files (#2296)

Added in new valid domains for Copilot Chat (#2287)

* Added in new valid domains for Copilot Chat

* Added in changefile

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Trharris/authenticate https (#2270)

* Restrict authentication.authenticate to only accept https urls

* Create @microsoft-teams-js-40968a44-8220-4162-a289-038e99f5bee3.json

* Updated based on PR feedback

* Updated to use new validation functions and added(?) support for URL encoded strings

* abstract out the auth code's use of the a tag and then add tests to make sure URL encoded partial urls work correctly

* Re-order imports

* Updated based on PR feedback

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Fixed incorrect API telemetry label for Pages_NavigateToApp API (#2299)

* Fix incorrect API telemetry label for Pages_NavigateToApp API

* update

* Update @microsoft-teams-js-d2040181-a9a1-42d2-9080-35acb3a380cd.json

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update sdf-release.yml for Azure Pipelines (#2292)

* Update sdf-release.yml for Azure Pipelines

* Update sdf-release.yml for Azure Pipelines

Update custom API test (#2282)

Co-authored-by: sthousto <sthousto@microsoft.com_odspmdb>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Upgrade `pnpm` to v9 (#2301)

* Initial commit

* Update ci

* Update ci

* remove deprecated sub dependencies

* Specify exact version in ci

Update .npmrc location in release helper scripts (#2303)

* Update .npmrc location

* Changefile

* Update @microsoft-teams-js-b63da2d9-3e02-4b83-9664-78aa8f49c713.json

* use new scripts for onebranch pipelines

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update the SDF release yaml (#2308)

* Use inline scripts

* Exclude _manifest artifact from version

* Whitespace

Removed importing from the entire public index.ts file (#2307)

* cleaned up some imports in the private folder

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Updated  and  e2e tests data in teams-js (#2311)

Add production pipeline YAML (#2310)

* add prod pipeline

* restrict branches for prod pipeline

* add DDL pipeline

Revert "Revert "update routes to properly describe the new page""

This reverts commit 53cf9835527a57897af5925bcceea45f34555207.

add navigation onResume

Update pipeline source for DDL release (#2316)

updated next version (#2320)

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Add isBackgroundLoad property on page context (#2286)

* Add isBackgroundLoad for pageInfo context

* Added isBackgroundLoad property under page for app context.

The property indicates that the app is loading in the background as part
of an opt-in performance enhancement.

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Update pipeline source for DDL release (#2316)

updated next version (#2320)

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Add isBackgroundLoad property on page context (#2286)

* Add isBackgroundLoad for pageInfo context

* Added isBackgroundLoad property under page for app context.

The property indicates that the app is loading in the background as part
of an opt-in performance enhancement.

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>

remove unnecessary ref

remove old code

Create CODE_OF_CONDUCT.md (#2331)

Create SECURITY.md (#2332)

Add react router for navigation testing

Add react router for navigation testing

Removing beta tag - Vikramtha/update pages current app (#2283)

* Removed beta tage on Pages.currentApp namespace and APIs

* Added changefile

* Update change/@microsoft-teams-js-51421b73-089f-43de-9076-75563e1f064c.json

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Private MessageChannels: split capability and add dataLayer.getDataLayerPort (#2277)

Update Message Channel capability to support sub capabilities, add data layer capability with getDataLayerPort
---------

Co-authored-by: sumathin <sum_nat1@yahoo.com>
Co-authored-by: sumathin <sunatara@microsoft.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Exported Const Enum Backout (#2285)

* backed out all exported const enums

Add release yaml (#2274)

* add sdf release yaml

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Add description for pop-up auth window. (#2291)

* Update comment

* Update changefile

Adding API to support external app authenticate with Power Platform Connector Plugins (#2272)

* Adding PPC auth

* Adding PPCauth UTs

* adding change file

* Resolving comments

* Resolving comments

* Modify hasScriptTags function to handle encoded Input

* Modify hasScriptTags function to handle encoded Input

* updating default input

* Modify hasScriptTags function to handle encoded Input

* adding telemetry tag for ppc auth

* Removing pluginId and adding unit tests

* Changing url to string before passign to psotmessage

* Removing regualr expression for html entities

* Removing regualr expression for html entities

* Modifying comments

* Modifying comments

* Resolving comments

* Resolving comments

---------

Co-authored-by: Lakhveer Kaur <lakhveerkaur@microsoft.com>
Co-authored-by: Erin <erinha@microsoft.com>

Turn webStorage capability into a "real" capability (#2289)

* Webstorage becomes capability

* Update webstorage in test app

* Update webstorage test json

* Add changefile

* Test updates

* Test updates

* Final test updates

* Helpful util

* Empty json test file

Send `validMessageOrigins` to `parentWindow` for verification. (#2293)

Update webStorage.json to not be blank, but almost blank (#2294)

* Not blank, but almost blank

* Updated

Add webstorage E2E tests (#2295)

Publish android artifacts (#2284)

* Publish android artifacts

* Use 1ES publishing steps

* task names

* Use updated artifact location

* Add job attempt

Cleanup configuration files (#2296)

Added in new valid domains for Copilot Chat (#2287)

* Added in new valid domains for Copilot Chat

* Added in changefile

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Trharris/authenticate https (#2270)

* Restrict authentication.authenticate to only accept https urls

* Create @microsoft-teams-js-40968a44-8220-4162-a289-038e99f5bee3.json

* Updated based on PR feedback

* Updated to use new validation functions and added(?) support for URL encoded strings

* abstract out the auth code's use of the a tag and then add tests to make sure URL encoded partial urls work correctly

* Re-order imports

* Updated based on PR feedback

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Fixed incorrect API telemetry label for Pages_NavigateToApp API (#2299)

* Fix incorrect API telemetry label for Pages_NavigateToApp API

* update

* Update @microsoft-teams-js-d2040181-a9a1-42d2-9080-35acb3a380cd.json

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update sdf-release.yml for Azure Pipelines (#2292)

* Update sdf-release.yml for Azure Pipelines

* Update sdf-release.yml for Azure Pipelines

Update custom API test (#2282)

Co-authored-by: sthousto <sthousto@microsoft.com_odspmdb>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Upgrade `pnpm` to v9 (#2301)

* Initial commit

* Update ci

* Update ci

* remove deprecated sub dependencies

* Specify exact version in ci

Update .npmrc location in release helper scripts (#2303)

* Update .npmrc location

* Changefile

* Update @microsoft-teams-js-b63da2d9-3e02-4b83-9664-78aa8f49c713.json

* use new scripts for onebranch pipelines

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update the SDF release yaml (#2308)

* Use inline scripts

* Exclude _manifest artifact from version

* Whitespace

Removed importing from the entire public index.ts file (#2307)

* cleaned up some imports in the private folder

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Updated  and  e2e tests data in teams-js (#2311)

Add production pipeline YAML (#2310)

* add prod pipeline

* restrict branches for prod pipeline

* add DDL pipeline

update routes to properly describe the new page

Revert "update routes to properly describe the new page"

This reverts commit 7d8a4211b24171d4a1f0fe78e698340cc8099c24.

Revert "Revert "update routes to properly describe the new page""

This reverts commit 53cf9835527a57897af5925bcceea45f34555207.

add navigation onResume

Update pipeline source for DDL release (#2316)

updated next version (#2320)

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Add isBackgroundLoad property on page context (#2286)

* Add isBackgroundLoad for pageInfo context

* Added isBackgroundLoad property under page for app context.

The property indicates that the app is loading in the background as part
of an opt-in performance enhancement.

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

remove unnecessary ref

remove old code

update lock

Revert "update routes to properly describe the new page"

This reverts commit 7d8a4211b24171d4a1f0fe78e698340cc8099c24.

Private MessageChannels: split capability and add dataLayer.getDataLayerPort (#2277)

Update Message Channel capability to support sub capabilities, add data layer capability with getDataLayerPort
---------

Co-authored-by: sumathin <sum_nat1@yahoo.com>
Co-authored-by: sumathin <sunatara@microsoft.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Exported Const Enum Backout (#2285)

* backed out all exported const enums

Add release yaml (#2274)

* add sdf release yaml

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Adding API to support external app authenticate with Power Platform Connector Plugins (#2272)

* Adding PPC auth

* Adding PPCauth UTs

* adding change file

* Resolving comments

* Resolving comments

* Modify hasScriptTags function to handle encoded Input

* Modify hasScriptTags function to handle encoded Input

* updating default input

* Modify hasScriptTags function to handle encoded Input

* adding telemetry tag for ppc auth

* Removing pluginId and adding unit tests

* Changing url to string before passign to psotmessage

* Removing regualr expression for html entities

* Removing regualr expression for html entities

* Modifying comments

* Modifying comments

* Resolving comments

* Resolving comments

---------

Co-authored-by: Lakhveer Kaur <lakhveerkaur@microsoft.com>
Co-authored-by: Erin <erinha@microsoft.com>

Turn webStorage capability into a "real" capability (#2289)

* Webstorage becomes capability

* Update webstorage in test app

* Update webstorage test json

* Add changefile

* Test updates

* Test updates

* Final test updates

* Helpful util

* Empty json test file

Send `validMessageOrigins` to `parentWindow` for verification. (#2293)

Update webStorage.json to not be blank, but almost blank (#2294)

* Not blank, but almost blank

* Updated

Add webstorage E2E tests (#2295)

Publish android artifacts (#2284)

* Publish android artifacts

* Use 1ES publishing steps

* task names

* Use updated artifact location

* Add job attempt

Cleanup configuration files (#2296)

Added in new valid domains for Copilot Chat (#2287)

* Added in new valid domains for Copilot Chat

* Added in changefile

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Trharris/authenticate https (#2270)

* Restrict authentication.authenticate to only accept https urls

* Create @microsoft-teams-js-40968a44-8220-4162-a289-038e99f5bee3.json

* Updated based on PR feedback

* Updated to use new validation functions and added(?) support for URL encoded strings

* abstract out the auth code's use of the a tag and then add tests to make sure URL encoded partial urls work correctly

* Re-order imports

* Updated based on PR feedback

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Fixed incorrect API telemetry label for Pages_NavigateToApp API (#2299)

* Fix incorrect API telemetry label for Pages_NavigateToApp API

* update

* Update @microsoft-teams-js-d2040181-a9a1-42d2-9080-35acb3a380cd.json

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update sdf-release.yml for Azure Pipelines (#2292)

* Update sdf-release.yml for Azure Pipelines

* Update sdf-release.yml for Azure Pipelines

Update custom API test (#2282)

Co-authored-by: sthousto <sthousto@microsoft.com_odspmdb>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Upgrade `pnpm` to v9 (#2301)

* Initial commit

* Update ci

* Update ci

* remove deprecated sub dependencies

* Specify exact version in ci

Update .npmrc location in release helper scripts (#2303)

* Update .npmrc location

* Changefile

* Update @microsoft-teams-js-b63da2d9-3e02-4b83-9664-78aa8f49c713.json

* use new scripts for onebranch pipelines

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update the SDF release yaml (#2308)

* Use inline scripts

* Exclude _manifest artifact from version

* Whitespace

Removed importing from the entire public index.ts file (#2307)

* cleaned up some imports in the private folder

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Updated  and  e2e tests data in teams-js (#2311)

Add production pipeline YAML (#2310)

* add prod pipeline

* restrict branches for prod pipeline

* add DDL pipeline

Revert "Revert "update routes to properly describe the new page""

This reverts commit 53cf9835527a57897af5925bcceea45f34555207.

add navigation onResume

Update pipeline source for DDL release (#2316)

updated next version (#2320)

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Add isBackgroundLoad property on page context (#2286)

* Add isBackgroundLoad for pageInfo context

* Added isBackgroundLoad property under page for app context.

The property indicates that the app is loading in the background as part
of an opt-in performance enhancement.

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Update pipeline source for DDL release (#2316)

updated next version (#2320)

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Add isBackgroundLoad property on page context (#2286)

* Add isBackgroundLoad for pageInfo context

* Added isBackgroundLoad property under page for app context.

The property indicates that the app is loading in the background as part
of an opt-in performance enhancement.

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>

remove unnecessary ref

remove old code

Create CODE_OF_CONDUCT.md (#2331)

Create SECURITY.md (#2332)

Add react router for navigation testing

Add react router for navigation testing

Removing beta tag - Vikramtha/update pages current app (#2283)

* Removed beta tage on Pages.currentApp namespace and APIs

* Added changefile

* Update change/@microsoft-teams-js-51421b73-089f-43de-9076-75563e1f064c.json

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Private MessageChannels: split capability and add dataLayer.getDataLayerPort (#2277)

Update Message Channel capability to support sub capabilities, add data layer capability with getDataLayerPort
---------

Co-authored-by: sumathin <sum_nat1@yahoo.com>
Co-authored-by: sumathin <sunatara@microsoft.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Exported Const Enum Backout (#2285)

* backed out all exported const enums

Add release yaml (#2274)

* add sdf release yaml

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Add description for pop-up auth window. (#2291)

* Update comment

* Update changefile

Adding API to support external app authenticate with Power Platform Connector Plugins (#2272)

* Adding PPC auth

* Adding PPCauth UTs

* adding change file

* Resolving comments

* Resolving comments

* Modify hasScriptTags function to handle encoded Input

* Modify hasScriptTags function to handle encoded Input

* updating default input

* Modify hasScriptTags function to handle encoded Input

* adding telemetry tag for ppc auth

* Removing pluginId and adding unit tests

* Changing url to string before passign to psotmessage

* Removing regualr expression for html entities

* Removing regualr expression for html entities

* Modifying comments

* Modifying comments

* Resolving comments

* Resolving comments

---------

Co-authored-by: Lakhveer Kaur <lakhveerkaur@microsoft.com>
Co-authored-by: Erin <erinha@microsoft.com>

Turn webStorage capability into a "real" capability (#2289)

* Webstorage becomes capability

* Update webstorage in test app

* Update webstorage test json

* Add changefile

* Test updates

* Test updates

* Final test updates

* Helpful util

* Empty json test file

Send `validMessageOrigins` to `parentWindow` for verification. (#2293)

Update webStorage.json to not be blank, but almost blank (#2294)

* Not blank, but almost blank

* Updated

Add webstorage E2E tests (#2295)

Publish android artifacts (#2284)

* Publish android artifacts

* Use 1ES publishing steps

* task names

* Use updated artifact location

* Add job attempt

Cleanup configuration files (#2296)

Added in new valid domains for Copilot Chat (#2287)

* Added in new valid domains for Copilot Chat

* Added in changefile

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Trharris/authenticate https (#2270)

* Restrict authentication.authenticate to only accept https urls

* Create @microsoft-teams-js-40968a44-8220-4162-a289-038e99f5bee3.json

* Updated based on PR feedback

* Updated to use new validation functions and added(?) support for URL encoded strings

* abstract out the auth code's use of the a tag and then add tests to make sure URL encoded partial urls work correctly

* Re-order imports

* Updated based on PR feedback

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Fixed incorrect API telemetry label for Pages_NavigateToApp API (#2299)

* Fix incorrect API telemetry label for Pages_NavigateToApp API

* update

* Update @microsoft-teams-js-d2040181-a9a1-42d2-9080-35acb3a380cd.json

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update sdf-release.yml for Azure Pipelines (#2292)

* Update sdf-release.yml for Azure Pipelines

* Update sdf-release.yml for Azure Pipelines

Update custom API test (#2282)

Co-authored-by: sthousto <sthousto@microsoft.com_odspmdb>
Co-authored-by: Trevor Harris <trharris@microsoft.com>

Upgrade `pnpm` to v9 (#2301)

* Initial commit

* Update ci

* Update ci

* remove deprecated sub dependencies

* Specify exact version in ci

Update .npmrc location in release helper scripts (#2303)

* Update .npmrc location

* Changefile

* Update @microsoft-teams-js-b63da2d9-3e02-4b83-9664-78aa8f49c713.json

* use new scripts for onebranch pipelines

---------

Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

Update the SDF release yaml (#2308)

* Use inline scripts

* Exclude _manifest artifact from version

* Whitespace

Removed importing from the entire public index.ts file (#2307)

* cleaned up some imports in the private folder

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>

Updated  and  e2e tests data in teams-js (#2311)

Add production pipeline YAML (#2310)

* add prod pipeline

* restrict branches for prod pipeline

* add DDL pipeline

update routes to properly describe the new page

Revert "update routes to properly describe the new page"

This reverts commit 7d8a4211b24171d4a1f0fe78e698340cc8099c24.

Revert "Revert "update routes to properly describe the new page""

This reverts commit 53cf9835527a57897af5925bcceea45f34555207.

add navigation onResume

Update pipeline source for DDL release (#2316)

updated next version (#2320)

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

Add isBackgroundLoad property on page context (#2286)

* Add isBackgroundLoad for pageInfo context

* Added isBackgroundLoad property under page for app context.

The property indicates that the app is loading in the background as part
of an opt-in performance enhancement.

---------

Co-authored-by: jadahiya-MSFT <95651173+jadahiya-MSFT@users.noreply.github.com>

Cleanup for release 2.23.0 (#2318)

* Releasing 2.23.0 (#2309)

* Releasing 2.23.0

* Updated CHANGELOG

* Added changefile

Trharris/uninitialize fix (#2319)

* clear telemetryPort and dataLayerPort every time app._uninitialize is called

* Create @microsoft-teams-js-ace1fe2b-0c05-48f6-b3b4-bdecfe1fb665.json

Adding dialogParentComm to test app (#2315)

* Adding dialogParentComm to test app

* nit fix

* nit changes

* fixing e2e

Fixing e2e for dialog-parent communication (#2326)

Adding UUIDs to MessageRequests and MessageResponses (#2240)

* Adding UUIDs to MessageRequests and MessageResponses

* Committing changefile

* Added in MessageID and MessageUUID types, added in testing for UUID communication and id as numbers communication

* Changing waitForResponse to have input of type MessageUUID

* Updated references to use MessageID and MessageUUID

* Fixed lint error

* Created BaseUUID type

* Added validation for uuid to handleParentMessage

* Only validate UUIDs if there is one

* Added in MessageUUID object

* Testing new changes to UUID

* Added in serialization of objects

* Updated to address PR feedback

* Added comment describing MessageID vs MessageUUID

* Added in helper function

* Removing comment since map.delete was verified to work correctly

* Moved uuid object to interfaces.ts for more general use

* Replaced Function in Map declarations

* Updated to use serialized and deserialized Message Response objects

* Added in unit tests for UUID class

* Fixed lint error

* Updating tests

* Moved uuid object to new file uuidObject.ts, edited changefile verbage

* Added in unit tests for testing callback map deletion and functionality

* Removed unnused import

* Added in logging for when a callbackID fails to be generated

* Fixed a typo in communication spec

* Updated serialization and deserialization and uuid toString function

* Reverted toString() change due to compatibility issues

* Removing unnecessary map clear due to already clearing in uninitialize and removeHandlers

* Fixed an issue with removing message ids

* Reverting uuid back to private

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
Co-authored-by: AE ( ͡ಠ ʖ̯ ͡ಠ) <36546967+AE-MS@users.noreply.github.com>

cleanup up more imports (#2324)

remove unnecessary ref

remove old code

update lock
  • Loading branch information
alexneyman-MSFT committed May 20, 2024
1 parent 5b70a8b commit bc650e9
Show file tree
Hide file tree
Showing 99 changed files with 13,565 additions and 8,020 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 8.15.6
version: 9.0.6
run_install: false

- name: Get pnpm store directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4.1.1

- name: Install pnpm
run: npm install -g pnpm@7.30.1
run: npm install -g pnpm@9.0.6

- name: Install dependencies
run: pnpm install
Expand Down
6 changes: 3 additions & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
endOfLine: 'lf',
printWidth: 120,
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
endOfLine: 'lf',
};
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"orta.vscode-jest",
"streetsidesoftware.code-spell-checker"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
Expand Down
11 changes: 5 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"cSpell.words": ["adal", "uninitialize"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"javascript.preferences.quoteStyle": "single",
"jest.jestCommandLine": "pnpm test -- --",
"jest.runMode": { "runAllTestsOnStartup": true, "type": "watch" },
"search.exclude": {
"**/dist": true
},
"typescript.tsdk": "./node_modules/typescript/lib",
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.quoteStyle": "single",
"prettier.singleQuote": true,
"cSpell.words": ["adal", "uninitialize"],
"jest.jestCommandLine": "pnpm test -- --",
"jest.autoRun": { "watch": "true", "onStartup": ["all-tests"] }
"typescript.tsdk": "./node_modules/typescript/lib"
}
10 changes: 10 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
- Employees can reach out at [aka.ms/opensource/moderation-support](https://aka.ms/opensource/moderation-support)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The following guide references steps to build the entire project including Teams

Please look through our [Contributing Guide](CONTRIBUTING.md) for important details on how to submit a pull request and contribute to this repository.

NOTE: Make sure `pnpm@7.30.1` or greater is installed as a global tool, by running `npm install -g pnpm`.
NOTE: Make sure `pnpm@9.0.6` or greater is installed as a global tool, by running `npm install -g pnpm@9.0.6`.

TIP: whenever building or testing the Teams client library, you can run `pnpm build` or `pnpm test` from the `packages/teams-js` directory.

Expand Down
41 changes: 41 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->

## Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).

If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.

## Preferred Languages

We prefer all communications to be in English.

## Policy

Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).

<!-- END MICROSOFT SECURITY.MD BLOCK -->
2 changes: 1 addition & 1 deletion apps/ssr-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start"
},
"dependencies": {
"next": "^14.0.3",
"next": "^14.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
10 changes: 10 additions & 0 deletions apps/teams-test-app/e2e-test-data/dialog.card.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Dialog Card",
"platforms": "Web",
"checkIsSupported": {
"domElementName": "checkCapabilityDialogAdaptiveCard",
"toggleId": "dialogCardToggle",
"expectedOutput": "Dialog Adaptive Card module is not supported"
},
"testCases": []
}
10 changes: 10 additions & 0 deletions apps/teams-test-app/e2e-test-data/dialog.update.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Dialog Update",
"platforms": "Web",
"checkIsSupported": {
"domElementName": "checkCapabilityResizeDialog",
"toggleId": "dialogUpdateToggle",
"expectedOutput": "Dialog.update module is not supported"
},
"testCases": []
}
10 changes: 10 additions & 0 deletions apps/teams-test-app/e2e-test-data/dialog.url.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Dialog Url",
"platforms": "Web",
"checkIsSupported": {
"domElementName": "checkCapabilityDialogUrl",
"toggleId": "dialogUrlToggle",
"expectedOutput": "Dialog Url module is not supported"
},
"testCases": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Dialog Url ParentCommunication",
"platforms": "Web",
"version": ">2.23.0",
"checkIsSupported": {
"domElementName": "checkCapabilityDialogParentCommunication",
"toggleId": "dialogParentCommunicationToggle",
"expectedOutput": "Dialog parent communication module is not supported"
},
"testCases": []
}
17 changes: 17 additions & 0 deletions apps/teams-test-app/e2e-test-data/meeting.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,28 @@
},
{
"title": "getMeetingDetails API Call - Success",
"version": "<=2.22.0",
"type": "callResponse",
"boxSelector": "#box_getMeetingDetails",
"expectedAlertValue": "getMeetingDetails called",
"expectedTestAppValue": "{\"details\":{\"id\":\"testDetailsId\",\"scheduledStartTime\":\"testStartTime\",\"scheduledEndTime\":\"testEndTime\",\"joinUrl\":\"testJoinUrl\",\"title\":\"testTitle\",\"type\":\"Unknown\"},\"conversation\":{\"id\":\"testConversationId\"},\"organizer\":{\"id\":\"testOrganizerId\",\"tenantId\":\"testTenantId\"}}"
},
{
"title": "getMeetingDetails API Call - Success",
"version": ">2.22.0",
"type": "callResponse",
"boxSelector": "#box_getMeetingDetails",
"expectedAlertValue": "getMeetingDetails called with shouldGetVerboseDetails: undefined",
"expectedTestAppValue": "{\"details\":{\"id\":\"testDetailsId\",\"scheduledStartTime\":\"testStartTime\",\"scheduledEndTime\":\"testEndTime\",\"joinUrl\":\"testJoinUrl\",\"title\":\"testTitle\",\"type\":\"Unknown\"},\"conversation\":{\"id\":\"testConversationId\"},\"organizer\":{\"id\":\"testOrganizerId\",\"tenantId\":\"testTenantId\"}}"
},
{
"title": "getMeetingDetailsVerbose API Call - Success",
"version": ">2.22.0",
"type": "callResponse",
"boxSelector": "#box_getMeetingDetailsVerbose",
"expectedAlertValue": "getMeetingDetails called with shouldGetVerboseDetails: true",
"expectedTestAppValue": "{\"details\":{\"scheduledStartTime\":\"testStartTime\",\"joinUrl\":\"testJoinUrl\",\"type\":\"oneOnOneCall\",\"originalCaller\":\"testCallerId\",\"dialedEntity\":\"testDnis\",\"trackingId\":\"testTrackingId\"},\"conversation\":{\"id\":\"testConversationId\"},\"organizer\":{\"id\":\"testOrganizerId\",\"tenantId\":\"testTenantId\"}}"
},
{
"title": "getAuthenticationTokenForAnonymousUser API Call - Success",
"type": "callResponse",
Expand Down
13 changes: 0 additions & 13 deletions apps/teams-test-app/e2e-test-data/messageChannels.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,5 @@
"web": ">=2.12.0"
},
"testCases": [
{
"title": "getTelemetryPort API Call - Success",
"type": "callResponse",
"boxSelector": "#box_checkTelemetryPort",
"expectedTestAppValue": "Telemetry port: [object MessagePort]"
},
{
"title": "getTelemetryPort API Call - Failure (Not MS Owned)",
"type": "callResponse",
"boxSelector": "#box_checkTelemetryPort",
"testUrlParams": [["appDefOverrides", "{\"isMicrosoftOwned\": false}"]],
"expectedTestAppValue": "Error: {\"errorCode\":500,\"message\":\"App does not have the required permissions for this operation\"}"
}
]
}
5 changes: 2 additions & 3 deletions apps/teams-test-app/e2e-test-data/otherAppStateChange.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
"type": "registerAndRaiseEvent",
"boxSelector": "#box_otherAppStateChange_registerInstallHandler",
"eventName": "otherApp.install",
"eventData": [
"eventData":
{
"appIds": ["123", "456"]
}
],
},
"expectedTestAppValue": "received"
},
{
Expand Down
15 changes: 6 additions & 9 deletions apps/teams-test-app/e2e-test-data/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
"type": "registerAndRaiseEvent",
"boxSelector": "#box_search_registerHandlers",
"eventName": "queryChange",
"eventData": [
"eventData":
{
"searchTerm": "Hello, world"
}
],
},
"expectedTestAppValue": "Update your application with the changed search query: Hello, world"
},
{
Expand All @@ -28,11 +27,10 @@
"type": "registerAndRaiseEvent",
"boxSelector": "#box_search_registerHandlers",
"eventName": "queryExecute",
"eventData": [
"eventData":
{
"searchTerm": "Hello, world"
}
],
},
"expectedTestAppValue": "Update your application to handle an executed search result: Hello, world"
},
{
Expand All @@ -41,11 +39,10 @@
"type": "registerAndRaiseEvent",
"boxSelector": "#box_search_registerHandlers",
"eventName": "queryClose",
"eventData": [
"eventData":
{
"searchTerm": "Hello, world"
}
],
},
"expectedTestAppValue": "Update your application to handle the search experience being closed. Last query: Hello, world"
},
{
Expand Down
21 changes: 21 additions & 0 deletions apps/teams-test-app/e2e-test-data/webStorage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "WebStorage",
"platforms": "Web",
"version": ">2.22.0",
"hostSdkVersion": {
"web": ">2.16.0"
},
"checkIsSupported": {
"domElementName": "checkWebStorageCapability",
"expectedOutput": "webStorage is not supported"
},
"testCases": [
{
"title": "isWebStorageClearedOnUserLogOut function Call - Success",
"type": "callResponse",
"boxSelector": "#box_isWebStorageClearedOnUserLogOut",
"expectedAlertValue": "isWebStorageClearedOnUserLogOut called",
"expectedTestAppValue": "webStorage is cleared on user log out"
}
]
}
4 changes: 2 additions & 2 deletions apps/teams-test-app/index_cdn.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<script
src="https://res.cdn.office.net/teams-js/2.22.0/js/MicrosoftTeams.min.js"
integrity="sha384-WSG/sWulIv7rel5TnFlH8JTpxl2OxzZh9Lux2mIzBFiTRLFvMBeFv9VURu/3vQdx"
src="https://res.cdn.office.net/teams-js/2.23.0/js/MicrosoftTeams.min.js"
integrity="sha384-08XJvrutoSVYTA8PQeUgetTKn8B7JE73C5BdAfWnHZ5WnSFFQO6g1FGmSqxsrAzb"
crossorigin="anonymous"
></script>
<div id="root"></div>
Expand Down
5 changes: 3 additions & 2 deletions apps/teams-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"author": "Microsoft Teams",
"description": "Teams Test App utilizing Teams JavaScript client SDK to test Hosts",
"version": "2.22.0",
"version": "2.23.0",
"scripts": {
"build": "pnpm build:bundle",
"build:bundle": "pnpm lint && webpack",
Expand All @@ -21,7 +21,8 @@
},
"dependencies": {
"react": "^17.0.1",
"react-dom": "^17.0.1"
"react-dom": "^17.0.1",
"react-router-dom": "^6.21.3"
},
"devDependencies": {
"@microsoft/teams-js": "workspace:*"
Expand Down
11 changes: 6 additions & 5 deletions apps/teams-test-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './App.css';

import { app, appInitialization, initialize } from '@microsoft/teams-js';
import React, { ReactElement } from 'react';
import { BrowserRouter, Route, Routes } from 'react-router-dom';

import AppAPIs from './components/AppAPIs';
import AppEntityAPIs from './components/AppEntityAPIs';
Expand All @@ -19,6 +20,7 @@ import DialogCardBotAPIs from './components/DialogCardBotAPIs';
import DialogUpdateAPIs from './components/DialogUpdateAPIs';
import DialogUrlAPIs from './components/DialogUrlAPIs';
import DialogUrlBotAPIs from './components/DialogUrlBotAPIs';
import DialogUrlParentCommunicationAPIs from './components/DialogUrlParentCommunicationAPIs';
import GeoLocationAPIs from './components/GeoLocationAPIs';
import Links from './components/Links';
import LocationAPIs from './components/LocationAPIs';
Expand Down Expand Up @@ -60,10 +62,8 @@ import TeamsCoreAPIs from './components/TeamsCoreAPIs';
import ThirdPartyCloudStorageAPIs from './components/ThirdPartyCloudStorageAPIs';
import CookieAccessComponent from './components/ThirdPatryCookies';
import { isTestBackCompat } from './components/utils/isTestBackCompat';
import Version from './components/Version';
import VideoAPIs from './components/VideoEffectsApis';
import VisualMediaAPIs from './components/VisualMediaAPIs';
import WebStorageAPIs from './components/WebStorageAPIs';
import SecondRoute from './pages/SecondRoute';
import TeamsTestApp from './pages/TeamsTestApp';

const urlParams = new URLSearchParams(window.location.search);

Expand Down Expand Up @@ -147,8 +147,9 @@ const App = (): ReactElement => {
<DialogCardAPIs />
<DialogCardBotAPIs />
<DialogUpdateAPIs />
<DialogUrlAPIs />
<DialogUrlAPIs childWindowRef={dialogWindowRef} />
<DialogUrlBotAPIs />
<DialogUrlParentCommunicationAPIs childWindowRef={dialogWindowRef} />
<ExternalAppAuthenticationAPIs />
<ExternalAppCardActionsAPIs />
<ExternalAppCommandsAPIs />
Expand Down

0 comments on commit bc650e9

Please sign in to comment.