@wildo-ai/presets-components 1.1.5 β 1.1.7
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/esm/.native.tsbuildinfo +1 -0
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js +5 -2
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/ai-elements/chat/suggestion.d.ts.map +1 -1
- package/dist/esm/components/ai-elements/chat/suggestion.js +8 -1
- package/dist/esm/components/ai-elements/chat/suggestion.js.map +1 -1
- package/dist/esm/components/ai-elements/decision/approval.d.ts +108 -13
- package/dist/esm/components/ai-elements/decision/approval.d.ts.map +1 -1
- package/dist/esm/components/ai-elements/decision/approval.js +60 -10
- package/dist/esm/components/ai-elements/decision/approval.js.map +1 -1
- package/dist/esm/components/ai-elements/graph/graph-runtime.d.ts +3 -1
- package/dist/esm/components/ai-elements/graph/graph-runtime.d.ts.map +1 -1
- package/dist/esm/components/ai-elements/graph/graph-runtime.js +3 -1
- package/dist/esm/components/ai-elements/graph/graph-runtime.js.map +1 -1
- package/dist/esm/components/app/app-layout-main-container.d.ts +9 -0
- package/dist/esm/components/app/app-layout-main-container.d.ts.map +1 -1
- package/dist/esm/components/app/app-layout-main-container.js +17 -23
- package/dist/esm/components/app/app-layout-main-container.js.map +1 -1
- package/dist/esm/components/app/app-layout-main-container.labels.d.ts.map +1 -1
- package/dist/esm/components/app/app-layout-main-container.labels.js +27 -0
- package/dist/esm/components/app/app-layout-main-container.labels.js.map +1 -1
- package/dist/esm/components/billing/billing-plan-change-preview.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-plan-change-preview.js +5 -2
- package/dist/esm/components/billing/billing-plan-change-preview.js.map +1 -1
- package/dist/esm/components/billing/billing-plan-change-preview.labels.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-plan-change-preview.labels.js +3 -0
- package/dist/esm/components/billing/billing-plan-change-preview.labels.js.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.d.ts +1 -1
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +8 -4
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.labels.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.labels.js +7 -1
- package/dist/esm/components/billing/billing-pricing-table.labels.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +6 -3
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.labels.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.labels.js +2 -1
- package/dist/esm/components/billing/billing-usage-dashboard.labels.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-enum.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-enum.js +18 -4
- package/dist/esm/components/data-display/formatters/display-field-enum.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-file.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-file.js +13 -14
- package/dist/esm/components/data-display/formatters/display-field-file.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-file.labels.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-file.labels.js +1 -0
- package/dist/esm/components/data-display/formatters/display-field-file.labels.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-number.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-number.js +6 -1
- package/dist/esm/components/data-display/formatters/display-field-number.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-number.labels.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-number.labels.js +5 -2
- package/dist/esm/components/data-display/formatters/display-field-number.labels.js.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-string.d.ts +1 -1
- package/dist/esm/components/data-display/formatters/display-field-string.d.ts.map +1 -1
- package/dist/esm/components/data-display/formatters/display-field-string.js +51 -12
- package/dist/esm/components/data-display/formatters/display-field-string.js.map +1 -1
- package/dist/esm/components/data-display/untrusted-html-content.d.ts +55 -0
- package/dist/esm/components/data-display/untrusted-html-content.d.ts.map +1 -0
- package/dist/esm/components/data-display/untrusted-html-content.js +67 -0
- package/dist/esm/components/data-display/untrusted-html-content.js.map +1 -0
- package/dist/esm/components/form/chromes/form-primitive.labels.d.ts.map +1 -1
- package/dist/esm/components/form/chromes/form-primitive.labels.js +9 -0
- package/dist/esm/components/form/chromes/form-primitive.labels.js.map +1 -1
- package/dist/esm/components/form/combobox.d.ts.map +1 -1
- package/dist/esm/components/form/combobox.js +10 -10
- package/dist/esm/components/form/combobox.js.map +1 -1
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.adapter.d.ts +42 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.adapter.d.ts.map +1 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.adapter.js +120 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.adapter.js.map +1 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.d.ts +16 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.d.ts.map +1 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.js +8 -0
- package/dist/esm/components/form/controls/address/providers/google-places-address-lookup.js.map +1 -0
- package/dist/esm/components/navigation/app-level/activity-bar.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/activity-bar.js +2 -2
- package/dist/esm/components/navigation/app-level/activity-bar.js.map +1 -1
- package/dist/esm/components/navigation/app-level/menu-user-org.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/menu-user-org.js +10 -4
- package/dist/esm/components/navigation/app-level/menu-user-org.js.map +1 -1
- package/dist/esm/components/navigation/app-level/menu-user-org.labels.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/menu-user-org.labels.js +7 -0
- package/dist/esm/components/navigation/app-level/menu-user-org.labels.js.map +1 -1
- package/dist/esm/components/navigation/app-level/menubar.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/menubar.js +6 -6
- package/dist/esm/components/navigation/app-level/menubar.js.map +1 -1
- package/dist/esm/components/navigation/app-level/navigation-back.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/navigation-back.js +27 -9
- package/dist/esm/components/navigation/app-level/navigation-back.js.map +1 -1
- package/dist/esm/components/navigation/app-level/sidebar.js +3 -3
- package/dist/esm/components/navigation/app-level/sidebar.js.map +1 -1
- package/dist/esm/components/navigation/app-level/status-bar.js +2 -2
- package/dist/esm/components/navigation/app-level/status-bar.js.map +1 -1
- package/dist/esm/components/navigation/app-level/toolbar.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/toolbar.js +2 -2
- package/dist/esm/components/navigation/app-level/toolbar.js.map +1 -1
- package/dist/esm/components/navigation/app-level/utility-panel.js +2 -2
- package/dist/esm/components/navigation/app-level/utility-panel.js.map +1 -1
- package/dist/esm/components/navigation/breadcrumb.js +1 -1
- package/dist/esm/components/navigation/breadcrumb.js.map +1 -1
- package/dist/esm/components/sections/stepper.d.ts.map +1 -1
- package/dist/esm/components/sections/stepper.js +5 -3
- package/dist/esm/components/sections/stepper.js.map +1 -1
- package/dist/esm/config/preset-navigation.d.ts.map +1 -1
- package/dist/esm/config/preset-navigation.js +23 -2
- package/dist/esm/config/preset-navigation.js.map +1 -1
- package/dist/esm/config/resources/agent-work.resource-presets.d.ts +4 -0
- package/dist/esm/config/resources/agent-work.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/agent-work.resource-presets.js +115 -0
- package/dist/esm/config/resources/agent-work.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/api-key-rotation-window.d.ts +22 -0
- package/dist/esm/config/resources/api-key-rotation-window.d.ts.map +1 -0
- package/dist/esm/config/resources/api-key-rotation-window.js +45 -0
- package/dist/esm/config/resources/api-key-rotation-window.js.map +1 -0
- package/dist/esm/config/resources/application.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/application.resource-presets.js +147 -61
- package/dist/esm/config/resources/application.resource-presets.js.map +1 -1
- package/dist/esm/config/resources/billing.resource-presets.d.ts +4 -3
- package/dist/esm/config/resources/billing.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/billing.resource-presets.js +240 -111
- package/dist/esm/config/resources/billing.resource-presets.js.map +1 -1
- package/dist/esm/config/resources/conversation-threads.resource-presets.d.ts +4 -0
- package/dist/esm/config/resources/conversation-threads.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/conversation-threads.resource-presets.js +105 -0
- package/dist/esm/config/resources/conversation-threads.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/guidance.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/guidance.resource-presets.js +18 -11
- package/dist/esm/config/resources/guidance.resource-presets.js.map +1 -1
- package/dist/esm/config/resources/identity.resource-presets.d.ts +0 -13
- package/dist/esm/config/resources/identity.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/identity.resource-presets.js +48 -16
- package/dist/esm/config/resources/identity.resource-presets.js.map +1 -1
- package/dist/esm/config/resources/inbound-deliveries.resource-presets.d.ts +6 -0
- package/dist/esm/config/resources/inbound-deliveries.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/inbound-deliveries.resource-presets.js +112 -0
- package/dist/esm/config/resources/inbound-deliveries.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/inbound-email.resource-presets.d.ts +4 -0
- package/dist/esm/config/resources/inbound-email.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/inbound-email.resource-presets.js +182 -0
- package/dist/esm/config/resources/inbound-email.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/index.d.ts.map +1 -1
- package/dist/esm/config/resources/index.js +9 -2
- package/dist/esm/config/resources/index.js.map +1 -1
- package/dist/esm/config/resources/legal-holds.resource-presets.d.ts +4 -0
- package/dist/esm/config/resources/legal-holds.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/legal-holds.resource-presets.js +76 -0
- package/dist/esm/config/resources/legal-holds.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/organizations.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/organizations.resource-presets.js +139 -36
- package/dist/esm/config/resources/organizations.resource-presets.js.map +1 -1
- package/dist/esm/config/resources/resource.config.utils.d.ts +20 -0
- package/dist/esm/config/resources/resource.config.utils.d.ts.map +1 -1
- package/dist/esm/config/resources/resource.config.utils.js +20 -0
- package/dist/esm/config/resources/resource.config.utils.js.map +1 -1
- package/dist/esm/config/resources/retention-enforcement.resource-presets.d.ts +5 -0
- package/dist/esm/config/resources/retention-enforcement.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/retention-enforcement.resource-presets.js +74 -0
- package/dist/esm/config/resources/retention-enforcement.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/security.resource-presets.d.ts +3 -1
- package/dist/esm/config/resources/security.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/security.resource-presets.js +563 -133
- package/dist/esm/config/resources/security.resource-presets.js.map +1 -1
- package/dist/esm/config/resources/service-providers.resource-presets.d.ts +4 -0
- package/dist/esm/config/resources/service-providers.resource-presets.d.ts.map +1 -0
- package/dist/esm/config/resources/service-providers.resource-presets.js +321 -0
- package/dist/esm/config/resources/service-providers.resource-presets.js.map +1 -0
- package/dist/esm/config/resources/webhooks.resource-presets.d.ts +4 -3
- package/dist/esm/config/resources/webhooks.resource-presets.d.ts.map +1 -1
- package/dist/esm/config/resources/webhooks.resource-presets.js +76 -25
- package/dist/esm/config/resources/webhooks.resource-presets.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/registration/register-common-enums.d.ts.map +1 -1
- package/dist/esm/registration/register-common-enums.js +15 -0
- package/dist/esm/registration/register-common-enums.js.map +1 -1
- package/dist/esm/registration/register-provider-components.d.ts.map +1 -1
- package/dist/esm/registration/register-provider-components.js +6 -0
- package/dist/esm/registration/register-provider-components.js.map +1 -1
- package/dist/esm/themes/dense.theme.d.ts.map +1 -1
- package/dist/esm/themes/dense.theme.js +22 -2
- package/dist/esm/themes/dense.theme.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.resource-presets.js","sourceRoot":"","sources":["../../../../../src/config/resources/webhooks.resource-presets.tsx"],"names":[],"mappings":";AAmCA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjI,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EACL,gBAAgB,IAAI,CAAC,EACrB,qBAAqB,IAAI,EAAE,EAC3B,wBAAwB,EACxB,gCAAgC,EAChC,2BAA2B,EAC3B,iCAAiC,EACjC,yCAAyC,EACzC,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE;;;;;;;;GAQG;AACH,SAAS,4BAA4B;IACnC,OAAO,CACL,MAAC,aAAa,eACZ,KAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,WAAW,CAAC,IAAI,YACjD,KAAC,YAAY,IAAC,IAAI,EAAC,SAAS,GAAG,GACvB,EACV,KAAC,OA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ED,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,EAAE,CAAC;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["/**\n * Webhooks (M2M outbound) β Resource frontend presets\n *\n * Domain: WEBHOOK_CONFIG (polymorphic ORG + APP), M2M_WEBHOOK_DELIVERY_LOG\n * (polymorphic ORG + APP). These are notification resources, not auth resources\n * β kept in their own preset file (mirroring the `M2M_WEBHOOK_SCOPE_VARIANTS`\n * domain-local separation in `webhook-config.shared.schemas.ts`) rather than\n * folded into `security.resource-presets.tsx`.\n *\n * The webhook CONFIG has a sectioned READ layout (`status` / `endpoints` /\n * `verification`) via `layout.refs.sections` + `WebhookConfigDisplayTemplate`.\n * Its section refs are documented 1:1 in the paired resource specification's\n * `frontend.layout.sections` (mirroring the SIEM config) β the two MUST stay in\n * sync or the companion crash-loops at load (`validateStructuralSlotDescriptions`,\n * bidirectional). Edit both sides together.\n *\n * The delivery LOG stays LAYOUT-LESS: it gets its dashboard richness from GENERIC\n * collection capabilities (Stripe/Ignisign webhook-dashboard idiom, no layout\n * sections needed):\n * - `collectionDisplayConfig.quickFilterField: 'status'` β All/Pending/\n * In-flight/Delivered/Failed tab strip above the toolbar (server-side\n * filter, shares the panel's filter state).\n * - `collectionDisplayConfig.temporalGroupField: 'createdAt'` β day-bucket\n * date headings between cards rows.\n * - READ is EMBEDDED (row click β companion-zone drawer) where the opaque\n * `payload` renders as pretty JSON (`DisplayFieldJson` via the dispatcher's\n * UNKNOWN route) and RETRY sits in the action bar.\n *\n * Surfaced in the org Settings Hub via the `webhooks` section (Endpoints /\n * Delivery log sub-tabs), gated on the `webhooksEnabled` runtime capability\n * (resource-registration presence) + org-admin role.\n */\n\nimport React from 'react';\nimport type { ResourceUIBehavior } from '@wildo-ai/saas-frontend-lib';\nimport {\n DisplayField,\n DisplayLayout,\n Section,\n polymorphicResourceUIBehavior,\n polymorphicResourceUIBehaviorFrom,\n ResourceOperationActionScope,\n ResourceLayoutInlineEditDefault,\n} from '@wildo-ai/saas-frontend-lib';\nimport { BadgeSemanticVariant, DisplayChromeMode, EditChromeMode, EnumDisplayMode, SectionMode } from '@wildo-ai/zod-decorators';\nimport { Webhook, Activity, PlugZap, RotateCw, Trash2 } from 'lucide-react';\nimport {\n CoreResourceType as R,\n CoreResourceOperation as Op,\n WebhookConfig_Operations,\n M2MWebhookDeliveryLog_Operations,\n M2MWebhookDeliveryLogStatus,\n webhookConfigPolymorphicFactories,\n m2mWebhookDeliveryLogPolymorphicFactories,\n WebhookConfigBaseSchema,\n M2MWebhookDeliveryLogBaseSchema,\n} from '@wildo-ai/saas-models';\nimport { addressable, notAddressable } from './resource.config.utils';\n\n/**\n * READ display for the webhook config singleton β three sections:\n * - `status`: the master `enabled` kill-switch.\n * - `endpoints`: the destination list (`endpoints[]`).\n * - `verification`: the derived `applicationPublicKeyPem` customers verify signatures with.\n * `_id` is hidden and the create/update timestamps are intentionally omitted from\n * the curated admin read. Section refs are mirrored in the resource spec's\n * `frontend.layout.sections` β keep them in lockstep.\n */\nfunction WebhookConfigDisplayTemplate(): React.JSX.Element {\n return (\n <DisplayLayout>\n <Section name=\"status\" appearance={SectionMode.CARD}>\n <DisplayField name=\"enabled\" />\n </Section>\n <Section name=\"endpoints\">\n <DisplayField name=\"endpoints\" />\n </Section>\n <Section name=\"verification\">\n <DisplayField name=\"applicationPublicKeyPem\" />\n </Section>\n </DisplayLayout>\n );\n}\n\nexport function buildWebhooksMainPresets(): Partial<ResourceUIBehavior> {\n return {\n // ββ Webhook config (singleton per scope) β endpoints + master switch ββ\n ...polymorphicResourceUIBehavior(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_WEBHOOK_CONFIG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_WEBHOOK_CONFIG },\n ],\n },\n webhookConfigPolymorphicFactories[R.ORGANIZATION_WEBHOOK_CONFIG],\n WebhookConfigBaseSchema,\n ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: Webhook,\n fields: {\n _id: schema.shape._id.isHidden(),\n // `applicationPublicKeyPem` is already READ-only via the schema\n // (`excludeFromCreate`/`excludeFromUpdate`); rendered so admins can\n // copy the verification key.\n },\n // Sectioned READ layout β refs mirrored 1:1 in the resource spec's\n // `frontend.layout.sections` (see file header). Applies to both scope\n // variants; the APP variant surfaces no views but keeps the structural\n // section refs so its spec documents the same slots.\n layout: {\n // Settings-page chrome (Settings Hub): label-left / value-right rows. A scope-level\n // configuration record is READ far more often than it is edited β an operator opens it to\n // confirm a value β so the DISPLAY side needs the row treatment at least as much as the form.\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.INLINE, edit: EditChromeMode.SETTINGS_ROW },\n // Webhook delivery configuration β a scope-level configuration record. A settings pane is a list of decisions an operator came to TAKE, so its\n // writable fields are offered in place rather than behind a whole-pane edit mode. The set is\n // DERIVED (not primary key, not excludeFromUpdate, not hidden, not opted out), so a field\n // added to this schema tomorrow is covered without anyone remembering to decorate it.\n defaultInlineEdit: ResourceLayoutInlineEditDefault.WRITABLE_FIELDS,\n // And its empty rows say WHICH emptiness they are β \"None yet\" for a list with no members,\n // \"Not available\" for a computed value, \"No value\" for a field awaiting input β instead of one\n // em dash standing for all three. The surface policy's dash is right where a reader is scanning;\n // on a settings row, which is read one at a time to decide something, it is an answer that\n // refuses to answer.\n defaultEmptyValue: 'placeholder',\n refs: { sections: ['status', 'endpoints', 'verification'] },\n display: WebhookConfigDisplayTemplate,\n },\n views: [\n [Op.READ, addressable()],\n // The edit this pane exists for, which until now had no route: the literal UPDATE was\n // REPOSITORY_ONLY, so the frontend's update resolution fell through to `testEndpoint`\n // below β the one operation here that borrows UPDATE semantics, and one that FIRES a\n // delivery. Not addressable; it opens from the READ view, like SIEM export config's (#953).\n [Op.UPDATE, notAddressable()],\n [WebhookConfig_Operations.TEST_ENDPOINT, notAddressable({ iconOverride: PlugZap })],\n ],\n variantOverrides: {\n // APP-scope webhook config is a super-admin surface (admin app), not\n // the org Settings Hub β no org-app views here.\n [R.APPLICATION]: { views: [] },\n },\n }),\n ),\n\n // ββ Delivery log (collection) β per-attempt outbound delivery rows ββ\n ...polymorphicResourceUIBehavior(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_M2M_WEBHOOK_DELIVERY_LOG },\n ],\n },\n m2mWebhookDeliveryLogPolymorphicFactories[R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG],\n M2MWebhookDeliveryLogBaseSchema,\n ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: Activity,\n fields: {\n status: schema.shape.status.enumUI({\n display: { displayMode: EnumDisplayMode.BADGE, showDescription: true },\n edit: { showDescription: true },\n values: {\n [M2MWebhookDeliveryLogStatus.PENDING]: { color: BadgeSemanticVariant.SECONDARY },\n [M2MWebhookDeliveryLogStatus.IN_FLIGHT]: { color: BadgeSemanticVariant.INFO },\n [M2MWebhookDeliveryLogStatus.DELIVERED]: { color: BadgeSemanticVariant.SUCCESS },\n [M2MWebhookDeliveryLogStatus.FAILED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n },\n }),\n },\n getFrontendResourceLabel: ({ currentObject }) =>\n `${currentObject.resourceIdentifier} Β· ${currentObject.operationIdentifier}`,\n views: [\n [Op.LIST, addressable({\n collectionDisplayConfig: {\n quickFilterField: 'status',\n temporalGroupField: 'createdAt',\n },\n })],\n // Row click β per-delivery detail in the companion drawer: status,\n // attempts, response, and the opaque `payload` as pretty JSON.\n [Op.READ, notAddressable()],\n // Per-row retry: backend reads the target from the request-DTO\n // `deliveryLogId` (not the URL id), so the clicked row's id is injected\n // into that body field and the op executes in place (no form).\n [M2MWebhookDeliveryLog_Operations.RETRY, notAddressable({ iconOverride: RotateCw, rowTargetRequestField: 'deliveryLogId' })],\n // Whole-scope maintenance: rendered once in the collection-action bar.\n // It keeps its `{ olderThanDays }` form (real operator input), so the\n // collection surface routes it to that form host, which now builds a\n // collection route (the op borrows DELETE_MANY).\n [M2MWebhookDeliveryLog_Operations.PURGE_OLD, notAddressable({ iconOverride: Trash2, actionScope: ResourceOperationActionScope.COLLECTION })],\n ],\n variantOverrides: {\n [R.APPLICATION]: { views: [] },\n },\n }),\n ),\n };\n}\n\nexport function buildWebhooksAdminPresets(main: Partial<ResourceUIBehavior>): Partial<ResourceUIBehavior> {\n return {\n // Admin app surfaces the APP-scope variants as addressable and demotes the\n // ORG-scope variants to embedded (non-addressable) β mirroring the SIEM /\n // SSO admin-preset posture.\n ...polymorphicResourceUIBehaviorFrom(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_WEBHOOK_CONFIG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_WEBHOOK_CONFIG },\n ],\n },\n webhookConfigPolymorphicFactories[R.ORGANIZATION_WEBHOOK_CONFIG],\n main,\n ({ base }) => ({\n icon: base.icon,\n fields: base.fields,\n views: [\n [Op.READ, addressable()],\n // The edit this pane exists for, which until now had no route: the literal UPDATE was\n // REPOSITORY_ONLY, so the frontend's update resolution fell through to `testEndpoint`\n // below β the one operation here that borrows UPDATE semantics, and one that FIRES a\n // delivery. Not addressable; it opens from the READ view, like SIEM export config's (#953).\n [Op.UPDATE, notAddressable()],\n [WebhookConfig_Operations.TEST_ENDPOINT, notAddressable({ iconOverride: PlugZap })],\n ],\n variantOverrides: {\n [R.ORGANIZATIONS]: {\n views: [[Op.READ, notAddressable()]],\n },\n },\n }),\n ),\n\n ...polymorphicResourceUIBehaviorFrom(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_M2M_WEBHOOK_DELIVERY_LOG },\n ],\n },\n m2mWebhookDeliveryLogPolymorphicFactories[R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG],\n main,\n ({ base }) => ({\n icon: base.icon,\n fields: base.fields,\n getFrontendResourceLabel: base.getFrontendResourceLabel,\n views: [\n [Op.LIST, addressable({\n collectionDisplayConfig: {\n quickFilterField: 'status',\n temporalGroupField: 'createdAt',\n },\n })],\n [Op.READ, notAddressable()],\n // Per-row retry: backend reads the target from the request-DTO\n // `deliveryLogId` (not the URL id), so the clicked row's id is injected\n // into that body field and the op executes in place (no form).\n [M2MWebhookDeliveryLog_Operations.RETRY, notAddressable({ iconOverride: RotateCw, rowTargetRequestField: 'deliveryLogId' })],\n // Whole-scope maintenance: rendered once in the collection-action bar.\n // It keeps its `{ olderThanDays }` form (real operator input), so the\n // collection surface routes it to that form host, which now builds a\n // collection route (the op borrows DELETE_MANY).\n [M2MWebhookDeliveryLog_Operations.PURGE_OLD, notAddressable({ iconOverride: Trash2, actionScope: ResourceOperationActionScope.COLLECTION })],\n ],\n variantOverrides: {\n [R.ORGANIZATIONS]: {\n views: [\n [Op.READ, notAddressable()],\n [Op.LIST, notAddressable({\n collectionDisplayConfig: {\n quickFilterField: 'status',\n temporalGroupField: 'createdAt',\n },\n })],\n ],\n },\n },\n }),\n ),\n };\n}\n\nexport const webhooksMainPresets = buildWebhooksMainPresets();\nexport const webhooksAdminPresets = buildWebhooksAdminPresets(webhooksMainPresets);\n"]}
|
|
1
|
+
{"version":3,"file":"webhooks.resource-presets.js","sourceRoot":"","sources":["../../../../../src/config/resources/webhooks.resource-presets.tsx"],"names":[],"mappings":";AAoCA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,OAAO,EACP,aAAa,EACb,WAAW,EACX,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAA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3B,iFAAiF;gBACjF,qFAAqF;gBACrF,yEAAyE;gBACzE,CAAC,gCAAgC,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;gBACpF,uEAAuE;gBACvE,sEAAsE;gBACtE,qEAAqE;gBACrE,iDAAiD;gBACjD,CAAC,gCAAgC,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,CAAC,UAAU,EAAE,CAAC,CAAC;aAC7I;YACD,gBAAgB,EAAE;gBAChB,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE;oBACjB,KAAK,EAAE;wBACL,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC;wBAC3B,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC;gCACvB,uBAAuB,EAAE;oCACvB,gBAAgB,EAAE,QAAQ;oCAC1B,kBAAkB,EAAE,WAAW;iCAChC;6BACF,CAAC,CAAC;qBACJ;iBACF;aACF;SACF,CAAC,CACH;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,EAAE,CAAC;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["/**\n * Webhooks (M2M outbound) β Resource frontend presets\n *\n * Domain: WEBHOOK_CONFIG (polymorphic ORG + APP), M2M_WEBHOOK_DELIVERY_LOG\n * (polymorphic ORG + APP). These are notification resources, not auth resources\n * β kept in their own preset file (mirroring the `M2M_WEBHOOK_SCOPE_VARIANTS`\n * domain-local separation in `webhook-config.shared.schemas.ts`) rather than\n * folded into `security.resource-presets.tsx`.\n *\n * The webhook CONFIG has a sectioned READ layout (`status` / `endpoints` /\n * `verification`) via `layout.refs.sections` + `WebhookConfigDisplayTemplate`.\n * Its section refs are documented 1:1 in the paired resource specification's\n * `frontend.layout.sections` (mirroring the SIEM config) β the two MUST stay in\n * sync or the companion crash-loops at load (`validateStructuralSlotDescriptions`,\n * bidirectional). Edit both sides together.\n *\n * The delivery LOG declares no SECTIONS β its read page is one flat list of facts\n * (`M2MWebhookDeliveryLogDisplayTemplate`) under a header carrying the status β and\n * gets its dashboard richness from GENERIC collection capabilities\n * (Stripe/Ignisign webhook-dashboard idiom):\n * - `collectionDisplayConfig.quickFilterField: 'status'` β All/Pending/\n * In-flight/Delivered/Failed tab strip above the toolbar (server-side\n * filter, shares the panel's filter state).\n * - `collectionDisplayConfig.temporalGroupField: 'createdAt'` β day-bucket\n * date headings between cards rows.\n * - READ is EMBEDDED (row click β companion-zone drawer) where the opaque\n * `payload` renders as pretty JSON (`DisplayFieldJson` via the dispatcher's\n * UNKNOWN route) and RETRY sits in the action bar.\n *\n * Surfaced in the org Settings Hub via the `webhooks` section (Endpoints /\n * Delivery log sub-tabs), gated on the `webhooksEnabled` runtime capability\n * (resource-registration presence) + org-admin role.\n */\n\nimport React from 'react';\nimport type { ResourceUIBehavior } from '@wildo-ai/saas-frontend-lib';\nimport {\n DisplayField,\n DisplayLayout,\n ResourceHeaderTitle,\n Section,\n SummaryLayout,\n SummaryMeta,\n polymorphicResourceUIBehavior,\n polymorphicResourceUIBehaviorFrom,\n ResourceOperationActionScope,\n ResourceLayoutInlineEditDefault,\n} from '@wildo-ai/saas-frontend-lib';\nimport { BadgeSemanticVariant, DisplayChromeMode, EditChromeMode, EnumDisplayMode, SectionMode } from '@wildo-ai/zod-decorators';\nimport { Webhook, Activity, PlugZap, RotateCw, Trash2 } from 'lucide-react';\nimport {\n CoreResourceType as R,\n CoreResourceOperation as Op,\n WebhookConfig_Operations,\n M2MWebhookDeliveryLog_Operations,\n M2MWebhookDeliveryLogStatus,\n webhookConfigPolymorphicFactories,\n m2mWebhookDeliveryLogPolymorphicFactories,\n WebhookConfigBaseSchema,\n M2MWebhookDeliveryLogBaseSchema,\n} from '@wildo-ai/saas-models';\nimport { addressable, notAddressable } from './resource.config.utils';\n\n/**\n * READ display for the webhook config singleton β three sections, none with a description on read (each was a\n * prompt: \"Control webhook delivery for this scope\" over the one switch that does it):\n * - `status`: the master `enabled` kill-switch. One row, so no heading: the row's own label says it.\n * - `endpoints`: the destination list (`endpoints[]`). The heading names the list, so the list carries no label of\n * its own β it read \"Endpoints\" twice, the heading and then the field.\n * - `verification`: the derived `applicationPublicKeyPem` customers verify signatures with. STACKED, label above\n * the key: a PEM block is several lines, and as a settings row it was wrapped into half the card beside its label.\n * `_id` is hidden and the create/update timestamps are intentionally omitted from\n * the curated admin read. Section refs are mirrored in the resource spec's\n * `frontend.layout.sections` β keep them in lockstep.\n */\nfunction WebhookConfigDisplayTemplate(): React.JSX.Element {\n return (\n <DisplayLayout>\n <Section name=\"status\" appearance={SectionMode.CARD} hideTitle hideDescription>\n <DisplayField name=\"enabled\" />\n </Section>\n <Section name=\"endpoints\" chromeMode={DisplayChromeMode.HIDDEN} hideDescription>\n <DisplayField name=\"endpoints\" />\n </Section>\n <Section name=\"verification\" chromeMode={DisplayChromeMode.STACKED} hideDescription>\n <DisplayField name=\"applicationPublicKeyPem\" />\n </Section>\n </DisplayLayout>\n );\n}\n\n/*\n * One outbound delivery attempt, read once. The header is its NAME β the resource and operation that produced it β\n * with its status beside it, so neither is a row below. No sections: the facts are one list, in the order an\n * operator asks them (where did it go, how many tries, what came back, when did it end), and every row that is\n * empty for most deliveries hides. The payload comes last and takes the full width without a label: it is the\n * body that was sent, and a label beside a JSON block squeezed it into half the page.\n */\nfunction M2MWebhookDeliveryLogDisplayTemplate(): React.JSX.Element {\n return (\n <DisplayLayout>\n <DisplayField name=\"httpUrl\" />\n <DisplayField name=\"endpointId\" />\n <DisplayField name=\"channel\" />\n <DisplayField name=\"variantKey\" />\n <DisplayField name=\"attemptCount\" />\n <DisplayField name=\"lastAttemptAt\" />\n <DisplayField name=\"nextAttemptAt\" />\n <DisplayField name=\"responseStatus\" />\n <DisplayField name=\"failureReason\" />\n <DisplayField name=\"responseBodyTruncated\" />\n <DisplayField name=\"deliveredAt\" />\n <DisplayField name=\"failedAt\" />\n <DisplayField name=\"payload\" hideLabel hideDescription />\n </DisplayLayout>\n );\n}\n\n/*\n * A card in a list grouped by DAY: the resource and operation (the title), then the status badge, where it was sent,\n * and β only when it failed β why. The day is the group heading above the card, so the card does not repeat it.\n * The attempt count keeps its label: a bare \"3\" says nothing.\n */\nfunction M2MWebhookDeliveryLogSummaryTemplate(): React.JSX.Element {\n return (\n <SummaryLayout>\n <SummaryMeta>\n <DisplayField name=\"status\" />\n <DisplayField name=\"httpUrl\" />\n <DisplayField name=\"attemptCount\" />\n <DisplayField name=\"failureReason\" />\n </SummaryMeta>\n </SummaryLayout>\n );\n}\n\n/**\n * Chrome and field decorators shared by both delivery-log scopes: settings rows on the read page, bare values on a\n * card, the status as a coloured badge, and every row that is empty for most deliveries hidden.\n */\nfunction m2mWebhookDeliveryLogPresentation(schemaShape: typeof M2MWebhookDeliveryLogBaseSchema.shape) {\n const hideWhenEmpty = { display: { hideWhenEmpty: true } } as const;\n return {\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.HIDDEN, edit: EditChromeMode.SETTINGS_ROW },\n fields: {\n // The badge's colour carries the state. The state's description is not shown under it: on a list it read\n // once per row.\n status: schemaShape.status.enumUI({\n display: { displayMode: EnumDisplayMode.BADGE },\n values: {\n [M2MWebhookDeliveryLogStatus.PENDING]: { color: BadgeSemanticVariant.SECONDARY },\n [M2MWebhookDeliveryLogStatus.IN_FLIGHT]: { color: BadgeSemanticVariant.INFO },\n [M2MWebhookDeliveryLogStatus.DELIVERED]: { color: BadgeSemanticVariant.SUCCESS },\n [M2MWebhookDeliveryLogStatus.FAILED]: { color: BadgeSemanticVariant.DESTRUCTIVE },\n },\n }),\n // On a card the count keeps its label: a bare number beside a URL could be anything.\n attemptCount: schemaShape.attemptCount.numberUI({ summaryOverride: { chromeMode: DisplayChromeMode.INLINE } }),\n variantKey: schemaShape.variantKey.stringUI(hideWhenEmpty),\n lastAttemptAt: schemaShape.lastAttemptAt.dateUI(hideWhenEmpty),\n nextAttemptAt: schemaShape.nextAttemptAt.dateUI(hideWhenEmpty),\n responseStatus: schemaShape.responseStatus.numberUI(hideWhenEmpty),\n failureReason: schemaShape.failureReason.stringUI(hideWhenEmpty),\n responseBodyTruncated: schemaShape.responseBodyTruncated.stringUI(hideWhenEmpty),\n deliveredAt: schemaShape.deliveredAt.dateUI(hideWhenEmpty),\n failedAt: schemaShape.failedAt.dateUI(hideWhenEmpty),\n },\n };\n}\n\nexport function buildWebhooksMainPresets(): Partial<ResourceUIBehavior> {\n return {\n // ββ Webhook config (singleton per scope) β endpoints + master switch ββ\n ...polymorphicResourceUIBehavior(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_WEBHOOK_CONFIG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_WEBHOOK_CONFIG },\n ],\n },\n webhookConfigPolymorphicFactories[R.ORGANIZATION_WEBHOOK_CONFIG],\n WebhookConfigBaseSchema,\n ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: Webhook,\n fields: {\n _id: schema.shape._id.isHidden(),\n // `applicationPublicKeyPem` is already READ-only via the schema\n // (`excludeFromCreate`/`excludeFromUpdate`); rendered so admins can\n // copy the verification key.\n },\n // Sectioned READ layout β refs mirrored 1:1 in the resource spec's\n // `frontend.layout.sections` (see file header). Applies to both scope\n // variants; the APP variant surfaces no views but keeps the structural\n // section refs so its spec documents the same slots.\n layout: {\n // Settings-page chrome (Settings Hub): label-left / value-right rows. A scope-level\n // configuration record is READ far more often than it is edited β an operator opens it to\n // confirm a value β so the DISPLAY side needs the row treatment at least as much as the form.\n defaultChromeMode: { display: DisplayChromeMode.SETTINGS_ROW, summary: DisplayChromeMode.INLINE, edit: EditChromeMode.SETTINGS_ROW },\n // Webhook delivery configuration β a scope-level configuration record. A settings pane is a list of decisions an operator came to TAKE, so its\n // writable fields are offered in place rather than behind a whole-pane edit mode. The set is\n // DERIVED (not primary key, not excludeFromUpdate, not hidden, not opted out), so a field\n // added to this schema tomorrow is covered without anyone remembering to decorate it.\n defaultInlineEdit: ResourceLayoutInlineEditDefault.WRITABLE_FIELDS,\n // And its empty rows say WHICH emptiness they are β \"None yet\" for a list with no members,\n // \"Not available\" for a computed value, \"No value\" for a field awaiting input β instead of one\n // em dash standing for all three. The surface policy's dash is right where a reader is scanning;\n // on a settings row, which is read one at a time to decide something, it is an answer that\n // refuses to answer.\n defaultEmptyValue: 'placeholder',\n refs: { sections: ['status', 'endpoints', 'verification'] },\n display: WebhookConfigDisplayTemplate,\n },\n views: [\n [Op.READ, addressable()],\n // The edit this pane exists for, which until now had no route: the literal UPDATE was\n // REPOSITORY_ONLY, so the frontend's update resolution fell through to `testEndpoint`\n // below β the one operation here that borrows UPDATE semantics, and one that FIRES a\n // delivery. Not addressable; it opens from the READ view, like SIEM export config's (#953).\n [Op.UPDATE, notAddressable()],\n [WebhookConfig_Operations.TEST_ENDPOINT, notAddressable({ iconOverride: PlugZap })],\n ],\n variantOverrides: {\n // APP-scope webhook config is a super-admin surface (admin app), not\n // the org Settings Hub β no org-app views here.\n [R.APPLICATION]: { views: [] },\n },\n }),\n ),\n\n // ββ Delivery log (collection) β per-attempt outbound delivery rows ββ\n ...polymorphicResourceUIBehavior(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_M2M_WEBHOOK_DELIVERY_LOG },\n ],\n },\n m2mWebhookDeliveryLogPolymorphicFactories[R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG],\n M2MWebhookDeliveryLogBaseSchema,\n ({ schema, schemaShape, opsVariantResolver }) => ({\n icon: Activity,\n layout: {\n defaultChromeMode: m2mWebhookDeliveryLogPresentation(M2MWebhookDeliveryLogBaseSchema.shape).defaultChromeMode,\n // The identity line: the resource and operation (the title) and the delivery's status beside it.\n header: () => (\n <div className=\"flex min-w-0 flex-wrap items-center gap-field\">\n <ResourceHeaderTitle />\n <DisplayField name=\"status\" hideLabel hideDescription className=\"w-auto\" />\n </div>\n ),\n display: M2MWebhookDeliveryLogDisplayTemplate,\n summary: M2MWebhookDeliveryLogSummaryTemplate,\n },\n fields: m2mWebhookDeliveryLogPresentation(M2MWebhookDeliveryLogBaseSchema.shape).fields,\n getFrontendResourceLabel: ({ currentObject }) =>\n `${currentObject.resourceIdentifier} Β· ${currentObject.operationIdentifier}`,\n views: [\n [Op.LIST, addressable({\n collectionDisplayConfig: {\n quickFilterField: 'status',\n temporalGroupField: 'createdAt',\n },\n })],\n // Row click β per-delivery detail in the companion drawer: status,\n // attempts, response, and the opaque `payload` as pretty JSON.\n [Op.READ, notAddressable()],\n // Per-row retry, addressed by the ROUTE: the backend uses the framework-resolved\n // row id and the request body must be empty (`M2MWebhookDeliveryLog_RetryRequestDto`\n // is strict), so no body field is injected. Executes in place (no form).\n [M2MWebhookDeliveryLog_Operations.RETRY, notAddressable({ iconOverride: RotateCw })],\n // Whole-scope maintenance: rendered once in the collection-action bar.\n // It keeps its `{ olderThanDays }` form (real operator input), so the\n // collection surface routes it to that form host, which now builds a\n // collection route (the op borrows DELETE_MANY).\n [M2MWebhookDeliveryLog_Operations.PURGE_OLD, notAddressable({ iconOverride: Trash2, actionScope: ResourceOperationActionScope.COLLECTION })],\n ],\n variantOverrides: {\n [R.APPLICATION]: { views: [] },\n },\n }),\n ),\n };\n}\n\nexport function buildWebhooksAdminPresets(main: Partial<ResourceUIBehavior>): Partial<ResourceUIBehavior> {\n return {\n // Admin app surfaces the APP-scope variants as addressable and demotes the\n // ORG-scope variants to embedded (non-addressable) β mirroring the SIEM /\n // SSO admin-preset posture.\n ...polymorphicResourceUIBehaviorFrom(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_WEBHOOK_CONFIG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_WEBHOOK_CONFIG },\n ],\n },\n webhookConfigPolymorphicFactories[R.ORGANIZATION_WEBHOOK_CONFIG],\n main,\n ({ base }) => ({\n icon: base.icon,\n fields: base.fields,\n views: [\n [Op.READ, addressable()],\n // The edit this pane exists for, which until now had no route: the literal UPDATE was\n // REPOSITORY_ONLY, so the frontend's update resolution fell through to `testEndpoint`\n // below β the one operation here that borrows UPDATE semantics, and one that FIRES a\n // delivery. Not addressable; it opens from the READ view, like SIEM export config's (#953).\n [Op.UPDATE, notAddressable()],\n [WebhookConfig_Operations.TEST_ENDPOINT, notAddressable({ iconOverride: PlugZap })],\n ],\n variantOverrides: {\n [R.ORGANIZATIONS]: {\n views: [[Op.READ, notAddressable()]],\n },\n },\n }),\n ),\n\n ...polymorphicResourceUIBehaviorFrom(\n {\n variants: [\n { parentResourceType: R.ORGANIZATIONS, resourceType: R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG },\n { parentResourceType: R.APPLICATION, resourceType: R.APPLICATION_M2M_WEBHOOK_DELIVERY_LOG },\n ],\n },\n m2mWebhookDeliveryLogPolymorphicFactories[R.ORGANIZATION_M2M_WEBHOOK_DELIVERY_LOG],\n main,\n ({ base }) => ({\n icon: base.icon,\n layout: base.layout,\n fields: base.fields,\n getFrontendResourceLabel: base.getFrontendResourceLabel,\n views: [\n [Op.LIST, addressable({\n collectionDisplayConfig: {\n quickFilterField: 'status',\n temporalGroupField: 'createdAt',\n },\n })],\n [Op.READ, notAddressable()],\n // Per-row retry, addressed by the ROUTE: the backend uses the framework-resolved\n // row id and the request body must be empty (`M2MWebhookDeliveryLog_RetryRequestDto`\n // is strict), so no body field is injected. Executes in place (no form).\n [M2MWebhookDeliveryLog_Operations.RETRY, notAddressable({ iconOverride: RotateCw })],\n // Whole-scope maintenance: rendered once in the collection-action bar.\n // It keeps its `{ olderThanDays }` form (real operator input), so the\n // collection surface routes it to that form host, which now builds a\n // collection route (the op borrows DELETE_MANY).\n [M2MWebhookDeliveryLog_Operations.PURGE_OLD, notAddressable({ iconOverride: Trash2, actionScope: ResourceOperationActionScope.COLLECTION })],\n ],\n variantOverrides: {\n [R.ORGANIZATIONS]: {\n views: [\n [Op.READ, notAddressable()],\n [Op.LIST, notAddressable({\n collectionDisplayConfig: {\n quickFilterField: 'status',\n temporalGroupField: 'createdAt',\n },\n })],\n ],\n },\n },\n }),\n ),\n };\n}\n\nexport const webhooksMainPresets = buildWebhooksMainPresets();\nexport const webhooksAdminPresets = buildWebhooksAdminPresets(webhooksMainPresets);\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -186,6 +186,7 @@ export * from './config/resources/security.resource-presets';
|
|
|
186
186
|
export * from './config/resources/billing.resource-presets';
|
|
187
187
|
export * from './config/resources/webhooks.resource-presets';
|
|
188
188
|
export * from './config/resources/guidance.resource-presets';
|
|
189
|
+
export * from './config/resources/retention-enforcement.resource-presets';
|
|
189
190
|
export { neoBrutalistTheme } from './themes/neo-brutalist.theme';
|
|
190
191
|
export { denseTheme } from './themes/dense.theme';
|
|
191
192
|
export { glassTheme } from './themes/glass.theme';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAGlD,cAAc,sDAAsD,CAAC;AACrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CA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AAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2DAA2D,CAAC;AAG1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -207,6 +207,7 @@ export * from './config/resources/security.resource-presets.js';
|
|
|
207
207
|
export * from './config/resources/billing.resource-presets.js';
|
|
208
208
|
export * from './config/resources/webhooks.resource-presets.js';
|
|
209
209
|
export * from './config/resources/guidance.resource-presets.js';
|
|
210
|
+
export * from './config/resources/retention-enforcement.resource-presets.js';
|
|
210
211
|
// Theme variants (no intermediary barrel)
|
|
211
212
|
export { neoBrutalistTheme } from './themes/neo-brutalist.theme.js';
|
|
212
213
|
export { denseTheme } from './themes/dense.theme.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,UAAU;AACV,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAElD,eAAe;AACf,cAAc,sDAAsD,CAAC;AACrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc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components\n *\n * Default component implementations for the Wildo AI framework.\n * Depends on saas-frontend-lib for contracts, registry, and infrastructure.\n *\n * This library contains:\n * - All core preset implementations (registered via registerDefaultPresets)\n * - Theme variants (glass, neo-brutalist)\n *\n * Used by:\n * - App entry points (via registerDefaultPresets() in componentLoader)\n * - apps-custom (can override presets or add custom variants)\n */\n\n// Actions\nexport * from './components/actions/action-bar';\nexport * from './components/actions/action-button';\nexport * from './components/actions/button';\nexport * from './components/actions/button-group';\n\n// Data Display\nexport * from './components/data-display/pdf-viewer/pdf-viewer.lazy';\nexport * from './components/data-display/pdf-viewer/pdf-viewer-worker';\nexport * from './components/data-display/avatar';\nexport * from './components/data-display/badge';\nexport * from './components/data-display/kbd';\nexport * from './components/data-display/timeline';\nexport * from './components/data-display/description-list';\nexport * from './components/data-display/markdown-content';\nexport * from './components/data-display/formatters/display-field-bigdecimal';\nexport * from './components/data-display/formatters/display-field-boolean';\nexport * from './components/data-display/formatters/display-field-code';\nexport * from './components/data-display/formatters/display-field-enum';\nexport * from './components/data-display/formatters/display-field-file';\nexport * from './components/data-display/formatters/display-field-file-image';\nexport * from './components/data-display/formatters/display-field-file-video';\nexport * from './components/data-display/formatters/display-field-file-audio';\nexport * from './components/data-display/formatters/display-field-file-document';\nexport * from './components/data-display/formatters/display-field-file-gallery';\nexport * from './components/data-display/formatters/display-field-money';\nexport * from './components/data-display/formatters/display-field-duration';\nexport * from './components/data-display/formatters/display-field-phone';\nexport * from './components/data-display/formatters/display-field-address';\nexport * from './components/data-display/formatters/display-field-number';\nexport * from './components/data-display/formatters/display-field-range-bigdecimal';\nexport * from './components/data-display/formatters/display-field-range-money';\nexport * from './components/data-display/formatters/display-field-date';\nexport * from './components/data-display/formatters/display-field-datetime';\nexport * from './components/data-display/formatters/display-field-time';\nexport * from './components/data-display/formatters/display-field-range-number';\nexport * from './components/data-display/formatters/display-field-range-date';\nexport * from './components/data-display/formatters/display-field-range-datetime';\nexport * from './components/data-display/formatters/display-field-range-time';\nexport * from './components/data-display/formatters/display-field-string';\n\n// Feedback\nexport * from './components/feedback/danger-zone';\nexport * from './components/feedback/error-display';\nexport * from './components/feedback/features/feature-unavailable-prompt';\nexport * from './components/feedback/features/feature-unavailable-dialog';\nexport * from './components/feedback/features/feature-lock-badge';\nexport * from './components/feedback/features/feature-limit-indicator';\nexport * from './components/feedback/operations-confirm-critical';\n\n// Billing\nexport * from './components/billing/billing-pricing-table';\nexport * from './components/billing/billing-plan-change-preview';\nexport * from './components/billing/billing-subscription-status';\nexport * from './components/billing/billing-usage-dashboard';\nexport * from './components/billing/billing-portal-link';\nexport * from './components/billing/billing-invoice-history';\nexport * from './components/feedback/empty-state';\nexport * from './components/feedback/celebration-overlay';\nexport * from './components/feedback/notification-center';\nexport * from './components/feedback/progress';\nexport * from './components/feedback/skeleton';\nexport * from './components/feedback/toast';\n\n// Form\nexport * from './components/form/autosave-indicator';\nexport * from './components/form/combobox';\nexport * from './components/form/chromes/field';\nexport * from './components/form/controls/date-time/calendar';\nexport * from './components/form/controls/boolean/checkbox';\nexport * from './components/form/controls/string/color-input';\n// Code-editor surfaces: only the LAZY wrapper and the presets are public.\n// Never `export * from './components/form/controls/code-editor/cm6-editor'` β\n// a root re-export of the heavy CodeMirror module would merge its payload into\n// the eager entry chunk (guarded by `pnpm check:lazy-boundaries`).\nexport * from './components/form/controls/code-editor/cm6-editor-appearance';\nexport * from './components/form/controls/code-editor/cm6-editor.lazy';\nexport * from './components/form/controls/code-editor/form-field-code';\nexport * from './components/form/controls/code-editor/markdown-editor';\nexport * from './components/form/controls/string/inline-edit-text';\nexport * from './components/form/controls/date-time/date-range-picker';\nexport * from './components/form/controls/date-time/datepicker';\nexport * from './components/form/controls/date-time/datetime-picker';\nexport * from './components/form/controls/date-time/datetime-range-picker';\nexport * from './components/form/controls/file/file-upload';\nexport * from './components/form/controls/file/image-crop';\nexport * from './components/form/controls/input';\nexport * from './components/form/controls/input-group';\nexport * from './components/form/controls/string/input-otp';\nexport * from './components/form/controls/string/password-input';\nexport * from './components/form/controls/enum/radio';\nexport * from './components/form/controls/enum/select';\nexport * from './components/form/controls/enum/select-multiple';\nexport * from './components/form/controls/number/slider';\nexport * from './components/form/controls/boolean/switch';\nexport * from './components/form/controls/string/textarea';\nexport * from './components/form/controls/date-time/time-picker';\nexport * from './components/form/controls/date-time/time-range-picker';\nexport * from './components/form/controls/boolean/toggle';\nexport * from './components/form/controls/enum/toggle-group';\nexport * from './components/form/controls/boolean/toggle-group-boolean';\n\n// Layout\nexport * from './components/layout/aspect-ratio';\nexport * from './components/layout/carousel';\nexport * from './components/layout/divider';\nexport * from './components/layout/resizable';\nexport * from './components/layout/scroll-area';\nexport * from './components/layout/separator';\n\n// Navigation\nexport * from './components/navigation/breadcrumb';\nexport * from './components/navigation/command';\nexport * from './components/navigation/menu-bar';\nexport * from './components/navigation/navbar';\nexport * from './components/navigation/sidebar';\n\n// Overlays\nexport * from './components/overlays/containers/alert';\nexport * from './components/overlays/containers/alert-dialog';\nexport * from './components/overlays/containers/dialog';\nexport * from './components/overlays/containers/drawer';\nexport * from './components/overlays/containers/sheet';\nexport * from './components/overlays/floating/context-menu';\nexport * from './components/overlays/floating/dropdown-menu';\nexport * from './components/overlays/floating/hover-card';\nexport * from './components/overlays/floating/popover';\nexport * from './components/overlays/floating/tooltip';\n\n// Sections\nexport * from './components/sections/accordion';\nexport * from './components/sections/card';\nexport * from './components/sections/collapsible';\nexport * from './components/sections/pagination';\nexport * from './components/sections/stacked-layout';\nexport * from './components/sections/stepper';\nexport * from './components/sections/table';\nexport * from './components/sections/tabs';\n\n// Typography\nexport * from './components/typography/heading';\nexport * from './components/typography/label';\nexport * from './components/typography/link';\nexport * from './components/typography/text';\nexport * from './components/typography/truncated-text';\n\n// AI Elements\nexport * from './components/ai-elements/artifacts/artifact';\nexport * from './components/ai-elements/artifacts/artifact-browser';\nexport * from './components/ai-elements/artifacts/code-block';\nexport * from './components/ai-elements/artifacts/diff-block';\nexport * from './components/ai-elements/artifacts/image';\nexport * from './components/ai-elements/artifacts/web-preview';\nexport * from './components/ai-elements/chat/conversation';\nexport * from './components/ai-elements/chat/message';\nexport * from './components/ai-elements/chat/prompt-input';\nexport * from './components/ai-elements/chat/sources';\nexport * from './components/ai-elements/chat/suggestion';\nexport * from './components/ai-elements/execution/confirmation';\nexport * from './components/ai-elements/execution/queue';\n\n// Resource preset surfaces\nexport * from './config/resources';\nexport * from './components/ai-elements/execution/task';\nexport * from './components/ai-elements/execution/tool';\n/**\n * The graph subtree is exported ONLY through its lazy door. The eager leaves beneath it\n * (`canvas`, `connection`, `controls`, `edge`, `node`, `panel`, `toolbar`) pull in\n * `@xyflow/react` and β via `canvas` β `@xyflow/react/dist/style.css`, which no Node ESM loader\n * can resolve. Exporting them here made this package's root unloadable in Node (and therefore\n * `@wildo-ai/saas-specifications`, the dev companion and the CLI), and put the whole graph\n * library in every application's main bundle. See `graph/graph-runtime.ts`.\n */\nexport * from './components/ai-elements/graph/graph.lazy';\nexport * from './components/ai-elements/meta/agent';\n// The LAZY door, never the module: `meta/context` prices token usage through `tokenlens`,\n// whose model catalogue is 55.2 kB gzipped. Exporting the module here would put it back in\n// first load for every application. See `context.lazy.tsx`.\nexport * from './components/ai-elements/meta/context.lazy';\nexport * from './components/ai-elements/meta/model-selector';\nexport * from './components/ai-elements/meta/open-in-chat';\nexport * from './components/ai-elements/shared/loader';\nexport * from './components/ai-elements/shared/shimmer';\nexport * from './components/ai-elements/trace/chain-of-thought';\nexport * from './components/ai-elements/trace/checkpoint';\nexport * from './components/ai-elements/trace/inline-citation';\nexport * from './components/ai-elements/trace/plan';\nexport * from './components/ai-elements/trace/reasoning';\n\n// AI Elements β Generic Decision & Stream (preset-level)\nexport * from './components/ai-elements/decision/approval';\nexport * from './components/ai-elements/decision/decision-request';\nexport * from './components/ai-elements/stream/execution-stream';\n\nexport * from './registration/register-default-presets';\nexport * from './registration/register-provider-components';\nexport * from './registration/register-default-icons';\nexport * from './registration/register-default-animations';\nexport * from './registration/register-common-enums';\n\n// Preset Frontend Configuration\nexport * from './config';\nexport * from './config/resources/identity.resource-presets';\nexport * from './config/resources/organizations.resource-presets';\nexport * from './config/resources/application.resource-presets';\nexport * from './config/resources/security.resource-presets';\nexport * from './config/resources/billing.resource-presets';\nexport * from './config/resources/webhooks.resource-presets';\nexport * from './config/resources/guidance.resource-presets';\n\n// Theme variants (no intermediary barrel)\nexport { neoBrutalistTheme } from './themes/neo-brutalist.theme';\nexport { denseTheme } from './themes/dense.theme';\nexport { glassTheme } from './themes/glass.theme';\nexport { editorialTheme } from './themes/editorial.theme';\nexport { terminalTheme } from './themes/terminal.theme';\nexport { cozyTheme } from './themes/cozy.theme';\nexport { tradingTheme } from './themes/trading.theme';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,UAAU;AACV,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAElD,eAAe;AACf,cAAc,sDAAsD,CAAC;AACrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC;AACxE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,kEAAkE,CAAC;AACjF,cAAc,iEAAiE,CAAC;AAChF,cAAc,0DAA0D,CAAC;AACzE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0DAA0D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AC;AACnE,cAAc,kDAAkD,CAAC;AAEjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AAErD,gCAAgC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2DAA2D,CAAC;AAE1E,0CAA0C;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["/**\n * Preset Components\n *\n * Default component implementations for the Wildo AI framework.\n * Depends on saas-frontend-lib for contracts, registry, and infrastructure.\n *\n * This library contains:\n * - All core preset implementations (registered via registerDefaultPresets)\n * - Theme variants (glass, neo-brutalist)\n *\n * Used by:\n * - App entry points (via registerDefaultPresets() in componentLoader)\n * - apps-custom (can override presets or add custom variants)\n */\n\n// Actions\nexport * from './components/actions/action-bar';\nexport * from './components/actions/action-button';\nexport * from './components/actions/button';\nexport * from './components/actions/button-group';\n\n// Data Display\nexport * from './components/data-display/pdf-viewer/pdf-viewer.lazy';\nexport * from './components/data-display/pdf-viewer/pdf-viewer-worker';\nexport * from './components/data-display/avatar';\nexport * from './components/data-display/badge';\nexport * from './components/data-display/kbd';\nexport * from './components/data-display/timeline';\nexport * from './components/data-display/description-list';\nexport * from './components/data-display/markdown-content';\nexport * from './components/data-display/formatters/display-field-bigdecimal';\nexport * from './components/data-display/formatters/display-field-boolean';\nexport * from './components/data-display/formatters/display-field-code';\nexport * from './components/data-display/formatters/display-field-enum';\nexport * from './components/data-display/formatters/display-field-file';\nexport * from './components/data-display/formatters/display-field-file-image';\nexport * from './components/data-display/formatters/display-field-file-video';\nexport * from './components/data-display/formatters/display-field-file-audio';\nexport * from './components/data-display/formatters/display-field-file-document';\nexport * from './components/data-display/formatters/display-field-file-gallery';\nexport * from './components/data-display/formatters/display-field-money';\nexport * from './components/data-display/formatters/display-field-duration';\nexport * from './components/data-display/formatters/display-field-phone';\nexport * from './components/data-display/formatters/display-field-address';\nexport * from './components/data-display/formatters/display-field-number';\nexport * from './components/data-display/formatters/display-field-range-bigdecimal';\nexport * from './components/data-display/formatters/display-field-range-money';\nexport * from './components/data-display/formatters/display-field-date';\nexport * from './components/data-display/formatters/display-field-datetime';\nexport * from './components/data-display/formatters/display-field-time';\nexport * from './components/data-display/formatters/display-field-range-number';\nexport * from './components/data-display/formatters/display-field-range-date';\nexport * from './components/data-display/formatters/display-field-range-datetime';\nexport * from './components/data-display/formatters/display-field-range-time';\nexport * from './components/data-display/formatters/display-field-string';\n\n// Feedback\nexport * from './components/feedback/danger-zone';\nexport * from './components/feedback/error-display';\nexport * from './components/feedback/features/feature-unavailable-prompt';\nexport * from './components/feedback/features/feature-unavailable-dialog';\nexport * from './components/feedback/features/feature-lock-badge';\nexport * from './components/feedback/features/feature-limit-indicator';\nexport * from './components/feedback/operations-confirm-critical';\n\n// Billing\nexport * from './components/billing/billing-pricing-table';\nexport * from './components/billing/billing-plan-change-preview';\nexport * from './components/billing/billing-subscription-status';\nexport * from './components/billing/billing-usage-dashboard';\nexport * from './components/billing/billing-portal-link';\nexport * from './components/billing/billing-invoice-history';\nexport * from './components/feedback/empty-state';\nexport * from './components/feedback/celebration-overlay';\nexport * from './components/feedback/notification-center';\nexport * from './components/feedback/progress';\nexport * from './components/feedback/skeleton';\nexport * from './components/feedback/toast';\n\n// Form\nexport * from './components/form/autosave-indicator';\nexport * from './components/form/combobox';\nexport * from './components/form/chromes/field';\nexport * from './components/form/controls/date-time/calendar';\nexport * from './components/form/controls/boolean/checkbox';\nexport * from './components/form/controls/string/color-input';\n// Code-editor surfaces: only the LAZY wrapper and the presets are public.\n// Never `export * from './components/form/controls/code-editor/cm6-editor'` β\n// a root re-export of the heavy CodeMirror module would merge its payload into\n// the eager entry chunk (guarded by `pnpm check:lazy-boundaries`).\nexport * from './components/form/controls/code-editor/cm6-editor-appearance';\nexport * from './components/form/controls/code-editor/cm6-editor.lazy';\nexport * from './components/form/controls/code-editor/form-field-code';\nexport * from './components/form/controls/code-editor/markdown-editor';\nexport * from './components/form/controls/string/inline-edit-text';\nexport * from './components/form/controls/date-time/date-range-picker';\nexport * from './components/form/controls/date-time/datepicker';\nexport * from './components/form/controls/date-time/datetime-picker';\nexport * from './components/form/controls/date-time/datetime-range-picker';\nexport * from './components/form/controls/file/file-upload';\nexport * from './components/form/controls/file/image-crop';\nexport * from './components/form/controls/input';\nexport * from './components/form/controls/input-group';\nexport * from './components/form/controls/string/input-otp';\nexport * from './components/form/controls/string/password-input';\nexport * from './components/form/controls/enum/radio';\nexport * from './components/form/controls/enum/select';\nexport * from './components/form/controls/enum/select-multiple';\nexport * from './components/form/controls/number/slider';\nexport * from './components/form/controls/boolean/switch';\nexport * from './components/form/controls/string/textarea';\nexport * from './components/form/controls/date-time/time-picker';\nexport * from './components/form/controls/date-time/time-range-picker';\nexport * from './components/form/controls/boolean/toggle';\nexport * from './components/form/controls/enum/toggle-group';\nexport * from './components/form/controls/boolean/toggle-group-boolean';\n\n// Layout\nexport * from './components/layout/aspect-ratio';\nexport * from './components/layout/carousel';\nexport * from './components/layout/divider';\nexport * from './components/layout/resizable';\nexport * from './components/layout/scroll-area';\nexport * from './components/layout/separator';\n\n// Navigation\nexport * from './components/navigation/breadcrumb';\nexport * from './components/navigation/command';\nexport * from './components/navigation/menu-bar';\nexport * from './components/navigation/navbar';\nexport * from './components/navigation/sidebar';\n\n// Overlays\nexport * from './components/overlays/containers/alert';\nexport * from './components/overlays/containers/alert-dialog';\nexport * from './components/overlays/containers/dialog';\nexport * from './components/overlays/containers/drawer';\nexport * from './components/overlays/containers/sheet';\nexport * from './components/overlays/floating/context-menu';\nexport * from './components/overlays/floating/dropdown-menu';\nexport * from './components/overlays/floating/hover-card';\nexport * from './components/overlays/floating/popover';\nexport * from './components/overlays/floating/tooltip';\n\n// Sections\nexport * from './components/sections/accordion';\nexport * from './components/sections/card';\nexport * from './components/sections/collapsible';\nexport * from './components/sections/pagination';\nexport * from './components/sections/stacked-layout';\nexport * from './components/sections/stepper';\nexport * from './components/sections/table';\nexport * from './components/sections/tabs';\n\n// Typography\nexport * from './components/typography/heading';\nexport * from './components/typography/label';\nexport * from './components/typography/link';\nexport * from './components/typography/text';\nexport * from './components/typography/truncated-text';\n\n// AI Elements\nexport * from './components/ai-elements/artifacts/artifact';\nexport * from './components/ai-elements/artifacts/artifact-browser';\nexport * from './components/ai-elements/artifacts/code-block';\nexport * from './components/ai-elements/artifacts/diff-block';\nexport * from './components/ai-elements/artifacts/image';\nexport * from './components/ai-elements/artifacts/web-preview';\nexport * from './components/ai-elements/chat/conversation';\nexport * from './components/ai-elements/chat/message';\nexport * from './components/ai-elements/chat/prompt-input';\nexport * from './components/ai-elements/chat/sources';\nexport * from './components/ai-elements/chat/suggestion';\nexport * from './components/ai-elements/execution/confirmation';\nexport * from './components/ai-elements/execution/queue';\n\n// Resource preset surfaces\nexport * from './config/resources';\nexport * from './components/ai-elements/execution/task';\nexport * from './components/ai-elements/execution/tool';\n/**\n * The graph subtree is exported ONLY through its lazy door. The eager leaves beneath it\n * (`canvas`, `connection`, `controls`, `edge`, `node`, `panel`, `toolbar`) pull in\n * `@xyflow/react` and β via `canvas` β `@xyflow/react/dist/style.css`, which no Node ESM loader\n * can resolve. Exporting them here made this package's root unloadable in Node (and therefore\n * `@wildo-ai/saas-specifications`, the dev companion and the CLI), and put the whole graph\n * library in every application's main bundle. See `graph/graph-runtime.ts`.\n */\nexport * from './components/ai-elements/graph/graph.lazy';\nexport * from './components/ai-elements/meta/agent';\n// The LAZY door, never the module: `meta/context` prices token usage through `tokenlens`,\n// whose model catalogue is 55.2 kB gzipped. Exporting the module here would put it back in\n// first load for every application. See `context.lazy.tsx`.\nexport * from './components/ai-elements/meta/context.lazy';\nexport * from './components/ai-elements/meta/model-selector';\nexport * from './components/ai-elements/meta/open-in-chat';\nexport * from './components/ai-elements/shared/loader';\nexport * from './components/ai-elements/shared/shimmer';\nexport * from './components/ai-elements/trace/chain-of-thought';\nexport * from './components/ai-elements/trace/checkpoint';\nexport * from './components/ai-elements/trace/inline-citation';\nexport * from './components/ai-elements/trace/plan';\nexport * from './components/ai-elements/trace/reasoning';\n\n// AI Elements β Generic Decision & Stream (preset-level)\nexport * from './components/ai-elements/decision/approval';\nexport * from './components/ai-elements/decision/decision-request';\nexport * from './components/ai-elements/stream/execution-stream';\n\nexport * from './registration/register-default-presets';\nexport * from './registration/register-provider-components';\nexport * from './registration/register-default-icons';\nexport * from './registration/register-default-animations';\nexport * from './registration/register-common-enums';\n\n// Preset Frontend Configuration\nexport * from './config';\nexport * from './config/resources/identity.resource-presets';\nexport * from './config/resources/organizations.resource-presets';\nexport * from './config/resources/application.resource-presets';\nexport * from './config/resources/security.resource-presets';\nexport * from './config/resources/billing.resource-presets';\nexport * from './config/resources/webhooks.resource-presets';\nexport * from './config/resources/guidance.resource-presets';\nexport * from './config/resources/retention-enforcement.resource-presets';\n\n// Theme variants (no intermediary barrel)\nexport { neoBrutalistTheme } from './themes/neo-brutalist.theme';\nexport { denseTheme } from './themes/dense.theme';\nexport { glassTheme } from './themes/glass.theme';\nexport { editorialTheme } from './themes/editorial.theme';\nexport { terminalTheme } from './themes/terminal.theme';\nexport { cozyTheme } from './themes/cozy.theme';\nexport { tradingTheme } from './themes/trading.theme';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-common-enums.d.ts","sourceRoot":"","sources":["../../../../src/registration/register-common-enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAgDH,wBAAgB,0BAA0B,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"register-common-enums.d.ts","sourceRoot":"","sources":["../../../../src/registration/register-common-enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAgDH,wBAAgB,0BAA0B,IAAI,IAAI,CA8NjD"}
|
|
@@ -112,6 +112,21 @@ export function registerBuiltinCommonEnums() {
|
|
|
112
112
|
},
|
|
113
113
|
defaultColor: 'secondary',
|
|
114
114
|
});
|
|
115
|
+
registerCommonEnum('ProductPriceDisclosure', productShape.priceDisclosure, {
|
|
116
|
+
values: {
|
|
117
|
+
listed: { color: 'default' },
|
|
118
|
+
starting_at: { color: 'info' },
|
|
119
|
+
on_request: { color: 'secondary' },
|
|
120
|
+
},
|
|
121
|
+
defaultColor: 'secondary',
|
|
122
|
+
});
|
|
123
|
+
registerCommonEnum('ProductAvailability', productShape.availability, {
|
|
124
|
+
values: {
|
|
125
|
+
available: { color: 'success' },
|
|
126
|
+
upcoming: { color: 'warning' },
|
|
127
|
+
},
|
|
128
|
+
defaultColor: 'secondary',
|
|
129
|
+
});
|
|
115
130
|
// ββ Price βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
116
131
|
const priceShape = getZodObjectShape(PriceSchema);
|
|
117
132
|
registerCommonEnum('PricingModel', priceShape.model, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-common-enums.js","sourceRoot":"","sources":["../../../../src/registration/register-common-enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,6B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AAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAC/H;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * Registers built-in common enums with their visual configurations.\n *\n * Called during `componentLoader` before React mounts.\n *\n * Three categories:\n * 1. **Localization enums with icons** β flag emojis derived from info maps,\n * stored in the registry for render-time fallback (no schema field).\n * 2. **Localization enums without icons** β name-only registration (i18n).\n * 3. **Billing enums** β name + schema field + per-value color config.\n * Visual config applied via `.enumUI()` deep-merge with any\n * display/edit config already set on the schema inline.\n */\n\nimport { registerCommonEnum, flowNodeStatusIndicator, indicatorBadgeVariant } from '@wildo-ai/saas-frontend-lib';\nimport { FlowsActors_Status } from '@wildo-ai/saas-models';\nimport { getArrayItemSchema, getZodObjectShape, AvailableCurrencySchema, DurationUnitSchema, EnumDisplayMode } from '@wildo-ai/zod-decorators';\nimport type { EnumValueDisplayConfig } from '@wildo-ai/zod-decorators';\nimport { Megaphone, Monitor, Moon, Sun, TrendingUp } from 'lucide-react';\nimport {\n SystemEnumName,\n LANGUAGE_INFO_MAP,\n COUNTRY_INFO_MAP,\n AvailableLanguageSchema,\n AvailableCountrySchema,\n CommonTimezoneSchema,\n TimeFormatSchema,\n DateFormatSchema,\n MonthSchema,\n WorldRegionSchema,\n WorldSubregionSchema,\n} from '@wildo-ai/presets-components-models';\nimport {\n BillingSubscriptionBaseSchema,\n InvoiceRefSchema,\n PromotionSchema,\n ProductSchema,\n ReferralSchema,\n PriceSchema,\n UsageRecordSchema,\n UserPrivacySchema,\n UserPreferences_UI_ThemeSchema,\n} from '@wildo-ai/saas-models';\n\n/**\n * Build per-value display config from an info map that has a `flag` property.\n * Produces `{ enumValue: { icon: 'πΊπΈ' }, ... }` for each entry.\n */\nfunction buildFlagValues(\n infoMap: Partial<Record<string, { flag?: string }>>,\n): Record<string, EnumValueDisplayConfig> {\n const values: Record<string, EnumValueDisplayConfig> = {};\n for (const [key, info] of Object.entries(infoMap)) {\n if (info?.flag) {\n values[key] = { icon: info.flag };\n }\n }\n return values;\n}\n\nexport function registerBuiltinCommonEnums(): void {\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // Localization enums with flag icons\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n registerCommonEnum(SystemEnumName.AVAILABLE_LANGUAGE, AvailableLanguageSchema, {\n values: buildFlagValues(LANGUAGE_INFO_MAP),\n });\n\n registerCommonEnum(SystemEnumName.AVAILABLE_COUNTRY, AvailableCountrySchema, {\n values: buildFlagValues(COUNTRY_INFO_MAP),\n });\n\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // Localization enums β schema + i18n label resolution\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n registerCommonEnum(SystemEnumName.COMMON_TIMEZONE, CommonTimezoneSchema);\n registerCommonEnum(SystemEnumName.TIME_FORMAT, TimeFormatSchema);\n registerCommonEnum(SystemEnumName.DATE_FORMAT, DateFormatSchema);\n registerCommonEnum(SystemEnumName.MONTH, MonthSchema);\n registerCommonEnum(SystemEnumName.AVAILABLE_CURRENCY, AvailableCurrencySchema);\n registerCommonEnum(SystemEnumName.DURATION_UNIT, DurationUnitSchema);\n registerCommonEnum(SystemEnumName.WORLD_REGION, WorldRegionSchema);\n registerCommonEnum(SystemEnumName.WORLD_SUBREGION, WorldSubregionSchema);\n\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // Billing enums β name + schema field + visual config\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n\n // ββ Subscription ββββββββββββββββββββββββββββββββββββββββββββββββ\n const subscriptionShape = getZodObjectShape(BillingSubscriptionBaseSchema);\n registerCommonEnum('SubscriptionStatus', subscriptionShape.status, {\n values: {\n active: { color: 'success' },\n trialing: { color: 'info' },\n past_due: { color: 'warning' },\n cancelled: { color: 'destructive' },\n incomplete: { color: 'secondary' },\n incomplete_expired: { color: 'secondary' },\n unpaid: { color: 'warning' },\n paused: { color: 'secondary' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Invoice βββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const invoiceShape = getZodObjectShape(InvoiceRefSchema);\n registerCommonEnum('InvoiceStatus', invoiceShape.status, {\n values: {\n paid: { color: 'success' },\n open: { color: 'info' },\n draft: { color: 'secondary' },\n void: { color: 'secondary' },\n uncollectible: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Promotion βββββββββββββββββββββββββββββββββββββββββββββββββββ\n const promotionShape = getZodObjectShape(PromotionSchema);\n registerCommonEnum('PromotionType', promotionShape.type, {\n values: {\n coupon: { color: 'info' },\n promotion_code: { color: 'default' },\n referral: { color: 'success' },\n deal: { color: 'warning' },\n },\n defaultColor: 'secondary',\n });\n\n registerCommonEnum('DiscountType', promotionShape.discountType, {\n values: {\n percentage: { color: 'info' },\n fixed_amount: { color: 'default' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Product βββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const productShape = getZodObjectShape(ProductSchema);\n registerCommonEnum('ProductType', productShape.type, {\n values: {\n plan: { color: 'info' },\n addon: { color: 'default' },\n metered: { color: 'warning' },\n one_time: { color: 'secondary' },\n credit_pack: { color: 'success' },\n item: { color: 'outline' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Price βββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const priceShape = getZodObjectShape(PriceSchema);\n registerCommonEnum('PricingModel', priceShape.model, {\n values: {\n flat: { color: 'default' },\n per_unit: { color: 'info' },\n tiered: { color: 'warning' },\n graduated: { color: 'secondary' },\n package: { color: 'outline' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Referral ββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const referralShape = getZodObjectShape(ReferralSchema);\n registerCommonEnum('ReferralStatus', referralShape.status, {\n values: {\n pending: { color: 'secondary' },\n accepted: { color: 'info' },\n converted: { color: 'success' },\n expired: { color: 'warning' },\n cancelled: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Usage record ββββββββββββββββββββββββββββββββββββββββββββββββ\n // The flush disposition (#512). Colour carries the operational reading: `unreportable` is\n // DESTRUCTIVE because it is measured usage that will never be billed β a terminal, money-losing\n // outcome an operator should see as such, not a neutral end state beside `reported`.\n const usageRecordShape = getZodObjectShape(UsageRecordSchema);\n registerCommonEnum('UsageRecordFlushState', usageRecordShape.flushState, {\n values: {\n pending: { color: 'secondary' },\n reported: { color: 'success' },\n unreportable: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n registerCommonEnum('UsageRecordUnreportableReason', usageRecordShape.unreportableReason, {\n values: {\n billing_account_deleted: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // User-preference enums β a subtle uniform badge. These are framework-owned,\n // fixed-vocabulary preference values surfaced in the Settings Hub (Preferences);\n // registering them here is the RENDERING side. The friendly label STRINGS are owned\n // by the i18n layer: registration does not wire words (#966 β `tResourceFieldEnumValue`\n // reads `system_enums.<name>` only for an enum a field DECLARES with `.systemEnum()`).\n // `consentedPurposes` declares `ConsentPurpose`, so its words live once under\n // `system_enums.ConsentPurpose`. `theme` declares nothing, so its words are its per-field keys\n // (deliberately per resource: `theme.AUTO` reads differently on `userPreferences` and\n // `userSelfPreferences`).\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // `display: { displayMode: BADGE }` is required for the registered colors AND icons to\n // render β `DisplayFieldEnum` defaults to TEXT mode, which shows neither.\n const userPrivacyShape = getZodObjectShape(UserPrivacySchema);\n // Registered on the array's ELEMENT: `consentedPurposes` is a SET of purposes (#534), so each granted\n // purpose is one badge and the edit form is the default checkbox group β one box per purpose, each\n // independently ticked, which is what \"a set, not a level\" looks like to the person deciding. Every\n // purpose shares one colour on purpose: colour-grading them would reintroduce the ranking the set\n // replaced.\n const consentPurposeSchema = getArrayItemSchema(userPrivacyShape.consentedPurposes);\n if (consentPurposeSchema) {\n registerCommonEnum('ConsentPurpose', consentPurposeSchema, {\n display: { displayMode: EnumDisplayMode.BADGE },\n values: {\n analytics: { color: 'info', icon: TrendingUp },\n marketing: { color: 'info', icon: Megaphone },\n },\n defaultColor: 'info',\n });\n }\n\n const userThemeShape = getZodObjectShape(UserPreferences_UI_ThemeSchema);\n registerCommonEnum('UserTheme', userThemeShape.theme, {\n display: { displayMode: EnumDisplayMode.BADGE },\n values: {\n LIGHT: { color: 'warning', icon: Sun },\n DARK: { color: 'secondary', icon: Moon },\n AUTO: { color: 'info', icon: Monitor },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Framework role vocabularies β name registration only ββ\n // Role fields (`organizationMembers.roles`, invitations, api-keys) are arrays of a\n // `union([enum, string])`; they now render through the enum formatter (array-of-enum\n // label resolution), but the friendly label TEXT is owned by the i18n layer. Registration\n // does NOT wire words: `tResourceFieldEnumValue` reads `system_enums.<name>` only for an\n // enum a field DECLARES (#966), and no role field\n // declares one (the role schemas are unions, and a custom string role must still pass through\n // unmapped). Role values are therefore worded by their per-field keys. A field that wants these\n // words must declare `.systemEnum('CORE_ORG_ROLES')` on its enum member.\n registerCommonEnum('CORE_ORG_ROLES');\n registerCommonEnum('CORE_APP_ROLES');\n\n // ββ Flows-actors run status β registry-level, no schema field ββ\n // The status field exists on the engine's actor task AND on every control-plane resource an\n // application or the creation workbench projects it onto, each through its own `z.enum(...)`\n // instance, so a schema-level registration would reach one of them. Every one of those fields\n // declares `.systemEnum('FlowsActors_Status')`, and `resolveEnumDisplayConfig` reads this entry\n // for any field that does β which is what lets the workbench carry NO run-status decoration of\n // its own (#1321; it carried three). The tones come from `flowNodeStatusIndicator`, the one\n // status β tone map, so the badge in a list, the status edge on a card and the marker on a\n // timeline read the same status the same way.\n registerCommonEnum('FlowsActors_Status', undefined, {\n display: { displayMode: EnumDisplayMode.BADGE },\n values: Object.fromEntries(\n Object.values(FlowsActors_Status).map((status) => [status, { color: indicatorBadgeVariant(flowNodeStatusIndicator(status)) }]),\n ),\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"register-common-enums.js","sourceRoot":"","sources":["../../../../src/registration/register-common-enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE/I,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,6BAA6B,EAC7B,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,SAAS,eAAe,CACtB,OAAmD;IAEnD,MAAM,MAAM,GAA2C,EAAE,CAAC;IAC1D,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAClD,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;YACf,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,kEA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C;QACD,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;IAEH,6DAA6D;IAC7D,mFAAmF;IACnF,qFAAqF;IACrF,0FAA0F;IAC1F,yFAAyF;IACzF,kDAAkD;IAClD,8FAA8F;IAC9F,gGAAgG;IAChG,yEAAyE;IACzE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACrC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAErC,kEAAkE;IAClE,4FAA4F;IAC5F,6FAA6F;IAC7F,8FAA8F;IAC9F,gGAAgG;IAChG,+FAA+F;IAC/F,4FAA4F;IAC5F,2FAA2F;IAC3F,8CAA8C;IAC9C,kBAAkB,CAAC,oBAAoB,EAAE,SAAS,EAAE;QAClD,OAAO,EAAE,EAAE,WAAW,EAAE,eAAe,CAAC,KAAK,EAAE;QAC/C,MAAM,EAAE,MAAM,CAAC,WAAW,CACxB,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAC/H;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * Registers built-in common enums with their visual configurations.\n *\n * Called during `componentLoader` before React mounts.\n *\n * Three categories:\n * 1. **Localization enums with icons** β flag emojis derived from info maps,\n * stored in the registry for render-time fallback (no schema field).\n * 2. **Localization enums without icons** β name-only registration (i18n).\n * 3. **Billing enums** β name + schema field + per-value color config.\n * Visual config applied via `.enumUI()` deep-merge with any\n * display/edit config already set on the schema inline.\n */\n\nimport { registerCommonEnum, flowNodeStatusIndicator, indicatorBadgeVariant } from '@wildo-ai/saas-frontend-lib';\nimport { FlowsActors_Status } from '@wildo-ai/saas-models';\nimport { getArrayItemSchema, getZodObjectShape, AvailableCurrencySchema, DurationUnitSchema, EnumDisplayMode } from '@wildo-ai/zod-decorators';\nimport type { EnumValueDisplayConfig } from '@wildo-ai/zod-decorators';\nimport { Megaphone, Monitor, Moon, Sun, TrendingUp } from 'lucide-react';\nimport {\n SystemEnumName,\n LANGUAGE_INFO_MAP,\n COUNTRY_INFO_MAP,\n AvailableLanguageSchema,\n AvailableCountrySchema,\n CommonTimezoneSchema,\n TimeFormatSchema,\n DateFormatSchema,\n MonthSchema,\n WorldRegionSchema,\n WorldSubregionSchema,\n} from '@wildo-ai/presets-components-models';\nimport {\n BillingSubscriptionBaseSchema,\n InvoiceRefSchema,\n PromotionSchema,\n ProductSchema,\n ReferralSchema,\n PriceSchema,\n UsageRecordSchema,\n UserPrivacySchema,\n UserPreferences_UI_ThemeSchema,\n} from '@wildo-ai/saas-models';\n\n/**\n * Build per-value display config from an info map that has a `flag` property.\n * Produces `{ enumValue: { icon: 'πΊπΈ' }, ... }` for each entry.\n */\nfunction buildFlagValues(\n infoMap: Partial<Record<string, { flag?: string }>>,\n): Record<string, EnumValueDisplayConfig> {\n const values: Record<string, EnumValueDisplayConfig> = {};\n for (const [key, info] of Object.entries(infoMap)) {\n if (info?.flag) {\n values[key] = { icon: info.flag };\n }\n }\n return values;\n}\n\nexport function registerBuiltinCommonEnums(): void {\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // Localization enums with flag icons\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n registerCommonEnum(SystemEnumName.AVAILABLE_LANGUAGE, AvailableLanguageSchema, {\n values: buildFlagValues(LANGUAGE_INFO_MAP),\n });\n\n registerCommonEnum(SystemEnumName.AVAILABLE_COUNTRY, AvailableCountrySchema, {\n values: buildFlagValues(COUNTRY_INFO_MAP),\n });\n\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // Localization enums β schema + i18n label resolution\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n registerCommonEnum(SystemEnumName.COMMON_TIMEZONE, CommonTimezoneSchema);\n registerCommonEnum(SystemEnumName.TIME_FORMAT, TimeFormatSchema);\n registerCommonEnum(SystemEnumName.DATE_FORMAT, DateFormatSchema);\n registerCommonEnum(SystemEnumName.MONTH, MonthSchema);\n registerCommonEnum(SystemEnumName.AVAILABLE_CURRENCY, AvailableCurrencySchema);\n registerCommonEnum(SystemEnumName.DURATION_UNIT, DurationUnitSchema);\n registerCommonEnum(SystemEnumName.WORLD_REGION, WorldRegionSchema);\n registerCommonEnum(SystemEnumName.WORLD_SUBREGION, WorldSubregionSchema);\n\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // Billing enums β name + schema field + visual config\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n\n // ββ Subscription ββββββββββββββββββββββββββββββββββββββββββββββββ\n const subscriptionShape = getZodObjectShape(BillingSubscriptionBaseSchema);\n registerCommonEnum('SubscriptionStatus', subscriptionShape.status, {\n values: {\n active: { color: 'success' },\n trialing: { color: 'info' },\n past_due: { color: 'warning' },\n cancelled: { color: 'destructive' },\n incomplete: { color: 'secondary' },\n incomplete_expired: { color: 'secondary' },\n unpaid: { color: 'warning' },\n paused: { color: 'secondary' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Invoice βββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const invoiceShape = getZodObjectShape(InvoiceRefSchema);\n registerCommonEnum('InvoiceStatus', invoiceShape.status, {\n values: {\n paid: { color: 'success' },\n open: { color: 'info' },\n draft: { color: 'secondary' },\n void: { color: 'secondary' },\n uncollectible: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Promotion βββββββββββββββββββββββββββββββββββββββββββββββββββ\n const promotionShape = getZodObjectShape(PromotionSchema);\n registerCommonEnum('PromotionType', promotionShape.type, {\n values: {\n coupon: { color: 'info' },\n promotion_code: { color: 'default' },\n referral: { color: 'success' },\n deal: { color: 'warning' },\n },\n defaultColor: 'secondary',\n });\n\n registerCommonEnum('DiscountType', promotionShape.discountType, {\n values: {\n percentage: { color: 'info' },\n fixed_amount: { color: 'default' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Product βββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const productShape = getZodObjectShape(ProductSchema);\n registerCommonEnum('ProductType', productShape.type, {\n values: {\n plan: { color: 'info' },\n addon: { color: 'default' },\n metered: { color: 'warning' },\n one_time: { color: 'secondary' },\n credit_pack: { color: 'success' },\n item: { color: 'outline' },\n },\n defaultColor: 'secondary',\n });\n registerCommonEnum('ProductPriceDisclosure', productShape.priceDisclosure, {\n values: {\n listed: { color: 'default' },\n starting_at: { color: 'info' },\n on_request: { color: 'secondary' },\n },\n defaultColor: 'secondary',\n });\n registerCommonEnum('ProductAvailability', productShape.availability, {\n values: {\n available: { color: 'success' },\n upcoming: { color: 'warning' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Price βββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const priceShape = getZodObjectShape(PriceSchema);\n registerCommonEnum('PricingModel', priceShape.model, {\n values: {\n flat: { color: 'default' },\n per_unit: { color: 'info' },\n tiered: { color: 'warning' },\n graduated: { color: 'secondary' },\n package: { color: 'outline' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Referral ββββββββββββββββββββββββββββββββββββββββββββββββββββ\n const referralShape = getZodObjectShape(ReferralSchema);\n registerCommonEnum('ReferralStatus', referralShape.status, {\n values: {\n pending: { color: 'secondary' },\n accepted: { color: 'info' },\n converted: { color: 'success' },\n expired: { color: 'warning' },\n cancelled: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Usage record ββββββββββββββββββββββββββββββββββββββββββββββββ\n // The flush disposition (#512). Colour carries the operational reading: `unreportable` is\n // DESTRUCTIVE because it is measured usage that will never be billed β a terminal, money-losing\n // outcome an operator should see as such, not a neutral end state beside `reported`.\n const usageRecordShape = getZodObjectShape(UsageRecordSchema);\n registerCommonEnum('UsageRecordFlushState', usageRecordShape.flushState, {\n values: {\n pending: { color: 'secondary' },\n reported: { color: 'success' },\n unreportable: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n registerCommonEnum('UsageRecordUnreportableReason', usageRecordShape.unreportableReason, {\n values: {\n billing_account_deleted: { color: 'destructive' },\n },\n defaultColor: 'secondary',\n });\n\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // User-preference enums β a subtle uniform badge. These are framework-owned,\n // fixed-vocabulary preference values surfaced in the Settings Hub (Preferences);\n // registering them here is the RENDERING side. The friendly label STRINGS are owned\n // by the i18n layer: registration does not wire words (#966 β `tResourceFieldEnumValue`\n // reads `system_enums.<name>` only for an enum a field DECLARES with `.systemEnum()`).\n // `consentedPurposes` declares `ConsentPurpose`, so its words live once under\n // `system_enums.ConsentPurpose`. `theme` declares nothing, so its words are its per-field keys\n // (deliberately per resource: `theme.AUTO` reads differently on `userPreferences` and\n // `userSelfPreferences`).\n // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n // `display: { displayMode: BADGE }` is required for the registered colors AND icons to\n // render β `DisplayFieldEnum` defaults to TEXT mode, which shows neither.\n const userPrivacyShape = getZodObjectShape(UserPrivacySchema);\n // Registered on the array's ELEMENT: `consentedPurposes` is a SET of purposes (#534), so each granted\n // purpose is one badge and the edit form is the default checkbox group β one box per purpose, each\n // independently ticked, which is what \"a set, not a level\" looks like to the person deciding. Every\n // purpose shares one colour on purpose: colour-grading them would reintroduce the ranking the set\n // replaced.\n const consentPurposeSchema = getArrayItemSchema(userPrivacyShape.consentedPurposes);\n if (consentPurposeSchema) {\n registerCommonEnum('ConsentPurpose', consentPurposeSchema, {\n display: { displayMode: EnumDisplayMode.BADGE },\n values: {\n analytics: { color: 'info', icon: TrendingUp },\n marketing: { color: 'info', icon: Megaphone },\n },\n defaultColor: 'info',\n });\n }\n\n const userThemeShape = getZodObjectShape(UserPreferences_UI_ThemeSchema);\n registerCommonEnum('UserTheme', userThemeShape.theme, {\n display: { displayMode: EnumDisplayMode.BADGE },\n values: {\n LIGHT: { color: 'warning', icon: Sun },\n DARK: { color: 'secondary', icon: Moon },\n AUTO: { color: 'info', icon: Monitor },\n },\n defaultColor: 'secondary',\n });\n\n // ββ Framework role vocabularies β name registration only ββ\n // Role fields (`organizationMembers.roles`, invitations, api-keys) are arrays of a\n // `union([enum, string])`; they now render through the enum formatter (array-of-enum\n // label resolution), but the friendly label TEXT is owned by the i18n layer. Registration\n // does NOT wire words: `tResourceFieldEnumValue` reads `system_enums.<name>` only for an\n // enum a field DECLARES (#966), and no role field\n // declares one (the role schemas are unions, and a custom string role must still pass through\n // unmapped). Role values are therefore worded by their per-field keys. A field that wants these\n // words must declare `.systemEnum('CORE_ORG_ROLES')` on its enum member.\n registerCommonEnum('CORE_ORG_ROLES');\n registerCommonEnum('CORE_APP_ROLES');\n\n // ββ Flows-actors run status β registry-level, no schema field ββ\n // The status field exists on the engine's actor task AND on every control-plane resource an\n // application or the creation workbench projects it onto, each through its own `z.enum(...)`\n // instance, so a schema-level registration would reach one of them. Every one of those fields\n // declares `.systemEnum('FlowsActors_Status')`, and `resolveEnumDisplayConfig` reads this entry\n // for any field that does β which is what lets the workbench carry NO run-status decoration of\n // its own (#1321; it carried three). The tones come from `flowNodeStatusIndicator`, the one\n // status β tone map, so the badge in a list, the status edge on a card and the marker on a\n // timeline read the same status the same way.\n registerCommonEnum('FlowsActors_Status', undefined, {\n display: { displayMode: EnumDisplayMode.BADGE },\n values: Object.fromEntries(\n Object.values(FlowsActors_Status).map((status) => [status, { color: indicatorBadgeVariant(flowNodeStatusIndicator(status)) }]),\n ),\n });\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-provider-components.d.ts","sourceRoot":"","sources":["../../../../src/registration/register-provider-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;
|
|
1
|
+
{"version":3,"file":"register-provider-components.d.ts","sourceRoot":"","sources":["../../../../src/registration/register-provider-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAYH;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAiBjD"}
|
|
@@ -28,7 +28,9 @@ import { contributeProviderComponentLoaders } from '@wildo-ai/saas-frontend-lib'
|
|
|
28
28
|
import { DropboxPickerLazy } from '../components/form/controls/file/providers/dropbox-picker.lazy.js';
|
|
29
29
|
import { GoogleDrivePickerLazy } from '../components/form/controls/file/providers/google-drive-picker.lazy.js';
|
|
30
30
|
import { OneDrivePickerLazy } from '../components/form/controls/file/providers/onedrive-picker.lazy.js';
|
|
31
|
+
import { GooglePlacesAddressLookup } from '../components/form/controls/address/providers/google-places-address-lookup.js';
|
|
31
32
|
const FILE_PICKER = BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER;
|
|
33
|
+
const ADDRESS_LOOKUP = BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ADDRESS_LOOKUP;
|
|
32
34
|
/**
|
|
33
35
|
* Called by `registerDefaultPresets`; exported on its own so a test or a host
|
|
34
36
|
* that composes registrations by hand can invoke exactly this half.
|
|
@@ -45,6 +47,10 @@ export function registerProviderComponents() {
|
|
|
45
47
|
// four hours. The module declares BROWSER_READABLE_URL, the same arm as
|
|
46
48
|
// OneDrive and for the same reason.
|
|
47
49
|
{ capability: FILE_PICKER, providerRef: 'dropbox', load: async () => DropboxPickerLazy },
|
|
50
|
+
// Google Places address lookup (#561): the framework's lookup combobox with Google's adapter. The module
|
|
51
|
+
// declares its two backend operations, its session-token input and its attribution; the address field's host
|
|
52
|
+
// enforces all three, so this component holds no key and calls nothing but the provider-operation door.
|
|
53
|
+
{ capability: ADDRESS_LOOKUP, providerRef: 'google-places', load: async () => GooglePlacesAddressLookup },
|
|
48
54
|
]);
|
|
49
55
|
}
|
|
50
56
|
//# sourceMappingURL=register-provider-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-provider-components.js","sourceRoot":"","sources":["../../../../src/registration/register-provider-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,2BAA2B,EAA2B,MAAM,sCAAsC,CAAC;AAC5G,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4EAA4E,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,iFAAiF,CAAC;AACxH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6EAA6E,CAAC;
|
|
1
|
+
{"version":3,"file":"register-provider-components.js","sourceRoot":"","sources":["../../../../src/registration/register-provider-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,2BAA2B,EAA2B,MAAM,sCAAsC,CAAC;AAC5G,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4EAA4E,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,iFAAiF,CAAC;AACxH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6EAA6E,CAAC;AACjH,OAAO,EAAE,yBAAyB,EAAE,MAAM,wFAAwF,CAAC;AAEnI,MAAM,WAAW,GAAG,2BAA2B,CAAC,oBAA0C,CAAC;AAC3F,MAAM,cAAc,GAAG,2BAA2B,CAAC,uBAA6C,CAAC;AAEjG;;;GAGG;AACH,MAAM,UAAU,0BAA0B;IACxC,kCAAkC,CAAC;QACjC,4EAA4E;QAC5E,8EAA8E;QAC9E,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAqB,EAAE;QACjG,2EAA2E;QAC3E,uDAAuD;QACvD,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,kBAAkB,EAAE;QACpG,6EAA6E;QAC7E,wEAAwE;QACxE,oCAAoC;QACpC,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,iBAAiB,EAAE;QACxF,yGAAyG;QACzG,6GAA6G;QAC7G,wGAAwG;QACxG,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,yBAAyB,EAAE;KAC1G,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * The loaders for every provider component this library ships, contributed to\n * the frontend library's provider-component registry (#394).\n *\n * ## Why the loader is registered HERE and declared THERE\n *\n * A provider module in `@wildo-ai/external-connectors-public` declares that\n * `google-drive` offers a `FRONTEND_FILE_PICKER` and that its selections are\n * `REMOTE_REFERENCE` β DATA a reviewer, the CLI and the CSP composer read\n * without executing anything. It cannot name the code: that package is\n * renderer-free by design and sits BELOW this one in the layering, so a dynamic\n * import from it to here would close a package cycle. The library that owns the\n * component supplies the loader, the same way it supplies every other preset.\n *\n * ## What \"lazy\" means at this seam\n *\n * Each entry imports the component's `*.lazy.tsx` door statically β a wrapper a\n * few lines long β and never the component. The wrapper owns the\n * `React.lazy(() => import(...))` split, and `pnpm check:lazy-boundaries`\n * refuses any static import of the wrapped module from anywhere else. So the\n * registry's `load` resolves instantly to a component whose CODE arrives only\n * when a user opens it; the framework's map-order defect (#380) and the\n * bundle-weight question (#394) are answered by two different mechanisms, each\n * guarded where it lives.\n */\n\nimport { BUILTIN_PROVIDER_CAPABILITY, type ProviderCapability } from '@wildo-ai/saas-models/public-runtime';\nimport { contributeProviderComponentLoaders } from '@wildo-ai/saas-frontend-lib';\nimport { DropboxPickerLazy } from '~wildo-presets/components/form/controls/file/providers/dropbox-picker.lazy';\nimport { GoogleDrivePickerLazy } from '~wildo-presets/components/form/controls/file/providers/google-drive-picker.lazy';\nimport { OneDrivePickerLazy } from '~wildo-presets/components/form/controls/file/providers/onedrive-picker.lazy';\nimport { GooglePlacesAddressLookup } from '~wildo-presets/components/form/controls/address/providers/google-places-address-lookup';\n\nconst FILE_PICKER = BUILTIN_PROVIDER_CAPABILITY.FRONTEND_FILE_PICKER as ProviderCapability;\nconst ADDRESS_LOOKUP = BUILTIN_PROVIDER_CAPABILITY.FRONTEND_ADDRESS_LOOKUP as ProviderCapability;\n\n/**\n * Called by `registerDefaultPresets`; exported on its own so a test or a host\n * that composes registrations by hand can invoke exactly this half.\n */\nexport function registerProviderComponents(): void {\n contributeProviderComponentLoaders([\n // Drive returns metadata only; its bytes need a credential the browser must\n // not hold. The module declares REMOTE_REFERENCE; this is the code behind it.\n { capability: FILE_PICKER, providerRef: 'google-drive', load: async () => GoogleDrivePickerLazy },\n // OneDrive's `download` action returns a pre-authenticated URL the browser\n // can fetch. The module declares BROWSER_READABLE_URL.\n { capability: FILE_PICKER, providerRef: 'microsoft-onedrive', load: async () => OneDrivePickerLazy },\n // Dropbox's `direct` linkType returns a credential-free link that expires in\n // four hours. The module declares BROWSER_READABLE_URL, the same arm as\n // OneDrive and for the same reason.\n { capability: FILE_PICKER, providerRef: 'dropbox', load: async () => DropboxPickerLazy },\n // Google Places address lookup (#561): the framework's lookup combobox with Google's adapter. The module\n // declares its two backend operations, its session-token input and its attribution; the address field's host\n // enforces all three, so this component holds no key and calls nothing but the provider-operation door.\n { capability: ADDRESS_LOOKUP, providerRef: 'google-places', load: async () => GooglePlacesAddressLookup },\n ]);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dense.theme.d.ts","sourceRoot":"","sources":["../../../../src/themes/dense.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"dense.theme.d.ts","sourceRoot":"","sources":["../../../../src/themes/dense.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAwrB/E,eAAO,MAAM,UAAU,EAAE,mBAqBxB,CAAC"}
|
|
@@ -147,8 +147,18 @@ const interactive = {
|
|
|
147
147
|
* inset RING is `Card`'s reasoning for a selected card: "the ring is what still reads when
|
|
148
148
|
* the card's own fill is close to" its surroundings, which is precisely a segment whose
|
|
149
149
|
* fill is the hover fill.
|
|
150
|
+
*
|
|
151
|
+
* Both the fill and the ring are NEUTRAL β an ink wash of `foreground`, never `accent` and
|
|
152
|
+
* never `ring` (2026-09-25). `ring` is the FOCUS/brand colour, so a chosen toggle wore a
|
|
153
|
+
* primary outline that read as "focused" or "error-adjacent" rather than "on", on every pill
|
|
154
|
+
* and segment at once. And `accent` is the HOVER tint: in a theme whose accent sits one
|
|
155
|
+
* lightness step off the page (Wonder Todos: L 0.929 on 0.984) the chosen state barely
|
|
156
|
+
* separated from the background it sat on. A translucent `foreground` wash is darker than
|
|
157
|
+
* the hover tint in every theme by construction, tracks light and dark without a second
|
|
158
|
+
* token, and keeps `SelectableVariant.FILLED`'s promise that weight β not a brand colour β
|
|
159
|
+
* carries "you are here".
|
|
150
160
|
*/
|
|
151
|
-
selected: "data-[state=on]:bg-
|
|
161
|
+
selected: "data-[state=on]:bg-foreground/10 data-[state=on]:text-foreground data-[state=on]:font-semibold data-[state=on]:ring-1 data-[state=on]:ring-inset data-[state=on]:ring-foreground/25 dark:data-[state=on]:bg-foreground/15",
|
|
152
162
|
disabled: interactiveDisabled,
|
|
153
163
|
invalid: interactiveInvalid,
|
|
154
164
|
},
|
|
@@ -184,8 +194,18 @@ const interactive = {
|
|
|
184
194
|
* inset RING is `Card`'s reasoning for a selected card: "the ring is what still reads when
|
|
185
195
|
* the card's own fill is close to" its surroundings, which is precisely a segment whose
|
|
186
196
|
* fill is the hover fill.
|
|
197
|
+
*
|
|
198
|
+
* Both the fill and the ring are NEUTRAL β an ink wash of `foreground`, never `accent` and
|
|
199
|
+
* never `ring` (2026-09-25). `ring` is the FOCUS/brand colour, so a chosen toggle wore a
|
|
200
|
+
* primary outline that read as "focused" or "error-adjacent" rather than "on", on every pill
|
|
201
|
+
* and segment at once. And `accent` is the HOVER tint: in a theme whose accent sits one
|
|
202
|
+
* lightness step off the page (Wonder Todos: L 0.929 on 0.984) the chosen state barely
|
|
203
|
+
* separated from the background it sat on. A translucent `foreground` wash is darker than
|
|
204
|
+
* the hover tint in every theme by construction, tracks light and dark without a second
|
|
205
|
+
* token, and keeps `SelectableVariant.FILLED`'s promise that weight β not a brand colour β
|
|
206
|
+
* carries "you are here".
|
|
187
207
|
*/
|
|
188
|
-
selected: "data-[state=on]:bg-
|
|
208
|
+
selected: "data-[state=on]:bg-foreground/10 data-[state=on]:text-foreground data-[state=on]:font-semibold data-[state=on]:ring-1 data-[state=on]:ring-inset data-[state=on]:ring-foreground/25 dark:data-[state=on]:bg-foreground/15",
|
|
189
209
|
highlighted: "focus:bg-accent focus:text-accent-foreground",
|
|
190
210
|
open: "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
191
211
|
disabled: interactiveDisabled,
|