@corva/ui 0.103.0-1 → 0.103.0-2

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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./CommentsSwitchContext.js");exports.CommentsSwitchProvider=function(n){var s=n.children,i=t.useState(!1),o=i[0],c=i[1];return e.jsx(r.CommentsSwitchContext.Provider,{value:{commentsEnabled:o,setCommentsEnabled:c},children:s})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./CommentsSwitchContext.js");exports.CommentsSwitchProvider=function(i){var n=i.children,o=i.initial,s=void 0!==o&&o,c=t.useState(s),m=c[0],u=c[1];return e.jsx(r.CommentsSwitchContext.Provider,{value:{commentsEnabled:m,setCommentsEnabled:u},children:n})};
@@ -1 +1 @@
1
- {"version":3,"file":"DevCenterAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"names":[],"mappings":";AA2CA;;;;;;;;;;;;;;;;;;;;;;;;;gBAiRC"}
1
+ {"version":3,"file":"DevCenterAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js"],"names":[],"mappings":";AA2CA;;;;;;;;;;;;;;;;;;;;;;;;;gBAkRC"}
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const CommentsSwitchProvider: ({ children }: {
2
+ export declare const CommentsSwitchProvider: ({ children, initial, }: {
3
3
  children: ReactNode;
4
+ initial?: boolean;
4
5
  }) => JSX.Element;
5
6
  //# sourceMappingURL=CommentsSwitchProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommentsSwitchProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5C,eAAO,MAAM,sBAAsB,iBAAkB;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gBAQ3E,CAAC"}
1
+ {"version":3,"file":"CommentsSwitchProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5C,eAAO,MAAM,sBAAsB,2BAGhC;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,gBAQA,CAAC"}
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useState as e}from"react";import{CommentsSwitchContext as t}from"./CommentsSwitchContext.js";var m=function(m){var o=m.children,n=e(!1),i=n[0],a=n[1];return r(t.Provider,{value:{commentsEnabled:i,setCommentsEnabled:a},children:o})};export{m as CommentsSwitchProvider};
1
+ import{jsx as r}from"react/jsx-runtime";import{useState as t}from"react";import{CommentsSwitchContext as e}from"./CommentsSwitchContext.js";var o=function(o){var i=o.children,m=o.initial,n=t(void 0!==m&&m),a=n[0],c=n[1];return r(e.Provider,{value:{commentsEnabled:a,setCommentsEnabled:c},children:i})};export{o as CommentsSwitchProvider};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.103.0-1",
3
+ "version": "0.103.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { AppCommonsContextType } from '../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext';
3
+ export type AppTestWrapperProps = {
4
+ children?: ReactNode;
5
+ commentsEnabled?: boolean;
6
+ } & AppCommonsContextType;
7
+ export declare const AppTestWrapper: ({ children, commentsEnabled, app, appId, appSettings, onSettingChange, wells, well, rig, maximized, fracFleet, }: AppTestWrapperProps) => JSX.Element;
8
+ //# sourceMappingURL=AppTestWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppTestWrapper.d.ts","sourceRoot":"","sources":["../../../src/testing/AppTestWrapper/AppTestWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0FAA0F,CAAC;AAGjI,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,qBAAqB,CAAC;AAE1B,eAAO,MAAM,cAAc,qHAgBxB,mBAAmB,gBAgBrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './AppTestWrapper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/AppTestWrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './AppTestWrapper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}