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

feat(plasma-core/ui): Pass onHide callback for hideToast handler #319

Merged
merged 7 commits into from Feb 14, 2023

Conversation

Yakutoc
Copy link
Collaborator

@Yakutoc Yakutoc commented Feb 8, 2023

Добавленна возможность прокинуть callback на hideToast.

Так же сделали overload метода showToast.

Так же возможность прокинуть onHide есть только в новой версии showToast.

Было: Аргументы передовались inline

Снимок экрана 2023-02-09 в 14 54 32

Стало: Теперь как объект.

Снимок экрана 2023-02-09 в 14 55 11


🐤 Download canary assets:

colors--canary.319.4163108583.xml
color_metro_ios-swift--canary.319.4163108583.swift
color_metro_kotlin--canary.319.4163108583.kt
color_metro_react-native--canary.319.4163108583.ts
color_sbermarket_ios-swift--canary.319.4163108583.swift
color_sbermarket_kotlin--canary.319.4163108583.kt
color_sbermarket_react-native--canary.319.4163108583.ts
color_sberprime_ios-swift--canary.319.4163108583.swift
color_sberprime_kotlin--canary.319.4163108583.kt
color_sberprime_react-native--canary.319.4163108583.ts
color_selgros_ios-swift--canary.319.4163108583.swift
color_selgros_kotlin--canary.319.4163108583.kt
color_selgros_react-native--canary.319.4163108583.ts
color_smbusiness_ios-swift--canary.319.4163108583.swift
color_smbusiness_kotlin--canary.319.4163108583.kt
color_smbusiness_react-native--canary.319.4163108583.ts
PlasmaTokensColor--canary.319.4163108583.swift
shadow_sbermarket_react-native--canary.319.4163108583.ts
typo_mage_ios-swift--canary.319.4163108583.swift
typo_mage_kotlin--canary.319.4163108583.kt
typo_mage_react-native--canary.319.4163108583.ts
typo_plasma_ios-swift--canary.319.4163108583.swift
typo_plasma_kotlin--canary.319.4163108583.kt
typo_plasma_react-native--canary.319.4163108583.ts
typo_ruler_ios-swift--canary.319.4163108583.swift
typo_ruler_kotlin--canary.319.4163108583.kt
typo_ruler_react-native--canary.319.4163108583.ts
typo_sage_ios-swift--canary.319.4163108583.swift
typo_sage_kotlin--canary.319.4163108583.kt
typo_sage_react-native--canary.319.4163108583.ts
typo_sbermarket_ios-swift--canary.319.4163108583.swift
typo_sbermarket_kotlin--canary.319.4163108583.kt
typo_sbermarket_react-native--canary.319.4163108583.ts
typo_soulmate_ios-swift--canary.319.4163108583.swift
typo_soulmate_kotlin--canary.319.4163108583.kt
typo_soulmate_react-native--canary.319.4163108583.ts

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/plasma-b2c@1.138.0-canary.319.4163108583.0
npm install @salutejs/plasma-core@1.95.0-canary.319.4163108583.0
npm install @salutejs/plasma-icons@1.123.0-canary.319.4163108583.0
npm install @salutejs/plasma-temple@1.132.0-canary.319.4163108583.0
npm install @salutejs/plasma-ui@1.165.0-canary.319.4163108583.0
npm install @salutejs/plasma-web@1.164.0-canary.319.4163108583.0
npm install @salutejs/plasma-sb-utils@0.93.0-canary.319.4163108583.0
# or 
yarn add @salutejs/plasma-b2c@1.138.0-canary.319.4163108583.0
yarn add @salutejs/plasma-core@1.95.0-canary.319.4163108583.0
yarn add @salutejs/plasma-icons@1.123.0-canary.319.4163108583.0
yarn add @salutejs/plasma-temple@1.132.0-canary.319.4163108583.0
yarn add @salutejs/plasma-ui@1.165.0-canary.319.4163108583.0
yarn add @salutejs/plasma-web@1.164.0-canary.319.4163108583.0
yarn add @salutejs/plasma-sb-utils@0.93.0-canary.319.4163108583.0

@Yakutoc Yakutoc added enhancement New feature or request plasma-ui labels Feb 8, 2023
@Yakutoc Yakutoc self-assigned this Feb 8, 2023
@Yakutoc Yakutoc marked this pull request as ready for review February 8, 2023 11:03
@Yakutoc Yakutoc force-pushed the feat-toast-add-on-hide branch 2 times, most recently from a256f20 to 19554f2 Compare February 10, 2023 06:28
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@salute-developers salute-developers deleted a comment from Salute-Eva Feb 10, 2023
@Salute-Eva
Copy link
Contributor

Demo canvas app deployed!

http://plasma.sberdevices.ru/pr/demo-canvas-app-pr-319/

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-319/

@Salute-Eva
Copy link
Contributor

Component performance testing

Result: 💀 Missing report, something went wrong

Check out current report in job artifacts!

@Salute-Eva
Copy link
Contributor

Demo canvas app deployed!

http://plasma.sberdevices.ru/pr/demo-canvas-app-pr-319/

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-319/

@Salute-Eva
Copy link
Contributor

Component performance testing

Result: 💀 Missing report, something went wrong

Check out current report in job artifacts!

@Salute-Eva
Copy link
Contributor

Demo canvas app deployed!

http://plasma.sberdevices.ru/pr/demo-canvas-app-pr-319/

@Salute-Eva
Copy link
Contributor

@Yakutoc Yakutoc requested a review from Yeti-or February 13, 2023 11:50
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-319/

@Salute-Eva
Copy link
Contributor

Component performance testing

Result: 💀 Missing report, something went wrong

Check out current report in job artifacts!

@Salute-Eva
Copy link
Contributor

Demo canvas app deployed!

http://plasma.sberdevices.ru/pr/demo-canvas-app-pr-319/

@Salute-Eva
Copy link
Contributor

@Yakutoc Yakutoc merged commit 8036600 into master Feb 14, 2023
@Yakutoc Yakutoc deleted the feat-toast-add-on-hide branch February 14, 2023 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plasma-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants