Skip to content

[NOT MERGING YET] make details animation smoother #331

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

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a3992d5
refactor <slots> into snippets and render tags (#278)
alfondotnet Jan 27, 2025
90b1a43
Revamped views (#282)
alfondotnet Feb 3, 2025
a124be4
convert spacing units from pixels to rem (#297)
alfondotnet Feb 4, 2025
f60d2a1
Fix some alignments / Rename Modal (#301)
alfondotnet Feb 4, 2025
81333ae
Calculate button states (#307)
alfondotnet Feb 7, 2025
437bb67
chore: Split the checkout flow into two parts (#305)
vicfergar Feb 13, 2025
80548c5
fix storybook
alfondotnet Feb 13, 2025
fde9cc3
Some UI fixes (#315)
alfondotnet Feb 13, 2025
271d79e
chore: Fix `webbilling-demo` e2e tests assertions
vicfergar Feb 14, 2025
1442cf7
add storybook stories for an RTL language (#317)
alfondotnet Feb 17, 2025
acc0554
Fixed all tests
nicfix Feb 17, 2025
d5203a0
Fixed linter issues
nicfix Feb 17, 2025
0a530c8
Removed package manager annotation added by corepack
nicfix Feb 17, 2025
32474fd
Fixed svelte checks
nicfix Feb 17, 2025
5cf5206
Fixed storybook loading
nicfix Feb 17, 2025
266f943
Added a way to test the email passed as parameter
nicfix Feb 17, 2025
9bb0977
Re-added support to rendering the sdk in an element passed as paramet…
nicfix Feb 18, 2025
cd3f433
trigger build
alfondotnet Feb 18, 2025
df21952
Internal parameter to allow appearance override (#325)
nicfix Feb 19, 2025
86860f4
[WEB-2140] restore scroll after closing modal + fixing height (#326)
alfondotnet Feb 19, 2025
1d18e28
WEB-2173: Improvements to the embedded mode (#328)
nicfix Feb 19, 2025
656f84e
Fix positioning of modal of viewports of less than 320px (#330)
alfondotnet Feb 19, 2025
128c2d3
[WEB-2099] Fix: dismissing sandbox bar results in clunky animation (#…
alfondotnet Feb 19, 2025
e9469a4
use svelte animation
alfondotnet Feb 19, 2025
3e34bcf
fist step of animation smoother
alfondotnet Feb 19, 2025
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
8 changes: 2 additions & 6 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,16 @@ const config: StorybookConfig = {
{
name: "@storybook/addon-svelte-csf",
options: {
legacyTemplate: true,
legacyTemplate: false,
},
},
],
framework: "@storybook/svelte-vite",
docs: {
autodocs: "tag",
},
docs: {},
env: (config) => ({
...config,
VITE_STORYBOOK_PUBLISHABLE_API_KEY:
process.env.VITE_STORYBOOK_PUBLISHABLE_API_KEY || "",
VITE_STORYBOOK_RESTRICTED_SECRET:
process.env.VITE_STORYBOOK_RESTRICTED_SECRET || "",
VITE_STORYBOOK_ACCOUNT_ID: process.env.VITE_STORYBOOK_ACCOUNT_ID || "",
}),
};
Expand Down
19 changes: 19 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,32 @@ import type { Preview } from "@storybook/svelte";

const preview: Preview = {
parameters: {
layout: "fullscreen",
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
viewport: {
viewports: {
mobile: {
name: "Mobile",
styles: {
width: "375px",
height: "667px",
},
},
desktop: {
name: "Desktop",
styles: {
width: "1440px",
height: "900px",
},
},
},
},
},
};

Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,9 @@ Internal team members can find the required environment variables in 1Password.
### Option 2: Setup Manually

1. Create a test account in Stripe
2. Go to settings, API keys, and create a restricted key with the following permissions:
- Setup intent (read/write)
- Payment methods (read/write)
3. Create a `.env.development.local` file and set the following variables:
2. Create a `.env.development.local` file and set the following variables:

```bash
VITE_STORYBOOK_RESTRICTED_SECRET="sk_test_1234567890"
VITE_STORYBOOK_PUBLISHABLE_API_KEY="pk_test_1234567890"
VITE_STORYBOOK_ACCOUNT_ID="acct_1234567890"
```
Expand Down Expand Up @@ -119,7 +115,7 @@ npm run extract-api
```

This will update the files in `api-report` with the latest public API.
If it has uncommited changes, CI tests will fail. Run this command and commit the changes if
If it has uncommitted changes, CI tests will fail. Run this command and commit the changes if
they are expected.

# Publishing a new version
Expand Down
261 changes: 261 additions & 0 deletions api-report/purchases-js.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,267 @@
"name": "",
"preserveMemberOrder": false,
"members": [
{
"kind": "Interface",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance:interface",
"docComment": "/**\n * `BrandingAppearance` defines the appearance settings of an app's branding configuration.\n *\n * @public\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare interface BrandingAppearance "
}
],
"fileUrlPath": "dist/Purchases.es.d.ts",
"releaseTag": "Public",
"name": "BrandingAppearance",
"preserveMemberOrder": false,
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#color_accent:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "color_accent: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "color_accent",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#color_buttons_primary:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "color_buttons_primary: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "color_buttons_primary",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#color_error:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "color_error: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "color_error",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#color_form_bg:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "color_form_bg: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "color_form_bg",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#color_page_bg:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "color_page_bg: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "color_page_bg",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#color_product_info_bg:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "color_product_info_bg: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "color_product_info_bg",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#font:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "font: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "font",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#shapes:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "shapes: "
},
{
"kind": "Content",
"text": "\"default\" | \"rectangle\" | \"rounded\" | \"pill\""
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "shapes",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@revenuecat/purchases-js!BrandingAppearance#show_product_description:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "show_product_description: "
},
{
"kind": "Content",
"text": "boolean"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "show_product_description",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Interface",
"canonicalReference": "@revenuecat/purchases-js!CustomerInfo:interface",
Expand Down
22 changes: 22 additions & 0 deletions api-report/purchases-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@

import { PaywallData } from '@revenuecat/purchases-ui-js';

// @public
export interface BrandingAppearance {
// (undocumented)
color_accent: string;
// (undocumented)
color_buttons_primary: string;
// (undocumented)
color_error: string;
// (undocumented)
color_form_bg: string;
// (undocumented)
color_page_bg: string;
// (undocumented)
color_product_info_bg: string;
// (undocumented)
font: string;
// (undocumented)
shapes: "default" | "rectangle" | "rounded" | "pill";
// (undocumented)
show_product_description: boolean;
}

// @public
export interface CustomerInfo {
readonly activeSubscriptions: Set<string>;
Expand Down
Loading