@makolabs/ripple 1.2.13 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import UserViewModal from './UserViewModal.svelte';
|
|
7
7
|
import type { User, UserManagementProps, Role, Permission } from './user-management.js';
|
|
8
8
|
import { SvelteSet } from 'svelte/reactivity';
|
|
9
|
-
import * as UserManagementAdapter from './adapters/
|
|
9
|
+
import * as UserManagementAdapter from './adapters/UserManagement.remote.js';
|
|
10
10
|
|
|
11
11
|
let {
|
|
12
12
|
adapter = UserManagementAdapter,
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
async function loadUsers() {
|
|
43
43
|
try {
|
|
44
44
|
loading = true;
|
|
45
|
+
console.log('loading users', adapter);
|
|
45
46
|
const result = await adapter.getUsers({
|
|
46
47
|
page: currentPage,
|
|
47
48
|
pageSize,
|
|
@@ -7,6 +7,6 @@ export { default as UserTable } from './UserTable.svelte';
|
|
|
7
7
|
export { default as UserModal } from './UserModal.svelte';
|
|
8
8
|
export { default as UserViewModal } from './UserViewModal.svelte';
|
|
9
9
|
export type { User, UserEmail, UserPhone, Permission, Role, UserTableProps, UserModalProps, UserViewModalProps, UserManagementProps, FormErrors } from './user-management.js';
|
|
10
|
-
export type { GetUsersOptions, GetUsersResult } from './adapters/
|
|
10
|
+
export type { GetUsersOptions, GetUsersResult } from './adapters/types.js';
|
|
11
11
|
export type { UserManagementAdapter } from './user-management.js';
|
|
12
12
|
export { createUser, getUserDisplayName, getUserInitials } from './user-management.js';
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User Management Adapters
|
|
3
|
-
*
|
|
4
|
-
* Adapters are remote function modules (.remote.ts files) that export
|
|
5
|
-
* query/command functions.
|
|
6
|
-
*
|
|
7
|
-
* @see https://svelte.dev/docs/kit/remote-functions
|
|
8
|
-
*/
|
|
9
|
-
export type { GetUsersOptions, GetUsersResult } from './types.js';
|
|
10
|
-
export * from './UserManagement.remote.js';
|
|
11
|
-
export * as MockUserManagement from './mockUserManagement.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User Management Adapters
|
|
3
|
-
*
|
|
4
|
-
* Adapters are remote function modules (.remote.ts files) that export
|
|
5
|
-
* query/command functions.
|
|
6
|
-
*
|
|
7
|
-
* @see https://svelte.dev/docs/kit/remote-functions
|
|
8
|
-
*/
|
|
9
|
-
// Export default remote functions implementation
|
|
10
|
-
export * from './UserManagement.remote.js';
|
|
11
|
-
// Export mock adapter functions for testing/storybook (with different names to avoid conflicts)
|
|
12
|
-
export * as MockUserManagement from './mockUserManagement.js';
|