@octostar/platform-types 0.5.22 → 0.5.24
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/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/enums/ProcessingStatusCode.html +16 -16
- package/dist/docs/enums/SortOrder.html +3 -3
- package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -2
- package/dist/docs/interfaces/AIClient.html +4 -4
- package/dist/docs/interfaces/ActionContext.html +4 -4
- package/dist/docs/interfaces/BinaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/ChartDataResponseResult.html +5 -5
- package/dist/docs/interfaces/ChatMessage.html +6 -6
- package/dist/docs/interfaces/Colorful.html +3 -3
- package/dist/docs/interfaces/Concept.html +12 -12
- package/dist/docs/interfaces/Desktop.html +87 -87
- package/dist/docs/interfaces/DesktopActionContext.html +7 -7
- package/dist/docs/interfaces/DesktopSettings.html +5 -5
- package/dist/docs/interfaces/FetchOptions.html +4 -4
- package/dist/docs/interfaces/FileListOptions.html +5 -0
- package/dist/docs/interfaces/FileListResponse.html +5 -0
- package/dist/docs/interfaces/Files.html +13 -0
- package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
- package/dist/docs/interfaces/IDataTransfer.html +11 -11
- package/dist/docs/interfaces/Inheritance.html +5 -5
- package/dist/docs/interfaces/LiveContext.html +32 -0
- package/dist/docs/interfaces/NativeFilterColumn.html +2 -2
- package/dist/docs/interfaces/NativeFilterScope.html +2 -2
- package/dist/docs/interfaces/NativeFilterTarget.html +2 -2
- package/dist/docs/interfaces/Ontology.html +23 -23
- package/dist/docs/interfaces/OsAPIClient.html +6 -6
- package/dist/docs/interfaces/ProcessingStatus.html +7 -7
- package/dist/docs/interfaces/Property.html +5 -5
- package/dist/docs/interfaces/RecordData.html +5 -5
- package/dist/docs/interfaces/RecordProvider.html +6 -6
- package/dist/docs/interfaces/RefObject.html +3 -3
- package/dist/docs/interfaces/Relationship.html +20 -20
- package/dist/docs/interfaces/SavedDatasource.html +2 -2
- package/dist/docs/interfaces/SavedSearchAPIInterface.html +2 -2
- package/dist/docs/interfaces/SavedSearchContent.html +2 -2
- package/dist/docs/interfaces/SavedSetContent.html +2 -2
- package/dist/docs/interfaces/SearchOptions.html +3 -3
- package/dist/docs/interfaces/SearchProps.html +8 -8
- package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
- package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
- package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
- package/dist/docs/interfaces/StreamJsonOptions.html +5 -5
- package/dist/docs/interfaces/StreamTextOptions.html +5 -5
- package/dist/docs/interfaces/StylerContext.html +11 -11
- package/dist/docs/interfaces/TagAttributes.html +7 -7
- package/dist/docs/interfaces/UnaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
- package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
- package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
- package/dist/docs/modules.html +9 -5
- package/dist/docs/types/ActionHandler.html +2 -2
- package/dist/docs/types/AddCommentParams.html +2 -2
- package/dist/docs/types/AddListener.html +2 -2
- package/dist/docs/types/ApiErrorResult.html +2 -2
- package/dist/docs/types/ApiResult.html +2 -2
- package/dist/docs/types/ApiSuccessResult.html +2 -2
- package/dist/docs/types/App.html +2 -2
- package/dist/docs/types/AppRegistry.html +2 -2
- package/dist/docs/types/AppServiceCallOptions.html +2 -2
- package/dist/docs/types/AppServiceCallProps.html +2 -2
- package/dist/docs/types/AsyncFilter.html +2 -2
- package/dist/docs/types/AttachmentResponseType.html +2 -2
- package/dist/docs/types/AttachmentType.html +2 -2
- package/dist/docs/types/Behaviour.html +2 -2
- package/dist/docs/types/BinaryOperator.html +2 -2
- package/dist/docs/types/Callback.html +2 -2
- package/dist/docs/types/ChatModel.html +2 -2
- package/dist/docs/types/CommentWorkspaceItem.html +2 -2
- package/dist/docs/types/Comparator.html +2 -2
- package/dist/docs/types/ConceptFilter.html +2 -2
- package/dist/docs/types/ConceptMap.html +2 -2
- package/dist/docs/types/ConceptName.html +1 -1
- package/dist/docs/types/ConceptWithParents.html +2 -2
- package/dist/docs/types/ConnectedEntity.html +2 -2
- package/dist/docs/types/ContextMenuGroup.html +2 -2
- package/dist/docs/types/ContextMenuLabels.html +2 -2
- package/dist/docs/types/ContextMenuOptions.html +2 -2
- package/dist/docs/types/ContextMenuParams.html +2 -2
- package/dist/docs/types/ContextMenuRequest.html +2 -2
- package/dist/docs/types/CopyOptions.html +2 -2
- package/dist/docs/types/CreateEntityFormProps.html +2 -2
- package/dist/docs/types/CreateLinkChartFn.html +1 -1
- package/dist/docs/types/CreateLinkChartParams.html +1 -1
- package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
- package/dist/docs/types/CustomEventListener.html +2 -2
- package/dist/docs/types/CustomTemplate.html +2 -2
- package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
- package/dist/docs/types/DataContextType.html +2 -2
- package/dist/docs/types/DataMask.html +1 -1
- package/dist/docs/types/DefaultLiveContextData.html +1 -0
- package/dist/docs/types/DesktopAction.html +2 -2
- package/dist/docs/types/DesktopActionFilter.html +2 -2
- package/dist/docs/types/DesktopActionMenuItem.html +2 -2
- package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
- package/dist/docs/types/DesktopActionOptions.html +2 -2
- package/dist/docs/types/DesktopOpenParams.html +2 -2
- package/dist/docs/types/DesktopStylerContext.html +2 -2
- package/dist/docs/types/DraftWorkspaceItem.html +2 -2
- package/dist/docs/types/DragEndParams.html +2 -2
- package/dist/docs/types/DragStartParams.html +2 -2
- package/dist/docs/types/DropZoneRequestFn.html +1 -1
- package/dist/docs/types/DropZoneRequestResult.html +1 -1
- package/dist/docs/types/EConnection.html +2 -2
- package/dist/docs/types/EdgeSpec.html +2 -2
- package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
- package/dist/docs/types/Entity.html +2 -2
- package/dist/docs/types/EntityBase.html +2 -2
- package/dist/docs/types/EntityEdge.html +2 -2
- package/dist/docs/types/EntityOTM.html +2 -2
- package/dist/docs/types/EntityPasteContext.html +2 -2
- package/dist/docs/types/EvalContext.html +1 -1
- package/dist/docs/types/EventContextType.html +2 -2
- package/dist/docs/types/EventEmitterType.html +2 -2
- package/dist/docs/types/EventName.html +2 -2
- package/dist/docs/types/EventProducer.html +2 -2
- package/dist/docs/types/EventPublisher.html +2 -2
- package/dist/docs/types/EventSubscriber.html +2 -2
- package/dist/docs/types/EventUnsubscriber.html +2 -2
- package/dist/docs/types/ExportOptions.html +2 -2
- package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
- package/dist/docs/types/ExtrasApi.html +1 -1
- package/dist/docs/types/FetchEntityOptions.html +2 -2
- package/dist/docs/types/FileCode.html +2 -2
- package/dist/docs/types/FileTreeOptions.html +2 -2
- package/dist/docs/types/Filter.html +1 -1
- package/dist/docs/types/FilterDefinition.html +2 -2
- package/dist/docs/types/FilterDefinitions.html +2 -2
- package/dist/docs/types/FilterName.html +2 -2
- package/dist/docs/types/FilterReference.html +2 -2
- package/dist/docs/types/FilterState.html +1 -1
- package/dist/docs/types/FocusListItem.html +2 -2
- package/dist/docs/types/FolderPasteOptions.html +2 -2
- package/dist/docs/types/GraphDataSpec.html +1 -1
- package/dist/docs/types/GraphSpec.html +2 -2
- package/dist/docs/types/HttpTransformDefinition.html +2 -2
- package/dist/docs/types/Icon.html +2 -2
- package/dist/docs/types/IconProps.html +2 -2
- package/dist/docs/types/IframeTransformDefinition.html +2 -2
- package/dist/docs/types/ImageInfo.html +2 -2
- package/dist/docs/types/ImportZipOptions.html +2 -2
- package/dist/docs/types/InlineCode.html +2 -2
- package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptType.html +2 -2
- package/dist/docs/types/JobManifest.html +2 -2
- package/dist/docs/types/KnownCounts.html +2 -2
- package/dist/docs/types/LiveContextAPISetParams.html +1 -0
- package/dist/docs/types/LiveContextListener.html +1 -0
- package/dist/docs/types/ManifestSecrets.html +1 -1
- package/dist/docs/types/ModalTemplateProps.html +2 -2
- package/dist/docs/types/NamedEntityGroup.html +2 -2
- package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksType.html +2 -2
- package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
- package/dist/docs/types/OntologyTags.html +2 -2
- package/dist/docs/types/OsAuditFields.html +2 -2
- package/dist/docs/types/OsConfirmProps.html +2 -2
- package/dist/docs/types/OsNotification.html +2 -2
- package/dist/docs/types/OsProgress.html +2 -2
- package/dist/docs/types/OsTag.html +2 -2
- package/dist/docs/types/OsWorkspaceEntity.html +2 -2
- package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
- package/dist/docs/types/PasteContextOptions.html +2 -2
- package/dist/docs/types/Permission.html +2 -2
- package/dist/docs/types/Point.html +2 -2
- package/dist/docs/types/PromptOptions.html +2 -2
- package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
- package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
- package/dist/docs/types/Query.html +2 -2
- package/dist/docs/types/QueryBatchResult.html +2 -2
- package/dist/docs/types/QueryErrorResult.html +2 -2
- package/dist/docs/types/QueryExecutor.html +2 -2
- package/dist/docs/types/QueryObjectFilterClause.html +2 -2
- package/dist/docs/types/QueryResponse.html +2 -2
- package/dist/docs/types/QueryResult.html +2 -2
- package/dist/docs/types/QuerySuccessResult.html +2 -2
- package/dist/docs/types/ReactCssProperties.html +2 -2
- package/dist/docs/types/ReactNode.html +2 -2
- package/dist/docs/types/ReactRef.html +2 -2
- package/dist/docs/types/ReasonedBoolean.html +2 -2
- package/dist/docs/types/RecordFetchOptions.html +1 -1
- package/dist/docs/types/RefCallback.html +2 -2
- package/dist/docs/types/RelationshipCountResult.html +2 -2
- package/dist/docs/types/RemoteAppApi.html +1 -1
- package/dist/docs/types/SaveAsModalProps.html +2 -2
- package/dist/docs/types/SaveFileOptions.html +2 -2
- package/dist/docs/types/SaveOptions.html +2 -2
- package/dist/docs/types/SavedTemplate.html +2 -2
- package/dist/docs/types/SearchFilter.html +2 -2
- package/dist/docs/types/SemanticBinding.html +2 -2
- package/dist/docs/types/SemanticBindingType.html +2 -2
- package/dist/docs/types/SemanticBindings.html +2 -2
- package/dist/docs/types/SemanticallyBoundApp.html +2 -2
- package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
- package/dist/docs/types/SendQueryOptions.html +2 -2
- package/dist/docs/types/ServiceDefinition.html +2 -2
- package/dist/docs/types/ServiceDefinitions.html +2 -2
- package/dist/docs/types/ServiceRole.html +2 -2
- package/dist/docs/types/SetTransformResultFn.html +1 -1
- package/dist/docs/types/ShowOntology.html +2 -2
- package/dist/docs/types/ShowTabProps.html +2 -2
- package/dist/docs/types/Styler.html +2 -2
- package/dist/docs/types/StylerConfig.html +2 -2
- package/dist/docs/types/StylerDefinition.html +2 -2
- package/dist/docs/types/StylerDefinitions.html +2 -2
- package/dist/docs/types/StylerOption.html +2 -2
- package/dist/docs/types/StylerProducer.html +2 -2
- package/dist/docs/types/SubscribeDragStartFn.html +1 -1
- package/dist/docs/types/SubscribeToContextFn.html +1 -1
- package/dist/docs/types/Tag.html +2 -2
- package/dist/docs/types/TagInfo.html +2 -2
- package/dist/docs/types/TagWithRelationship.html +2 -2
- package/dist/docs/types/TaskCleanupReason.html +2 -2
- package/dist/docs/types/TemplateMetadata.html +2 -2
- package/dist/docs/types/TemplateType.html +2 -2
- package/dist/docs/types/TemplateVariant.html +2 -2
- package/dist/docs/types/TransformAction.html +2 -2
- package/dist/docs/types/TransformActionContext.html +2 -2
- package/dist/docs/types/TransformDefinition.html +2 -2
- package/dist/docs/types/TransformDefinitions.html +2 -2
- package/dist/docs/types/Unsubscribe.html +2 -2
- package/dist/docs/types/UnsubscribeFn.html +1 -1
- package/dist/docs/types/UnsubscribeFromContextFn.html +1 -1
- package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -1
- package/dist/docs/types/UserProfile.html +2 -2
- package/dist/docs/types/Watcher.html +2 -2
- package/dist/docs/types/Whoami.html +2 -2
- package/dist/docs/types/WithProgressBarOptions.html +2 -2
- package/dist/docs/types/Workspace.html +2 -2
- package/dist/docs/types/WorkspaceConfig.html +1 -1
- package/dist/docs/types/WorkspaceFlags.html +2 -2
- package/dist/docs/types/WorkspaceIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItem.html +2 -2
- package/dist/docs/types/WorkspaceItemBase.html +2 -2
- package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItemModel.html +2 -2
- package/dist/docs/types/WorkspaceItemTitleProps.html +2 -2
- package/dist/docs/types/WorkspaceItems.html +2 -2
- package/dist/docs/types/WorkspacePermission.html +2 -2
- package/dist/docs/types/WorkspaceRecord.html +2 -2
- package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
- package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
- package/dist/docs/types/WorkspaceRecords.html +2 -2
- package/dist/docs/types/WorkspaceRelationship.html +2 -2
- package/dist/docs/types/WorkspaceSettings.html +2 -2
- package/dist/docs/types/trigger.html +2 -2
- package/dist/docs/types/uuid.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
- package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +1 -1
- package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -1
- package/dist/files.d.ts +36 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +2 -0
- package/dist/files.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/liveContext.d.ts +69 -0
- package/dist/liveContext.d.ts.map +1 -0
- package/dist/liveContext.js +2 -0
- package/dist/liveContext.js.map +1 -0
- package/dist/platform-types.d.ts +108 -65
- package/package.json +1 -1
- package/dist/context.d.ts +0 -64
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js +0 -2
- package/dist/context.js.map +0 -1
- package/dist/docs/interfaces/Context.html +0 -28
- package/dist/docs/types/ContextAPISetParams.html +0 -1
- package/dist/docs/types/ContextListener.html +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveContext.js","sourceRoot":"","sources":["../src/liveContext.ts"],"names":[],"mappings":""}
|
package/dist/platform-types.d.ts
CHANGED
|
@@ -451,71 +451,6 @@ export declare type ConnectedEntity = Entity & {
|
|
|
451
451
|
concept_name: string;
|
|
452
452
|
};
|
|
453
453
|
|
|
454
|
-
/**
|
|
455
|
-
* @beta
|
|
456
|
-
* Represents a context management interface for handling state across components
|
|
457
|
-
*/
|
|
458
|
-
export declare interface Context<ContextData extends Record<string, any>> {
|
|
459
|
-
/**
|
|
460
|
-
* @beta
|
|
461
|
-
* Retrieves the current context data
|
|
462
|
-
* @returns The current context data
|
|
463
|
-
*/
|
|
464
|
-
getContext(): ContextData;
|
|
465
|
-
/**
|
|
466
|
-
* @beta
|
|
467
|
-
* Updates the context with new data
|
|
468
|
-
* @param context - New context data to merge with existing context
|
|
469
|
-
* @param doMerge - Whether to merge the new context with existing context (default: true)
|
|
470
|
-
*/
|
|
471
|
-
setContext(context: ContextData, doMerge?: boolean): void;
|
|
472
|
-
/**
|
|
473
|
-
* @beta
|
|
474
|
-
* Subscribes to context changes with an automatically generated ID
|
|
475
|
-
* @param contextListener - Callback function triggered on context changes
|
|
476
|
-
* @returns Generated subscription ID
|
|
477
|
-
*/
|
|
478
|
-
subscribeToChanges(contextListener: ContextListener<ContextData>): string;
|
|
479
|
-
/**
|
|
480
|
-
* @beta
|
|
481
|
-
* Subscribes to context changes with a custom ID
|
|
482
|
-
* @param id - Custom subscription ID
|
|
483
|
-
* @param contextListener - Callback function triggered on context changes
|
|
484
|
-
* @returns The subscription ID
|
|
485
|
-
*/
|
|
486
|
-
subscribeToChanges(id: string, contextListener: ContextListener<ContextData>): string;
|
|
487
|
-
/**
|
|
488
|
-
* @beta
|
|
489
|
-
* Unsubscribes from context changes
|
|
490
|
-
* @param id - Subscription ID to remove
|
|
491
|
-
*/
|
|
492
|
-
unsubscribeFromChanges(id: string): void;
|
|
493
|
-
/**
|
|
494
|
-
* @beta
|
|
495
|
-
* Connects to an iframe for context synchronization
|
|
496
|
-
* @returns Object containing channelId and onIframeLoad event handler
|
|
497
|
-
* @throws Error if the context is not a parent type
|
|
498
|
-
*/
|
|
499
|
-
connectToIframe(): {
|
|
500
|
-
channelId: string;
|
|
501
|
-
onIframeLoad: React.ReactEventHandler<HTMLIFrameElement>;
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* @beta
|
|
505
|
-
* Connects to parent window for context synchronization
|
|
506
|
-
*/
|
|
507
|
-
connectToParent(): void;
|
|
508
|
-
/**
|
|
509
|
-
* @beta
|
|
510
|
-
* Destroys the context and cleans up all listeners
|
|
511
|
-
*/
|
|
512
|
-
destroy(): void;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export declare type ContextAPISetParams<ContextData> = ContextData | ((currentContext: ContextData) => ContextData);
|
|
516
|
-
|
|
517
|
-
export declare type ContextListener<ContextData> = (context: ContextData | undefined) => void;
|
|
518
|
-
|
|
519
454
|
/**
|
|
520
455
|
* @beta
|
|
521
456
|
* Type representing the groups for a context menu.
|
|
@@ -734,6 +669,8 @@ export declare type DataMask = {
|
|
|
734
669
|
ownState?: Record<string, any>;
|
|
735
670
|
};
|
|
736
671
|
|
|
672
|
+
export declare type DefaultLiveContextData = Record<string, any>;
|
|
673
|
+
|
|
737
674
|
/**
|
|
738
675
|
* Interface for desktop actions.
|
|
739
676
|
* @beta
|
|
@@ -1600,6 +1537,43 @@ export declare type FileCode = {
|
|
|
1600
1537
|
file: string;
|
|
1601
1538
|
};
|
|
1602
1539
|
|
|
1540
|
+
export declare interface FileListOptions {
|
|
1541
|
+
maxFolders?: number;
|
|
1542
|
+
maxFiles?: number;
|
|
1543
|
+
folderOffset?: number;
|
|
1544
|
+
fileOffset?: number;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
export declare interface FileListResponse {
|
|
1548
|
+
folders: WorkspaceItem[];
|
|
1549
|
+
files: WorkspaceItem[];
|
|
1550
|
+
total_folders: number;
|
|
1551
|
+
total_files: number;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Files service for interacting with the file system
|
|
1556
|
+
*/
|
|
1557
|
+
export declare interface Files {
|
|
1558
|
+
/**
|
|
1559
|
+
* Check if file/folder/workspace exists and return its complete entity data
|
|
1560
|
+
*
|
|
1561
|
+
* @param os_workspace - The workspace ID
|
|
1562
|
+
* @param path - The path to check (empty string for workspace info)
|
|
1563
|
+
* @returns Complete entity data if found
|
|
1564
|
+
*/
|
|
1565
|
+
stat(os_workspace: string, path?: string): Promise<WorkspaceItem>;
|
|
1566
|
+
/**
|
|
1567
|
+
* List immediate children (files and folders) of a given path
|
|
1568
|
+
*
|
|
1569
|
+
* @param os_workspace - The workspace ID
|
|
1570
|
+
* @param path - The path to list children for (empty string for workspace root)
|
|
1571
|
+
* @param options - Optional parameters for pagination
|
|
1572
|
+
* @returns Object containing arrays of folders and files with pagination info
|
|
1573
|
+
*/
|
|
1574
|
+
list_folder(os_workspace: string, path?: string, options?: FileListOptions): Promise<FileListResponse>;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1603
1577
|
/**
|
|
1604
1578
|
* Options for file tree.
|
|
1605
1579
|
* @beta
|
|
@@ -2040,6 +2014,75 @@ export declare type KnownCounts = {
|
|
|
2040
2014
|
[relationship_name: string]: number;
|
|
2041
2015
|
};
|
|
2042
2016
|
|
|
2017
|
+
/**
|
|
2018
|
+
* @beta
|
|
2019
|
+
* Represents a context management interface for handling state across components
|
|
2020
|
+
*/
|
|
2021
|
+
export declare interface LiveContext<ContextData extends DefaultLiveContextData = DefaultLiveContextData> {
|
|
2022
|
+
/**
|
|
2023
|
+
* @beta
|
|
2024
|
+
* Retrieves the current context data
|
|
2025
|
+
* @returns The current context data
|
|
2026
|
+
*/
|
|
2027
|
+
getContext(): ContextData;
|
|
2028
|
+
/**
|
|
2029
|
+
* @beta
|
|
2030
|
+
* Updates the context with new data
|
|
2031
|
+
* @param context - New context data or function to update context
|
|
2032
|
+
*/
|
|
2033
|
+
setContext(context: LiveContextAPISetParams<ContextData>): Promise<void>;
|
|
2034
|
+
/**
|
|
2035
|
+
* @beta
|
|
2036
|
+
* Subscribes to context changes with an automatically generated ID
|
|
2037
|
+
* @param contextListener - Callback function triggered on context changes
|
|
2038
|
+
* @returns Generated subscription ID
|
|
2039
|
+
*/
|
|
2040
|
+
subscribeToChanges(contextListener: LiveContextListener<ContextData>): string;
|
|
2041
|
+
/**
|
|
2042
|
+
* @beta
|
|
2043
|
+
* Subscribes to context changes with a custom ID
|
|
2044
|
+
* @param id - Custom subscription ID
|
|
2045
|
+
* @param contextListener - Callback function triggered on context changes
|
|
2046
|
+
* @returns The subscription ID
|
|
2047
|
+
*/
|
|
2048
|
+
subscribeToChanges(id: string, contextListener: LiveContextListener<ContextData>): string;
|
|
2049
|
+
/**
|
|
2050
|
+
* @beta
|
|
2051
|
+
* Unsubscribes from context changes
|
|
2052
|
+
* @param id - Subscription ID to remove
|
|
2053
|
+
*/
|
|
2054
|
+
unsubscribeFromChanges(id: string): void;
|
|
2055
|
+
/**
|
|
2056
|
+
* @beta
|
|
2057
|
+
* Adds a context listener to another Context instance
|
|
2058
|
+
* @param contextAPI - The Context instance to connect to
|
|
2059
|
+
* @param mapContext - Optional function to transform context data
|
|
2060
|
+
* @returns Function to remove the context listener
|
|
2061
|
+
*/
|
|
2062
|
+
addContextListener<ContextDataToConnect extends DefaultLiveContextData>(contextAPI: LiveContext<ContextDataToConnect>, mapContext?: (context: ContextDataToConnect) => ContextData): () => void;
|
|
2063
|
+
/**
|
|
2064
|
+
* @beta
|
|
2065
|
+
* Removes a context listener
|
|
2066
|
+
* @param idOrContextAPI - ID or Context instance to disconnect from
|
|
2067
|
+
*/
|
|
2068
|
+
removeContextListener<ContextDataToConnect extends DefaultLiveContextData>(idOrContextAPI: LiveContext<ContextDataToConnect> | string): void;
|
|
2069
|
+
/**
|
|
2070
|
+
* @beta
|
|
2071
|
+
* Connects to target window for context synchronization
|
|
2072
|
+
* @returns The channel ID used for communication
|
|
2073
|
+
*/
|
|
2074
|
+
connect(): string;
|
|
2075
|
+
/**
|
|
2076
|
+
* @beta
|
|
2077
|
+
* Destroys the context and cleans up all listeners
|
|
2078
|
+
*/
|
|
2079
|
+
destroy(): void;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
export declare type LiveContextAPISetParams<ContextData extends Record<string, any> = Record<string, any>> = ContextData | ((currentContext: ContextData) => ContextData);
|
|
2083
|
+
|
|
2084
|
+
export declare type LiveContextListener<ContextData extends Record<string, any> = Record<string, any>> = (context: ContextData) => void;
|
|
2085
|
+
|
|
2043
2086
|
export declare type ManifestSecrets = {
|
|
2044
2087
|
[key: string]: {
|
|
2045
2088
|
description: string;
|
package/package.json
CHANGED
package/dist/context.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
type ContextListener<ContextData> = (context: ContextData | undefined) => void;
|
|
2
|
-
type ContextAPISetParams<ContextData> = ContextData | ((currentContext: ContextData) => ContextData);
|
|
3
|
-
/**
|
|
4
|
-
* @beta
|
|
5
|
-
* Represents a context management interface for handling state across components
|
|
6
|
-
*/
|
|
7
|
-
export interface Context<ContextData extends Record<string, any>> {
|
|
8
|
-
/**
|
|
9
|
-
* @beta
|
|
10
|
-
* Retrieves the current context data
|
|
11
|
-
* @returns The current context data
|
|
12
|
-
*/
|
|
13
|
-
getContext(): ContextData;
|
|
14
|
-
/**
|
|
15
|
-
* @beta
|
|
16
|
-
* Updates the context with new data
|
|
17
|
-
* @param context - New context data to merge with existing context
|
|
18
|
-
* @param doMerge - Whether to merge the new context with existing context (default: true)
|
|
19
|
-
*/
|
|
20
|
-
setContext(context: ContextData, doMerge?: boolean): void;
|
|
21
|
-
/**
|
|
22
|
-
* @beta
|
|
23
|
-
* Subscribes to context changes with an automatically generated ID
|
|
24
|
-
* @param contextListener - Callback function triggered on context changes
|
|
25
|
-
* @returns Generated subscription ID
|
|
26
|
-
*/
|
|
27
|
-
subscribeToChanges(contextListener: ContextListener<ContextData>): string;
|
|
28
|
-
/**
|
|
29
|
-
* @beta
|
|
30
|
-
* Subscribes to context changes with a custom ID
|
|
31
|
-
* @param id - Custom subscription ID
|
|
32
|
-
* @param contextListener - Callback function triggered on context changes
|
|
33
|
-
* @returns The subscription ID
|
|
34
|
-
*/
|
|
35
|
-
subscribeToChanges(id: string, contextListener: ContextListener<ContextData>): string;
|
|
36
|
-
/**
|
|
37
|
-
* @beta
|
|
38
|
-
* Unsubscribes from context changes
|
|
39
|
-
* @param id - Subscription ID to remove
|
|
40
|
-
*/
|
|
41
|
-
unsubscribeFromChanges(id: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* @beta
|
|
44
|
-
* Connects to an iframe for context synchronization
|
|
45
|
-
* @returns Object containing channelId and onIframeLoad event handler
|
|
46
|
-
* @throws Error if the context is not a parent type
|
|
47
|
-
*/
|
|
48
|
-
connectToIframe(): {
|
|
49
|
-
channelId: string;
|
|
50
|
-
onIframeLoad: React.ReactEventHandler<HTMLIFrameElement>;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @beta
|
|
54
|
-
* Connects to parent window for context synchronization
|
|
55
|
-
*/
|
|
56
|
-
connectToParent(): void;
|
|
57
|
-
/**
|
|
58
|
-
* @beta
|
|
59
|
-
* Destroys the context and cleans up all listeners
|
|
60
|
-
*/
|
|
61
|
-
destroy(): void;
|
|
62
|
-
}
|
|
63
|
-
export type { ContextListener, ContextAPISetParams };
|
|
64
|
-
//# sourceMappingURL=context.d.ts.map
|
package/dist/context.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;AAE/E,KAAK,mBAAmB,CAAC,WAAW,IAChC,WAAW,GACX,CAAC,CAAC,cAAc,EAAE,WAAW,KAAK,WAAW,CAAC,CAAC;AAGnD;;;GAGG;AACH,MAAM,WAAW,OAAO,CAAC,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC9D;;;;OAIG;IACH,UAAU,IAAI,WAAW,CAAC;IAE1B;;;;;OAKG;IACH,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1D;;;;;OAKG;IACH,kBAAkB,CAAC,eAAe,EAAE,eAAe,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC;IAE1E;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC;IAEtF;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC;;;;;OAKG;IACH,eAAe,IAAI;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;KAAE,CAAC;IAEnG;;;OAGG;IACH,eAAe,IAAI,IAAI,CAAC;IAExB;;;OAGG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,YAAY,EACV,eAAe,EACf,mBAAmB,EACpB,CAAC"}
|
package/dist/context.js
DELETED
package/dist/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Context | @octostar/platform-types - v0.5.22</title><meta name="description" content="Documentation for @octostar/platform-types"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@octostar/platform-types - v0.5.22</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@octostar/platform-types</a></li><li><a href="Context.html">Context</a></li></ul><h1>Interface Context<ContextData><code class="tsd-tag">Beta</code></h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Represents a context management interface for handling state across components</p>
|
|
2
|
-
</div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface </span><span class="tsd-kind-interface">Context</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">{ </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#connectToIframe.connectToIframe-1">connectToIframe</a><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">channelId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">onIframeLoad</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReactEventHandler</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">HTMLIFrameElement</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#connectToParent.connectToParent-1">connectToParent</a><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#destroy.destroy-1">destroy</a><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#getContext.getContext-1">getContext</a><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#setContext.setContext-1">setContext</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a>, <span class="tsd-kind-parameter">doMerge</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#subscribeToChanges.subscribeToChanges-1">subscribeToChanges</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">contextListener</span><span class="tsd-signature-symbol">: </span><a href="../types/ContextListener.html" class="tsd-signature-type tsd-kind-type-alias">ContextListener</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#subscribeToChanges.subscribeToChanges-2">subscribeToChanges</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, <span class="tsd-kind-parameter">contextListener</span><span class="tsd-signature-symbol">: </span><a href="../types/ContextListener.html" class="tsd-signature-type tsd-kind-type-alias">ContextListener</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-call-signature" href="Context.html#unsubscribeFromChanges.unsubscribeFromChanges-1">unsubscribeFromChanges</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div> <section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="ContextData" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">ContextData</span><span class="tsd-signature-keyword"> extends </span><span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></span></li></ul></section> <aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L12">context.ts:12</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="Context.html#connectToIframe" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>connect<wbr/>To<wbr/>Iframe</span></a>
|
|
3
|
-
<a href="Context.html#connectToParent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>connect<wbr/>To<wbr/>Parent</span></a>
|
|
4
|
-
<a href="Context.html#destroy" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>destroy</span></a>
|
|
5
|
-
<a href="Context.html#getContext" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Context</span></a>
|
|
6
|
-
<a href="Context.html#setContext" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Context</span></a>
|
|
7
|
-
<a href="Context.html#subscribeToChanges" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>subscribe<wbr/>To<wbr/>Changes</span></a>
|
|
8
|
-
<a href="Context.html#unsubscribeFromChanges" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unsubscribe<wbr/>From<wbr/>Changes</span></a>
|
|
9
|
-
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Methods</h2></summary><section><section class="tsd-panel tsd-member"><a id="connectToIframe" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>connect<wbr/>To<wbr/>Iframe</span><a href="#connectToIframe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="connectToIframe.connectToIframe-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">connect<wbr/>To<wbr/>Iframe</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">channelId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">onIframeLoad</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReactEventHandler</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">HTMLIFrameElement</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><a href="#connectToIframe.connectToIframe-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Connects to an iframe for context synchronization</p>
|
|
10
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">channelId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">onIframeLoad</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReactEventHandler</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">HTMLIFrameElement</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h4><p>Object containing channelId and onIframeLoad event handler</p>
|
|
11
|
-
<ul class="tsd-parameters"><li class="tsd-parameter"><h5><code class="tsd-tag">Beta</code><span class="tsd-kind-property">channel<wbr/>Id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><code class="tsd-tag">Beta</code><span class="tsd-kind-property">on<wbr/>Iframe<wbr/>Load</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReactEventHandler</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">HTMLIFrameElement</span><span class="tsd-signature-symbol">></span></h5><div class="tsd-comment tsd-typography"></div></li></ul><div class="tsd-comment tsd-typography"><div class="tsd-tag-Throws"><h4 class="tsd-anchor-link"><a id="Throws" class="tsd-anchor"></a>Throws<a href="#Throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>Error if the context is not a parent type</p>
|
|
12
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L58">context.ts:58</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="connectToParent" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>connect<wbr/>To<wbr/>Parent</span><a href="#connectToParent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="connectToParent.connectToParent-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">connect<wbr/>To<wbr/>Parent</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#connectToParent.connectToParent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Connects to parent window for context synchronization</p>
|
|
13
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L64">context.ts:64</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="destroy" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>destroy</span><a href="#destroy" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="destroy.destroy-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">destroy</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#destroy.destroy-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Destroys the context and cleans up all listeners</p>
|
|
14
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L70">context.ts:70</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getContext" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Context</span><a href="#getContext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getContext.getContext-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Context</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><a href="#getContext.getContext-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Retrieves the current context data</p>
|
|
15
|
-
</div><h4 class="tsd-returns-title">Returns <a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a></h4><p>The current context data</p>
|
|
16
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L18">context.ts:18</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setContext" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Context</span><a href="#setContext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setContext.setContext-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Context</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span>, <span class="tsd-kind-parameter">doMerge</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setContext.setContext-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Updates the context with new data</p>
|
|
17
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">context</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a></span><div class="tsd-comment tsd-typography"><p>New context data to merge with existing context</p>
|
|
18
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">doMerge</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether to merge the new context with existing context (default: true)</p>
|
|
19
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L26">context.ts:26</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="subscribeToChanges" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>subscribe<wbr/>To<wbr/>Changes</span><a href="#subscribeToChanges" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="subscribeToChanges.subscribeToChanges-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">subscribe<wbr/>To<wbr/>Changes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">contextListener</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#subscribeToChanges.subscribeToChanges-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Subscribes to context changes with an automatically generated ID</p>
|
|
20
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">contextListener</span>: <a href="../types/ContextListener.html" class="tsd-signature-type tsd-kind-type-alias">ContextListener</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span></span><div class="tsd-comment tsd-typography"><p>Callback function triggered on context changes</p>
|
|
21
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>Generated subscription ID</p>
|
|
22
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L34">context.ts:34</a></li></ul></aside></li><li class="tsd-signature tsd-anchor-link"><a id="subscribeToChanges.subscribeToChanges-2" class="tsd-anchor"></a><span class="tsd-kind-call-signature">subscribe<wbr/>To<wbr/>Changes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span>, <span class="tsd-kind-parameter">contextListener</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#subscribeToChanges.subscribeToChanges-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Subscribes to context changes with a custom ID</p>
|
|
23
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Custom subscription ID</p>
|
|
24
|
-
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">contextListener</span>: <a href="../types/ContextListener.html" class="tsd-signature-type tsd-kind-type-alias">ContextListener</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="Context.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span></span><div class="tsd-comment tsd-typography"><p>Callback function triggered on context changes</p>
|
|
25
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>The subscription ID</p>
|
|
26
|
-
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L43">context.ts:43</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="unsubscribeFromChanges" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>unsubscribe<wbr/>From<wbr/>Changes</span><a href="#unsubscribeFromChanges" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="unsubscribeFromChanges.unsubscribeFromChanges-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">unsubscribe<wbr/>From<wbr/>Changes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#unsubscribeFromChanges.unsubscribeFromChanges-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><code class="tsd-tag">Beta</code><div class="tsd-comment tsd-typography"><p>Unsubscribes from context changes</p>
|
|
27
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Subscription ID to remove</p>
|
|
28
|
-
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L50">context.ts:50</a></li></ul></aside></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#connectToIframe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>connect<wbr/>To<wbr/>Iframe</span></a><a href="#connectToParent" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>connect<wbr/>To<wbr/>Parent</span></a><a href="#destroy" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>destroy</span></a><a href="#getContext" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Context</span></a><a href="#setContext" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Context</span></a><a href="#subscribeToChanges" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>subscribe<wbr/>To<wbr/>Changes</span></a><a href="#unsubscribeFromChanges" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unsubscribe<wbr/>From<wbr/>Changes</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@octostar/platform-types - v0.5.22</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ContextAPISetParams | @octostar/platform-types - v0.5.22</title><meta name="description" content="Documentation for @octostar/platform-types"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@octostar/platform-types - v0.5.22</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@octostar/platform-types</a></li><li><a href="ContextAPISetParams.html">ContextAPISetParams</a></li></ul><h1>Type Alias ContextAPISetParams<ContextData></h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">ContextAPISet<wbr/>Params</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="ContextAPISetParams.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="ContextAPISetParams.html#ContextData">ContextData</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">currentContext</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="ContextAPISetParams.html#ContextData">ContextData</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a class="tsd-signature-type tsd-kind-type-parameter" href="ContextAPISetParams.html#ContextData">ContextData</a><span class="tsd-signature-symbol">)</span></div><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="ContextData" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">ContextData</span></span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L3">context.ts:3</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@octostar/platform-types - v0.5.22</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ContextListener | @octostar/platform-types - v0.5.22</title><meta name="description" content="Documentation for @octostar/platform-types"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@octostar/platform-types - v0.5.22</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@octostar/platform-types</a></li><li><a href="ContextListener.html">ContextListener</a></li></ul><h1>Type Alias ContextListener<ContextData></h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Context<wbr/>Listener</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="ContextListener.html#ContextData">ContextData</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="ContextListener.html#ContextData">ContextData</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></div><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="ContextData" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">ContextData</span></span></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Octostarco/octostar-frontend/blob/f33e6c99c336fb90daadb240e80b9b91907846cc/packages/octostar-platform-types/src/context.ts#L1">context.ts:1</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@octostar/platform-types - v0.5.22</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|