gaesup-world 0.0.651 → 0.0.652

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.
@@ -1,2 +1,2 @@
1
1
  import { controllerType } from "./type";
2
- export default function GaesupController(props: controllerType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function GaesupController(props: controllerType): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __assign = (this && this.__assign) || function () {
3
2
  __assign = Object.assign || function(t) {
4
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -20,7 +19,7 @@ import initControllerProps from "../initial/controller";
20
19
  import { GaesupWorldContext } from "../world/context";
21
20
  import { GaesupControllerContext, GaesupControllerDispatchContext, gaesupControllerDefault, } from "./context";
22
21
  import { gaesupControllerReducer } from "./context/reducer";
23
- export default function GaesupController(props) {
22
+ export function GaesupController(props) {
24
23
  var mode = useContext(GaesupWorldContext).mode;
25
24
  var _a = useReducer(gaesupControllerReducer, {
26
25
  cameraMode: Object.assign(gaesupControllerDefault.cameraMode, props.cameraMode || {}),
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export default function GaeSupProps({ text, position, jumpPoint, children, }: {
2
+ export declare function GaeSupProps({ text, position, jumpPoint, children, }: {
3
3
  text: string;
4
4
  position?: [number, number, number];
5
5
  jumpPoint?: boolean;
@@ -23,7 +23,7 @@ import { vec3 } from "@react-three/rapier";
23
23
  import { useContext, useEffect, useRef } from "react";
24
24
  import * as THREE from "three";
25
25
  import { GaesupWorldContext, GaesupWorldDispatchContext, } from "../world/context/index.js";
26
- export default function GaeSupProps(_a) {
26
+ export function GaeSupProps(_a) {
27
27
  var text = _a.text, position = _a.position, jumpPoint = _a.jumpPoint, children = _a.children;
28
28
  var groupRef = useRef(null);
29
29
  var _b = useContext(GaesupWorldContext), minimap = _b.minimap, points = _b.points;
@@ -1,8 +1,8 @@
1
1
  export { playActions } from "./animation";
2
2
  export * as Camera from "./camera";
3
3
  export { Airplane, Character, Vehicle } from "./component";
4
- export * as GaesupController from "./controller";
5
- export * as GaeSupProps from "./gaesupProps";
4
+ export { GaesupController } from "./controller";
5
+ export { GaeSupProps } from "./gaesupProps";
6
6
  export * from "./initial";
7
- export * as GaeSupTools from "./tools";
8
- export * as GaesupWorld from "./world";
7
+ export { GaeSupTools } from "./tools";
8
+ export { GaesupWorld } from "./world";
@@ -1,8 +1,8 @@
1
1
  export { playActions } from "./animation";
2
2
  export * as Camera from "./camera";
3
3
  export { Airplane, Character, Vehicle } from "./component";
4
- export * as GaesupController from "./controller";
5
- export * as GaeSupProps from "./gaesupProps";
4
+ export { GaesupController } from "./controller";
5
+ export { GaeSupProps } from "./gaesupProps";
6
6
  export * from "./initial";
7
- export * as GaeSupTools from "./tools";
8
- export * as GaesupWorld from "./world";
7
+ export { GaeSupTools } from "./tools";
8
+ export { GaesupWorld } from "./world";
@@ -1,2 +1,2 @@
1
1
  import { gaesupToolsPartialPropType } from "./type";
2
- export default function GaeSupTools({ keyboardToolTip, joystick, minimap, gameboy, gamepad, }: gaesupToolsPartialPropType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function GaeSupTools({ keyboardToolTip, joystick, minimap, gameboy, gamepad, }: gaesupToolsPartialPropType): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { useContext, useMemo, useReducer } from "react";
4
3
  import { GaesupWorldContext } from "../world/context";
@@ -16,7 +15,7 @@ import MiniMap from "./minimap";
16
15
  import { minimapDefault } from "./minimap/default";
17
16
  import { gaesupToolsReducer } from "./reducer";
18
17
  import * as style from "./style.css";
19
- export default function GaeSupTools(_a) {
18
+ export function GaeSupTools(_a) {
20
19
  var keyboardToolTip = _a.keyboardToolTip, joystick = _a.joystick, minimap = _a.minimap, gameboy = _a.gameboy, gamepad = _a.gamepad;
21
20
  var worldContext = useContext(GaesupWorldContext);
22
21
  var mode = worldContext.mode;
@@ -1,2 +1,2 @@
1
1
  import { initGaesupWorldPropsType } from "../initial/gaesupWorld/type";
2
- export default function GaesupWorld(props: initGaesupWorldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function GaesupWorld(props: initGaesupWorldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import initGaesupWorld from "../initial/gaesupWorld";
3
3
  import { GaesupWorldContext, GaesupWorldDispatchContext } from "./context";
4
- export default function GaesupWorld(props) {
4
+ export function GaesupWorld(props) {
5
5
  var gaesupProps = initGaesupWorld(props).gaesupProps;
6
6
  return (_jsx(GaesupWorldContext.Provider, { value: gaesupProps.value, children: _jsx(GaesupWorldDispatchContext.Provider, { value: gaesupProps.dispatch, children: props.children }) }));
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.0.651",
3
+ "version": "0.0.652",
4
4
  "description": "Web 3D Character Controller and World Platform Library",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import { Collider, RevoluteImpulseJoint } from "@dimforge/rapier3d-compat";
4
2
  import { RapierRigidBody } from "@react-three/rapier";
5
3
  import { useContext, useMemo, useReducer, useRef } from "react";
@@ -18,7 +16,7 @@ import {
18
16
  import { gaesupControllerReducer } from "./context/reducer";
19
17
  import { controllerType, propType, refsType } from "./type";
20
18
 
21
- export default function GaesupController(props: controllerType) {
19
+ export function GaesupController(props: controllerType) {
22
20
  const { mode } = useContext(GaesupWorldContext);
23
21
  const [controller, controllerDispatch] = useReducer(gaesupControllerReducer, {
24
22
  cameraMode: Object.assign(
@@ -6,7 +6,7 @@ import {
6
6
  GaesupWorldDispatchContext,
7
7
  } from "../world/context/index.js";
8
8
 
9
- export default function GaeSupProps({
9
+ export function GaeSupProps({
10
10
  text,
11
11
  position,
12
12
  jumpPoint,
@@ -1,8 +1,8 @@
1
1
  export { playActions } from "./animation";
2
2
  export * as Camera from "./camera";
3
3
  export { Airplane, Character, Vehicle } from "./component";
4
- export * as GaesupController from "./controller";
5
- export * as GaeSupProps from "./gaesupProps";
4
+ export { GaesupController } from "./controller";
5
+ export { GaeSupProps } from "./gaesupProps";
6
6
  export * from "./initial";
7
- export * as GaeSupTools from "./tools";
8
- export * as GaesupWorld from "./world";
7
+ export { GaeSupTools } from "./tools";
8
+ export { GaesupWorld } from "./world";
@@ -1,7 +1,4 @@
1
- "use client";
2
-
3
1
  import { useContext, useMemo, useReducer } from "react";
4
-
5
2
  import { GaesupWorldContext } from "../world/context";
6
3
  import { GaesupToolsContext, GaesupToolsDispatchContext } from "./context";
7
4
  import GameBoy from "./gameboy";
@@ -18,7 +15,7 @@ import { minimapDefault } from "./minimap/default";
18
15
  import { gaesupToolsReducer } from "./reducer";
19
16
  import * as style from "./style.css";
20
17
  import { gaesupToolsPartialPropType } from "./type";
21
- export default function GaeSupTools({
18
+ export function GaeSupTools({
22
19
  keyboardToolTip,
23
20
  joystick,
24
21
  minimap,
@@ -2,7 +2,7 @@ import initGaesupWorld from "../initial/gaesupWorld";
2
2
  import { initGaesupWorldPropsType } from "../initial/gaesupWorld/type";
3
3
  import { GaesupWorldContext, GaesupWorldDispatchContext } from "./context";
4
4
 
5
- export default function GaesupWorld(props: initGaesupWorldPropsType) {
5
+ export function GaesupWorld(props: initGaesupWorldPropsType) {
6
6
  const { gaesupProps } = initGaesupWorld(props);
7
7
  return (
8
8
  <GaesupWorldContext.Provider value={gaesupProps.value}>