Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.0.0-beta.2 #57

Merged
merged 15 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ name: Run build

on:
push:
branches: [main]
branches:
- main
- 'mx/release/**'
pull_request:
branches: [main]

branches:
- main
- 'mx/release/**'
jobs:
test:
name: "Build (${{ matrix.os }})"
Expand Down
37 changes: 35 additions & 2 deletions packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,113 +6,138 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- We changed the JS actions and widgets icons.

## [4.0.3] Native Mobile Resources - 2023-5-24

### Fixed

- We've updated react-native-device-info library.

## [3.2.2] BottomSheet

### Fixed

- We've updated react-native-device-info library.

## [1.0.2] Gallery

### Fixed

- We've updated react-native-device-info library.

## [3.2.3] IntroScreen

### Fixed

- We've updated react-native-device-info library.

## [4.0.2] Native Mobile Resources - 2023-5-17


## [3.0.1] BarChart

### Fixed

- We fixed an issue where height or width with a value of 0 crash the app.

## [2.0.1] ColumnChart

### Fixed

- We fixed an issue where height or width with a value of 0 crash the app.

## [3.0.1] LineChart

### Fixed

- We fixed an issue where height or width with a value of 0 crash the app.

## [2.0.1] PieDoughnutChart

### Fixed

- We fixed an issue where height or width with a value of 0 crash the app.

## [4.0.0] Native Mobile Resources - 2023-3-28
undefined

- We made widgets compatible with React Native 0.70.7

## [4.0.0] AppEvents

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.0.0] BarChart

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [4.0.0] BarcodeScanner

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.0.0] Carousel

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [2.0.0] ColorPicker

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [2.0.0] ColumnChart

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [4.0.0] FloatingActionButton

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.0.0] LineChart

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.0.0] ListViewSwipe

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [4.0.0] Maps

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [4.0.0] Notifications

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [2.0.0] PieDoughnutChart

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.0.0] PopupMenu

### Added

- Added id for testing
Expand All @@ -122,41 +147,49 @@ undefined
- We made the widget compatible with React Native 0.70.7

## [4.2.1] ProgressBar

### Changed

- Bumped react-native-progress dependency

## [3.1.1] ProgressCircle

### Changed

- Bumped react-native-progress dependency

## [3.0.0] Rating

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [2.0.0] Signature

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.0.0] Slider

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [4.0.0] VideoPlayer

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [4.0.0] WebView

## BREAKING

- We made the widget compatible with React Native 0.70.7

## [3.13.1] Native Mobile Resources - 2022-12-28

### Changed

- We reduced the widget file size by reducing the dependencies list file size.
Expand Down
4 changes: 2 additions & 2 deletions packages/jsActions/mobile-resources-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/mendix/native-widgets.git"
},
"marketplace": {
"minimumMXVersion": "9.24.0.2965",
"minimumMXVersion": "10.0.0.8352",
"marketplaceId": 109513
},
"testProject": {
Expand Down Expand Up @@ -52,4 +52,4 @@
"rimraf": "^2.7.1",
"rollup": "^2.68.0"
}
}
}
8 changes: 8 additions & 0 deletions packages/jsActions/nanoflow-actions-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- We changed the JS actions and widgets icons.

## [3.0.0] Native Mobile Resources - 2023-3-28

- We made widgets compatible with React Native 0.70.7

## [2.6.1] Nanoflow Commons - 2022-9-23

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/jsActions/nanoflow-actions-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/mendix/native-widgets.git"
},
"marketplace": {
"minimumMXVersion": "9.24.0.2965",
"minimumMXVersion": "10.0.0.8352",
"marketplaceId": 109515
},
"testProject": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { StructurePreviewProps, ContainerProps } from "@mendix/piw-utils-internal";
import { StructurePreviewProps, ContainerProps, topBar, getColors } from "@mendix/piw-utils-internal";
import { changePropertyIn, hidePropertyIn, Properties, Problem } from "@mendix/pluggable-widgets-tools";

import { AccordionPreviewProps, GroupsPreviewType } from "../typings/AccordionProps";

export function getPreview(values: AccordionPreviewProps, isDarkMode: boolean): StructurePreviewProps {
const headerBackgroundColor: string = isDarkMode ? "#454545" : "#F5F5F5";

const colors = getColors(isDarkMode);
const noGroupsContainer: ContainerProps = {
type: "Container",
borders: true,
children: [
{
type: "Container",
backgroundColor: headerBackgroundColor,
backgroundColor: colors.background.topBar.standard,
children: [
{
type: "RowLayout",
Expand All @@ -22,7 +21,7 @@ export function getPreview(values: AccordionPreviewProps, isDarkMode: boolean):
{ type: "Container" },
{
type: "Text",
fontColor: isDarkMode ? "#A4A4A4" : "#0A1324",
fontColor: colors.text.primary,
bold: true,
content: "[No groups configured]"
},
Expand All @@ -43,7 +42,7 @@ export function getPreview(values: AccordionPreviewProps, isDarkMode: boolean):
{
type: "Text",
content: "Add groups in order to place widgets here",
fontColor: isDarkMode ? "#A4A4A4" : "#6B707B"
fontColor: colors.text.secondary
},
{ type: "Container" }
]
Expand All @@ -53,61 +52,39 @@ export function getPreview(values: AccordionPreviewProps, isDarkMode: boolean):
]
};

return {
const content: StructurePreviewProps = {
type: "Container",
borders: true,
children: [
{
type: "Container",
backgroundColor: headerBackgroundColor,
children: [
{
type: "Container",
padding: 4,
borders: true,
children: [
{
type: "Text",
fontColor: isDarkMode ? "#DEDEDE" : "#6B707B",
content: "Accordion"
}
]
}
]
},
{
type: "Container",
children: [
...(values.groups.length === 0
? [noGroupsContainer]
: values.groups
.map<StructurePreviewProps[]>((group, index) =>
group.headerRenderMode === "custom"
? [
{
type: "DropZone",
property: group.headerContent,
placeholder: `Group/${index + 1}/Header`
},
{
type: "DropZone",
property: group.content,
placeholder: `Group/${index + 1}/Content`
}
]
: [
{
type: "DropZone",
property: group.content,
placeholder: `Group/${index + 1}/Content`
}
]
)
.reduce((previousValue, currentValue) => previousValue.concat(currentValue), []))
]
}
...(values.groups.length === 0
? [noGroupsContainer]
: values.groups
.map<StructurePreviewProps[]>((group, index) =>
group.headerRenderMode === "custom"
? [
{
type: "DropZone",
property: group.headerContent,
placeholder: `Group/${index + 1}/Header`
},
{
type: "DropZone",
property: group.content,
placeholder: `Group/${index + 1}/Content`
}
]
: [
{
type: "DropZone",
property: group.content,
placeholder: `Group/${index + 1}/Content`
}
]
)
.reduce((previousValue, currentValue) => previousValue.concat(currentValue), []))
]
};

return topBar("Accordion", content, isDarkMode);
}

export function getProperties(values: AccordionPreviewProps, defaultProperties: Properties): Properties {
Expand Down
Binary file modified packages/pluggableWidgets/accordion-native/src/Accordion.icon.dark.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/pluggableWidgets/accordion-native/src/Accordion.icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/pluggableWidgets/accordion-native/src/Accordion.tile.dark.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/pluggableWidgets/accordion-native/src/Accordion.tile.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/pluggableWidgets/activity-indicator-native/src/ActivityIndicator.icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/pluggableWidgets/activity-indicator-native/src/ActivityIndicator.tile.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading