Skip to content

Commit

Permalink
Cut Website Documentation for RNW v0.73 (#903)
Browse files Browse the repository at this point in the history
## Description

### Why
Update website for RNW v0.73. 
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/903)
  • Loading branch information
chiaramooney authored Dec 8, 2023
1 parent 47b701a commit 28ba571
Show file tree
Hide file tree
Showing 27 changed files with 1,669 additions and 67 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Remember to call `react-native init` from the place you want your project direct

<!-- 1. For the next version (i.e. in docs/getting-started.md) use "nightly" -->
<!-- 2. For the latest stable version in versioned_docs use "latest" -->
<!-- 3. For older stable versions use the stable tag name, i.e. "0.72-stable" -->
<!-- 3. For older stable versions use the stable tag name, i.e. "0.73-stable" -->

<!-- See https://www.npmjs.com/package/react-native?activeTab=versions for the RN version tags. -->

Expand Down
16 changes: 16 additions & 0 deletions docs/native-api/AccessibilityStateCheckedValue-api-windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
id: AccessibilityStateCheckedValue
title: AccessibilityStateCheckedValue
---

Kind: `enum`

| Name | Value | Description |
|--|--|--|
|`Unchecked` | 0x0 | |
|`Checked` | 0x1 | |
|`Mixed` | 0x2 | |


## Referenced by
- [`DynamicAutomationProperties`](DynamicAutomationProperties)
8 changes: 3 additions & 5 deletions docs/native-api/AccessibilityStates-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Kind: `enum`
|`Selected` | 0x0 | |
|`Disabled` | 0x1 | |
|`Checked` | 0x2 | |
|`Unchecked` | 0x3 | |
|`Busy` | 0x4 | |
|`Expanded` | 0x5 | |
|`Collapsed` | 0x6 | |
|`CountStates` | 0x7 | |
|`Busy` | 0x3 | |
|`Expanded` | 0x4 | |
|`CountStates` | 0x5 | |
30 changes: 2 additions & 28 deletions docs/native-api/DynamicAutomationProperties-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ Kind: `class`
### AccessibilityStateCheckedProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `AccessibilityStateCheckedProperty`

### AccessibilityStateCollapsedProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `AccessibilityStateCollapsedProperty`

### AccessibilityStateDisabledProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `AccessibilityStateDisabledProperty`

Expand All @@ -38,9 +35,6 @@ Kind: `class`
### AccessibilityStateSelectedProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `AccessibilityStateSelectedProperty`

### AccessibilityStateUncheckedProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `AccessibilityStateUncheckedProperty`

### AccessibilityValueMaxProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `AccessibilityValueMaxProperty`

Expand Down Expand Up @@ -82,12 +76,7 @@ Kind: `class`


### GetAccessibilityStateChecked
`static` bool **`GetAccessibilityStateChecked`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)



### GetAccessibilityStateCollapsed
`static` bool **`GetAccessibilityStateCollapsed`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)
`static` [`AccessibilityStateCheckedValue`](AccessibilityStateCheckedValue) **`GetAccessibilityStateChecked`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)



Expand All @@ -106,11 +95,6 @@ Kind: `class`



### GetAccessibilityStateUnchecked
`static` bool **`GetAccessibilityStateUnchecked`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)



### GetAccessibilityValueMax
`static` double **`GetAccessibilityValueMax`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)

Expand Down Expand Up @@ -157,12 +141,7 @@ Kind: `class`


### SetAccessibilityStateChecked
`static` void **`SetAccessibilityStateChecked`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element, bool value)



### SetAccessibilityStateCollapsed
`static` void **`SetAccessibilityStateCollapsed`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element, bool value)
`static` void **`SetAccessibilityStateChecked`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element, [`AccessibilityStateCheckedValue`](AccessibilityStateCheckedValue) value)



Expand All @@ -181,11 +160,6 @@ Kind: `class`



### SetAccessibilityStateUnchecked
`static` void **`SetAccessibilityStateUnchecked`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element, bool value)



### SetAccessibilityValueMax
`static` void **`SetAccessibilityValueMax`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element, double value)

Expand Down
2 changes: 1 addition & 1 deletion docs/native-api/IRedBoxHandler-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MyRedBoxHandler : IRedBoxHandler
}

