@cascateer/core 2.4.12 → 2.4.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascateer/core",
3
- "version": "2.4.12",
3
+ "version": "2.4.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cascateer/core.git"
package/src/component.ts CHANGED
@@ -23,7 +23,7 @@ export function createComponent(customElement?: string) {
23
23
  >(
24
24
  constructor: (
25
25
  ctx: Context,
26
- ...cn: { -readonly [K in keyof Styles]: Awaited<Styles[K]> }
26
+ ...classNames: { -readonly [K in keyof Styles]: Awaited<Styles[K]> }
27
27
  ) => JSX.Component<Props>,
28
28
  ) =>
29
29
  class extends ComponentConstructor<Props> {
@@ -64,14 +64,14 @@ export function createStandaloneComponent(customElement?: string) {
64
64
  <Styles extends Promise<unknown>[]>(...styles: Styles) =>
65
65
  <Props extends JSX.Props>(
66
66
  constructor: (
67
- ...cn: { -readonly [K in keyof Styles]: Awaited<Styles[K]> }
67
+ ...classNames: { -readonly [K in keyof Styles]: Awaited<Styles[K]> }
68
68
  ) => JSX.Component<Props>,
69
69
  ): JSX.Component<Props> =>
70
70
  new (createComponent(customElement)
71
71
  .withStyles(...styles)
72
- .withTemplate<{}, Props>((_, ...cn) => constructor(...cn)))(
73
- {},
74
- ).predicate("cct");
72
+ .withTemplate<{}, Props>((_, ...classNames) =>
73
+ constructor(...classNames),
74
+ ))({}).predicate("cct");
75
75
 
76
76
  return {
77
77
  withStyles: <Styles extends Promise<unknown>[]>(...styles: Styles) => ({
package/src/terminal.ts CHANGED
@@ -115,6 +115,7 @@ export class ExtendableTerminalAdapter<
115
115
  actions: StoreActions;
116
116
  };
117
117
  api: {
118
+ effects: ApiEffects;
118
119
  actions: ApiActions;
119
120
  };
120
121
  terminal: {
@@ -142,6 +143,7 @@ export class ExtendableTerminalAdapter<
142
143
  actions: this.context.store.actions,
143
144
  },
144
145
  api: {
146
+ effects: this.context.api.effects,
145
147
  actions: this.context.api.actions,
146
148
  },
147
149
  terminal: {