Skip to content

Commit

Permalink
Merge branch 'main' into appPortalSdks
Browse files Browse the repository at this point in the history
Signed-off-by: nirgur <nirgur@users.noreply.github.com>
  • Loading branch information
nirgur authored Sep 29, 2024
2 parents 648f928 + 88cc3c7 commit 26efad7
Show file tree
Hide file tree
Showing 17 changed files with 59 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Thumbs.db
*.pem

.env
.env.local
.nx/*
.next

Expand Down
6 changes: 6 additions & 0 deletions packages/sdks/angular-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [0.5.25](https://github.com/descope/descope-js/compare/angular-sdk-0.5.24...angular-sdk-0.5.25) (2024-09-29)

### Dependency Updates

* `user-profile-widget` updated to version `0.0.107`
* `web-component` updated to version `3.25.3`
## [0.5.24](https://github.com/descope/descope-js/compare/angular-sdk-0.5.23...angular-sdk-0.5.24) (2024-09-29)

### Dependency Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/angular-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/angular-sdk",
"version": "0.5.24",
"version": "0.5.25",
"peerDependencies": {
"@angular/common": ">=16.0.0",
"@angular/core": ">=16.0.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/sdks/nextjs-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [0.2.12](https://github.com/descope/descope-js/compare/nextjs-sdk-0.2.11...nextjs-sdk-0.2.12) (2024-09-29)

### Dependency Updates

* `react-sdk` updated to version `2.0.78`
* `web-component` updated to version `3.25.3`
## [0.2.11](https://github.com/descope/descope-js/compare/nextjs-sdk-0.2.10...nextjs-sdk-0.2.11) (2024-09-29)

### Dependency Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/nextjs-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/nextjs-sdk",
"version": "0.2.11",
"version": "0.2.12",
"description": "Descope NextJS SDK",
"author": "Descope Team <info@descope.com>",
"homepage": "https://github.com/descope/descope-js",
Expand Down
6 changes: 6 additions & 0 deletions packages/sdks/react-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [2.0.78](https://github.com/descope/descope-js/compare/react-sdk-2.0.77...react-sdk-2.0.78) (2024-09-29)

### Dependency Updates

* `user-profile-widget` updated to version `0.0.107`
* `web-component` updated to version `3.25.3`
## [2.0.77](https://github.com/descope/descope-js/compare/react-sdk-2.0.76...react-sdk-2.0.77) (2024-09-29)

### Dependency Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/react-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/react-sdk",
"version": "2.0.77",
"version": "2.0.78",
"description": "Descope React SDK",
"author": "Descope Team <info@descope.com>",
"homepage": "https://github.com/descope/descope-js",
Expand Down
11 changes: 11 additions & 0 deletions packages/sdks/vue-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [2.0.37](https://github.com/descope/descope-js/compare/vue-sdk-2.0.36...vue-sdk-2.0.37) (2024-09-29)

### Dependency Updates

* `user-profile-widget` updated to version `0.0.107`
* `web-component` updated to version `3.25.3`

### Bug Fixes

* logger typing improvements ([#813](https://github.com/descope/descope-js/issues/813)) RELEASE ([ab20610](https://github.com/descope/descope-js/commit/ab206103a6eb42489c7cc4013ea721a576d3d302))

## [2.0.36](https://github.com/descope/descope-js/compare/vue-sdk-2.0.35...vue-sdk-2.0.36) (2024-09-29)

### Dependency Updates
Expand Down
7 changes: 4 additions & 3 deletions packages/sdks/vue-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ app.mount('#app');
<!-- errorTransformer="errorTransformer" errorTransformer is a function that receives an error object and returns a string. The returned string will be displayed to the user. NOTE: errorTransformer is not required. If not provided, the error object will be displayed as is. -->
<!-- form="{ email: 'test@domain.com' }" form is an object the initial form context that is used in screens inputs in the flow execution. Used to inject predifined input values on flow start such as custom inputs, custom attrbiutes and other inputs. Keys passed can be accessed in flows actions, conditions and screens prefixed with "form.". NOTE: form is not required. If not provided, 'form' context key will be empty before user input. -->
<!-- client="{ version: '1.2.3' }" client is an object the initial client context in the flow execution. Keys passed can be accessed in flows actions and conditions prefixed with "client.". NOTE: client is not required. If not provided, context key will be empty. -->
<!-- styleId="my-awesome-style" Use a custom style name or keep empty to use the default style. -->
</template>
<script setup>
Expand Down Expand Up @@ -99,7 +100,7 @@ This can be helpful to implement application-specific logic. Examples:
<div v-if="isSessionLoading || isUserLoading">Loading ...</div>
<div v-else-if="isAuthenticated">
<div>Hello {{ user?.name }}</div>
<button @click="logout">Logout</button>
<button @click="logout()">Logout</button>
</div>
<div v-else>You are not logged in</div>
</div>
Expand All @@ -108,8 +109,8 @@ This can be helpful to implement application-specific logic. Examples:
<script setup>
import { useDescope, useSession, useUser } from '@descope/vue-sdk';

const { isAuthenticated, isSessionLoading } = useSession();
const { user, isUserLoading } = useUser();
const { isAuthenticated, isLoading: isSessionLoading } = useSession();
const { user, isLoading: isUserLoading } = useUser();
const { logout } = useDescope();
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/vue-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/vue-sdk",
"version": "2.0.36",
"version": "2.0.37",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"type": "module",
Expand Down
4 changes: 4 additions & 0 deletions packages/sdks/vue-sdk/src/Descope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:telemetryKey.attr="telemetryKey"
:redirect-url="redirectUrl"
:auto-focus="autoFocus"
:style-id="styleId"
:validate-on-blur="validateOnBlur"
:store-last-authenticated-user="storeLastAuthenticatedUser"
:errorTransformer.prop="errorTransformer"
Expand Down Expand Up @@ -93,6 +94,9 @@ const props = defineProps({
client: {
type: Object,
},
styleId: {
type: String,
},
});
// const emit = defineEmits(['success', 'error', 'ready']);
const emit = defineEmits<{
Expand Down
2 changes: 2 additions & 0 deletions packages/sdks/vue-sdk/tests/Descope.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe('Descope.vue', () => {
errorTransformer,
form: { test: 'a' },
client: { test: 'b' },
styleId: 'test-style-id',
},
});

Expand All @@ -54,6 +55,7 @@ describe('Descope.vue', () => {
expect(wrapper.vm.errorTransformer).toBe(errorTransformer);
expect(descopeWc.attributes('form')).toBe('{"test":"a"}');
expect(wrapper.vm.client).toStrictEqual({ test: 'b' });
expect(descopeWc.attributes('style-id')).toBe('test-style-id');
});

it('renders a DescopeWc component with empty props', () => {
Expand Down
7 changes: 7 additions & 0 deletions packages/sdks/web-component/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [3.25.3](https://github.com/descope/descope-js/compare/web-component-3.25.2...web-component-3.25.3) (2024-09-29)


### Bug Fixes

* logger typing improvements ([#813](https://github.com/descope/descope-js/issues/813)) RELEASE ([ab20610](https://github.com/descope/descope-js/commit/ab206103a6eb42489c7cc4013ea721a576d3d302))

## [3.25.2](https://github.com/descope/descope-js/compare/web-component-3.25.1...web-component-3.25.2) (2024-09-29)

### Dependency Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/web-component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/web-component",
"version": "3.25.2",
"version": "3.25.3",
"author": "Descope Team <info@descope.com>",
"homepage": "https://github.com/descope/descope-js",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/web-component/src/lib/descope-wc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ if (!customElements.get('descope-wc')) {
}
export default DescopeWc;

export type ILogger = Partial<DescopeWc['logger']>
export type ILogger = Partial<DescopeWc['logger']>;

export type { AutoFocusOptions, ThemeOptions } from '../types';
5 changes: 5 additions & 0 deletions packages/widgets/user-profile-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [0.0.107](https://github.com/descope/descope-js/compare/user-profile-widget-0.0.106...user-profile-widget-0.0.107) (2024-09-29)

### Dependency Updates

* `web-component` updated to version `3.25.3`
## [0.0.106](https://github.com/descope/descope-js/compare/user-profile-widget-0.0.105...user-profile-widget-0.0.106) (2024-09-29)

### Dependency Updates
Expand Down
2 changes: 1 addition & 1 deletion packages/widgets/user-profile-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/user-profile-widget",
"version": "0.0.106",
"version": "0.0.107",
"author": "Descope Team <info@descope.com>",
"homepage": "https://github.com/descope/descope-js",
"bugs": {
Expand Down

0 comments on commit 26efad7

Please sign in to comment.