@flexkit/studio 0.2.34 → 0.2.36
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/dist/{activity-nav-button-ZHQOZBCC.js → activity-nav-button-KOOMUTOW.js} +2 -2
- package/dist/{activity-nav-button-ZHQOZBCC.js.map → activity-nav-button-KOOMUTOW.js.map} +1 -1
- package/dist/chat-page-NDVHLH5Q.js +4 -0
- package/dist/chat-page-NDVHLH5Q.js.map +1 -0
- package/dist/chunk-27JTWTU6.js +2 -0
- package/dist/{chunk-3OBELKJU.js.map → chunk-27JTWTU6.js.map} +1 -1
- package/dist/chunk-2PBDHGRR.js +2 -0
- package/dist/chunk-2PBDHGRR.js.map +1 -0
- package/dist/{chunk-6AJRQSFO.js → chunk-474MQNDK.js} +3 -3
- package/dist/{chunk-6AJRQSFO.js.map → chunk-474MQNDK.js.map} +1 -1
- package/dist/{chunk-XYFS6X74.js → chunk-CGMKGENV.js} +2 -2
- package/dist/{chunk-XYFS6X74.js.map → chunk-CGMKGENV.js.map} +1 -1
- package/dist/chunk-FF5EBXYN.js +30 -0
- package/dist/chunk-FF5EBXYN.js.map +1 -0
- package/dist/chunk-FJS4SN3K.js +378 -0
- package/dist/chunk-FJS4SN3K.js.map +1 -0
- package/dist/chunk-FXUD4JRG.js +2 -0
- package/dist/chunk-FXUD4JRG.js.map +1 -0
- package/dist/{chunk-HR4QZ5TD.js → chunk-GTR4M2BQ.js} +3 -3
- package/dist/chunk-GTR4M2BQ.js.map +1 -0
- package/dist/{chunk-RBGXXVF4.js → chunk-HXPETSXC.js} +3 -3
- package/dist/{chunk-RBGXXVF4.js.map → chunk-HXPETSXC.js.map} +1 -1
- package/dist/{chunk-WU2KCXBC.js → chunk-L5Z56DDM.js} +2 -2
- package/dist/{chunk-WU2KCXBC.js.map → chunk-L5Z56DDM.js.map} +1 -1
- package/dist/{chunk-7JA6SI5H.js → chunk-LTM3MW2D.js} +2 -2
- package/dist/{chunk-7JA6SI5H.js.map → chunk-LTM3MW2D.js.map} +1 -1
- package/dist/{chunk-36DLIVZF.js → chunk-LVKBKU6Q.js} +2 -2
- package/dist/{chunk-36DLIVZF.js.map → chunk-LVKBKU6Q.js.map} +1 -1
- package/dist/chunk-LXLEUEWT.js +2 -0
- package/dist/chunk-LXLEUEWT.js.map +1 -0
- package/dist/chunk-MHEFVYKP.js +2 -0
- package/dist/chunk-MHEFVYKP.js.map +1 -0
- package/dist/{chunk-YC7PBLTK.js → chunk-NKDQQHCL.js} +2 -2
- package/dist/{chunk-YC7PBLTK.js.map → chunk-NKDQQHCL.js.map} +1 -1
- package/dist/chunk-OJ4RI6IQ.js +4 -0
- package/dist/{chunk-2FCVATRT.js.map → chunk-OJ4RI6IQ.js.map} +1 -1
- package/dist/chunk-PLCI2RJA.js +3 -0
- package/dist/chunk-PLCI2RJA.js.map +1 -0
- package/dist/{chunk-PSECMZJC.js → chunk-SOA2F7Z6.js} +3 -3
- package/dist/{chunk-PSECMZJC.js.map → chunk-SOA2F7Z6.js.map} +1 -1
- package/dist/{chunk-VRDTHLA3.js → chunk-TWA6OG5U.js} +3 -3
- package/dist/{chunk-VRDTHLA3.js.map → chunk-TWA6OG5U.js.map} +1 -1
- package/dist/{chunk-CHNQZU2P.js → chunk-VIBGMCLS.js} +2 -2
- package/dist/{chunk-CHNQZU2P.js.map → chunk-VIBGMCLS.js.map} +1 -1
- package/dist/{chunk-DFBG7PUJ.js → chunk-YJ4NWJCC.js} +4 -4
- package/dist/{chunk-DFBG7PUJ.js.map → chunk-YJ4NWJCC.js.map} +1 -1
- package/dist/entry-XHH3NKN2.js +2 -0
- package/dist/{entry-APJ4V7PW.js.map → entry-XHH3NKN2.js.map} +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/list-R64THLZD.js +2 -0
- package/dist/{list-7WFALOUT.js.map → list-R64THLZD.js.map} +1 -1
- package/dist/{list-7IHDJM54.js → list-XIE55HYD.js} +3 -3
- package/dist/{list-7IHDJM54.js.map → list-XIE55HYD.js.map} +1 -1
- package/dist/{pages-BV3ABSFQ.js → pages-OWXBU64L.js} +3 -3
- package/dist/{pages-BV3ABSFQ.js.map → pages-OWXBU64L.js.map} +1 -1
- package/dist/{plugin-pages-OWGJPPWV.js → plugin-pages-JBJQHBIN.js} +2 -2
- package/dist/{plugin-pages-OWGJPPWV.js.map → plugin-pages-JBJQHBIN.js.map} +1 -1
- package/dist/{project-selector-V5N2724B.js → project-selector-L2WZ3MB5.js} +2 -2
- package/dist/{project-selector-V5N2724B.js.map → project-selector-L2WZ3MB5.js.map} +1 -1
- package/dist/record-links-BEKOPDDR.js +2 -0
- package/dist/{record-links-3P3XSW66.js.map → record-links-BEKOPDDR.js.map} +1 -1
- package/dist/{root-F2GTYDJM.js → root-B5XP6VYU.js} +2 -2
- package/dist/{root-F2GTYDJM.js.map → root-B5XP6VYU.js.map} +1 -1
- package/dist/{root-NIL2UHKS.js → root-DUQULYRX.js} +2 -2
- package/dist/{root-NIL2UHKS.js.map → root-DUQULYRX.js.map} +1 -1
- package/dist/{root-GBBZ3DX5.js → root-I22KNOFC.js} +3 -3
- package/dist/{root-GBBZ3DX5.js.map → root-I22KNOFC.js.map} +1 -1
- package/dist/{root-J62PBDZ2.js → root-O4DMQLEH.js} +2 -2
- package/dist/{root-J62PBDZ2.js.map → root-O4DMQLEH.js.map} +1 -1
- package/dist/root-RUOT5OSO.js +23 -0
- package/dist/{root-RGZZYETM.js.map → root-RUOT5OSO.js.map} +1 -1
- package/dist/root-VLD6GNZL.js +14 -0
- package/dist/root-VLD6GNZL.js.map +1 -0
- package/dist/{search-IIGNCQEZ.js → search-4UQR6ENH.js} +2 -2
- package/dist/{search-IIGNCQEZ.js.map → search-4UQR6ENH.js.map} +1 -1
- package/dist/{skills-pages-T52MF4DO.js → skills-pages-VUIOUEYQ.js} +2 -2
- package/dist/{skills-pages-T52MF4DO.js.map → skills-pages-VUIOUEYQ.js.map} +1 -1
- package/dist/source-L54C4T3X.js +2 -0
- package/dist/{source-IJAAJDGW.js.map → source-L54C4T3X.js.map} +1 -1
- package/package.json +2 -2
- package/dist/chat-page-7XT4K75G.js +0 -4
- package/dist/chat-page-7XT4K75G.js.map +0 -1
- package/dist/chunk-2FCVATRT.js +0 -4
- package/dist/chunk-3OBELKJU.js +0 -2
- package/dist/chunk-4PUMSUJL.js +0 -30
- package/dist/chunk-4PUMSUJL.js.map +0 -1
- package/dist/chunk-ERDARDGB.js +0 -2
- package/dist/chunk-ERDARDGB.js.map +0 -1
- package/dist/chunk-HR4QZ5TD.js.map +0 -1
- package/dist/chunk-KO2JLLUJ.js +0 -2
- package/dist/chunk-KO2JLLUJ.js.map +0 -1
- package/dist/chunk-PC5Z37LT.js +0 -378
- package/dist/chunk-PC5Z37LT.js.map +0 -1
- package/dist/chunk-U6NFYYTF.js +0 -2
- package/dist/chunk-U6NFYYTF.js.map +0 -1
- package/dist/chunk-U6VZY3V2.js +0 -3
- package/dist/chunk-U6VZY3V2.js.map +0 -1
- package/dist/chunk-XMOSCJOI.js +0 -2
- package/dist/chunk-XMOSCJOI.js.map +0 -1
- package/dist/chunk-YDVO6XWD.js +0 -2
- package/dist/chunk-YDVO6XWD.js.map +0 -1
- package/dist/entry-APJ4V7PW.js +0 -2
- package/dist/list-7WFALOUT.js +0 -2
- package/dist/record-links-3P3XSW66.js +0 -2
- package/dist/root-LYRL7VPN.js +0 -14
- package/dist/root-LYRL7VPN.js.map +0 -1
- package/dist/root-RGZZYETM.js +0 -23
- package/dist/source-IJAAJDGW.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import'./index.css';import {g,e,x}from'./chunk-FF5EBXYN.js';import'./chunk-FJS4SN3K.js';import {f}from'./chunk-TWA6OG5U.js';import'./chunk-MBBE4RND.js';import'./chunk-5CVDMZUI.js';import'./chunk-RULCANNM.js';import'./chunk-A4DPLZZF.js';import'./chunk-G5N6HEPW.js';import'./chunk-5JUG4BEF.js';import'./chunk-S7Z6KKIN.js';import'./chunk-U45E5X3H.js';import {b,c,e as e$1,a}from'./chunk-N33S7BSG.js';import {c as c$1}from'./chunk-X3SHNHHM.js';import {Waypoints}from'lucide-react';import {useNavigate}from'react-router-dom';import {jsxs,jsx}from'react/jsx-runtime';function S({entityName:n,selectedIds:t}){let{currentProjectId:i,currentProjectSchema:r}=f(),l=useNavigate(),e$2=g(r,n);if(!i||!e$2||e(e$2).length===0)return null;let a=t.length>0?`Open ${t.length} in Graph`:"Open in Graph";return jsxs(b,{children:[jsx(c,{asChild:true,children:jsxs(c$1,{"aria-label":a,className:"fk:mr-2 fk:h-8",onClick:()=>l(x(i,{entity:n,ids:t})),size:"sm",variant:"outline",children:[jsx(Waypoints,{className:"fk:size-4",strokeWidth:1.5}),t.length>0?`Graph (${t.length})`:"Graph"]})}),jsx(e$1,{children:t.length>0?"Show the selected records and their relationships":"Explore these records as a graph"})]})}function B({entityName:n,recordId:t,onNavigate:i}){let{currentProjectId:r,currentProjectSchema:l}=f(),e$2=useNavigate(),a$1=g(l,n);return !r||!a$1||!t||e(a$1).length===0?null:jsx(a,{children:jsxs(b,{children:[jsx(c,{asChild:true,children:jsx(c$1,{"aria-label":"View in Graph",className:"fk:h-9 fk:w-9",onClick:()=>{e$2(x(r,{entity:n,ids:[t]})),i?.();},size:"icon",variant:"outline",children:jsx(Waypoints,{className:"fk:size-4",strokeWidth:1.5})})}),jsx(e$1,{children:"View in Graph"})]})})}export{S as EntityGraphButton,B as RecordGraphButton};//# sourceMappingURL=entry-XHH3NKN2.js.map
|
|
2
|
+
//# sourceMappingURL=entry-XHH3NKN2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/apps/graph/entry.tsx"],"names":["EntityGraphButton","entityName","selectedIds","currentProjectId","currentProjectSchema","useConfig","navigate","useNavigate","entity","getEntity","getRelationshipAttributes","label","jsxs","Tooltip","jsx","TooltipTrigger","Button","graphPath","WaypointsIcon","TooltipContent","RecordGraphButton","recordId","onNavigate","TooltipProvider"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/apps/graph/entry.tsx"],"names":["EntityGraphButton","entityName","selectedIds","currentProjectId","currentProjectSchema","useConfig","navigate","useNavigate","entity","getEntity","getRelationshipAttributes","label","jsxs","Tooltip","jsx","TooltipTrigger","Button","graphPath","WaypointsIcon","TooltipContent","RecordGraphButton","recordId","onNavigate","TooltipProvider"],"mappings":"ijBAaO,SAASA,CAAAA,CAAkB,CAAE,UAAA,CAAAC,CAAAA,CAAY,WAAA,CAAAC,CAAY,CAAA,CAAsE,CAChI,GAAM,CAAE,gBAAA,CAAAC,CAAAA,CAAkB,oBAAA,CAAAC,CAAqB,CAAA,CAAIC,CAAAA,EAAU,CACvDC,CAAAA,CAAWC,WAAAA,EAAY,CACvBC,IAASC,CAAAA,CAAUL,CAAAA,CAAsBH,CAAU,CAAA,CAEzD,GAAI,CAACE,GAAoB,CAACK,GAAAA,EAAUE,CAAAA,CAA0BF,GAAM,CAAA,CAAE,MAAA,GAAW,CAAA,CAC/E,OAAO,IAAA,CAGT,IAAMG,CAAAA,CAAQT,CAAAA,CAAY,MAAA,CAAS,CAAA,CAAI,QAAQA,CAAAA,CAAY,MAAM,CAAA,SAAA,CAAA,CAAc,eAAA,CAE/E,OACEU,IAAAA,CAACC,EAAA,CACC,QAAA,CAAA,CAAAC,GAAAA,CAACC,CAAAA,CAAA,CAAe,OAAA,CAAO,KACrB,QAAA,CAAAH,IAAAA,CAACI,GAAAA,CAAA,CACC,YAAA,CAAYL,CAAAA,CACZ,SAAA,CAAU,gBAAA,CACV,OAAA,CAAS,IAAML,CAAAA,CAASW,CAAAA,CAAUd,CAAAA,CAAkB,CAAE,OAAQF,CAAAA,CAAY,GAAA,CAAKC,CAAY,CAAC,CAAC,CAAA,CAC7F,KAAK,IAAA,CACL,OAAA,CAAQ,SAAA,CAER,QAAA,CAAA,CAAAY,GAAAA,CAACI,SAAAA,CAAA,CAAc,SAAA,CAAU,WAA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AAA,CAAc,UAAU,WAAA,CAAY,WAAA,CAAa,GAAA,CAAK,CAAA,CACzD,CAAA,CACF,CAAA,CACAJ,GAAAA,CAACK,GAAAA,CAAA,CAAe,QAAA,CAAA,eAAA,CAAa,CAAA,CAAA,CAC/B,CAAA,CACF,CAEJ","file":"entry-XHH3NKN2.js","sourcesContent":["'use client';\n\nimport type { JSX } from 'react';\nimport { Waypoints as WaypointsIcon } from 'lucide-react';\nimport { useNavigate } from 'react-router-dom';\nimport { useConfig } from '../../core/config/config-context';\nimport { Button, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui';\nimport { getEntity, getRelationshipAttributes, graphPath } from './graph';\n\n/**\n * \"Open in Graph\" for a Desk list: the selected records, or a sample of the\n * entity when nothing is selected. Hidden for entities without relationships.\n */\nexport function EntityGraphButton({ entityName, selectedIds }: { entityName: string; selectedIds: string[] }): JSX.Element | null {\n const { currentProjectId, currentProjectSchema } = useConfig();\n const navigate = useNavigate();\n const entity = getEntity(currentProjectSchema, entityName);\n\n if (!currentProjectId || !entity || getRelationshipAttributes(entity).length === 0) {\n return null;\n }\n\n const label = selectedIds.length > 0 ? `Open ${selectedIds.length} in Graph` : 'Open in Graph';\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>\n <Button\n aria-label={label}\n className=\"fk:mr-2 fk:h-8\"\n onClick={() => navigate(graphPath(currentProjectId, { entity: entityName, ids: selectedIds }))}\n size=\"sm\"\n variant=\"outline\"\n >\n <WaypointsIcon className=\"fk:size-4\" strokeWidth={1.5} />\n {selectedIds.length > 0 ? `Graph (${selectedIds.length})` : 'Graph'}\n </Button>\n </TooltipTrigger>\n <TooltipContent>\n {selectedIds.length > 0 ? 'Show the selected records and their relationships' : 'Explore these records as a graph'}\n </TooltipContent>\n </Tooltip>\n );\n}\n\n/**\n * \"View in Graph\" in a record drawer: the record expanded one hop. The drawer\n * is mounted outside any app, so the tooltip brings its own provider.\n */\nexport function RecordGraphButton({\n entityName,\n recordId,\n onNavigate,\n}: {\n entityName: string;\n recordId: string;\n onNavigate?: () => void;\n}): JSX.Element | null {\n const { currentProjectId, currentProjectSchema } = useConfig();\n const navigate = useNavigate();\n const entity = getEntity(currentProjectSchema, entityName);\n\n if (!currentProjectId || !entity || !recordId || getRelationshipAttributes(entity).length === 0) {\n return null;\n }\n\n return (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>\n <Button\n aria-label=\"View in Graph\"\n className=\"fk:h-9 fk:w-9\"\n onClick={() => {\n navigate(graphPath(currentProjectId, { entity: entityName, ids: [recordId] }));\n onNavigate?.();\n }}\n size=\"icon\"\n variant=\"outline\"\n >\n <WaypointsIcon className=\"fk:size-4\" strokeWidth={1.5} />\n </Button>\n </TooltipTrigger>\n <TooltipContent>View in Graph</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -695,6 +695,8 @@ declare function getEntityQuery(entityNamePlural: string, scope: string, schema:
|
|
|
695
695
|
includeCount?: boolean;
|
|
696
696
|
countMode?: EntityQueryCountMode;
|
|
697
697
|
operationName?: string;
|
|
698
|
+
/** The project's default scope (the one with `isDefault`). */
|
|
699
|
+
defaultScope?: string;
|
|
698
700
|
}): EntityQuery;
|
|
699
701
|
/**
|
|
700
702
|
* Returns a string with the GraphQl query needed to mutate the dataToMutate object for the given entity and scope.
|
|
@@ -702,6 +704,7 @@ declare function getEntityQuery(entityNamePlural: string, scope: string, schema:
|
|
|
702
704
|
declare function getEntityUpdateMutation(entityNamePlural: string, entityId: string, scope: string, schema: UiSchema, originalData: FormEntityItem, dataToMutate: FormEntityItem, options?: {
|
|
703
705
|
currentUser?: User;
|
|
704
706
|
responseFields?: string;
|
|
707
|
+
defaultScope?: string;
|
|
705
708
|
}): string;
|
|
706
709
|
/**
|
|
707
710
|
* Returns a string with the GraphQl mutation needed to delete one or more entities.
|
|
@@ -716,8 +719,9 @@ declare function getEntityDeleteWhere(ids: string | readonly string[]): {
|
|
|
716
719
|
in: string[];
|
|
717
720
|
};
|
|
718
721
|
};
|
|
719
|
-
declare function getEntityCreateMutation(entityNamePlural: string, schema: UiSchema, entityData: FormEntityItem, _id: string,
|
|
722
|
+
declare function getEntityCreateMutation(entityNamePlural: string, schema: UiSchema, entityData: FormEntityItem, _id: string, options?: {
|
|
720
723
|
currentUser?: User;
|
|
724
|
+
defaultScope?: string;
|
|
721
725
|
}): string;
|
|
722
726
|
declare function getEntitySchema(schema: UiSchema, entityNamePlural: string): UiEntity | undefined;
|
|
723
727
|
|