eddyter 1.3.65 → 1.3.67
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/LICENSE +24 -24
- package/README.md +493 -493
- package/dist/api/config/endpoints.d.ts +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-B9hn44Wo.js → babel-CCPWkrf4.js} +1302 -726
- package/dist/components/LockedFeature/LockedFeature.d.ts +6 -6
- package/dist/components/PortalContext.d.ts +13 -0
- package/dist/config/env.d.ts +2 -0
- package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
- package/dist/{html-CxCicOef.js → html-CmniStvG.js} +589 -350
- package/dist/{html2pdf.bundle-9PCiy6C2.js → html2pdf.bundle-DgMJ1HfM.js} +3796 -2777
- package/dist/{html2pdf.bundle.min-D_g_u6ug.js → html2pdf.bundle.min-BOhKoOmb.js} +5223 -3407
- package/dist/{index-B9Gjsq91.js → index-B6qJV-9P.js} +1 -1
- package/dist/{index-CI28isEa.js → index-D-CSILuH.js} +12 -9
- package/dist/{index-dZIrqvsF.js → index-DU8RbwAT.js} +1 -1
- package/dist/{index-DWw_26Wr.js → index-ZDUb0XYv.js} +10621 -10149
- package/dist/index.js +1 -1
- package/dist/{markdown-BUjgWFLu.js → markdown-B0mEGGfQ.js} +1015 -578
- package/dist/{postcss-CGIcwj_g.js → postcss-B0bxXf7u.js} +1065 -615
- package/dist/{standalone-C0qguT38.js → standalone-DmuJV5rn.js} +596 -350
- package/dist/types.d.ts +1 -0
- package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
- package/package.json +152 -151
|
@@ -11,7 +11,6 @@ export interface LockedFeatureProps {
|
|
|
11
11
|
variant?: "overlay" | "inline";
|
|
12
12
|
/**
|
|
13
13
|
* planAllows: true if the user's plan includes this feature.
|
|
14
|
-
* When isEnabled=false and planAllows=true, shows "You disabled this" instead of "Not in your plan".
|
|
15
14
|
*/
|
|
16
15
|
planAllows?: boolean;
|
|
17
16
|
}
|
|
@@ -19,11 +18,12 @@ export interface LockedFeatureProps {
|
|
|
19
18
|
* LockedFeature - A wrapper component that shows a lock/disabled overlay on disabled features
|
|
20
19
|
*
|
|
21
20
|
* When isEnabled is true, renders children normally.
|
|
22
|
-
* When isEnabled is false
|
|
23
|
-
* -
|
|
24
|
-
* -
|
|
25
|
-
*
|
|
26
|
-
*
|
|
21
|
+
* When isEnabled is false:
|
|
22
|
+
* - If hideLockedFeatures is true, renders nothing (fully hidden)
|
|
23
|
+
* - Otherwise, renders children with:
|
|
24
|
+
* - Grayed out/disabled appearance (opacity-50)
|
|
25
|
+
* - Non-interactive (pointer-events-none on children)
|
|
26
|
+
* - Lock icon + "not available in your plan" tooltip
|
|
27
27
|
*/
|
|
28
28
|
declare const LockedFeature: FC<LockedFeatureProps>;
|
|
29
29
|
export default LockedFeature;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Context to provide a scoped portal container for Radix UI components.
|
|
4
|
+
* This ensures portaled content (dropdowns, dialogs, popovers) renders inside
|
|
5
|
+
* the .eddyter-scope wrapper, so CSS scoping works correctly.
|
|
6
|
+
*/
|
|
7
|
+
interface PortalContextValue {
|
|
8
|
+
container: HTMLElement | null;
|
|
9
|
+
}
|
|
10
|
+
declare const PortalContext: React.Context<PortalContextValue>;
|
|
11
|
+
export declare const usePortalContainer: () => HTMLElement | null;
|
|
12
|
+
export declare const PortalProvider: React.Provider<PortalContextValue>;
|
|
13
|
+
export default PortalContext;
|