Compare commits

...
Author SHA1 Message Date
hugo 80135a611d chore(release): publish packages
continuous-integration/drone/pr Build is passing
- wyatt_authentication_bloc@0.5.0+1
2023-05-06 11:26:54 +02:00
hugo 93873e3134 refactor(authentication): controle cache checking 2023-05-06 11:26:40 +02:00
hugo 553b6763af fix: remove models from pub ignore 2023-05-06 11:14:04 +02:00
hugo cfcf9e75f8 build: fix melos parsing error + disable commit reference to avoid null error...
continuous-integration/drone/pr Build is passing
2023-05-04 09:46:02 +02:00
hugo 0a11157cd0 chore(release): publish packages �
continuous-integration/drone/pr Build is passing
2023-05-04 09:30:52 +02:00
malo d3184eb3e1 feat: add floating action button component (close #191)
continuous-integration/drone/pr Build is passing
2023-05-03 19:06:52 +02:00
22 changed files with 300 additions and 19 deletions
-1
View File
@@ -584,7 +584,6 @@ new_version.sh
.latest_version
.vscode/
example/
models/
build/
*.iml
+53
View File
@@ -3,6 +3,59 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 2023-05-06
### Changes
---
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
- [`wyatt_authentication_bloc` - `v0.5.0+1`](#wyatt_authentication_bloc---v0501)
---
#### `wyatt_authentication_bloc` - `v0.5.0+1`
- **REFACTOR**(authentication): controle cache checking.
## 2023-05-04
### Changes
---
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
- [`wyatt_ui_components` - `v0.2.1`](#wyatt_ui_components---v021)
- [`wyatt_bloc_layout` - `v0.1.0+1`](#wyatt_bloc_layout---v0101)
- [`wyatt_ui_kit` - `v3.0.1`](#wyatt_ui_kit---v301)
- [`wyatt_ui_layout` - `v0.1.0+1`](#wyatt_ui_layout---v0101)
Packages with dependency updates only:
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
- `wyatt_bloc_layout` - `v0.1.0+1`
- `wyatt_ui_kit` - `v3.0.1`
- `wyatt_ui_layout` - `v0.1.0+1`
---
#### `wyatt_ui_components` - `v0.2.1`
- **FEAT**: add floating action button component (close #191). (d3184eb3)
## 2023-05-03
### Changes
+3 -3
View File
@@ -1,5 +1,5 @@
name: Wyatt-Packages
#repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages Gitea not yet supported
# repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
sdkPath: auto
@@ -15,10 +15,10 @@ command:
updateGitTagRefs: true
linkToCommits: false # Gitea not yet supported
workspaceChangelog: true
includeCommitId: true
includeCommitId: false # Generate error in Melos 3...
branch: master
message: |
chore(release): publish packages 🎉
chore(release): publish packages
{new_package_versions}
@@ -1,3 +1,7 @@
## 0.5.0+1
- **REFACTOR**(authentication): controle cache checking.
## 0.5.0
> Note: This release has breaking changes.
@@ -40,6 +40,7 @@ abstract class AuthenticationCubit<Data>
/// {@macro authentication_cubit}
AuthenticationCubit({
required this.authenticationRepository,
this.checkForCachedAccountOnInitialization = true,
}) : super(const AuthenticationState.unknown()) {
_init();
}
@@ -47,6 +48,9 @@ abstract class AuthenticationCubit<Data>
/// The authentication repository.
final AuthenticationRepository<Data> authenticationRepository;
/// Automatically check for cached account on initialization.
final bool checkForCachedAccountOnInitialization;
/// The latest session.
AuthenticationSession<Data>? _latestSession;
@@ -56,7 +60,9 @@ abstract class AuthenticationCubit<Data>
_listenForAuthenticationChanges();
/// Check if there is a cached account.
await authenticationRepository.checkForCachedAccount();
if (checkForCachedAccountOnInitialization) {
await checkForCachedAccount();
}
}
void _listenForAuthenticationChanges() {
@@ -148,6 +154,10 @@ abstract class AuthenticationCubit<Data>
),
).call();
/// Checks for cached account.
FutureOr<void> checkForCachedAccount() async =>
authenticationRepository.checkForCachedAccount();
/// Returns latest session.
///
/// Contains latest event and latest session data (account + extra data)
@@ -1,7 +1,7 @@
name: wyatt_authentication_bloc
description: Authentication BLoC for Flutter
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_authentication_bloc
version: 0.5.0
version: 0.5.0+1
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
+4
View File
@@ -1,3 +1,7 @@
## 0.1.0+1
- Update a dependency to the latest release.
## 0.1.0
> Note: This release has breaking changes.
@@ -39,13 +39,13 @@ dependencies:
version: ^2.0.1
wyatt_ui_layout:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.1.0
version: ^0.1.0+1
wyatt_crud_bloc:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.1.1
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
wyatt_component_copy_with_extension:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^2.0.1
+3 -3
View File
@@ -1,7 +1,7 @@
name: wyatt_bloc_layout
description: Layouts based on bloc helper library
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_bloc_layout
version: 0.1.0
version: 0.1.0+1
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
@@ -19,7 +19,7 @@ dependencies:
wyatt_ui_layout:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.1.0
version: ^0.1.0+1
wyatt_crud_bloc:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
@@ -27,7 +27,7 @@ dependencies:
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
dev_dependencies:
flutter_test: { sdk: flutter }
@@ -16,7 +16,7 @@ dependencies:
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
dev_dependencies:
build_runner: ^2.3.3
@@ -1,3 +1,7 @@
## 0.2.1
- **FEAT**: add floating action button component (close #191). (d3184eb3)
## 0.2.0
> Note: This release has breaking changes.
@@ -0,0 +1,107 @@
// Copyright (C) 2023 WYATT GROUP
// Please see the AUTHORS file for details.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart';
import 'package:wyatt_component_copy_with_extension/wyatt_component_copy_with_extension.dart';
import 'package:wyatt_ui_components/wyatt_ui_components.dart';
part 'floating_action_button_component.g.dart';
@ComponentProxyExtension()
abstract class FloatingActionButtonComponent extends Component
with CopyWithMixin<$FloatingActionButtonComponentCWProxy> {
const FloatingActionButtonComponent({
this.child,
this.tooltip,
this.foregroundColor,
this.backgroundColor,
this.focusColor,
this.hoverColor,
this.splashColor,
this.heroTag,
this.onPressed,
this.mouseCursor,
this.elevation,
this.focusElevation,
this.hoverElevation,
this.highlightElevation,
this.disabledElevation,
this.mini,
this.shape,
this.clipBehavior,
this.isExtended,
this.focusNode,
this.autofocus,
this.materialTapTargetSize,
this.enableFeedback,
this.extendedIconLabelSpacing,
this.extendedPadding,
this.extendedTextStyle,
super.key,
});
final Widget? child;
final String? tooltip;
final Color? foregroundColor;
final Color? backgroundColor;
final Color? focusColor;
final Color? hoverColor;
final Color? splashColor;
final Object? heroTag;
final VoidCallback? onPressed;
final MouseCursor? mouseCursor;
final double? elevation;
final double? focusElevation;
final double? hoverElevation;
final double? highlightElevation;
final double? disabledElevation;
final bool? mini;
final ShapeBorder? shape;
final Clip? clipBehavior;
final bool? isExtended;
final FocusNode? focusNode;
final bool? autofocus;
final MaterialTapTargetSize? materialTapTargetSize;
final bool? enableFeedback;
final double? extendedIconLabelSpacing;
final EdgeInsetsGeometry? extendedPadding;
final TextStyle? extendedTextStyle;
}
@@ -0,0 +1,69 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'floating_action_button_component.dart';
// **************************************************************************
// ComponentProxyGenerator
// **************************************************************************
abstract class $FloatingActionButtonComponentCWProxy {
FloatingActionButtonComponent child(Widget? child);
FloatingActionButtonComponent tooltip(String? tooltip);
FloatingActionButtonComponent foregroundColor(Color? foregroundColor);
FloatingActionButtonComponent backgroundColor(Color? backgroundColor);
FloatingActionButtonComponent focusColor(Color? focusColor);
FloatingActionButtonComponent hoverColor(Color? hoverColor);
FloatingActionButtonComponent splashColor(Color? splashColor);
FloatingActionButtonComponent heroTag(Object? heroTag);
FloatingActionButtonComponent onPressed(void Function()? onPressed);
FloatingActionButtonComponent mouseCursor(MouseCursor? mouseCursor);
FloatingActionButtonComponent elevation(double? elevation);
FloatingActionButtonComponent focusElevation(double? focusElevation);
FloatingActionButtonComponent hoverElevation(double? hoverElevation);
FloatingActionButtonComponent highlightElevation(double? highlightElevation);
FloatingActionButtonComponent disabledElevation(double? disabledElevation);
FloatingActionButtonComponent mini(bool? mini);
FloatingActionButtonComponent shape(ShapeBorder? shape);
FloatingActionButtonComponent clipBehavior(Clip? clipBehavior);
FloatingActionButtonComponent isExtended(bool? isExtended);
FloatingActionButtonComponent focusNode(FocusNode? focusNode);
FloatingActionButtonComponent autofocus(bool? autofocus);
FloatingActionButtonComponent materialTapTargetSize(
MaterialTapTargetSize? materialTapTargetSize);
FloatingActionButtonComponent enableFeedback(bool? enableFeedback);
FloatingActionButtonComponent extendedIconLabelSpacing(
double? extendedIconLabelSpacing);
FloatingActionButtonComponent extendedPadding(
EdgeInsetsGeometry? extendedPadding);
FloatingActionButtonComponent extendedTextStyle(TextStyle? extendedTextStyle);
FloatingActionButtonComponent key(Key? key);
FloatingActionButtonComponent call({
Widget? child,
String? tooltip,
Color? foregroundColor,
Color? backgroundColor,
Color? focusColor,
Color? hoverColor,
Color? splashColor,
Object? heroTag,
void Function()? onPressed,
MouseCursor? mouseCursor,
double? elevation,
double? focusElevation,
double? hoverElevation,
double? highlightElevation,
double? disabledElevation,
bool? mini,
ShapeBorder? shape,
Clip? clipBehavior,
bool? isExtended,
FocusNode? focusNode,
bool? autofocus,
MaterialTapTargetSize? materialTapTargetSize,
bool? enableFeedback,
double? extendedIconLabelSpacing,
EdgeInsetsGeometry? extendedPadding,
TextStyle? extendedTextStyle,
Key? key,
});
}
@@ -17,6 +17,7 @@
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:flutter/material.dart';
import 'package:wyatt_ui_components/src/domain/entities/entities.dart';
import 'package:wyatt_ui_components/src/domain/entities/floating_buttons/floating_action_button_component.dart';
part 'component_theme_data.g.dart';
/// {@template component_theme_data}
@@ -41,6 +42,7 @@ class ComponentThemeData {
PortfolioCardComponent? portfolioCard,
QuoteCardComponent? quoteCard,
SkillCardComponent? skillCard,
FloatingActionButtonComponent? floatingActionButton,
}) =>
ComponentThemeData.raw(
topAppBar: topAppBar,
@@ -58,6 +60,7 @@ class ComponentThemeData {
portfolioCard: portfolioCard,
quoteCard: quoteCard,
skillCard: skillCard,
floatingActionButton: floatingActionButton,
);
/// {@macro component_theme_data}
@@ -78,6 +81,7 @@ class ComponentThemeData {
portfolioCard: other.portfolioCard,
quoteCard: other.quoteCard,
skillCard: other.skillCard,
floatingActionButton: other.floatingActionButton,
);
/// Create a [ComponentThemeData] given a set of exact values. Most values
@@ -102,6 +106,7 @@ class ComponentThemeData {
this.portfolioCard,
this.quoteCard,
this.skillCard,
this.floatingActionButton,
});
R _get<T extends Component, R>(T? component, R? returned) {
@@ -173,4 +178,8 @@ class ComponentThemeData {
final SymbolButtonComponent? symbolButton;
$SymbolButtonComponentCWProxy get symbolButtonComponent =>
_get(symbolButton, symbolButton?.copyWith);
final FloatingActionButtonComponent? floatingActionButton;
$FloatingActionButtonComponentCWProxy get floatingActionButtonComponent =>
_get(floatingActionButton, floatingActionButton?.copyWith);
}
@@ -41,6 +41,9 @@ abstract class _$ComponentThemeDataCWProxy {
ComponentThemeData skillCard(SkillCardComponent? skillCard);
ComponentThemeData floatingActionButton(
FloatingActionButtonComponent? floatingActionButton);
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentThemeData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
///
/// Usage
@@ -63,6 +66,7 @@ abstract class _$ComponentThemeDataCWProxy {
PortfolioCardComponent? portfolioCard,
QuoteCardComponent? quoteCard,
SkillCardComponent? skillCard,
FloatingActionButtonComponent? floatingActionButton,
});
}
@@ -136,6 +140,11 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
ComponentThemeData skillCard(SkillCardComponent? skillCard) =>
this(skillCard: skillCard);
@override
ComponentThemeData floatingActionButton(
FloatingActionButtonComponent? floatingActionButton) =>
this(floatingActionButton: floatingActionButton);
@override
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentThemeData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
@@ -160,6 +169,7 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
Object? portfolioCard = const $CopyWithPlaceholder(),
Object? quoteCard = const $CopyWithPlaceholder(),
Object? skillCard = const $CopyWithPlaceholder(),
Object? floatingActionButton = const $CopyWithPlaceholder(),
}) {
return ComponentThemeData(
topAppBar: topAppBar == const $CopyWithPlaceholder()
@@ -222,6 +232,10 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
? _value.skillCard
// ignore: cast_nullable_to_non_nullable
: skillCard as SkillCardComponent?,
floatingActionButton: floatingActionButton == const $CopyWithPlaceholder()
? _value.floatingActionButton
// ignore: cast_nullable_to_non_nullable
: floatingActionButton as FloatingActionButtonComponent?,
);
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
name: wyatt_ui_components
description: Components that can be implemented in any application with copy constructor.
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_components
version: 0.2.0
version: 0.2.1
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
+4
View File
@@ -1,3 +1,7 @@
## 3.0.1
- Update a dependency to the latest release.
## 3.0.0
> Note: This release has breaking changes.
+1 -1
View File
@@ -20,7 +20,7 @@ dependencies:
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
dev_dependencies:
flutter_test: { sdk: flutter }
+2 -2
View File
@@ -1,7 +1,7 @@
name: wyatt_ui_kit
description: UIKit and Design System used in Wyatt Studio.
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_kit
version: 3.0.0
version: 3.0.1
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
@@ -25,7 +25,7 @@ dependencies:
version: ^2.0.1
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
dev_dependencies:
build_runner: ^2.3.3
+4
View File
@@ -1,3 +1,7 @@
## 0.1.0+1
- Update a dependency to the latest release.
## 0.1.0
> Note: This release has breaking changes.
@@ -36,7 +36,7 @@ dependencies:
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
wyatt_component_copy_with_extension:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^2.0.1
+2 -2
View File
@@ -1,7 +1,7 @@
name: wyatt_ui_layout
description: Main layouts to help you build your application views.
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_layout
version: 0.1.0
version: 0.1.0+1
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
@@ -14,7 +14,7 @@ dependencies:
wyatt_ui_components:
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
version: ^0.2.0
version: ^0.2.1
dev_dependencies:
flutter_test: { sdk: flutter }