npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@taojimu/widget-runtime

v1.0.10-beta.2

Published

提供淘积木小部件 jsApi 运行时方案

Downloads

16

Readme

淘积木小部件 jsApi 运行时

提供淘积木小部件 jsApi 运行时方案

安装

# npm 国内用户可设置淘宝镜像
npm config set registry https://registry.npmmirror.com
npm install @taojimu/widget-runtime -S

# yarn
yarn add @taojimu/widget-runtime -S

使用

// 直接在小部件代码头部直接引入即可
import '@taojimu/widget-runtime';

// 小部件具体逻辑
Component({
  data: {},
  didMount() {},
  methods: {},
});

更新日志

1.0.10 - 2024-06-25

  • feat: 直塞店铺小部件场景增加自动领取入会优惠能力。
  • feat: 增加 my.tb.tjmGetConfigData 方法。

1.0.9 - 2023-11-17

  • feat: 增加搜索关键词 API
  • feat: 优化二方留资相关 API

1.0.8 - 2023-11-10

  • feat: 增加二方留资相关 API

1.0.7 - 2023-09-27

  • feat: 旺铺搭建小部件支持人群查询能力

1.0.6 - 2023-08-08

  • feat: 增加小部件人群查询能力。
  • feat: 优化直播间领取奖励能力。

1.0.5 - 2023-05-04

  • feat: 互动大促保障,接口增加配额管理能力。

1.0.4

  • fix: 修复 my.tb.tjmTaskBrowsePage 在安卓下浏览店铺页面的 bug。

1.0.3

  • fix: 修复 my.tb.openDetail 跳转商详出现的 302 情况。

1.0.2 - 2023-02-23

  • feat: 增加手淘订阅能力。
  • feat: 增加浏览任意页面任务能力。

1.0.1 - 2023-02-09

  • fix: 修复黄金令箭乱码问题。
  • fix: 修复 Android 下三方小部件实时监控丢失问题。增加小部件 3.0 错误日志的监听上报。
  • feat: 增加 d.ts 说明文档。
  • feat: 升级 query-string 至 8.x 版本,支持 tree-shaking,优化打包体积。

1.0.0 - 2022-12-27

  • feat: 支持旺铺搭建小部件 API 的兼容情况。
  • feat: 对于不支持三方调用的接口,给出正确的信息提示。

0.0.16 - 2022-12-22

  • feat: 支持旺铺搭建小部件 API 的兼容情况。
  • feat: 支持添加频道任务,仅支持二方调用。

0.0.15 - 2022-12-07

  • feat: 支持直播间领取红包能力。
  • feat: 对接 itrace sdk,支持小部件实时监控能力的上报。
  • feat: 优化打包体积。

0.0.14 - 2022-10-26

  • 1、feat: 查询直播亲密分的 API my.tb.tjmLiveQueryLevel 增加返回 code 字段。

0.0.13 - 2022-09-27

  • 1、feat: 增加商品下单任务 API 以及 查询是否下单 API.
  • 2、feat: 优化部署状态下透出版本信息,方便定位问题.

0.0.12 - 2022-09-22

  • fix: 修复入会弹窗在某些情况下强制跳转页面的情况;
  • fix: 修复浏览店铺任务在安卓下任务立即失败的问题。
  • feat: 优化跳转到与小部件相关联的淘积木页面 url 参数的填充顺序;
  • feat: 内置自动发送曝光的逻辑处理;
  • feat: 优化开发状态下更多的日志透出到控制台,方便调试。

0.0.11 - 2022-09-15

  • feat: 增加任务相关的 API 共 17 个,目前支持 9 种任务、favorItem(收藏商品)、favorShop(关注店铺)、favorLive(关注直播间)、joinMember(入会)、goShop (浏览店铺)、goItemDetail(浏览宝贝详情)、appointLive(观看直播)、share(分享任务)、addBag(加购任务)。若要使用任务相关 API,需将配置应用中的 @taojimu/meta-view 升级到 0.0.13 版本以上,链接请戳

0.0.10 - 2022-08-19

  • feat: 增加查询直播亲密分的 API my.tb.tjmLiveQueryLevel

0.0.9 - 2022-08-10

  • feat: 增加跳转商家旺旺的 API my.tb.tjmGotoCustomerService

0.0.8 - 2022-07-21

  • feat: 增加小部件投放直播间对于商品加购、商品收藏等商品相关行为上报 GMV。
  • feat: 支持 my.tb.openDetail 的兼容处理。

0.0.7 - 2022-07-14

  • feat: 增加商详接口更详细的价格展示

0.0.6 - 2022-05-26

  • feat: 透出奖励物料字段award.
  • feat: 黄金令箭增加scene_id.

0.0.4 ~ 0.0.5 - 2022-05-19

  • feat: 去掉updatePageProperties 方法。
  • feat: 发送黄金令箭日志时判断是否存在小部件专有的埋点方法my.callUserTrack 是否存在,如果不存在,则不进行发送。

0.0.3 - 2022-05-15

  • feat: 更新组件曝光逻辑,使用record方法来更新pageName和记录宿主url.
  • feat: 优化my.tb.tjmNavigateToOutside方法异常处理原因。

0.0.2 - 2022-05-12

  • fix: 修复 Uncaught TypeError: Function(...) is not a function 报错。
  • fix: 解析 url 参数优先使用运行时方案。
  • feat: 增加 my.tb.tjmGetRewriteURL 方法。

0.0.1 - 2022-05-11

  • feat: 测试,以及发布 npm.