@player-ui/check-path-plugin-react 0.3.0-next.3 → 0.3.0-next.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.
package/dist/index.cjs.js CHANGED
@@ -57,8 +57,8 @@ class CheckPathPlugin extends checkPathPlugin.CheckPathPlugin {
57
57
  super(...arguments);
58
58
  this.name = "check-path-web";
59
59
  }
60
- applyWeb(wp) {
61
- wp.hooks.webComponent.tap(this.name, (Comp) => {
60
+ applyReact(rp) {
61
+ rp.hooks.webComponent.tap(this.name, (Comp) => {
62
62
  return () => /* @__PURE__ */ React__default["default"].createElement(CheckPathContext.Provider, {
63
63
  value: { plugin: this }
64
64
  }, /* @__PURE__ */ React__default["default"].createElement(Comp, null));
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WebPlayerPlugin, WebPlayer } from '@player-ui/react';
1
+ import { ReactPlayerPlugin, ReactPlayer } from '@player-ui/react';
2
2
  import { Query, CheckPathPlugin as CheckPathPlugin$1 } from '@player-ui/check-path-plugin';
3
3
  import { Asset } from '@player-ui/player';
4
4
  import React from 'react';
@@ -24,9 +24,9 @@ declare const CheckPathContext: React.Context<CheckPathContextType>;
24
24
  /**
25
25
  * A plugin for adding the check-path provider to the web-player
26
26
  */
27
- declare class CheckPathPlugin extends CheckPathPlugin$1 implements WebPlayerPlugin {
27
+ declare class CheckPathPlugin extends CheckPathPlugin$1 implements ReactPlayerPlugin {
28
28
  name: string;
29
- applyWeb(wp: WebPlayer): void;
29
+ applyReact(rp: ReactPlayer): void;
30
30
  }
31
31
 
32
32
  export { AssetOrID, CheckPathContext, CheckPathContextType, CheckPathPlugin, useGetParent, useGetParentProp, useGetPath, useHasChildContext, useHasParentContext };
package/dist/index.esm.js CHANGED
@@ -49,8 +49,8 @@ class CheckPathPlugin extends CheckPathPlugin$1 {
49
49
  super(...arguments);
50
50
  this.name = "check-path-web";
51
51
  }
52
- applyWeb(wp) {
53
- wp.hooks.webComponent.tap(this.name, (Comp) => {
52
+ applyReact(rp) {
53
+ rp.hooks.webComponent.tap(this.name, (Comp) => {
54
54
  return () => /* @__PURE__ */ React.createElement(CheckPathContext.Provider, {
55
55
  value: { plugin: this }
56
56
  }, /* @__PURE__ */ React.createElement(Comp, null));
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@player-ui/check-path-plugin-react",
3
- "version": "0.3.0-next.3",
3
+ "version": "0.3.0-next.5",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
7
7
  },
8
8
  "peerDependencies": {
9
- "@player-ui/react": "0.3.0-next.3"
9
+ "@player-ui/react": "0.3.0-next.5"
10
10
  },
11
11
  "dependencies": {
12
- "@player-ui/check-path-plugin": "0.3.0-next.3",
12
+ "@player-ui/check-path-plugin": "0.3.0-next.5",
13
13
  "@babel/runtime": "7.15.4"
14
14
  },
15
15
  "main": "dist/index.cjs.js",
package/src/index.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WebPlayer, WebPlayerPlugin } from '@player-ui/react';
2
+ import type { ReactPlayer, ReactPlayerPlugin } from '@player-ui/react';
3
3
  import { CheckPathPlugin as CheckPathCorePlugin } from '@player-ui/check-path-plugin';
4
4
  import { CheckPathContext } from './context';
5
5
 
@@ -11,12 +11,12 @@ export * from './context';
11
11
  */
12
12
  export class CheckPathPlugin
13
13
  extends CheckPathCorePlugin
14
- implements WebPlayerPlugin
14
+ implements ReactPlayerPlugin
15
15
  {
16
16
  name = 'check-path-web';
17
17
 
18
- applyWeb(wp: WebPlayer) {
19
- wp.hooks.webComponent.tap(this.name, (Comp) => {
18
+ applyReact(rp: ReactPlayer) {
19
+ rp.hooks.webComponent.tap(this.name, (Comp) => {
20
20
  return () => (
21
21
  <CheckPathContext.Provider value={{ plugin: this }}>
22
22
  <Comp />