Summary:
This diff makes `LazyView` conform to `LeafElement` as long as `ViewType` is a `LeafElement`.
This way so that we can pass `LazyView` to `LeftElement` directly, instead of having to call `.loadIfNeeded`.
Differential Revision: D90431927
fbshipit-source-id: d891d1ee736889f6d4ec26b9a111994c6c57c13b
Summary: Added unit tests to `LazyView` so that we have more coverage.
Differential Revision: D90432337
fbshipit-source-id: 83701ef8b15fc7b457945d41cc385f992ab0c4b7
Summary: Some of the test files have typos, fixed.
Reviewed By: D3migod
Differential Revision: D89725386
fbshipit-source-id: d19e008a6aa49a81da6aedcfc8c02e1d07e44b2d
Summary: The previous description may have implied that QuickLayout is already widely adopted throughout Instagram, which isn't accurate. The updated wording provides a clearer and more honest message: QuickLayout is the recommended approach moving forward, but it does not exaggerate its current usage. This helps set realistic expectations: QuickLayout is the preferred solution, yet, due to the scale of Instagram’s codebase, a complete migration will take time.
Reviewed By: minmkim, saadhzahid
Differential Revision: D88381324
fbshipit-source-id: c0d2c6e0b743417f18f85e9018bb05d02de6a8a9
Summary: People have reported to me that Devmate often uses .applyFrame when using QuickLayout. However, it's against the recommendation. I updated the docs so that it's even more clear.
Differential Revision: D87983350
fbshipit-source-id: f7dd2c18a5e4de9c8b671447c9b845cadeaba4d1
Summary: I noticed there was a mismatch between the diagrams and the code samples--Resolved.
Differential Revision: D87924557
fbshipit-source-id: e49c7fc633891a6d340808eca1a375f95e83616f
Summary:
Updated the `js-yaml` dependency from version 4.1.0 to ^4.1.1 to address a known security vulnerability. The package was added as a direct dependency to ensure explicit control over the version and allow future patch and minor version updates.
This change affects the QuickLayout documentation site which uses Docusaurus. The semver range (^4.1.1) ensures that future patch versions (4.1.2, 4.1.3, etc.) and minor versions (4.2.0, 4.3.0, etc.) will be automatically picked up while preventing breaking changes from major version updates.
Reviewed By: saadhzahid
Differential Revision: D87346632
fbshipit-source-id: 0ba9971a8386264b6ef8cf4fb3c2c0cf06f8e8c1
Summary:
The 3P Library Vulnerability Remediation Team is dedicated to remediating high-risk external libraries at Meta using both manual and automated processes. Older versions of this library have been identified as risky, and this diff stack is intended to upgrade the library to a recommended version.
We kindly request your help with the diff review. Please commandeer this diff stack if specific merges need to be added or if there are any build or dependency failures.
Asset Name: asset://code.third_party_library/fbsource/fbobjc%2FLibraries%2FMobileUI%2FQuickLayout%2Fdocs%2Fyarn.lock%23pkg:npm%2Fdom-iterator@1.0.0
Asset Version: 1.0.0
Asset Vulnerabilities:
CVE-2024-21541, CWEs: Improper Control of Generation of Code ('Code Injection')
Version to upgrade to: 1.0.1
Additional Info: This diff contains updated yarn files and changes to update vulnerable package. As a part of this diff performed below steps
update resolutions section with recommended version
run yarn install
revert changes in resolutions section
run yarn install
Reviewed By: ide-2
Differential Revision: D87274669
fbshipit-source-id: ed5fff58404052f259cedddb9a9b8f09b158aa5f