@ray-js/code-sandbox 0.0.7-beta-11 → 0.0.7-beta-12

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.
@@ -35,8 +35,9 @@ export interface UseCodeSandboxDrawerOps {
35
35
  cssCode?: string;
36
36
  styMap?: any;
37
37
  cssParse?: (css: string) => Promise<string>;
38
+ noTypeInit?: boolean;
38
39
  }
39
- export declare const useCodeSandboxDrawer: ({ getContainer, title, height, placement, isZhLanguage, pageName, txpCode, emptyText, langKey, baseUri, code, editorApi, cssCode, styMap, cssParse, }: UseCodeSandboxDrawerOps) => {
40
+ export declare const useCodeSandboxDrawer: ({ getContainer, title, height, placement, isZhLanguage, pageName, txpCode, emptyText, langKey, baseUri, code, editorApi, cssCode, styMap, cssParse, noTypeInit, }: UseCodeSandboxDrawerOps) => {
40
41
  modal: React.JSX.Element;
41
42
  show: boolean;
42
43
  setShow: React.Dispatch<React.SetStateAction<boolean>>;
@@ -137,7 +137,8 @@ export const useCodeSandboxDrawer = _ref2 => {
137
137
  editorApi,
138
138
  cssCode,
139
139
  styMap,
140
- cssParse
140
+ cssParse,
141
+ noTypeInit
141
142
  } = _ref2;
142
143
  const [show, setShow] = useState(false);
143
144
  return {
@@ -158,6 +159,7 @@ export const useCodeSandboxDrawer = _ref2 => {
158
159
  setShow(false);
159
160
  }
160
161
  }, /*#__PURE__*/React.createElement(CodeSandbox, {
162
+ noTypeInit: noTypeInit,
161
163
  editorApi: editorApi,
162
164
  isZhLanguage: isZhLanguage,
163
165
  emptyText: emptyText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/code-sandbox",
3
- "version": "0.0.7-beta-11",
3
+ "version": "0.0.7-beta-12",
4
4
  "description": "小程序 CodeSandbox 容器",
5
5
  "main": "lib/index",
6
6
  "files": [