Граф коммитов

131 Коммитов

Автор SHA1 Сообщение Дата
Andrew Coates 4a6a9cd633
Update to react-native 0.72 (#3216)
* Update to react-native 0.72

* Change files

* fix metro config

* fix
2023-11-08 18:01:56 -08:00
Ruriko Araki 144e13724c
Update to Yarn3 (#2980)
* Initial yarn 3 commit

* Fix use yarn please

* Result of yarn

* Build fixes

* Some more fixes

* Cleanup

* Change files

* Fix yarn check

* Port disabling PnP patching

* Update tests

* Port podfile.lock change

* Change files

* Reapply some package updates

* Fix for win32?

* Change files

* Convert tester deps?

* Edit workspaces property in package.json

* Update RNTA

* Update setup
2023-08-08 11:50:38 -07:00
dependabot[bot] 94d373b6ff
Bump jest from 29.6.1 to 29.6.2 (#2977)
* Bump jest from 29.6.1 to 29.6.2

Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.6.1 to 29.6.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.6.2/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update config

* Update snapshots

* Change files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruriko Araki <ruaraki@microsoft.com>
2023-07-31 10:54:06 -07:00
dependabot[bot] 8c7f0af856
Bump @babel/preset-env from 7.21.4 to 7.22.7 (#2915)
* Bump @babel/preset-env from 7.21.4 to 7.22.7

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.21.4 to 7.22.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.22.7/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix error

* Change files

* Fix error

* Update more things

* Maybe i should just add it at the root

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruriko Araki <ruaraki@microsoft.com>
2023-07-10 12:08:49 -04:00
Ayush Singh 60d243e2af
[Tree shaking] Fix import and update ESlint rules (#2851)
* Attempt to tree shake

* fix config

* Undo temp changes

* Changes for treeshake to work

* Fix babel

* Fix babel 2

* Change files

* Change files

* Fix windows PR

* Fix e2e

* Change files

* Fix e2e, retain tree shaking

* Make win32 use commonjs

* Change files

* Change PR to handle tree shake enabling changes alone

* Remove extra export

---------

Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
2023-06-12 22:47:24 +05:30
Saad Najmi 8c0f9d27e3
Update to React Native 0.71 (#2754)
* align-deps: Fix warnigns and issues

* Upgrade react-native-test-app

* Update align-deps to 0.71

* Fix JS build issues

* Try build apple

* Change files

* babel runtime classic

* resolve react-native-svg to 13.9.0

* Fix more bundling errors

* Change files

* tests

* update package versions

* Get jest tests working

* Change files

* Bump rnwin32 version and clean up imports

* fix issue which caused a ts-ignore to inserted

* Try using a specific image for windows PR

* Updated yml

* try OE-OfficePublic

* update pool

* another pipeline fix

* Update adapters

* Fix UWP tester app

* Fix android PR

* bump RNW version, and use AutomationProperties.AutomationId for mapping from AccessibilityLabel

* Revert back to name - and bump rn-macos

* bump RNW

* bump @office-iss/rex-win32 version

* Try a accessibilty fix for RNW...

* undo previous UWP fix attempt

* Update react-native-windows

* fix

* Change files

* align-deps on drawer

* Move new components to classic runtime

* Test

* Update iOS wdio config

* Revert change that broke windows e2e tests

* Use iOS 16.2

* Match iPhone simulators

* Fix ActivityIndicator

* Disable Drawer test

* Specify simulator in CI

* Fix yml

* Update snapshot

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

---------

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
Co-authored-by: Andrew Coates <acoates@microsoft.com>
2023-06-05 11:49:06 -07:00
Saad Najmi fd67dc8a7f
Fix align-deps warnings + upgrade react-native-test-app (#2753)
* align-deps: Fix warnigns and issues

* Upgrade react-native-test-app

* Change files
2023-04-10 11:42:56 -07:00
Krystal Kramer e840c82b62
Update appium and node version (#2745)
* Update appium and node version (#2620)

* Update appium beta version to version that doesn't use jsdoc

* Update tester_deps yarn.lock

* Change files

* Update a bunch of things in an attempt to get things working again...

* Update node?

* diagnose what's up with CI

* Introduce .node-version file

* remove midgard-yarn

* Frozel lockfile

* undo yarn please change

* Appium driver install added back

* Appium driver install added back

* Appium driver install added back

* Remove flakiness

---------

Co-authored-by: Saad Najmi <saadnajmi2@gmail.com>

* Add test steps to JS PR

* fix dry-run script

* temporarily remove buildci step

* try node 14.x

* build button package first

* add build step back

* back to node 16

* change npm install version to 9.5.0

* just scope build to button

* Add empty .npmignore file

* remove extra npm install and dry-run steps

* revert azure-pipelines script changes

---------

Co-authored-by: Ruriko Araki <ruaraki@microsoft.com>
Co-authored-by: Saad Najmi <saadnajmi2@gmail.com>
2023-04-06 18:50:11 -04:00
Krystal Kramer f21c6d0491
Revert "Update appium and node version" (#2718)
* Revert "Update appium and node version (#2620)"

This reverts commit 4b07fa13ee.

* Change files
2023-03-21 13:09:08 -04:00
Ruriko Araki 4b07fa13ee
Update appium and node version (#2620)
* Update appium beta version to version that doesn't use jsdoc

* Update tester_deps yarn.lock

* Change files

* Update a bunch of things in an attempt to get things working again...

* Update node?

* diagnose what's up with CI

* Introduce .node-version file

* remove midgard-yarn

* Frozel lockfile

* undo yarn please change

* Appium driver install added back

* Appium driver install added back

* Appium driver install added back

* Remove flakiness

---------

Co-authored-by: Saad Najmi <saadnajmi2@gmail.com>
2023-03-17 11:01:39 -07:00
Andrew Coates 2d0138c80d
Enable @typescript-eslint/consistent-type-imports (#2581)
* Enable @typescript-eslint/consistent-type-imports

* Change files

* prettier

* cleanup dead code

* Undo addition of packages to win32 test app devDeps
2023-02-01 13:57:33 -08:00
Tommy Nguyen 4de4c2b37c
chore: migrate to `@rnx-kit/align-deps` (#2564) 2023-01-30 15:44:56 +01:00
lyzhan7 1e46feedf3
Use iOS global tokens from pipeline (#2242)
* Add tokens-global.ios.ts

* Bump design tokens package to include colors

* Fix tester error (copied Android fix)

* Change files

* Update theme-tokens package.json

* Fixed Badge tint-severe colors

* Attempt to use win32 as platform

* Bump @rnx-kit/jest-preset package

* yarn test -u (snapshots update from windows to win32)

* Remove console.log statements

* Change files

* Split buttonTokens into platform specific files + fix bad merge

* Make badge tests run on win32 instead of ios

* Change files

* Revert "Change files"

This reverts commit 364d33f5ba.

* Revert "Make badge tests run on win32 instead of ios"

This reverts commit fe55c0120f.

* Update snapshots (changes are the differences between ios and windows tokens)

* Change files

Co-authored-by: Valentyna Kozlova <vkozlova@microsoft.com>
2022-10-25 15:27:12 -07:00
Ruriko Araki 45d33f2b8f
Fix component cache (#2178)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

I noticed that the component cache doesn't actually cache the result from the first time we hit the code, so it's not actually caching anything.

Fixing the cache to save the result of requiring the native component.

Added unit test
Also added new config to run jest debugger for the current folder's tests

### Verification

Test written to ensure that the cache is working and that the requireNativeComponent code isn't hit more than once per component

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-09-30 20:24:10 +00:00
Krystal Kramer de9ddf7530
React Native 0.68 Update (#1970)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [x] win32 (Office)
- [x] windows
- [x] android

Waiting to merge until Office bumps to 0.68.

### Description of changes

- Bump react-native from 0.66 to 0.68
- Add rnx-kit config sections for all packages to help with dependency management (see https://microsoft.github.io/rnx-kit/docs/guides/dependency-management)
  - For reference, almost all packages I added an rnx-config section to have this:
   ``` 
  "rnx-kit": {
    "reactNativeVersion": "^0.68",
    "reactNativeDevVersion": "^0.68",
    "kitType": "library",
    "capabilities": [
      "core",
      "core-android",
      "core-ios",
      "react"
    ]
  }
- Ran `yarn rnx-dep-check --write` at root to fix dependencies for RN 0.68

### Verification

- iOS: Not yet tested *
- macOS: Not yet tested *
- win32 (Office): Need to re-test for new changes
- windows: Need to re-test for new changes
- android: Not yet tested *

*hoping someone could help me out with testing these platforms

### Pull request checklist

This PR has considered (when applicable):
- [x] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-09-30 00:31:01 +00:00
Ruriko Araki 1160d21823
jscodeshift transforms for migrating Button from v0 to v1 (#1663)
* Add new transform files

* Simple rename transforms

* Fix bugs

* Fix documentation

* Initial Checkbox migration

* Comments

* Initial Button migration

* Change files

* Initial package setup

* Initial package setup

* use strict

* README

* Fix typo

* Fix bug

* Fix bug

* Stand up tests?

* Get jest to work

* SIlence some warnings

* Fix some output file errors

* Set up typescript

* Make test file ts

* Translate file to TS

* Fix bugs

* Fix the README

* Fix the README

* Change files

* Fix prettier script

* Fix depcheck

* Undo changes to .vscode settings

* Remove incomplete codemods

* Add some comment on tests

* Add some comments

* Move files under packages

* Change files

* Minor fixes

* Minor fixes

* Rename package bring back tsconfig

* Remove unneeded import

* Delete transform change file

* Fix directory
2022-09-22 11:32:17 -07:00
Ruriko Araki 99b72e1553
Update workspace tools (#2047) 2022-08-26 14:02:07 -07:00
Saad Najmi 9eefb3b9da
Fix Apple nuget by disabling flipper (#1920)
* disable flipper

* Change files
2022-07-28 18:57:58 -07:00
Harrie Shin 36ff1e04d5
support x86_64 and arm64 build in iphonesimulator nuget package (#1887)
* check to see if we explicitly set our architecture nuget will publish both x86_64 and arm64 arch binaries and make sure RNCore ruby file isn't excluding any archs.
* while i am here, update xcode to 13.4
* ios simulator boot may fail when xcode is 13.4. try using 15.5 iOS version.
2022-07-21 20:51:49 -07:00
Nabil Khalil 155145b496
React Native 0.66 Update (#1809)
* Update rnx-kit configurations

* `yarn rnx-dep-check --write`

* Remove workspace resolutions

* Update React / React Native / React Native macOS/Windows/Win32 dependencies

* Fix yarn build fallout

* Fix test fallout

* Update podfile locks

* Remove unnecessary dependency

* Change files

* Remove alpha cli resolution

* rnx-dep-check --write

* update lock

* update rex

* update lock

* update ios podfile

* update macos podfile

* upgrade RN types to version 0.66

* updated some components to 0.66 and renamed TurboModuleRegistry in getThemingModule

* resolved type errors

* bumped react dom

* bumped rn svg

* updated  rn svg to latest version

* updated win32 rn to 0.66 for checkbox and interactive hooks

* updated component rn versions

* updated some packages and apps to 0.66

* updated all package types except for themes

* updated scripts rn types to 0.66

* updated fluent tester to rn 0.66

* updated RN types to 0.66 for win32 app

* updated theming to rn types 0.66

* updated yarn

* updated all >=17.0.1 react versions to >=17.0.2

* resolved podfile conflict

* updated podfiles

* Change files

* moved testID in Header to the first text element in the fluent tester

* removed 0-0 in rn versions

* updated yarn.lock

* removed resolutions, was causing windows tester to not load

* updated @react-native-community/cli

* added onPressIn and onPressOut for win32/windows/android and removed getTheming comments

* added onPressIn/Out to base adapters

* added onPressIn/Out for macos adapters

* removed notification test, just so the rn 0.66 pr can go through, and updated react for notification

* removed comment in fluenttester

* added jpeg-js and moment back to package.json resolutions

* updated react test renderer

* reverted some accidental changes to react-native-test-app version and svg versions

* fixed error on package.json for macos

Co-authored-by: Saad Najmi <sanajmi@microsoft.com>
Co-authored-by: Saad Najmi <saadnajmi2@gmail.com>
2022-07-14 10:51:41 -07:00
Ruriko Araki e07a112e08
Add Menu snapshot and rerender tests (#1719)
* Fix babel to stop spitting out warnings

* Write initial snapshot and rerender tests

* Write initial snapshot and rerender tests

* Write initial snapshot and rerender tests

* Rename tests

* Add submenu render

* Fix rerender tests

* Change files
2022-06-06 10:58:27 -07:00
Ruriko Araki 5594a5195c
Update workspace-tools (#1704) 2022-05-31 16:52:17 -07:00
Ruriko Araki cf5789633e
Integrate Windows tokens from token pipeline (#1595)
* Get tokens from pipeline

* Move alias tokens to default theme

* Fix dependencies

* Update tokens packages, remove pipeline package

* Change files

* Fix depcheck

* Fix depcheck

* Clean up README
2022-04-19 08:37:33 -07:00
Ruriko Araki bcd4ac6dc7
Design tokens intergration (#1563)
* Pull in design tokens

* Pull in design tokens

* Remove unnecessary files

* Remove unnecessary lines from build-tokens script

* Change files

* Update package

* Remove link

* Fix build

* Remove unnecessary files

* Some cleanup

* Fix HC

* Update things again

* Change files
2022-04-06 15:41:28 -07:00
Ruriko Araki c183b7eb02
Refactor theming (#1562)
* Move win32 alias tokens out

* Update pipeline

* Fix build

* Move apple alias tokens out

* Update tsconfig to allow for JSON files

* Move android output

* Change files

* Fix links

* Fix depcheck

* Run prettier

* Edit tsconfig
2022-04-05 12:48:55 -07:00
Ruriko Araki 1e8f6072f5
Update Appium to 2.0.0 (#1544)
* Upgrade appium

* Change files

* Some editing of configs and pipeline

* Redo appium bump

* Fix build issue

* UWP updates

* Declare appium-windows-driver a devDependency

* Undo accidental change

* Update documentation

* Update instructions

* Address feedback
2022-03-31 14:28:58 -07:00
dannyvv 73323d341b
Migrate release pipeline to office/iss to be compliant (#1481)
* Migrate release pipeline to office/iss to be compliant

* Use public pools for PR
2022-02-28 13:51:57 -08:00
Ruriko Araki 597b1e6bd7
Remove web endpoint & webpack (#1457)
* Remove web endpoint

* Change files
2022-02-18 15:13:57 -08:00
Ruriko Araki 616c894f75
Update react-native-svg-transformer & yarn.lock file (#1451)
* Update svg-transformer version

* Change files

* add accidentally removed line

* Update yarn.lock
2022-02-16 17:50:14 -08:00
Saad Najmi 85013b70e9
Only install cocoapods if needed (#1450) 2022-02-16 15:11:58 -08:00
Ruriko Araki fc506e0ea2
Update just-scripts to latest (#1446)
* Update just

* Fix tests

* Fix bundle

* Remove code-style

* Change files

* Remove code-style

* lint remove from windows

* Update just-task too

* Fix task

* Fix things some more...
2022-02-16 13:13:09 -08:00
Ruriko Araki 38b719d241
Fix tokens script (#1444) 2022-02-15 13:33:28 -08:00
chiuam 338ce0f09b
macOS high contrast tokens (#1390)
### Platforms Impacted
- [ ] iOS
- [X] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Standing up a token pipeline for high contrast modes on macOS. Most token values are based off of iOS, some are guesstimates based on existing controls in Office.

### Verification
Ensured tokens can be consumed in the apple theme.
### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-02-07 19:01:51 +00:00
Saad Najmi 163defba33
Remove references to uifabricshared (#1342)
* repalce uses of uifabricshared

* Change files
2022-01-13 18:29:21 -06:00
chiuam 06307699c9
Fix for incorrect brand color in Experimental Button (#1303) 2022-01-06 16:13:44 -05:00
Ruriko Araki f4a5b4f5c9
Add repository property to our package.json files (#1280)
* Add repository property to all package.json files

* Change files

* Manually modufy change files

* Manually modufy change files
2021-12-20 13:51:29 -08:00
Adam Foxman caa9260512
@rnx-kit package updates (#1273)
* Fix metro config

* Update to latest @rnx-kit package versions.

* Update rnx-kit packages. Turn typechecking and duplicate package detection failures off, as they reveal errors that already exist in the monorepo.

* Change files

* Fix change file
2021-12-18 22:52:57 -06:00
Adam Foxman 38fe241a38
Update to TypeScript 4.5.4 (#1276)
* Update to TypeScript 4.5.4.

* Change files

* Caught values are now treated as unknown instead of Error. Add appropriate type checking/casting to fix build errors.

* Update tslib

* Change files
2021-12-17 21:55:57 -06:00
Ruriko Araki 511aeb3198
Move generated tokens under a generated folder (#1259)
* Move generated tokens under a generated folder

* Change files
2021-12-16 17:11:08 -08:00
Chris Pearson 10a5beea23
Mac/iOS NuGet pack script (#1198)
* Update Podfile.lock

* Make publish overrides debug-compatible

If we want to use the nuget pack script to build debug configuration for sideloading, then we want optimization off and want more debug info.

* Initial nuget_pack.sh

First working version, based on refactored FUA script.  -p option is currently a no-op, but -d option builds Debug as advertised.

* Use absolute paths for xcode_select_current_version.sh

Script behavior should not depend on $PATH.

* Update Podfile.lock

* Add prerequisite tasks

- Add do_prerequisites function that does yarn/gem/pod steps to bootstrap environment enough to build the native libraries
- Add git_clean function and a third -c level since this is a pretty common troubleshooting step
- Add special handling of the (now common) pushd/popd shell builtins, to suppress their normal output while not suppressing the logging of the command itself
- Rename print_error to log_error for consistency with log_action
- Use empty/nonempty as the boolean states for bash vars 'prerequisites' and 'debug'

* Rename script to nuget_pack_apple.sh

nuget_pack.sh works for FUA, but FURN includes platforms beyond Apple, so we should be more specific.

* Escape backticks

We don't actually want to run `pod install` when printing this message.

* podfile locks

Co-authored-by: Saad Najmi <sanajmi@microsoft.com>
2021-12-08 16:41:28 -06:00
Adam Foxman f16d742b5c
Update to react-native 0.64 (#1159)
* Update to react-native 0.64

* Cleanup after merge

* cleanup unused dependency

* fix dependencies, undo whitespace-only change

* fix dependencies. remove unneeded tslint/eslint suppression.

* revert unneeded change

* Update test snapshots

* Update callout test: border width picker must use values that can be converted between string and number. Picker requires strings, but the target borderWidth value is a number.

* SyntheticEvent: dispatchConfig prop is not present in react-native NativeSyntheticEvent. To compensate for its absence, make SyntheticEvent.dispatchConfig optional.

* Change files

* Remove forced resolution of react-native and react packages.

* Update react-native-test-app and ios pod versions

* Update CLI to 5.0.1 and use cli-platform-ios 5.0.2 since it has a critical fix for RNTA.

* Apply RNTA's published workaround for ios/android issues.

* take 2

* Update @react-native-community/slider, and removing pods which are autolinked.

* explicitly set jdk

* undo java version and remove ndk install

* Update RNTA
2021-11-17 11:11:30 -08:00
Ruriko Araki 110fba2a17
Rename internal eslint-config-rules package (#1152)
* Rename uifabricshared/eslint-config-rules to fluentui-react-native/eslint-config-rules

* Change files
2021-11-11 15:02:31 -08:00
chiuam 8baa72ed4e
Adding macOS brand tokens to FURN token pipeline (#1130) 2021-11-09 17:48:44 -05:00
Saad Najmi fd19db8752
Move CI to use Xcode 13.1 (#1123)
* remap some colors

* Move to Xcode 13

* Actually 13.1

* Try bumping our CLI dependency

* Add verbose flag

* fix typo

* pre boot simulator

* Update preboot script
2021-11-06 23:51:13 -05:00
Tommy Nguyen 07a7d94426
chore: allow passing args to eslint (#1115)
This allows one to run ESLint with the `--fix` option.
2021-11-03 08:37:31 +01:00
Ruriko Araki f6578742d6
Declare tslib dependency (#1085)
Fixes #1025

### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Declare tslib dependency where tslib is used and we have importHelpers in tsconfig.ts in our framework package. Version of tslib is ^1.13.0 as that's the latest release that's supported due to our current typescript version (we need 3.9 or above to bump to 2.0 or later)

Also took the opportunity to use importHelpers in other packages that could use it, specifically for spreadArray so that is saves on bundle size. But if that change isn't desired, I can undo the last two commits and just fix the existing importHeaders

### Verification

Change builds, verifying that the bundle works properly on win32 and windows.

| Before                                       | After                                      |
|----------------------------------------------|--------------------------------------------|
| Screenshot or description before this change | Screenshot or description with this change |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2021-10-25 19:05:52 +00:00
lenahong 62bde9d13c
Add global and alias tokens for Android (#1058)
* add global and alias tokens for Android

* Change files

* update tokens
2021-10-19 20:32:09 -07:00
Ruriko Araki e52c9b3d03
Prettier bump take 2 (#1015)
* Bump prettier

* Run prettier

* Change files

* Add .npmrc so we pull packages from the right registry
2021-09-21 11:55:23 -07:00
Ruriko Araki c3eefc2cd6
Revert the bump to prettier (#1006)
* Revert "Bump Prettier and run it (#997)"

This reverts commit 7ac71c6add.

* Change files

* Fix change file
2021-09-14 12:16:54 -07:00
Ruriko Araki 7ac71c6add
Bump Prettier and run it (#997)
* Update prettier

* Run the prettier

* Change files

* change semver syntax
2021-09-10 14:17:04 -07:00