@rtsee/ngx 0.0.130 → 0.0.132

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, ChangeDetectorRef, SimpleChanges, OutputEmitterRef, ViewContainerRef, ComponentFactoryResolver, DoCheck, Type } from '@angular/core';
2
+ import { OnInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges, OnDestroy, ChangeDetectorRef, OutputEmitterRef, ViewContainerRef, ComponentFactoryResolver, DoCheck, Type } from '@angular/core';
3
3
  import { RTSeeConference, RTSeePeerConnection } from '@rtsee/conference';
4
4
  import { RTSeeMessenger, RTSeeMessengerSearch, RTSeeMessage, RTSeeChat, RTSeeChatMember, RTSeeMentionAutocomplete, RTSeeWorkflowAutocomplete, OzzyClientTask, OzzyClientTaskAction, OzzyWorkflowStep, OzzyWorkflow } from '@rtsee/messenger';
5
5
  import { IPeer, RTSeeTextLabelKeys, IRTSeeCall } from '@rtsee/core';
@@ -12,12 +12,12 @@ import { IRTSeePaymentProduct, IRTSeePaymentPriceItem, IRTSeeEntitiesList, IRTSe
12
12
  import { RTSeeEventsDashboard, RTSeeDashboardClientSession, RTSeeDashboardEvent, RTSeeDashboardClient } from '@rtsee/events-dashboard';
13
13
  import { RTSee, INavigationConfig, IRouteConfig } from '@rtsee/factory';
14
14
  import { RTSeePresentation, RTSeeStory, RTSeeStoriesList, StoriesListSortMode, RTSeeManageEntitiesList, RTSeeManageEntitiesLists, RTSeeManageEntitiesListGroup, RTSeeManageEntitiesListGroups, RTSeeInteractiveStoryEditorVm, RTSeeStoryEditorSection, RTSeeIllustrator, RTSeeStoryElementsEditor, RTSeeStoryElementEntity, IRTSeeIllustratorAgentOption, RTSeePresentationSettings, RTSeeStorySlide } from '@rtsee/presentation';
15
+ import * as i43 from '@angular/common';
16
+ import { ViewportScroller } from '@angular/common';
15
17
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
16
18
  import { RTSeeEntityListItemVm, RTSeeTag, RTSeeManageTags, RTSeeTagGroup, RTSeeManageTagGroups, RTSeeEntityConfiguration, RTSeeManageEntityConfigurations, RTSeeEntity, RTSeeManageEntities, RTSeeRater, RTSeeForm, RTSeeTranslationsPanel, IRTSeeTranslationLanguageOption, IRTSeeTranslationFieldDefinition, IRTSeeFormEditor, IRTSeeFormFieldChange, IRTSeeFormCollectiveState, RTSeeFormFieldAutocomplete, RTSeeFormField, RTSeeFormFieldSelect } from '@rtsee/utilities-ui';
17
19
  import * as i44 from '@angular/forms';
18
20
  import { FormGroup, FormBuilder, FormControl, FormArray } from '@angular/forms';
19
- import * as i43 from '@angular/common';
20
- import { ViewportScroller } from '@angular/common';
21
21
  import Swiper from 'swiper';
22
22
  import * as i45 from 'ngx-autosize';
23
23
  import * as i46 from 'ngx-infinite-scroll';
@@ -203,11 +203,18 @@ declare class StoryThumbnailComponent implements OnInit {
203
203
  static ɵcmp: i0.ɵɵComponentDeclaration<StoryThumbnailComponent, "rtsee-story-thumbnail", never, { "story": { "alias": "story"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; }, {}, never, never, true, never>;
204
204
  }
205
205
 
206
- declare class StoryDetailsComponent {
206
+ declare class StoryDetailsComponent implements AfterViewInit, OnChanges {
207
+ private hostRef;
208
+ private scroller;
209
+ private document;
207
210
  story: RTSeeStory;
208
211
  presentation: RTSeePresentation;
209
212
  messenger?: RTSeeMessenger;
213
+ constructor(hostRef: ElementRef<HTMLElement>, scroller: ViewportScroller, document: Document);
214
+ ngAfterViewInit(): void;
215
+ ngOnChanges(changes: SimpleChanges): void;
210
216
  onRelatedStoryClicked(relatedStory: RTSeeStory): void;
217
+ private scrollToTop;
211
218
  getStarArray(rating: number | null): string[];
212
219
  protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
213
220
  protected readonly Math: Math;
@@ -215,14 +222,25 @@ declare class StoryDetailsComponent {
215
222
  static ɵcmp: i0.ɵɵComponentDeclaration<StoryDetailsComponent, "rtsee-story-details", never, { "story": { "alias": "story"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
216
223
  }
217
224
 
218
- declare class StoriesListComponent {
225
+ declare class StoriesListComponent implements AfterViewInit, OnChanges {
226
+ private hostRef;
227
+ private scroller;
228
+ private document;
219
229
  list: RTSeeStoriesList;
220
230
  presentation: RTSeePresentation;
221
231
  messenger?: RTSeeMessenger;
222
232
  protected readonly RTSeeTextLabelKeys: typeof RTSeeTextLabelKeys;
223
233
  protected readonly Math: Math;
234
+ constructor(hostRef: ElementRef<HTMLElement>, scroller: ViewportScroller, document: Document);
235
+ ngAfterViewInit(): void;
236
+ ngOnChanges(changes: SimpleChanges): void;
224
237
  setSortBy(mode: StoriesListSortMode): void;
225
- onStoryClicked(story?: RTSeeStory): void;
238
+ onStoryClicked(story?: RTSeeStory, fallbackEntityId?: string): void;
239
+ hasReadingProgress(item: {
240
+ entityId: string;
241
+ entity?: RTSeeStory;
242
+ }): boolean;
243
+ private scrollToTop;
226
244
  static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListComponent, never>;
227
245
  static ɵcmp: i0.ɵɵComponentDeclaration<StoriesListComponent, "rtsee-stories-list", never, { "list": { "alias": "list"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
228
246
  }
@@ -233,6 +251,7 @@ declare class StoriesListThumbnailComponent {
233
251
  listRoutePrefix: string;
234
252
  get routePrefix(): string;
235
253
  get listSlugOrId(): string;
254
+ get storiesCountLabel(): string;
236
255
  onThumbnailClick(): void;
237
256
  static ɵfac: i0.ɵɵFactoryDeclaration<StoriesListThumbnailComponent, never>;
238
257
  static ɵcmp: i0.ɵɵComponentDeclaration<StoriesListThumbnailComponent, "rtsee-stories-list-thumbnail", never, { "list": { "alias": "list"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "listRoutePrefix": { "alias": "listRoutePrefix"; "required": false; }; }, {}, never, never, true, never>;
@@ -117,6 +117,10 @@
117
117
 
118
118
  .rtsee-stories-list-thumbnail-bottom {
119
119
  min-width: 0;
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: flex-start;
123
+ gap: 6px;
120
124
  }
121
125
 
122
126
  .rtsee-stories-list-thumbnail-title {
@@ -332,61 +336,140 @@
332
336
  }
333
337
 
334
338
  .rtsee-stories-list-item {
335
- display: flex;
336
- align-items: flex-start;
337
- gap: 14px;
338
- background: rgba(255, 255, 255, 0.04);
339
+ display: block;
340
+ background: linear-gradient(
341
+ 135deg,
342
+ $rts-rates-bg-card-start 0%,
343
+ $rts-rates-bg-card-end 100%
344
+ );
339
345
  border: 1px solid rgba(255, 255, 255, 0.08);
340
346
  border-radius: 16px;
341
- padding: 16px;
342
- transition: border-color 0.2s ease, background-color 0.2s ease;
347
+ padding: 14px;
348
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
349
+
350
+ @media screen and (min-width: $rts-break-sm) {
351
+ padding: 16px 18px;
352
+ }
343
353
 
344
354
  &:hover {
345
355
  border-color: rgba(191, 139, 255, 0.35);
346
- background: rgba(255, 255, 255, 0.06);
356
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
347
357
  }
348
358
  }
349
359
 
350
- .rtsee-stories-list-item-rank {
351
- flex-shrink: 0;
352
- width: 32px;
353
- height: 32px;
354
- border-radius: 50%;
355
- background: rgba(191, 139, 255, 0.18);
356
- border: 1px solid rgba(191, 139, 255, 0.35);
357
- color: #fff;
358
- font-size: 0.85rem;
359
- font-weight: 700;
360
+ .rtsee-stories-list-item-card {
360
361
  display: flex;
361
- align-items: center;
362
- justify-content: center;
362
+ flex-direction: column;
363
+ min-width: 0;
363
364
  }
364
365
 
365
- .rtsee-stories-list-item-card {
366
- flex: 1;
367
- min-width: 0;
366
+ .rtsee-stories-list-item-top {
368
367
  display: flex;
369
- flex-direction: column;
368
+ flex-direction: row;
369
+ align-items: stretch;
370
370
  gap: 14px;
371
+ min-width: 0;
371
372
 
372
373
  @media screen and (min-width: $rts-break-sm) {
373
- flex-direction: row;
374
- align-items: flex-start;
374
+ gap: 16px;
375
375
  }
376
376
  }
377
377
 
378
378
  .rtsee-stories-list-item-cover-link {
379
+ position: relative;
379
380
  flex-shrink: 0;
381
+ align-self: flex-start;
380
382
  display: block;
381
- width: 100%;
382
- max-width: 180px;
383
- aspect-ratio: 4 / 3;
383
+ width: 104px;
384
+ height: 104px;
385
+ aspect-ratio: 1 / 1;
384
386
  border-radius: 12px;
385
387
  overflow: hidden;
386
388
  background: #222;
389
+ text-decoration: none;
390
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
387
391
 
388
392
  @media screen and (min-width: $rts-break-sm) {
389
- width: 148px;
393
+ width: 112px;
394
+ height: 112px;
395
+ }
396
+
397
+ &::after {
398
+ content: "";
399
+ position: absolute;
400
+ inset: 0 0 auto 0;
401
+ height: 36px;
402
+ background: linear-gradient(
403
+ 180deg,
404
+ rgba(10, 8, 18, 0.58) 0%,
405
+ rgba(10, 8, 18, 0) 100%
406
+ );
407
+ pointer-events: none;
408
+ z-index: 1;
409
+ }
410
+
411
+ &:hover .rtsee-stories-list-item-cover {
412
+ transform: scale(1.05);
413
+ }
414
+ }
415
+
416
+ .rtsee-stories-list-item-cover-top {
417
+ position: absolute;
418
+ top: 5px;
419
+ left: 5px;
420
+ right: 5px;
421
+ z-index: 2;
422
+ display: flex;
423
+ align-items: center;
424
+ justify-content: space-between;
425
+ gap: 4px;
426
+ pointer-events: none;
427
+ }
428
+
429
+ .rtsee-stories-list-item-rank {
430
+ flex-shrink: 0;
431
+ min-width: 22px;
432
+ height: 22px;
433
+ padding: 0 6px;
434
+ border-radius: 7px;
435
+ background: rgba(18, 14, 28, 0.82);
436
+ border: 1px solid rgba(191, 139, 255, 0.5);
437
+ backdrop-filter: blur(6px);
438
+ color: #fff;
439
+ font-size: 0.72rem;
440
+ font-weight: 700;
441
+ line-height: 1;
442
+ display: inline-flex;
443
+ align-items: center;
444
+ justify-content: center;
445
+ box-sizing: border-box;
446
+ }
447
+
448
+ .rtsee-stories-list-item-rating {
449
+ flex-shrink: 0;
450
+ height: 22px;
451
+ padding: 0 6px;
452
+ border-radius: 7px;
453
+ background: rgba(18, 14, 28, 0.82);
454
+ border: 1px solid rgba(255, 255, 255, 0.16);
455
+ backdrop-filter: blur(6px);
456
+ display: inline-flex;
457
+ align-items: center;
458
+ gap: 3px;
459
+ line-height: 1;
460
+ box-sizing: border-box;
461
+
462
+ .rtsee-stories-list-item-rating-star {
463
+ color: $ai-rating-star-color;
464
+ font-size: 0.74rem;
465
+ line-height: 1;
466
+ }
467
+
468
+ .rtsee-stories-list-item-rating-value {
469
+ color: #ffffff;
470
+ font-size: 0.7rem;
471
+ font-weight: 700;
472
+ line-height: 1;
390
473
  }
391
474
  }
392
475
 
@@ -397,10 +480,6 @@
397
480
  display: block;
398
481
  transition: transform 0.25s ease;
399
482
 
400
- &:hover {
401
- transform: scale(1.04);
402
- }
403
-
404
483
  &.rtsee-stories-list-item-cover-placeholder {
405
484
  display: flex;
406
485
  align-items: center;
@@ -413,20 +492,38 @@
413
492
  .rtsee-stories-list-item-body {
414
493
  flex: 1;
415
494
  min-width: 0;
495
+ min-height: 104px;
496
+ display: flex;
497
+ flex-direction: column;
498
+ justify-content: space-between;
499
+ gap: 10px;
500
+
501
+ @media screen and (min-width: $rts-break-sm) {
502
+ min-height: 112px;
503
+ }
416
504
  }
417
505
 
418
506
  .rtsee-stories-list-item-header {
419
507
  display: flex;
420
508
  flex-direction: column;
421
- gap: 6px;
422
- margin-bottom: 8px;
509
+ gap: 5px;
510
+ margin: 0;
423
511
  }
424
512
 
425
513
  .rtsee-stories-list-item-title {
426
514
  margin: 0;
427
- font-size: 1.15rem;
515
+ font-size: 1.12rem;
428
516
  font-weight: 700;
429
- line-height: 1.3;
517
+ line-height: 1.25;
518
+ display: -webkit-box;
519
+ -webkit-line-clamp: 2;
520
+ line-clamp: 2;
521
+ -webkit-box-orient: vertical;
522
+ overflow: hidden;
523
+
524
+ @media screen and (min-width: $rts-break-sm) {
525
+ font-size: 1.2rem;
526
+ }
430
527
 
431
528
  a {
432
529
  color: #ffffff;
@@ -442,13 +539,24 @@
442
539
  display: flex;
443
540
  align-items: center;
444
541
  flex-wrap: wrap;
445
- gap: 10px;
446
- font-size: 0.8rem;
542
+ gap: 8px;
543
+ font-size: 0.78rem;
447
544
  color: $ai-text-color-secondary;
448
545
  }
449
546
 
547
+ .rtsee-stories-list-item-readtime {
548
+ display: inline-flex;
549
+ align-items: center;
550
+ gap: 4px;
551
+
552
+ .pi {
553
+ font-size: 0.74rem;
554
+ opacity: 0.75;
555
+ }
556
+ }
557
+
450
558
  .rtsee-stories-list-item-age {
451
- font-size: 0.72rem;
559
+ font-size: 0.7rem;
452
560
  font-weight: 600;
453
561
  color: $ai-icon-highlight-color;
454
562
  background: $ai-icon-highlight-color-dim;
@@ -456,11 +564,70 @@
456
564
  border-radius: 4px;
457
565
  }
458
566
 
567
+ .rtsee-stories-list-item-actions {
568
+ display: flex;
569
+ align-items: center;
570
+ flex-wrap: wrap;
571
+ gap: 10px;
572
+ }
573
+
574
+ .rtsee-stories-list-item-start-btn {
575
+ display: inline-flex;
576
+ align-items: center;
577
+ justify-content: center;
578
+ gap: 7px;
579
+ height: 34px;
580
+ padding: 0 14px;
581
+ border: none;
582
+ border-radius: 10px;
583
+ background: linear-gradient(
584
+ 135deg,
585
+ $rts-rates-accent-purple 0%,
586
+ $rts-rates-accent-purple-light 100%
587
+ );
588
+ color: #ffffff;
589
+ text-decoration: none;
590
+ font: inherit;
591
+ font-size: 0.82rem;
592
+ font-weight: 700;
593
+ letter-spacing: 0.01em;
594
+ cursor: pointer;
595
+ box-shadow:
596
+ 0 4px 14px rgba($rts-rates-accent-purple, 0.38),
597
+ 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
598
+ transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
599
+
600
+ .pi {
601
+ font-size: 0.85rem;
602
+ }
603
+
604
+ &:hover {
605
+ color: #ffffff;
606
+ text-decoration: none;
607
+ transform: translateY(-1px);
608
+ filter: brightness(1.06);
609
+ box-shadow:
610
+ 0 6px 18px rgba($rts-rates-accent-purple, 0.5),
611
+ 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
612
+ }
613
+
614
+ &:active {
615
+ transform: translateY(0) scale(0.98);
616
+ }
617
+
618
+ &:focus-visible {
619
+ outline: 2px solid $rts-rates-accent-purple-light;
620
+ outline-offset: 2px;
621
+ }
622
+ }
623
+
459
624
  .rtsee-stories-list-item-description {
460
- margin: 0;
461
- font-size: 0.94rem;
462
- line-height: 1.55;
463
- color: rgba(255, 255, 255, 0.82);
625
+ margin: 12px 0 0;
626
+ padding-top: 12px;
627
+ border-top: 1px solid rgba(255, 255, 255, 0.07);
628
+ font-size: 0.92rem;
629
+ line-height: 1.58;
630
+ color: rgba(255, 255, 255, 0.84);
464
631
  white-space: pre-line;
465
632
  }
466
633
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.130",
2
+ "version": "0.0.132",
3
3
  "name": "@rtsee/ngx",
4
4
  "module": "./dist/ngx/fesm2022/rtsee-ngx.mjs",
5
5
  "types": "./dist/ngx/index.d.ts",
@@ -40,15 +40,15 @@
40
40
  "@angular/platform-browser-dynamic": "^20.1.2",
41
41
  "@angular/router": "^20.1.2",
42
42
  "@primeuix/themes": "^1.2.3",
43
- "@rtsee/common": "^0.0.101",
44
- "@rtsee/conference": "^0.0.102",
45
- "@rtsee/core": "^0.0.145",
46
- "@rtsee/events-dashboard": "^0.0.135",
47
- "@rtsee/factory": "^0.0.144",
48
- "@rtsee/messenger": "^0.0.135",
49
- "@rtsee/presentation": "^0.0.134",
50
- "@rtsee/signaling-client": "^0.0.148",
51
- "@rtsee/utilities-ui": "^0.0.66",
43
+ "@rtsee/common": "^0.0.103",
44
+ "@rtsee/conference": "^0.0.104",
45
+ "@rtsee/core": "^0.0.147",
46
+ "@rtsee/events-dashboard": "^0.0.137",
47
+ "@rtsee/factory": "^0.0.146",
48
+ "@rtsee/messenger": "^0.0.137",
49
+ "@rtsee/presentation": "^0.0.136",
50
+ "@rtsee/signaling-client": "^0.0.150",
51
+ "@rtsee/utilities-ui": "^0.0.68",
52
52
  "@stripe/stripe-js": "^8.6.1",
53
53
  "@types/gtag.js": "^0.0.20",
54
54
  "@types/node": "~24.0.14",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "687eb40e9e4692238870b648af584efdd7b9c502"
74
+ "gitHead": "a43a49fe9cc943e70993636ec7fc84bd67d909c0"
75
75
  }