@netless/fastboard-ui 0.3.0-canary.2 → 0.3.0-canary.3

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/dist/index.d.ts CHANGED
@@ -58,7 +58,7 @@ declare interface ReplayFastboardProps {
58
58
  player?: FastboardPlayer | null;
59
59
  theme?: Theme;
60
60
  language?: Language;
61
- ref?: (container: HTMLDivElement | null) => void;
61
+ containerRef?: (container: HTMLDivElement | null) => void;
62
62
  }
63
63
  declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {
64
64
  }
@@ -67,7 +67,7 @@ declare interface FastboardProps {
67
67
  app?: FastboardApp | null;
68
68
  theme?: Theme;
69
69
  language?: Language;
70
- ref?: (container: HTMLDivElement | null) => void;
70
+ containerRef?: (container: HTMLDivElement | null) => void;
71
71
  }
72
72
  declare class Fastboard extends SvelteComponentTyped<FastboardProps> {
73
73
  }
package/dist/index.js CHANGED
@@ -9903,7 +9903,7 @@ function instance57($$self, $$props, $$invalidate) {
9903
9903
  let { player = null } = $$props;
9904
9904
  let { theme = "light" } = $$props;
9905
9905
  let { language = "en" } = $$props;
9906
- let { ref = void 0 } = $$props;
9906
+ let { containerRef = void 0 } = $$props;
9907
9907
  let container;
9908
9908
  function div0_binding($$value) {
9909
9909
  binding_callbacks[$$value ? "unshift" : "push"](() => {
@@ -9918,8 +9918,8 @@ function instance57($$self, $$props, $$invalidate) {
9918
9918
  $$invalidate(1, theme = $$props2.theme);
9919
9919
  if ("language" in $$props2)
9920
9920
  $$invalidate(2, language = $$props2.language);
9921
- if ("ref" in $$props2)
9922
- $$invalidate(4, ref = $$props2.ref);
9921
+ if ("containerRef" in $$props2)
9922
+ $$invalidate(4, containerRef = $$props2.containerRef);
9923
9923
  };
9924
9924
  $$self.$$.update = () => {
9925
9925
  if ($$self.$$.dirty & 9) {
@@ -9929,16 +9929,21 @@ function instance57($$self, $$props, $$invalidate) {
9929
9929
  }
9930
9930
  if ($$self.$$.dirty & 24) {
9931
9931
  $:
9932
- if (ref)
9933
- ref(container || null);
9932
+ if (containerRef)
9933
+ containerRef(container || null);
9934
9934
  }
9935
9935
  };
9936
- return [player, theme, language, container, ref, div0_binding];
9936
+ return [player, theme, language, container, containerRef, div0_binding];
9937
9937
  }
9938
9938
  var ReplayFastboard = class extends SvelteComponent {
9939
9939
  constructor(options) {
9940
9940
  super();
9941
- init(this, options, instance57, create_fragment57, safe_not_equal, { player: 0, theme: 1, language: 2, ref: 4 });
9941
+ init(this, options, instance57, create_fragment57, safe_not_equal, {
9942
+ player: 0,
9943
+ theme: 1,
9944
+ language: 2,
9945
+ containerRef: 4
9946
+ });
9942
9947
  }
9943
9948
  };
9944
9949
  var ReplayFastboard_default = ReplayFastboard;
@@ -10100,7 +10105,7 @@ function instance58($$self, $$props, $$invalidate) {
10100
10105
  let { app = null } = $$props;
10101
10106
  let { theme = "light" } = $$props;
10102
10107
  let { language = "en" } = $$props;
10103
- let { ref = void 0 } = $$props;
10108
+ let { containerRef = void 0 } = $$props;
10104
10109
  let container;
10105
10110
  function div0_binding($$value) {
10106
10111
  binding_callbacks[$$value ? "unshift" : "push"](() => {
@@ -10115,8 +10120,8 @@ function instance58($$self, $$props, $$invalidate) {
10115
10120
  $$invalidate(1, theme = $$props2.theme);
10116
10121
  if ("language" in $$props2)
10117
10122
  $$invalidate(2, language = $$props2.language);
10118
- if ("ref" in $$props2)
10119
- $$invalidate(4, ref = $$props2.ref);
10123
+ if ("containerRef" in $$props2)
10124
+ $$invalidate(4, containerRef = $$props2.containerRef);
10120
10125
  };
10121
10126
  $$self.$$.update = () => {
10122
10127
  if ($$self.$$.dirty & 9) {
@@ -10126,16 +10131,21 @@ function instance58($$self, $$props, $$invalidate) {
10126
10131
  }
10127
10132
  if ($$self.$$.dirty & 24) {
10128
10133
  $:
10129
- if (ref)
10130
- ref(container || null);
10134
+ if (containerRef)
10135
+ containerRef(container || null);
10131
10136
  }
10132
10137
  };
10133
- return [app, theme, language, container, ref, div0_binding];
10138
+ return [app, theme, language, container, containerRef, div0_binding];
10134
10139
  }
10135
10140
  var Fastboard = class extends SvelteComponent {
10136
10141
  constructor(options) {
10137
10142
  super();
10138
- init(this, options, instance58, create_fragment58, safe_not_equal, { app: 0, theme: 1, language: 2, ref: 4 });
10143
+ init(this, options, instance58, create_fragment58, safe_not_equal, {
10144
+ app: 0,
10145
+ theme: 1,
10146
+ language: 2,
10147
+ containerRef: 4
10148
+ });
10139
10149
  }
10140
10150
  };
10141
10151
  var Fastboard_default = Fastboard;