@aglyn/plugins-logic 1.0.0-beta.229 → 1.0.0-beta.231
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/package.json +8 -8
- package/src/lib/components/host-functions-card.component.js +69 -11
- package/src/lib/components/host-functions-card.component.js.map +1 -1
- package/src/lib/components/host-reference-health-card.component.d.ts +2 -0
- package/src/lib/components/host-reference-health-card.component.js +11 -2
- package/src/lib/components/host-reference-health-card.component.js.map +1 -1
- package/src/lib/components/host-variables-card.component.js +36 -0
- package/src/lib/components/host-variables-card.component.js.map +1 -1
- package/src/lib/components/logic-console-page.js +2 -1
- package/src/lib/components/logic-console-page.js.map +1 -1
- package/src/lib/components/logic-zones.d.ts +75 -0
- package/src/lib/components/logic-zones.js +21 -0
- package/src/lib/components/logic-zones.js.map +1 -0
- package/src/lib/plugin.d.ts +1 -0
- package/src/lib/plugin.js +32 -0
- package/src/lib/plugin.js.map +1 -1
package/src/lib/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/plugins/logic/src/lib/plugin.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Aglyn from '@aglyn/aglyn'\nimport { mdiFunctionVariant } from '@aglyn/shared-data-mdi'\nimport { lazy } from 'react'\nimport HostFunctionsCard from './components/host-functions-card.component'\nimport HostVariablesCard from './components/host-variables-card.component'\nimport { BUNDLE_ID } from './constants/bundle-common'\n\n/** Code-split: the Logic console page only loads when opened. */\nconst LogicConsolePage = lazy(() => import('./components/logic-console-page'))\n\n/** The dependents dialog, loaded where the Automation page draws its zone. */\nconst WhereUsedDialog = lazy(\n () => import('./components/where-used-dialog.component'),\n)\n\n/**\n * Logic feature plugin (AGL-395). Console-only — variables and no-code\n * functions resolve at render through the tenant compose pipeline, not a\n * canvas element of their own, so there is no UI bundle. The console half\n * declares the Logic nav + page through the ConsoleExtension registry\n * (always-on; the surface is not release-flagged). Its dependents dialog is\n * also drawn in the zone the Automation page hosts for a workflow's usage.\n */\nexport function registerLogicConsole(): void {\n Aglyn.registerConsoleExtension({\n // Variables/functions cards (AGL-419): the besigner functions\n // drawer renders them through the 'besignerFunctions' slot.\n widgets: [\n {\n slot: 'besignerFunctions',\n widgetId: 'logic-variables',\n Component: HostVariablesCard,\n },\n {\n slot: 'besignerFunctions',\n widgetId: 'logic-functions',\n Component: HostFunctionsCard,\n },\n // Where a WORKFLOW is used: the Automation page runs the scan and hosts\n // the zone; the dialog that lays a scan out is the one a variable and a\n // function open here, so it is drawn by this plugin.\n {\n slot: 'workflowUsage',\n widgetId: 'logic-where-used',\n Component: WhereUsedDialog,\n },\n ],\n pluginId: BUNDLE_ID,\n displayName: 'Logic',\n navItems: [\n {\n label: 'Logic',\n href: '/logic',\n navTabId: 'nav-tab-logic',\n icon: { path: mdiFunctionVariant.path },\n header: {\n title: 'Functions & Variables',\n icon: { path: mdiFunctionVariant.path },\n docsTopic: 'bindings',\n },\n Component: LogicConsolePage,\n },\n ],\n })\n}\n\n// Cards consumed directly by the app (the besigner Functions/Variables\n// button opens them in a drawer).\nexport { default as HostVariablesCard } from './components/host-variables-card.component'\nexport type { HostVariablesCardProps } from './components/host-variables-card.component'\nexport { default as HostFunctionsCard } from './components/host-functions-card.component'\nexport type { HostFunctionsCardProps } from './components/host-functions-card.component'\n\n"],"names":["Aglyn","mdiFunctionVariant","lazy","HostFunctionsCard","HostVariablesCard","BUNDLE_ID","LogicConsolePage","WhereUsedDialog","registerLogicConsole","registerConsoleExtension","widgets","slot","widgetId","Component","
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/logic/src/lib/plugin.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as Aglyn from '@aglyn/aglyn'\nimport { mdiFunctionVariant } from '@aglyn/shared-data-mdi'\nimport { lazy } from 'react'\nimport HostFunctionsCard from './components/host-functions-card.component'\nimport HostVariablesCard from './components/host-variables-card.component'\nimport { BUNDLE_ID } from './constants/bundle-common'\nimport { registerPluginZone } from '@aglyn/aglyn/plugin-manager/plugin-zones'\nimport {\n HOST_LOGIC_ZONE,\n LOGIC_FUNCTION_EDITOR_ZONE,\n LOGIC_REFERENCE_ISSUE_ZONE,\n} from './components/logic-zones'\n\n/** Code-split: the Logic console page only loads when opened. */\nconst LogicConsolePage = lazy(() => import('./components/logic-console-page'))\n\n/** The dependents dialog, loaded where the Automation page draws its zone. */\nconst WhereUsedDialog = lazy(\n () => import('./components/where-used-dialog.component'),\n)\n\n/**\n * Logic feature plugin (AGL-395). Console-only — variables and no-code\n * functions resolve at render through the tenant compose pipeline, not a\n * canvas element of their own, so there is no UI bundle. The console half\n * declares the Logic nav + page through the ConsoleExtension registry\n * (always-on; the surface is not release-flagged). Its dependents dialog is\n * also drawn in the zone the Automation page hosts for a workflow's usage.\n */\nexport function registerLogicConsole(): void {\n // The zones the Functions & Variables page draws in its own layouts\n // (AGL-3603): one control in each card's header, one inside a saved\n // function's editor, one on each broken reference.\n registerPluginZone(\n {\n zone: HOST_LOGIC_ZONE,\n label: 'Functions & Variables actions',\n surface: 'console',\n layout: 'bare',\n description:\n 'In the header of the Functions card and of the Variables card: another way to start one. `kind` names the card; `propose` opens a proposal of that kind in the card’s editor, unsaved, and answers `false` when it cannot. A widget here writes nothing.',\n },\n { pluginId: BUNDLE_ID },\n )\n registerPluginZone(\n {\n zone: LOGIC_FUNCTION_EDITOR_ZONE,\n label: 'A function’s editor',\n surface: 'console',\n layout: 'bare',\n description:\n 'Inside the editor of one saved function. A widget here reads the function as it is stored; `propose` replaces what the editor holds, unsaved, and the editor’s Save is the only write.',\n },\n { pluginId: BUNDLE_ID },\n )\n registerPluginZone(\n {\n zone: LOGIC_REFERENCE_ISSUE_ZONE,\n label: 'A broken reference',\n surface: 'console',\n layout: 'bare',\n description:\n 'On each broken reference the Reference health card lists. A widget here reads the issue — what holds the reference, and what it points at that is gone — and changes nothing.',\n },\n { pluginId: BUNDLE_ID },\n )\n Aglyn.registerConsoleExtension({\n // Variables/functions cards (AGL-419): the besigner functions\n // drawer renders them through the 'besignerFunctions' slot.\n widgets: [\n {\n slot: 'besignerFunctions',\n widgetId: 'logic-variables',\n Component: HostVariablesCard,\n },\n {\n slot: 'besignerFunctions',\n widgetId: 'logic-functions',\n Component: HostFunctionsCard,\n },\n // Where a WORKFLOW is used: the Automation page runs the scan and hosts\n // the zone; the dialog that lays a scan out is the one a variable and a\n // function open here, so it is drawn by this plugin.\n {\n slot: 'workflowUsage',\n widgetId: 'logic-where-used',\n Component: WhereUsedDialog,\n },\n ],\n pluginId: BUNDLE_ID,\n displayName: 'Logic',\n navItems: [\n {\n label: 'Logic',\n href: '/logic',\n navTabId: 'nav-tab-logic',\n icon: { path: mdiFunctionVariant.path },\n header: {\n title: 'Functions & Variables',\n icon: { path: mdiFunctionVariant.path },\n docsTopic: 'bindings',\n },\n Component: LogicConsolePage,\n },\n ],\n })\n}\n\nexport type {\n HostLogicZoneProps,\n LogicFunctionEditorZoneProps,\n LogicProposal,\n LogicReferenceIssueZoneProps,\n} from './components/logic-zones'\n\n// Cards consumed directly by the app (the besigner Functions/Variables\n// button opens them in a drawer).\nexport { default as HostVariablesCard } from './components/host-variables-card.component'\nexport type { HostVariablesCardProps } from './components/host-variables-card.component'\nexport { default as HostFunctionsCard } from './components/host-functions-card.component'\nexport type { HostFunctionsCardProps } from './components/host-functions-card.component'\n\n"],"names":["Aglyn","mdiFunctionVariant","lazy","HostFunctionsCard","HostVariablesCard","BUNDLE_ID","registerPluginZone","HOST_LOGIC_ZONE","LOGIC_FUNCTION_EDITOR_ZONE","LOGIC_REFERENCE_ISSUE_ZONE","LogicConsolePage","WhereUsedDialog","registerLogicConsole","zone","label","surface","layout","description","pluginId","registerConsoleExtension","widgets","slot","widgetId","Component","displayName","navItems","href","navTabId","icon","path","header","title","docsTopic","default"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,YAAYA,WAAW,eAAc;AACrC,SAASC,kBAAkB,QAAQ,yBAAwB;AAC3D,SAASC,IAAI,QAAQ,QAAO;AAC5B,OAAOC,uBAAuB,gDAA4C;AAC1E,OAAOC,uBAAuB,gDAA4C;AAC1E,SAASC,SAAS,QAAQ,+BAA2B;AACrD,SAASC,kBAAkB,QAAQ,2CAA0C;AAC7E,SACEC,eAAe,EACfC,0BAA0B,EAC1BC,0BAA0B,QACrB,8BAA0B;AAEjC,+DAA+D,GAC/D,MAAMC,mBAAmBR,KAAK,IAAM,MAAM,CAAC;AAE3C,4EAA4E,GAC5E,MAAMS,kBAAkBT,KACtB,IAAM,MAAM,CAAC;AAGf;;;;;;;CAOC,GACD,OAAO,SAASU;IACd,oEAAoE;IACpE,oEAAoE;IACpE,mDAAmD;IACnDN,mBACE;QACEO,MAAMN;QACNO,OAAO;QACPC,SAAS;QACTC,QAAQ;QACRC,aACE;IACJ,GACA;QAAEC,UAAUb;IAAU;IAExBC,mBACE;QACEO,MAAML;QACNM,OAAO;QACPC,SAAS;QACTC,QAAQ;QACRC,aACE;IACJ,GACA;QAAEC,UAAUb;IAAU;IAExBC,mBACE;QACEO,MAAMJ;QACNK,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