@pillar-ai/angular 0.1.11

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.
@@ -0,0 +1,77 @@
1
+ /**
2
+ * @pillar-ai/angular - Angular bindings for Pillar SDK
3
+ *
4
+ * @example
5
+ * ```typescript
6
+ * // app.config.ts
7
+ * import { ApplicationConfig, APP_INITIALIZER, inject } from '@angular/core';
8
+ * import { PillarService } from '@pillar-ai/angular';
9
+ *
10
+ * function initPillar() {
11
+ * const pillar = inject(PillarService);
12
+ * return () => pillar.init({ productKey: 'your-product-key' });
13
+ * }
14
+ *
15
+ * export const appConfig: ApplicationConfig = {
16
+ * providers: [
17
+ * { provide: APP_INITIALIZER, useFactory: initPillar, multi: true },
18
+ * ],
19
+ * };
20
+ *
21
+ * // help-button.component.ts
22
+ * import { Component } from '@angular/core';
23
+ * import { injectPillar } from '@pillar-ai/angular';
24
+ *
25
+ * @Component({
26
+ * selector: 'app-help-button',
27
+ * standalone: true,
28
+ * template: `
29
+ * <button (click)="toggle()">
30
+ * {{ isPanelOpen() ? 'Close Help' : 'Get Help' }}
31
+ * </button>
32
+ * `,
33
+ * })
34
+ * export class HelpButtonComponent {
35
+ * private pillar = injectPillar();
36
+ * isPanelOpen = this.pillar.isPanelOpen;
37
+ * toggle = this.pillar.toggle;
38
+ * }
39
+ *
40
+ * // Custom panel placement example:
41
+ * // layout.component.ts
42
+ * import { Component } from '@angular/core';
43
+ * import { PillarPanelComponent } from '@pillar-ai/angular';
44
+ *
45
+ * @Component({
46
+ * selector: 'app-layout',
47
+ * standalone: true,
48
+ * imports: [PillarPanelComponent],
49
+ * template: `
50
+ * <div class="layout">
51
+ * <pillar-panel class="custom-panel" />
52
+ * <main>Your content</main>
53
+ * </div>
54
+ * `,
55
+ * })
56
+ * export class LayoutComponent {}
57
+ * ```
58
+ */
59
+ export { PillarService } from './lib/pillar.service';
60
+ export { PillarPanelComponent } from './lib/pillar-panel.component';
61
+ export { injectPillar, type InjectPillarResult } from './lib/inject-pillar';
62
+ export { injectHelpPanel } from './lib/inject-help-panel';
63
+ export { injectPillarTool, injectPillarAction } from './lib/inject-pillar-tool';
64
+ export type { CardComponent, CardComponentProps, PillarContextValue, PillarInitConfig, PillarServiceActions, PillarServiceState, InjectHelpPanelResult, } from './lib/types';
65
+ export type { EdgeTriggerConfig, MobileTriggerConfig, MobileTriggerPosition, MobileTriggerIcon, MobileTriggerSize, PanelConfig, PillarConfig, PillarEvents, PillarState, ResolvedConfig, ResolvedMobileTriggerConfig, ResolvedThemeConfig, TaskExecutePayload, TextSelectionConfig, ThemeColors, ThemeConfig, ThemeMode, CardCallbacks, CardRenderer, SidebarTabConfig, ToolDefinitions, SyncToolDefinitions, ToolDataType, ToolNames, ToolExecuteResult, ToolSchema, ToolType, ActionDefinitions, SyncActionDefinitions, ActionDataType, ActionNames, ActionResult, ActionSchema, ActionType, ChatContext,
66
+ /** @deprecated DOM scanning is disabled */
67
+ DOMScanningConfig,
68
+ /** @deprecated DOM scanning is disabled */
69
+ ResolvedDOMScanningConfig,
70
+ /** @deprecated DOM scanning is disabled */
71
+ ScanOptions,
72
+ /** @deprecated DOM scanning is disabled */
73
+ CompactScanResult,
74
+ /** @deprecated DOM scanning is disabled */
75
+ InteractionType,
76
+ /** @deprecated DOM scanning is disabled */
77
+ scanPageDirect, } from '@pillar-ai/sdk';
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@pillar-ai/angular",
3
+ "version": "0.1.11",
4
+ "description": "Angular SDK for Pillar product copilot — AI assistant for SaaS and web apps",
5
+ "type": "module",
6
+ "main": "./dist/fesm2022/pillar-ai-angular.mjs",
7
+ "module": "./dist/fesm2022/pillar-ai-angular.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "typings": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "esm2022": "./dist/esm2022/pillar-ai-angular.mjs",
14
+ "esm": "./dist/esm2022/pillar-ai-angular.mjs",
15
+ "default": "./dist/fesm2022/pillar-ai-angular.mjs"
16
+ },
17
+ "./package.json": {
18
+ "default": "./package.json"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "README.md"
24
+ ],
25
+ "scripts": {
26
+ "build": "ng-packagr -p ng-package.json",
27
+ "dev": "ng-packagr -p ng-package.json --watch",
28
+ "clean": "rm -rf dist",
29
+ "prepublishOnly": "npm run build"
30
+ },
31
+ "keywords": [
32
+ "angular",
33
+ "copilot",
34
+ "assistant",
35
+ "ai",
36
+ "sdk",
37
+ "saas",
38
+ "embedded",
39
+ "agent"
40
+ ],
41
+ "author": "Pillar Team",
42
+ "license": "MIT",
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "https://github.com/pillarhq/sdk-angular",
46
+ "directory": "packages/sdk-angular"
47
+ },
48
+ "homepage": "https://trypillar.com",
49
+ "bugs": {
50
+ "url": "https://github.com/pillarhq/sdk-angular/issues"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "peerDependencies": {
56
+ "@angular/core": ">=17.0.0",
57
+ "@angular/common": ">=17.0.0"
58
+ },
59
+ "dependencies": {
60
+ "@pillar-ai/sdk": "^0.1.22"
61
+ },
62
+ "devDependencies": {
63
+ "@angular/compiler": "^17.3.0",
64
+ "@angular/compiler-cli": "^17.3.0",
65
+ "@angular/core": "^17.3.0",
66
+ "@angular/common": "^17.3.0",
67
+ "ng-packagr": "^17.3.0",
68
+ "tslib": "^2.6.2",
69
+ "typescript": "~5.3.0",
70
+ "zone.js": "~0.14.0"
71
+ },
72
+ "sideEffects": false
73
+ }