@taole/newgiftbar 0.0.3 → 0.0.5

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.
@@ -3398,7 +3398,7 @@ function create_fragment$p(ctx) {
3398
3398
  create_component(giftbalance.$$.fragment);
3399
3399
  t9 = space();
3400
3400
  div2 = element("div");
3401
- div2.innerHTML = `<a href="${getRechargeUrl()}" target="_blank">充值</a>`;
3401
+ div2.innerHTML = `<a href="${getRechargeUrl()}" target="_blank" style="margin-right: 5px;">充值</a>`;
3402
3402
  attr(input, "type", "number");
3403
3403
  input.value = /*selectNum*/
3404
3404
  ctx[0];
@@ -5692,7 +5692,12 @@ function create_fragment$k(ctx) {
5692
5692
  ctx[2]
5693
5693
  );
5694
5694
  attr(iframe, "frameborder", "0");
5695
- attr(iframe, "allow", "local-network-access 'src'");
5695
+ attr(
5696
+ iframe,
5697
+ "allow",
5698
+ /*iframeAllow*/
5699
+ ctx[4]
5700
+ );
5696
5701
  attr(iframe, "class", "svelte-1ma5gxj");
5697
5702
  attr(div0, "role", "presentation");
5698
5703
  attr(div0, "class", "giftbar-iframe-wrap svelte-1ma5gxj");
@@ -5725,11 +5730,11 @@ function create_fragment$k(ctx) {
5725
5730
  dispose = [
5726
5731
  listen(div0, "click", stop_propagation(
5727
5732
  /*click_handler*/
5728
- ctx[7]
5733
+ ctx[8]
5729
5734
  )),
5730
5735
  listen(div1, "click", stop_propagation(
5731
5736
  /*handleClose*/
5732
- ctx[4]
5737
+ ctx[5]
5733
5738
  ))
5734
5739
  ];
5735
5740
  mounted = true;
@@ -5759,6 +5764,15 @@ function create_fragment$k(ctx) {
5759
5764
  ctx2[2]
5760
5765
  );
5761
5766
  }
5767
+ if (dirty & /*iframeAllow*/
5768
+ 16) {
5769
+ attr(
5770
+ iframe,
5771
+ "allow",
5772
+ /*iframeAllow*/
5773
+ ctx2[4]
5774
+ );
5775
+ }
5762
5776
  if (dirty & /*width*/
5763
5777
  2) {
5764
5778
  set_style(
@@ -5799,6 +5813,7 @@ function create_fragment$k(ctx) {
5799
5813
  };
5800
5814
  }
5801
5815
  function instance$k($$self, $$props, $$invalidate) {
5816
+ let iframeAllow;
5802
5817
  let { closeModal } = $$props;
5803
5818
  let { url = "" } = $$props;
5804
5819
  let { width = 400 } = $$props;
@@ -5837,18 +5852,20 @@ function instance$k($$self, $$props, $$invalidate) {
5837
5852
  bubble.call(this, $$self, event);
5838
5853
  }
5839
5854
  $$self.$$set = ($$props2) => {
5840
- if ("closeModal" in $$props2) $$invalidate(5, closeModal = $$props2.closeModal);
5855
+ if ("closeModal" in $$props2) $$invalidate(6, closeModal = $$props2.closeModal);
5841
5856
  if ("url" in $$props2) $$invalidate(0, url = $$props2.url);
5842
5857
  if ("width" in $$props2) $$invalidate(1, width = $$props2.width);
5843
5858
  if ("height" in $$props2) $$invalidate(2, height = $$props2.height);
5844
- if ("onRefreshHaveGift" in $$props2) $$invalidate(6, onRefreshHaveGift = $$props2.onRefreshHaveGift);
5859
+ if ("onRefreshHaveGift" in $$props2) $$invalidate(7, onRefreshHaveGift = $$props2.onRefreshHaveGift);
5845
5860
  if ("iframeId" in $$props2) $$invalidate(3, iframeId = $$props2.iframeId);
5846
5861
  };
5862
+ $$invalidate(4, iframeAllow = options.isChatTest ? "local-network-access 'src'" : void 0);
5847
5863
  return [
5848
5864
  url,
5849
5865
  width,
5850
5866
  height,
5851
5867
  iframeId,
5868
+ iframeAllow,
5852
5869
  handleClose,
5853
5870
  closeModal,
5854
5871
  onRefreshHaveGift,
@@ -5859,11 +5876,11 @@ class IframeModal extends SvelteComponent {
5859
5876
  constructor(options2) {
5860
5877
  super();
5861
5878
  init(this, options2, instance$k, create_fragment$k, safe_not_equal, {
5862
- closeModal: 5,
5879
+ closeModal: 6,
5863
5880
  url: 0,
5864
5881
  width: 1,
5865
5882
  height: 2,
5866
- onRefreshHaveGift: 6,
5883
+ onRefreshHaveGift: 7,
5867
5884
  iframeId: 3
5868
5885
  });
5869
5886
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/newgiftbar",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "聊天室 / IM 礼物栏业务组件",
5
5
  "author": "",
6
6
  "module": "./npm/newgiftbar.es.js",