keystonemc 4.0.0 → 4.0.1

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.
@@ -12,9 +12,12 @@ export type JSXElementType = ((props: any) => any) | typeof Fragment;
12
12
  * JSX のエントリポイント
13
13
  */
14
14
  export declare function createElement(type: JSXElementType, props: any, ...children: any[]): any;
15
+ /**
16
+ * 本番モード用 JSX エントリポイント
17
+ */
18
+ export declare function jsx(type: JSXElementType, props: any, _key?: unknown): any;
19
+ export { jsx as jsxs };
15
20
  /**
16
21
  * 開発モード用 JSX エントリポイント
17
- * デバッグ情報(key, isStaticChildren, source, self)を受け取るが、現在は無視
18
22
  */
19
23
  export declare function jsxDEV(type: JSXElementType, props: any, ..._deps: unknown[]): any;
20
- export { createElement as jsx, createElement as jsxs, };
@@ -16,7 +16,7 @@ function normalizeChildren(children) {
16
16
  (child) => child !== null && child !== void 0 && child !== false
17
17
  );
18
18
  }
19
- function jsxDEV(type, props, ..._deps) {
19
+ function jsxInternal(type, props) {
20
20
  const children = props?.children;
21
21
  const restProps = { ...props };
22
22
  delete restProps.children;
@@ -31,10 +31,16 @@ function jsxDEV(type, props, ..._deps) {
31
31
  children: normalizeChildren(Array.isArray(children) ? children : [children])
32
32
  });
33
33
  }
34
+ function jsx(type, props, _key) {
35
+ return jsxInternal(type, props);
36
+ }
37
+ function jsxDEV(type, props, ..._deps) {
38
+ return jsxInternal(type, props);
39
+ }
34
40
  export {
35
41
  Fragment,
36
42
  createElement,
37
- createElement as jsx,
43
+ jsx,
38
44
  jsxDEV,
39
- createElement as jsxs
45
+ jsx as jsxs
40
46
  };
@@ -16,9 +16,8 @@ const behaviorPacker = ({
16
16
  embedSourceMap: true
17
17
  }) => ({
18
18
  name: "BehaviorPacker",
19
- config: (config) => {
19
+ config: () => {
20
20
  return {
21
- ...config,
22
21
  build: {
23
22
  sourcemap: true,
24
23
  minify: false,
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "keystonemc",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "ScriptAPI Wrapper",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsc && vite build",
8
8
  "prepare": "npm run build"
9
9
  },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/XxPMMPERxX/KeystoneCore"
13
+ },
10
14
  "main": "./dist/index.js",
11
15
  "module": "./dist/index.js",
12
16
  "types": "./dist/core/index.d.ts",