public void ShowNewError(IRedBoxErrorInfo info, RedBoxErrorType type) {
// Dont report non-fatal errors (optional)
// Do not report non-fatal errors (optional)
if (type != RedBoxErrorType.JavaScriptSoft)
ReportErrorToMyErrorReportingSystem(info, type);

Expand Down
12 changes: 10 additions & 2 deletions docs/native-api/QuirkSettings-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ By default `react-native-windows` will handle various back events and forward th




### SetMapWindowDeactivatedToAppStateInactive
`static` void **`SetMapWindowDeactivatedToAppStateInactive`**([`ReactInstanceSettings`](ReactInstanceSettings) settings, bool value)

Expand Down Expand Up @@ -65,14 +64,23 @@ When running multiple windows from a single UI thread, focusing a native view ca



### SetUseRuntimeScheduler
`static` void **`SetUseRuntimeScheduler`**([`ReactInstanceSettings`](ReactInstanceSettings) settings, bool value)

> **EXPERIMENTAL**
By default `react-native-windows` will use the new RuntimeScheduler.Setting this to false will revert the behavior to previous scheduling logic.



### SetUseWebFlexBasisBehavior
`static` void **`SetUseWebFlexBasisBehavior`**([`ReactInstanceSettings`](ReactInstanceSettings) settings, bool value)

> **EXPERIMENTAL**
**Default value**: `false`

There is a chance that cached flex basis values can cause text truncation in some re-layout scenarios. Enabling [Yoga](https://github.com/facebook/yoga)'s experimental web flex basis behavior fixes this issue, however using it may result in perfomance regressions due to additional layout passes.
There is a chance that cached flex basis values can cause text truncation in some re-layout scenarios. Enabling [Yoga](https://github.com/facebook/yoga)'s experimental web flex basis behavior fixes this issue, however using it may result in performance regressions due to additional layout passes.



Expand Down
7 changes: 7 additions & 0 deletions docs/native-api/ReactPointerEventArgs-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ Kind: `class`
Event arguments wrapper for [`IViewManagerWithPointerEvents`](IViewManagerWithPointerEvents).

## Properties
### AllowUncaptured
bool `AllowUncaptured`

> **EXPERIMENTAL**
Gets or sets a flag that allows the ReactRootView to handle pointer events even when it does not capture the pointer. This is particularly useful for view managers that seek to capture the pointer to handle move events for a gesture (e.g., dragging), but conditionally may allow the ReactRootView to emit events (e.g., if the [`PointerEventKind.End`](PointerEventKind) event is received before a drag threshold is hit.

### Args
`readonly` [`PointerRoutedEventArgs`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Input.PointerRoutedEventArgs) `Args`

Expand Down
27 changes: 1 addition & 26 deletions docs/native-api/ViewPanel-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,17 @@ title: ViewPanel

Kind: `class`

Extends: [`Panel`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Controls.Panel)
Extends: [`Grid`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Controls.Grid)



## Properties
### BorderBrush
[`Brush`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Media.Brush) `BorderBrush`

### BorderBrushProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `BorderBrushProperty`

### BorderThickness
[`Thickness`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Thickness) `BorderThickness`

### BorderThicknessProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `BorderThicknessProperty`

### ClipChildren
bool `ClipChildren`

### ClipChildrenProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `ClipChildrenProperty`

### CornerRadius
[`CornerRadius`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.CornerRadius) `CornerRadius`

### CornerRadiusProperty
`static` `readonly` [`DependencyProperty`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.DependencyProperty) `CornerRadiusProperty`

Expand Down Expand Up @@ -60,21 +45,11 @@ void **`Clear`**()



### FinalizeProperties
void **`FinalizeProperties`**()



### GetLeft
`static` double **`GetLeft`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)



### GetOuterBorder
[`Border`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Controls.Border) **`GetOuterBorder`**()



### GetTop
`static` double **`GetTop`**([`UIElement`](https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.UIElement) element)

Expand Down
1 change: 1 addition & 0 deletions docs/native-api/index-api-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sidebar_label: Full reference

## Enums
- [`AccessibilityRoles`](AccessibilityRoles)
- [`AccessibilityStateCheckedValue`](AccessibilityStateCheckedValue)
- [`AccessibilityStates`](AccessibilityStates)
- [`AccessibilityValue`](AccessibilityValue)
- [`BackNavigationHandlerKind`](BackNavigationHandlerKind)
Expand Down
20 changes: 20 additions & 0 deletions website/.unbroken_exclusions
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
!versioned_docs/version-0.70/native-api/*-api-windows*.md
!versioned_docs/version-0.71/native-api/*-api-windows*.md
!versioned_docs/version-0.72/native-api/*-api-windows*.md
!versioned_docs/version-0.73/native-api/*-api-windows*.md

# See Issue 410
File not found IReactContext while parsing versioned_docs/version-0.64/native-modules-advanced.md
Expand All @@ -24,6 +25,25 @@ File not found native-api/IReactContext-api-windows.md while parsing versioned_d
File not found native-api/ReactNativeHost-api-windows.md while parsing versioned_docs/version-0.72/native-modules-advanced.md

#fix-unbroken.js auto-generated do not edit this line or below
File not found getting-started.md while parsing versioned_docs/version-0.73/getting-started.md
File not found native-modules.md while parsing versioned_docs/version-0.73/getting-started.md
File not found rnw-dependencies.md while parsing versioned_docs/version-0.73/getting-started.md
File not found run-windows-cli.md while parsing versioned_docs/version-0.73/getting-started.md
File not found getting-started.md while parsing versioned_docs/version-0.73/hermes.md
File not found rnm-getting-started.md while parsing versioned_docs/version-0.73/hermes.md
File not found native-modules-advanced.md while parsing versioned_docs/version-0.73/native-modules.md
File not found native-modules-vs-turbo-modules.md while parsing versioned_docs/version-0.73/native-modules.md
File not found native-modules-setup.md while parsing versioned_docs/version-0.73/native-modules.md
File not found native-modules-async.md while parsing versioned_docs/version-0.73/native-modules.md
File not found native-modules-jsvalue.md while parsing versioned_docs/version-0.73/native-modules.md
File not found view-managers.md while parsing versioned_docs/version-0.73/native-modules.md
File not found native-code-language-choice.md while parsing versioned_docs/version-0.73/native-modules.md
File not found getting-started.md while parsing versioned_docs/version-0.73/nuget.md
File not found nuget-update.md while parsing versioned_docs/version-0.73/nuget.md
File not found managing-cpp-deps.md while parsing versioned_docs/version-0.73/nuget.md
File not found upgrade-app.md while parsing versioned_docs/version-0.73/nuget.md
File not found native-modules-csharp-codegen.md while parsing versioned_docs/version-0.73/nuget.md
File not found supported-community-modules.md while parsing versioned_docs/version-0.73/nuget.md
File not found IReactPackageProvider-api-windows.md while parsing versioned_docs/version-0.72/coreapp.md
File not found ReactInstanceSettings-api-windows.md while parsing versioned_docs/version-0.72/coreapp.md
File not found getting-started.md while parsing versioned_docs/version-0.72/getting-started.md
Expand Down
2 changes: 1 addition & 1 deletion website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Complete the documentation updates for both main and stable version 0.XX above.
1. Edit `website/.unbroken_exclusions` and add the line `!versioned_docs/version-0.XX/native-api/*-api-windows*.md` underneath the other versioned doc exclusions listed at the top of the file.
1. Update `support.js` and add/update the entry for the new version of React Native Windows with the correct release and Active Support Start Date _X_ (ex: 6/27/22). Then make sure to edit the previous version's:
1. Maintenance Start Date (set to the last day of the month that's 1 month out from _X_, ex: 7/31/22)
2. End of Support Date (set to the last day of the month that's 3 months out from _X_, ex: 9/30/22)
2. End of Support Date (set to the last day of the month that's 2 months out from _X_, ex: 9/30/22)
1. When you are ready for your new docs to be the default documentation on the website, edit `website/siteConfig.js` to point to 0.XX for its `defaultVersionShown` constant.

# FAQ
Expand Down
4 changes: 2 additions & 2 deletions website/pages/en/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The React Native for Windows (RNW) Team strives to provide full support for the
| Version | Support Phase | Release Date | Active Support Start | Maintenance Support Start | End of Support |
| -- | -- | -- | -- | -- | -- |
| [main](https://www.npmjs.com/package/react-native-windows/v/canary) | [Canary](#canary-support) | *N/A* | *N/A* | *N/A* | *N/A* |
| [0.73](https://www.npmjs.com/package/react-native-windows/v/preview) | [Preview](#preview-support) | *TBD* | *TBD* | *TBD* | *TBD* |
| [0.72](https://www.npmjs.com/package/react-native-windows/v/latest) | [Active](#active-support) | 06/23/2023 | 06/23/2023 | *TBD* | *TBD* |
| [0.73](https://www.npmjs.com/package/react-native-windows/v/latest) | [Active](#active-support) | 12/11/23 | 12/11/23 | *TBD* | *TBD* |
| [0.72](https://www.npmjs.com/package/react-native-windows/v/v0.72-stable) | [Active](#active-support) | 06/23/2023 | 06/23/2023 | 01/31/24 | 03/31/24 |
| [0.71](https://www.npmjs.com/package/react-native-windows/v/v0.71-stable) | [Unsupported](#unsupported) | 01/23/2023 | 01/23/2023 | 07/31/2023 | 09/30/2023 |
| [0.70](https://www.npmjs.com/package/react-native-windows/v/v0.70-stable) | [Unsupported](#unsupported) | 09/12/2022 | 09/12/2022 | 02/28/2023 | 04/30/2023 |
| [0.69](https://www.npmjs.com/package/react-native-windows/v/v0.69-stable) | [Unsupported](#unsupported) | 06/27/2022 | 06/27/2022 | 10/31/2022 | 12/31/2022 |
Expand Down
2 changes: 1 addition & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.

const defaultVersionShown = "0.72";
const defaultVersionShown = "0.73";
const repoUrl = "https://github.com/microsoft/react-native-windows";

const siteConfig = {
Expand Down
Loading

0 comments on commit 28ba571

Please sign in to comment.