@sitecore-feaas/clientside 0.1.40 → 0.1.42

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/src/cdn.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  export const DEFAULT_CDN_URL = `https://feaas.blob.core.windows.net`
10
10
  export type FEAASCDNComponentParams = {
11
11
  cdn?: string
12
- revision?: 'staging' | 'published' | 'saved' | number
12
+ revision?: 'staged' | 'published' | 'saved' | number
13
13
  library: string
14
14
  component: string
15
15
  version: string
@@ -29,7 +29,7 @@ export type FEAASCDNComponentProps = (FEAASCDNComponentParams | FEAASCDNComponen
29
29
  export interface FEAASCDNStylesheetParams {
30
30
  cdn?: string
31
31
  library: string
32
- revision?: 'staging' | 'published' | 'saved' | number
32
+ revision?: 'staged' | 'published' | 'saved' | number
33
33
 
34
34
  /** @deprecated Use `cdn` instead */
35
35
  hostname?: string
@@ -1,4 +1,4 @@
1
- import type * as FEAASContextImports from '@sitecore-feaas/frontend/types/components/providers/ContextProvider.js'
1
+ import type * as FEAASContextImports from '@sitecore-feaas/frontend/context'
2
2
  import type { AuthModel } from '@sitecore-feaas/sdk'
3
3
  import { FEAASBase, OptionalExcept } from '../components/FEAASBase.js'
4
4
 
@@ -1,4 +1,4 @@
1
- import type * as FEAASEditorImports from '@sitecore-feaas/frontend/types/entries/editor.js'
1
+ import type * as FEAASEditorImports from '@sitecore-feaas/frontend/editor'
2
2
  import { FEAASBase, OptionalExcept } from '../components/FEAASBase.js'
3
3
  import { FEAASLoader } from '../components/FEAASLoader.js'
4
4
 
@@ -1,4 +1,4 @@
1
- import type * as FEAASPickerImports from '@sitecore-feaas/frontend/types/entries/picker.js'
1
+ import type * as FEAASPickerImports from '@sitecore-feaas/frontend/picker'
2
2
  import { FEAASBase } from '../components/FEAASBase.js'
3
3
 
4
4
  export function FEAASPickerProps(element: FEAASBase<any, any> = this) {
@@ -2,8 +2,10 @@ const fs = require('fs')
2
2
  const path = require('path')
3
3
 
4
4
  describe('CJS import', () => {
5
- if (!fs.existsSync(path.resolve(__dirname, '../../dist/node/index.cjs'))) return
6
- it('should be ok', () => expect(1).toBe(1))
5
+ if (!fs.existsSync(path.resolve(__dirname, '../../dist/node/index.cjs'))) {
6
+ it('should be ok', () => expect(1).toBe(1))
7
+ return
8
+ }
7
9
 
8
10
  describe('/react', () => {
9
11
  const FEAAS = require('../../dist/node/react.cjs')
package/types/cdn.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ValidatableRequestPhase } from './fetch.js';
2
2
  export declare const DEFAULT_CDN_URL = "https://feaas.blob.core.windows.net";
3
3
  export type FEAASCDNComponentParams = {
4
4
  cdn?: string;
5
- revision?: 'staging' | 'published' | 'saved' | number;
5
+ revision?: 'staged' | 'published' | 'saved' | number;
6
6
  library: string;
7
7
  component: string;
8
8
  version: string;
@@ -19,7 +19,7 @@ export type FEAASCDNComponentProps = (FEAASCDNComponentParams | FEAASCDNComponen
19
19
  export interface FEAASCDNStylesheetParams {
20
20
  cdn?: string;
21
21
  library: string;
22
- revision?: 'staging' | 'published' | 'saved' | number;
22
+ revision?: 'staged' | 'published' | 'saved' | number;
23
23
  /** @deprecated Use `cdn` instead */
24
24
  hostname?: string;
25
25
  }
@@ -39,7 +39,7 @@ export declare function fetchComponent(props: FEAASCDNComponentProps | string):
39
39
  template: string;
40
40
  lastModified: string;
41
41
  cdn?: string;
42
- revision?: number | "staging" | "published" | "saved";
42
+ revision?: number | "staged" | "published" | "saved";
43
43
  library: string;
44
44
  component: string;
45
45
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,uBAAuB,EACxB,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,eAAe,wCAAwC,CAAA;AACpE,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,S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AO,GAAG,MAAM,CAAA;IAEpD,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,MAAM,CAAA;AAElG,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAQ5E;AACD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,UAahE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,UAIlE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,wBAAwB,CAc9E;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,UAYrE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,UAY9D;AAED,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EACjC,cAAc,UAAQ,0HA+CvB;AAED,mCAAmC;AACnC,wBAAsB,cAAc,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM;;;;;;;;IAxJzE,oCAAoC;;;;;;;;GAmKrC;AAED,MAAM,MAAM,6BAA6B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAA;AACjG,wBAAsB,4BAA4B,CAChD,KAAK,EAAE,uBAAuB,EAC9B,QAAQ,EAAE,6BAA6B,qBAqBxC"}
@@ -5,7 +5,7 @@ export declare function FEAASComponentsProps(element?: FEAASBase): {
5
5
  library: string;
6
6
  component: string;
7
7
  version: string;
8
- revision: number | "staging" | "published" | "saved";
8
+ revision: number | "staged" | "published" | "saved";
9
9
  hostname: string;
10
10
  template: string;
11
11
  instance: string;
@@ -23,7 +23,7 @@ export declare class FEAASComponent extends FEAASBase<FEAASComponentsProps, stri
23
23
  library: string;
24
24
  component: string;
25
25
  version: string;
26
- revision: number | "staging" | "published" | "saved";
26
+ revision: number | "staged" | "published" | "saved";
27
27
  hostname: string;
28
28
  template: string;
29
29
  instance: string;
@@ -40,7 +40,7 @@ export declare class FEAASComponent extends FEAASBase<FEAASComponentsProps, stri
40
40
  library: string;
41
41
  component: string;
42
42
  version: string;
43
- revision: number | "staging" | "published" | "saved";
43
+ revision: number | "staged" | "published" | "saved";
44
44
  hostname: string;
45
45
  template: string;
46
46
  instance: string;