@cartridge/controller 0.9.0 → 0.9.1

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.1 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.1 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.1 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-iltRv2Q1.js 13.48 kB │ gzip: 5.51 kB │ map: 32.57 kB
23
+ dist/index.js 77.06 kB │ gzip: 20.21 kB │ map: 217.97 kB
24
+ [vite:dts] Declaration files built in 4753ms.
25
25
 
26
- ✓ built in 5.95s
26
+ ✓ built in 6.33s
27
27
 
28
- > @cartridge/controller@0.9.0 build:node /home/runner/work/controller/controller/packages/controller
28
+ > @cartridge/controller@0.9.1 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
@@ -36,16 +36,16 @@ computing gzip size...
36
36
  CLI Cleaning output folder
37
37
  ESM Build start
38
38
  CJS Build start
39
+ "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
39
40
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
40
41
  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
- "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
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
45
42
  ESM dist/node/index.js 21.13 KB
46
- ESM dist/node/index.js.map 50.23 KB
47
- ESM ⚡️ Build success in 389ms
43
+ ESM dist/node/index.js.map 50.30 KB
44
+ ESM ⚡️ Build success in 361ms
45
+ CJS dist/node/index.cjs 21.89 KB
46
+ CJS dist/node/index.cjs.map 50.50 KB
47
+ CJS ⚡️ Build success in 361ms
48
48
  DTS Build start
49
- DTS ⚡️ Build success in 4125ms
49
+ DTS ⚡️ Build success in 4389ms
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.1 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.1 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-iltRv2Q1.js 13.48 kB │ gzip: 5.51 kB │ map: 32.57 kB
19
+ dist/index.js 77.06 kB │ gzip: 20.21 kB │ map: 217.97 kB
20
+ [vite:dts] Declaration files built in 4954ms.
21
21
 
22
- ✓ built in 5.93s
22
+ ✓ built in 6.73s
23
23
 
24
- > @cartridge/controller@0.9.0 build:node /home/runner/work/controller/controller/packages/controller
24
+ > @cartridge/controller@0.9.1 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
@@ -32,16 +32,16 @@ computing gzip size...
32
32
  CLI Cleaning output folder
33
33
  ESM Build start
34
34
  CJS Build start
35
- "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
36
35
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
37
36
  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
37
+ "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
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 395ms
41
+ ESM dist/node/index.js 21.13 KB
42
+ ESM dist/node/index.js.map 50.30 KB
43
+ ESM ⚡️ Build success in 396ms
44
+ DTS Build start
45
+ DTS ⚡️ Build success in 4422ms
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;
@@ -24,4 +24,5 @@ export declare class IFrame<CallSender extends {}> implements Modal {
24
24
  sendBackward(): void;
25
25
  sendForward(): void;
26
26
  private resize;
27
+ isOpen(): boolean;
27
28
  }
@@ -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 {};