@cartridge/controller 0.9.0 → 0.9.2

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.
@@ -1,31 +1,31 @@
1
1
 
2
- > @cartridge/controller@0.9.0 build:deps /home/runner/work/controller/controller/packages/controller
2
+ > @cartridge/controller@0.9.2 build:deps /home/runner/work/controller/controller/packages/controller
3
3
  > pnpm build
4
4
 
5
5
 
6
- > @cartridge/controller@0.9.0 build /home/runner/work/controller/controller/packages/controller
6
+ > @cartridge/controller@0.9.2 build /home/runner/work/controller/controller/packages/controller
7
7
  > pnpm build:browser && pnpm build:node
8
8
 
9
9
 
10
- > @cartridge/controller@0.9.0 build:browser /home/runner/work/controller/controller/packages/controller
10
+ > @cartridge/controller@0.9.2 build:browser /home/runner/work/controller/controller/packages/controller
11
11
  > vite build
12
12
 
13
13
  vite v6.3.4 building for production...
14
14
  transforming...
15
- ✓ 218 modules transformed.
15
+ ✓ 217 modules transformed.
16
16
  rendering chunks...
17
- [vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.2.1/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
17
+ [vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.2.3/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
18
18
 
19
19
  [vite:dts] Start generate declaration files...
20
20
  computing gzip size...
21
- dist/session.js 11.17 kB │ gzip: 3.48 kB │ map: 60.40 kB
22
- dist/provider-B9Ikz5hr.js 13.52 kB │ gzip: 5.52 kB │ map: 32.77 kB
23
- dist/index.js 79.14 kB │ gzip: 20.64 kB │ map: 222.56 kB
24
- [vite:dts] Declaration files built in 4568ms.
21
+ dist/session.js 11.17 kB │ gzip: 3.47 kB │ map: 60.40 kB
22
+ dist/provider-C1UeMjUr.js 13.48 kB │ gzip: 5.51 kB │ map: 32.57 kB
23
+ dist/index.js 77.34 kB │ gzip: 20.27 kB │ map: 218.96 kB
24
+ [vite:dts] Declaration files built in 4818ms.
25
25
 
26
- ✓ built in 5.95s
26
+ ✓ built in 6.21s
27
27
 
28
- > @cartridge/controller@0.9.0 build:node /home/runner/work/controller/controller/packages/controller
28
+ > @cartridge/controller@0.9.2 build:node /home/runner/work/controller/controller/packages/controller
29
29
  > tsup --config tsup.node.config.ts
30
30
 
31
31
  CLI Building entry: src/node/index.ts
@@ -40,12 +40,12 @@ computing gzip size...
40
40
  Entry module "dist/node/index.cjs" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
41
41
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
42
42
  CJS dist/node/index.cjs 21.89 KB
43
- CJS dist/node/index.cjs.map 50.44 KB
44
- CJS ⚡️ Build success in 388ms
43
+ CJS dist/node/index.cjs.map 50.50 KB
44
+ CJS ⚡️ Build success in 364ms
45
45
  ESM dist/node/index.js 21.13 KB
46
- ESM dist/node/index.js.map 50.23 KB
47
- ESM ⚡️ Build success in 389ms
46
+ ESM dist/node/index.js.map 50.30 KB
47
+ ESM ⚡️ Build success in 364ms
48
48
  DTS Build start
49
- DTS ⚡️ Build success in 4125ms
49
+ DTS ⚡️ Build success in 4463ms
50
50
  DTS dist/node/index.d.ts 5.26 KB
51
51
  DTS dist/node/index.d.cts 5.26 KB
@@ -1,27 +1,27 @@
1
1
 
2
- > @cartridge/controller@0.9.0 build /home/runner/work/controller/controller/packages/controller
2
+ > @cartridge/controller@0.9.2 build /home/runner/work/controller/controller/packages/controller
3
3
  > pnpm build:browser && pnpm build:node
4
4
 
5
5
 
6
- > @cartridge/controller@0.9.0 build:browser /home/runner/work/controller/controller/packages/controller
6
+ > @cartridge/controller@0.9.2 build:browser /home/runner/work/controller/controller/packages/controller
7
7
  > vite build
8
8
 
9
9
  vite v6.3.4 building for production...
10
10
  transforming...
11
- ✓ 218 modules transformed.
11
+ ✓ 217 modules transformed.
12
12
  rendering chunks...
13
- [vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.2.1/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
13
+ [vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.2.3/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
14
14
 
15
15
  [vite:dts] Start generate declaration files...
16
16
  computing gzip size...
17
- dist/session.js 11.17 kB │ gzip: 3.48 kB │ map: 60.40 kB
18
- dist/provider-B9Ikz5hr.js 13.52 kB │ gzip: 5.52 kB │ map: 32.77 kB
19
- dist/index.js 79.14 kB │ gzip: 20.64 kB │ map: 222.56 kB
20
- [vite:dts] Declaration files built in 4366ms.
17
+ dist/session.js 11.17 kB │ gzip: 3.47 kB │ map: 60.40 kB
18
+ dist/provider-C1UeMjUr.js 13.48 kB │ gzip: 5.51 kB │ map: 32.57 kB
19
+ dist/index.js 77.34 kB │ gzip: 20.27 kB │ map: 218.96 kB
20
+ [vite:dts] Declaration files built in 5212ms.
21
21
 
22
- ✓ built in 5.93s
22
+ ✓ built in 6.70s
23
23
 
24
- > @cartridge/controller@0.9.0 build:node /home/runner/work/controller/controller/packages/controller
24
+ > @cartridge/controller@0.9.2 build:node /home/runner/work/controller/controller/packages/controller
25
25
  > tsup --config tsup.node.config.ts
26
26
 
27
27
  CLI Building entry: src/node/index.ts
@@ -35,13 +35,13 @@ computing gzip size...
35
35
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
36
36
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
37
37
  Entry module "dist/node/index.cjs" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
38
- DTS Build start
39
- ESM dist/node/index.js 21.13 KB
40
- ESM dist/node/index.js.map 50.23 KB
41
- ESM ⚡️ Build success in 343ms
42
38
  CJS dist/node/index.cjs 21.89 KB
43
- CJS dist/node/index.cjs.map 50.44 KB
44
- CJS ⚡️ Build success in 344ms
45
- DTS ⚡️ Build success in 4247ms
39
+ CJS dist/node/index.cjs.map 50.50 KB
40
+ CJS ⚡️ Build success in 419ms
41
+ ESM dist/node/index.js 21.13 KB
42
+ ESM dist/node/index.js.map 50.30 KB
43
+ ESM ⚡️ Build success in 421ms
44
+ DTS Build start
45
+ DTS ⚡️ Build success in 4482ms
46
46
  DTS dist/node/index.d.ts 5.26 KB
47
47
  DTS dist/node/index.d.cts 5.26 KB
@@ -5,7 +5,6 @@ import { default as BaseProvider } from './provider';
5
5
  import { ControllerOptions, ProfileContextTypeVariant } from './types';
6
6
  export default class ControllerProvider extends BaseProvider {
7
7
  private keychain?;
8
- private profile?;
9
8
  private options;
10
9
  private iframes;
11
10
  private selectedChain;
@@ -21,7 +20,7 @@ export default class ControllerProvider extends BaseProvider {
21
20
  openProfile(tab?: ProfileContextTypeVariant): Promise<void>;
22
21
  openProfileTo(to: string): Promise<void>;
23
22
  openProfileAt(at: string): Promise<void>;
24
- openSettings(): Promise<boolean | null>;
23
+ openSettings(): void;
25
24
  revoke(origin: string, _policy: Policy[]): Promise<void> | null;
26
25
  rpcUrl(): string;
27
26
  username(): Promise<string> | undefined;
@@ -10,6 +10,7 @@ export declare class IFrame<CallSender extends {}> implements Modal {
10
10
  private container?;
11
11
  private onClose?;
12
12
  private child?;
13
+ private closeTimeout?;
13
14
  constructor({ id, url, preset, onClose, onConnect, methods, }: Pick<ControllerOptions, "preset"> & {
14
15
  id: string;
15
16
  url: URL;
@@ -24,4 +25,5 @@ export declare class IFrame<CallSender extends {}> implements Modal {
24
25
  sendBackward(): void;
25
26
  sendForward(): void;
26
27
  private resize;
28
+ isOpen(): boolean;
27
29
  }
@@ -1,3 +1,2 @@
1
1
  export * from './base';
2
2
  export * from './keychain';
3
- export * from './profile';
@@ -6,7 +6,7 @@ type KeychainIframeOptions = IFrameOptions<Keychain> & KeychainOptions & {
6
6
  };
7
7
  export declare class KeychainIFrame extends IFrame<Keychain> {
8
8
  private walletBridge;
9
- constructor({ url, policies, version, ...iframeOptions }: KeychainIframeOptions);
9
+ constructor({ url, policies, version, slot, namespace, tokens, ...iframeOptions }: KeychainIframeOptions);
10
10
  getWalletBridge(): WalletBridge;
11
11
  }
12
12
  export {};