@sitecore-feaas/clientside 0.1.52 → 0.1.53
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/README.md +42 -0
- package/build/ui/FEAASExternal.js +40 -14
- package/build/ui/FEAASExternal.js.map +1 -1
- package/dist/browser/react.cjs +5 -5
- package/dist/browser/react.cjs.map +3 -3
- package/dist/browser/react.esm.js +5 -5
- package/dist/browser/react.esm.js.map +1 -1
- package/dist/node/react.cjs +3 -3
- package/dist/node/react.cjs.map +3 -3
- package/dist/node/react.esm.js +3 -3
- package/dist/node/react.esm.js.map +3 -3
- package/package.json +1 -1
- package/react.cjs +5 -5
- package/react.cjs.map +3 -3
- package/react.js +5 -5
- package/react.js.map +3 -3
- package/src/ui/FEAASExternal.tsx +33 -7
- package/test/FEAASExternal.test.tsx +13 -2
- package/types/tsbuildinfo_ui +1 -1
- package/types/ui/FEAASExternal.d.ts +1 -1
- package/types/ui/FEAASExternal.d.ts.map +1 -1
- package/test/cjs/bundles.ts +0 -52
- package/test/cjs/package.json +0 -1
|
@@ -4,6 +4,7 @@ import ReactDOM from 'react-dom';
|
|
|
4
4
|
import { FEAASBase } from '../components/FEAASBase.js';
|
|
5
5
|
import { ReactJSX, ReactModules } from '../components/FEAASElement.js';
|
|
6
6
|
import { FEAASComponentProps } from './react.js';
|
|
7
|
+
export declare const parseProps: (propName: string, propValue: string, properties: any) => any;
|
|
7
8
|
export declare function FEAASExternalProps(element?: FEAASBase): {};
|
|
8
9
|
export type RegisteredComponents = {
|
|
9
10
|
[id: string]: {
|
|
@@ -25,7 +26,6 @@ export default class FEAASExternal extends FEAASBase<FEAASExternalProps, ReactMo
|
|
|
25
26
|
getProps(): {};
|
|
26
27
|
static registerComponent(component: React.FC, schema?: any, id?: string): void;
|
|
27
28
|
static setRegistrationCallback(): void;
|
|
28
|
-
static loadComponents(): void;
|
|
29
29
|
static Preview(props: Partial<FEAASComponentProps<any>> & {
|
|
30
30
|
src: string;
|
|
31
31
|
}): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FEAASExternal.d.ts","sourceRoot":"","sources":["../../src/ui/FEAASExternal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEtE,OAAO,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"FEAASExternal.d.ts","sourceRoot":"","sources":["../../src/ui/FEAASExternal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEtE,OAAO,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAmB3D,eAAO,MAAM,UAAU,aAAc,MAAM,aAAa,MAAM,cAAc,GAAG,QAiB9E,CAAA;AAED,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,SAAgB,MAa3D;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,CAAC,EAAE,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE,CAAA;CAAE,CAAA;AAClG,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnG,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,YAAY,CAAC;IACpF,MAAM,CAAC,UAAU,EAAE,oBAAoB,CAAK;IAC5C,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,OAAO,CAAA;IAC3C,IAAI;;;;IAIJ,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,KAAK,EAAE,EAAE,YAAY,GAAG,QAAQ;IAOpE,QAAQ;IAIR,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,GAAE,GAAQ,EAAE,EAAE,CAAC,EAAE,MAAM;IAI3E,MAAM,CAAC,uBAAuB;IAkC9B,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;CAK1E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,gBAAgB,EAAE;gBAChB,kBAAkB,EAAE,MAAM,CAAA;gBAC1B,QAAQ,CAAC,EAAE,GAAG,CAAA;gBACd,uBAAuB,CAAC,EAAE;oBAAE,MAAM,EAAE,MAAM,CAAA;iBAAE,CAAA;gBAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;aACnB,CAAA;SACF;KACF;CACF;AAKD,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,CAAA"}
|
package/test/cjs/bundles.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
2
|
-
const path = require('path')
|
|
3
|
-
|
|
4
|
-
describe('CJS import', () => {
|
|
5
|
-
if (!fs.existsSync(path.resolve(__dirname, '../../dist/node/index.cjs'))) {
|
|
6
|
-
it('should be ok', () => expect(1).toBe(1))
|
|
7
|
-
return
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
describe('/react', () => {
|
|
11
|
-
const FEAAS = require('../../dist/node/react.cjs')
|
|
12
|
-
it('should load CJS', () => {
|
|
13
|
-
expect(typeof FEAAS.fetchComponent).toBe('function')
|
|
14
|
-
expect(typeof FEAAS.Component).toBe('function')
|
|
15
|
-
})
|
|
16
|
-
})
|
|
17
|
-
describe('/headless', () => {
|
|
18
|
-
const FEAAS = require('../../dist/node/headless.cjs')
|
|
19
|
-
it('should load CJS', () => {
|
|
20
|
-
expect(typeof FEAAS.fetchComponent).toBe('function')
|
|
21
|
-
expect(typeof FEAAS.Component).toBe('function')
|
|
22
|
-
})
|
|
23
|
-
})
|
|
24
|
-
describe('/', () => {
|
|
25
|
-
const FEAAS = require('../../dist/node/index.cjs')
|
|
26
|
-
it('should load CJS', () => {
|
|
27
|
-
expect(typeof FEAAS.fetchComponent).toBe('function')
|
|
28
|
-
expect(typeof FEAAS.Component).toBe('function')
|
|
29
|
-
})
|
|
30
|
-
})
|
|
31
|
-
describe('/react', () => {
|
|
32
|
-
const FEAAS = require('../../dist/node/react.cjs')
|
|
33
|
-
it('should load CJS', () => {
|
|
34
|
-
expect(typeof FEAAS.fetchComponent).toBe('function')
|
|
35
|
-
expect(typeof FEAAS.Component).toBe('function')
|
|
36
|
-
})
|
|
37
|
-
})
|
|
38
|
-
describe('/headless', () => {
|
|
39
|
-
const FEAAS = require('../../dist/node/headless.cjs')
|
|
40
|
-
it('should load CJS', () => {
|
|
41
|
-
expect(typeof FEAAS.fetchComponent).toBe('function')
|
|
42
|
-
expect(typeof FEAAS.Component).toBe('function')
|
|
43
|
-
})
|
|
44
|
-
})
|
|
45
|
-
describe('/', () => {
|
|
46
|
-
const FEAAS = require('../../dist/node/index.cjs')
|
|
47
|
-
it('should load CJS', () => {
|
|
48
|
-
expect(typeof FEAAS.fetchComponent).toBe('function')
|
|
49
|
-
expect(typeof FEAAS.Component).toBe('function')
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
})
|
package/test/cjs/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|