create-sitecore-jss 22.2.0-canary.32 → 22.2.0-canary.34

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,15 @@
1
+ import { Component, OnInit } from '@angular/core';
2
+ import { SxaComponent } from '../sxa.component';
3
+
4
+ @Component({
5
+ selector: 'app-partial-design-dynamic-placeholder',
6
+ templateUrl: './partial-design-dynamic-placeholder.component.html',
7
+ })
8
+ export class PartialDesignDynamicPlaceholderComponent extends SxaComponent implements OnInit {
9
+ sig: string;
10
+ ngOnInit() {
11
+ super.ngOnInit();
12
+
13
+ this.sig = this.rendering.params?.sig || '';
14
+ }
15
+ }
@@ -0,0 +1,23 @@
1
+ <div class="component promo {{ styles }}" [attr.id]="id">
2
+ <div class="component-content">
3
+ <ng-container *ngIf="rendering.fields; else empty">
4
+ <div class="field-promoicon">
5
+ <img *scImage="rendering.fields.PromoIcon" />
6
+ </div>
7
+ <div class="promo-text">
8
+ <div>
9
+ <div class="field-promotext">
10
+ <div *scRichText="rendering.fields.PromoText"></div>
11
+ </div>
12
+ </div>
13
+ <div class="field-promolink">
14
+ <a *scLink="rendering.fields.PromoLink"></a>
15
+ </div>
16
+ </div>
17
+ </ng-container>
18
+ </div>
19
+ </div>
20
+
21
+ <ng-template #empty>
22
+ <span className="is-empty-hint">Promo</span>
23
+ </ng-template>
@@ -0,0 +1,8 @@
1
+ import { Component } from '@angular/core';
2
+ import { SxaComponent } from '../sxa.component';
3
+
4
+ @Component({
5
+ selector: 'app-promo',
6
+ templateUrl: './promo.component.html',
7
+ })
8
+ export class PromoComponent extends SxaComponent {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sitecore-jss",
3
- "version": "22.2.0-canary.32",
3
+ "version": "22.2.0-canary.34",
4
4
  "description": "Sitecore JSS initializer",
5
5
  "bin": "./dist/index.js",
6
6
  "scripts": {
@@ -63,5 +63,5 @@
63
63
  "ts-node": "^10.9.1",
64
64
  "typescript": "~4.9.5"
65
65
  },
66
- "gitHead": "65b3004479c501d656c8704597d9710c29190c5e"
66
+ "gitHead": "dca02e224cc8d58c205e533f808b4cda61367617"
67
67
  }