UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

288 lines (128 loc) 12.8 kB
## [0.8.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.8.0...v0.8.1) (2025-04-23) ### Bug Fixes * Generic property is typed properly ([5f0f0e5](https://github.com/shko-online/ComponentFramework-Mock/commit/5f0f0e5768bd4ddc8d2ffc19a27f1e47bd895a60)) # [0.8.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.7.1...v0.8.0) (2025-03-31) ### Features * add support for PropertyMock (multiple types) ([2bc20c2](https://github.com/shko-online/ComponentFramework-Mock/commit/2bc20c23d9a3576cacf83e6f43ea5d0d29680bd9)) ## [0.7.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.7.0...v0.7.1) (2025-03-31) ### Bug Fixes * specify default type for different property mocks ([7abe891](https://github.com/shko-online/ComponentFramework-Mock/commit/7abe891fe54865c59b75ec132ee8bc1fffbd45fd)) # [0.7.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.6.5...v0.7.0) (2025-03-30) ### Features * added mock for context.utils.loadDependency ([a779d6f](https://github.com/shko-online/ComponentFramework-Mock/commit/a779d6f904d2751b6fd5c255a68cb6beecb6e0ae)) ## [0.6.5](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.6.4...v0.6.5) (2025-03-12) ### Bug Fixes * properly handling formatDecimal precision ([13a04b9](https://github.com/shko-online/ComponentFramework-Mock/commit/13a04b9777c8f37dd19776d6e78b20f28aac961a)) ## [0.6.4](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.6.3...v0.6.4) (2024-11-21) ### Bug Fixes * Updated dependencies ([6fdb824](https://github.com/shko-online/ComponentFramework-Mock/commit/6fdb824f4c4c14b53bd38f2ce02860bd738a7091)) ## [0.6.3](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.6.2...v0.6.3) (2024-05-10) ### Bug Fixes * return primaryIdAttribute on webapi retrieve ([95da7f2](https://github.com/shko-online/ComponentFramework-Mock/commit/95da7f2ac5135c2e22889035fe45af00ef87a757)) ## [0.6.2](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.6.1...v0.6.2) (2024-04-30) ### Bug Fixes * added more table metadata ([5f97640](https://github.com/shko-online/ComponentFramework-Mock/commit/5f976403214553c53400e66d7060577c6639af82)) ## [0.6.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.6.0...v0.6.1) (2024-04-27) ### Bug Fixes * fixed minor typings issues ([e1625e9](https://github.com/shko-online/ComponentFramework-Mock/commit/e1625e9c3a991ce4a2f902e059ab046478bf3f61)) # [0.6.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.5.0...v0.6.0) (2024-04-12) ### Features * implement UpdateValues ([66cc1a7](https://github.com/shko-online/ComponentFramework-Mock/commit/66cc1a702fc6f30cb16d30aaf4ede5ce743aa8fe)), closes [Shko-Online/ComponentFramework-Mock#1](https://github.com/Shko-Online/ComponentFramework-Mock/issues/1) # [0.5.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.4.2...v0.5.0) (2024-01-18) ### Bug Fixes * Multiple Components sharing the same properties ([6699727](https://github.com/shko-online/ComponentFramework-Mock/commit/66997277d11a724f0fa5a7ada90bf0024de20453)) ### Features * ComponentFrameworkMockOrchestrator ([cfa9e9f](https://github.com/shko-online/ComponentFramework-Mock/commit/cfa9e9f0410fc29c1314fa4b6d7ca7bb7ad5d78f)) * Exposed shared db on Orchestrator ([8dae1de](https://github.com/shko-online/ComponentFramework-Mock/commit/8dae1debe33c0e9f5db3fd694eaf6740eb5643bd)) * OrchestratorInput type ([e05a062](https://github.com/shko-online/ComponentFramework-Mock/commit/e05a06248ef164f344af6476c18c97531bbe6242)) ## [0.4.2](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.4.1...v0.4.2) (2024-01-14) ### Bug Fixes * Correctly set PrimaryImageAttribute ([92bdbb6](https://github.com/shko-online/ComponentFramework-Mock/commit/92bdbb6a03cbdadb7a091f5d90700169b9b3e09f)) ## [0.4.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.4.0...v0.4.1) (2023-12-29) ### Bug Fixes * properly managed metadata for number properties ([f9d07a3](https://github.com/shko-online/ComponentFramework-Mock/commit/f9d07a398ce1bee5f7fb149fa344dc175dace48d)) # [0.4.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.3.0...v0.4.0) (2023-12-27) ### Bug Fixes * added FluentDesignStateMock ([b166807](https://github.com/shko-online/ComponentFramework-Mock/commit/b166807ff8c9b7e0a1c456ec14ed87533d31b866)) ### Features * output only properties ([2c69d97](https://github.com/shko-online/ComponentFramework-Mock/commit/2c69d9777cbaaa7d692a83298034ec218acb2a3c)) ## [0.3.1-beta.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.3.0...v0.3.1-beta.1) (2023-12-22) ### Bug Fixes * added FluentDesignStateMock ([b166807](https://github.com/shko-online/ComponentFramework-Mock/commit/b166807ff8c9b7e0a1c456ec14ed87533d31b866)) # [0.3.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.2.0...v0.3.0) (2023-12-19) ### Bug Fixes * retrieve multiple by savedquery and userquery ([51103b7](https://github.com/shko-online/ComponentFramework-Mock/commit/51103b7d9fd2513a4a0a94cc49438adee0082c8d)) * simple retrieve multiple with fetchXml ([a7b9ef6](https://github.com/shko-online/ComponentFramework-Mock/commit/a7b9ef691118e128ef03f9df67c9396a2bf6835b)) ### Features * improved retrieveMultiple ([2b7bd6e](https://github.com/shko-online/ComponentFramework-Mock/commit/2b7bd6e1672bc0b43475557a6855faab68871eef)) * raising onOutputChanged even if outputs don't change ([49cac5d](https://github.com/shko-online/ComponentFramework-Mock/commit/49cac5ddc86ccea78104a30258d6c86caf7a2b58)) ## [0.2.1-beta.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.2.0...v0.2.1-beta.1) (2023-12-11) ### Bug Fixes * retrieve multiple by savedquery and userquery ([51103b7](https://github.com/shko-online/ComponentFramework-Mock/commit/51103b7d9fd2513a4a0a94cc49438adee0082c8d)) * simple retrieve multiple with fetchXml ([a7b9ef6](https://github.com/shko-online/ComponentFramework-Mock/commit/a7b9ef691118e128ef03f9df67c9396a2bf6835b)) # [0.2.0](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.26...v0.2.0) (2023-12-08) ### Bug Fixes * improved get attribute metadata and booleanattribute ([847c97e](https://github.com/shko-online/ComponentFramework-Mock/commit/847c97eef4741c2d13f66db0379b5b4a6cd20e59)) * improved metadata for optionsets ([c153c7e](https://github.com/shko-online/ComponentFramework-Mock/commit/c153c7e8ab968cd976d4a6231f03db07d93975e7)) ### Features * use alasql instead of lokijs ([d6c5b72](https://github.com/shko-online/ComponentFramework-Mock/commit/d6c5b725234c884f104cfb6b1301f442c6fae9ba)) # [0.2.0-beta.2](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.2.0-beta.1...v0.2.0-beta.2) (2023-12-05) ### Bug Fixes * improved metadata for optionsets ([c153c7e](https://github.com/shko-online/ComponentFramework-Mock/commit/c153c7e8ab968cd976d4a6231f03db07d93975e7)) # [0.2.0-beta.1](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.26...v0.2.0-beta.1) (2023-12-02) ### Features * use alasql instead of lokijs ([d6c5b72](https://github.com/shko-online/ComponentFramework-Mock/commit/d6c5b725234c884f104cfb6b1301f442c6fae9ba)) ## [0.1.26](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.25...v0.1.26) (2023-11-27) ### Bug Fixes * Added support for dataset CUD operations ([80cdb09](https://github.com/shko-online/ComponentFramework-Mock/commit/80cdb09ee0d596dd5c03bb04e8cd35b339a31c4d)) ## [0.1.25](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.24...v0.1.25) (2023-10-04) ### Bug Fixes * trackContainerResize for virtual components ([0ade007](https://github.com/shko-online/ComponentFramework-Mock/commit/0ade007462975e91ea0f302689df87f5b7476dcc)) ## [0.1.24](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.23...v0.1.24) (2023-10-01) ### Bug Fixes * improve ResizeObserver ([33b806c](https://github.com/shko-online/ComponentFramework-Mock/commit/33b806ce4040fb5edc31c6ccfc1a143d110d23b4)) ## [0.1.23](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.22...v0.1.23) (2023-03-03) ### Bug Fixes * Fixed a bug with virtual componenents not refreshing datasets ([eaf43af](https://github.com/shko-online/ComponentFramework-Mock/commit/eaf43af5a06895c6033797e2c7f3204bf21fcacf)) ## [0.1.22](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.21...v0.1.22) (2023-03-01) ### Bug Fixes * Fixed an issue with dataset refresh being called multiple times ([c087351](https://github.com/shko-online/ComponentFramework-Mock/commit/c087351dae64ab1a0331b6b83c54ee3111a84052)) ## [0.1.21](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.20...v0.1.21) (2023-02-27) ### Bug Fixes * Changing fullscreen correctly calls updateView ([76eaf02](https://github.com/shko-online/ComponentFramework-Mock/commit/76eaf02bec7a0a3390556d138eb5b0110e079b3d)) * Dataset should load with a delay ([cee23dd](https://github.com/shko-online/ComponentFramework-Mock/commit/cee23dde3425ff88787d64d1e2f1b8197e2ce16d)) ## [0.1.20](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.19...v0.1.20) (2023-02-25) ### Bug Fixes * Fixed some bugs with the in-memory DB ([ee2ef7a](https://github.com/shko-online/ComponentFramework-Mock/commit/ee2ef7a17156ba6cf86594271bab914d03a77574)) ## [0.1.19](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.18...v0.1.19) (2023-02-24) ### Bug Fixes * dataset autogenerates record id ([5ef9be8](https://github.com/shko-online/ComponentFramework-Mock/commit/5ef9be85bee4ad73b9e11bc6946aae797eb54c0d)) ## [0.1.18](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.17...v0.1.18) (2023-02-16) ### Bug Fixes * Correctly fixed enum types ([298b740](https://github.com/shko-online/ComponentFramework-Mock/commit/298b7406a9cfb9034fb9fa6c4c7dd40759de21b8)) ## [0.1.17](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.16...v0.1.17) (2023-02-16) ### Bug Fixes * Fixed embedded types for Enums ([d080122](https://github.com/shko-online/ComponentFramework-Mock/commit/d0801220371f8a453676f8e43ca221c66fad1c54)) ## [0.1.16](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.15...v0.1.16) (2023-02-15) ### Bug Fixes * added readme to npm package ([c53061c](https://github.com/shko-online/ComponentFramework-Mock/commit/c53061cc2936eafd5da5381664c892e51e3296fa)) ## [0.1.15](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.14...v0.1.15) (2023-02-12) ### Bug Fixes * fixed bundled types ([8552ffd](https://github.com/shko-online/ComponentFramework-Mock/commit/8552ffd7aa2ba7d0d964dfea4e47aa8786575a2e)) * Implemented WebAPI.create and delete ([9374860](https://github.com/shko-online/ComponentFramework-Mock/commit/9374860a8f2e21866f5a2f63324a2e5cede94866)) * WebApi RetrieveRecord ([61f1ca1](https://github.com/shko-online/ComponentFramework-Mock/commit/61f1ca18fda8879276f87df993d773ee2bbd5dac)) ## [0.1.14](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.13...v0.1.14) (2023-02-08) ### Bug Fixes * Added _SetValue helper function ([4a05133](https://github.com/shko-online/ComponentFramework-Mock/commit/4a051336f408a375ae9a9f04d3570ca123cd887c)) ## [0.1.13](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.12...v0.1.13) (2023-01-31) ### Bug Fixes * Fixed updatedProperties for Dates ([f9908b0](https://github.com/shko-online/ComponentFramework-Mock/commit/f9908b050559e3d115641f167782aff122b7f745)) ## [0.1.12](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.11...v0.1.12) (2022-12-29) ### Bug Fixes * Fixed types import/export ([9ca9d91](https://github.com/shko-online/ComponentFramework-Mock/commit/9ca9d919006f3a5213ea1e3434f3becf67a22d27)) ## [0.1.11](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.10...v0.1.11) (2022-12-29) ### Bug Fixes * Fixed types import/export ([a29943b](https://github.com/shko-online/ComponentFramework-Mock/commit/a29943b589cfd9939fc1c6b4a50088b45ed66de6)) ## [0.1.10](https://github.com/shko-online/ComponentFramework-Mock/compare/v0.1.9...v0.1.10) (2022-12-28) ### Bug Fixes * Fixed a problem with Lookup values on update ([76fc339](https://github.com/shko-online/ComponentFramework-Mock/commit/76fc3397d0f6d1c126a04aaaefbd3a48f07ce8a4))