@docuninja/builder2.0 0.0.72 → 0.0.76

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/README.md CHANGED
@@ -1,32 +1,7 @@
1
- # DocuNinja: Builder
1
+ # @docuninja/builder2.0
2
2
 
3
- This is builder component for DocuNinja. Idea behind this to publish package that can be used in any app, just like main use in Invoice Ninja.
3
+ This is a closed-source package. The npm package contains only precompiled/bundled code.
4
4
 
5
- ## Getting started
5
+ Source code is not publicly available.
6
6
 
7
- Main source file in in `src/builder/index.tsx`. This file is exported and built. However, this repo is configured for use as demo.
8
-
9
- ```bash
10
- npm i
11
- npm run dev
12
- ```
13
-
14
- To build and distribute the package:
15
-
16
- ```bash
17
- npm run build
18
- ```
19
-
20
- `dist/` folder will contain distributable file as well as type declaration. Final output is tree shaken, without runtime dependencies (react, react-dom, react/jsx-runtime).
21
-
22
- At the moment, we should target React 18, since we want to maintain high compat with main Invoice Ninja app.
23
-
24
- ### Formatting
25
-
26
- ```
27
- npm run format
28
- ```
29
-
30
- Notes:
31
- - Please stick to strict TypeScript.
32
- - Make sure code builds before you push.
7
+ For all necessary information, contact us at [docuninja.co](https://docuninja.co).
@@ -42,6 +42,9 @@ export declare function useSignContext(): Sign;
42
42
  export declare function useSignContextPlus(): Sign & {
43
43
  http: Axios;
44
44
  };
45
+ export declare function useOptionalSignContextPlus(): (Sign & {
46
+ http: Axios;
47
+ }) | null;
45
48
  export declare function Sign(): import("@emotion/react/jsx-runtime").JSX.Element;
46
49
  export type InvitationWithToken = Document & {
47
50
  "X-Signer-Token"?: string;
@@ -113,6 +113,9 @@ export declare function useBuilderContext(): Builder;
113
113
  export declare function useBuilderContextPlus(): Builder & {
114
114
  http: Axios;
115
115
  };
116
+ export declare function useOptionalBuilderContextPlus(): (Builder & {
117
+ http: Axios;
118
+ }) | null;
116
119
  export declare function Builder(): import("@emotion/react/jsx-runtime").JSX.Element;
117
120
  export * from '../component-types';
118
121
  export * from '../sign';
package/dist/builder.d.ts CHANGED
@@ -912,6 +912,14 @@ export declare function useBuilderContextPlus(): Builder & {
912
912
  http: Axios;
913
913
  };
914
914
 
915
+ export declare function useOptionalBuilderContextPlus(): (Builder & {
916
+ http: Axios;
917
+ }) | null;
918
+
919
+ export declare function useOptionalSignContextPlus(): (Sign & {
920
+ http: Axios;
921
+ }) | null;
922
+
915
923
  export declare interface User {
916
924
  id: string;
917
925
  account_id: string | null;