@forge/react 10.0.0-next.2 → 10.0.0-next.4
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/CHANGELOG.md +109 -0
- package/out/__test__/hostConfig.test.js +0 -2
- package/out/__test__/inline.test.js +1 -1
- package/out/__test__/reconciler.test.js +39 -70
- package/out/__test__/stack.test.js +1 -1
- package/out/__test__/testUtils.d.ts.map +1 -1
- package/out/components.d.ts +19 -37
- package/out/components.d.ts.map +1 -1
- package/out/components.js +6 -36
- package/out/hooks/__test__/useForm.test.d.ts +2 -0
- package/out/hooks/__test__/useForm.test.d.ts.map +1 -0
- package/out/hooks/__test__/useForm.test.js +36 -0
- package/out/hooks/useForm.d.ts +34 -0
- package/out/hooks/useForm.d.ts.map +1 -0
- package/out/hooks/useForm.js +75 -0
- package/out/index.d.ts +2 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -1
- package/out/package-types.d.ts +23 -0
- package/out/package-types.d.ts.map +1 -0
- package/out/package-types.js +5 -0
- package/out/reconciler.d.ts +2 -11
- package/out/reconciler.d.ts.map +1 -1
- package/out/reconciler.js +21 -64
- package/out/types/icons.d.ts +1 -1
- package/out/types/icons.d.ts.map +1 -1
- package/out/uikit2-components.d.ts +54 -0
- package/out/uikit2-components.d.ts.map +1 -0
- package/out/uikit2-components.js +53 -0
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/out/__test__/defaultReconciler.test.d.ts +0 -2
- package/out/__test__/defaultReconciler.test.d.ts.map +0 -1
- package/out/__test__/defaultReconciler.test.js +0 -51
- package/out/__test__/table.test.d.ts +0 -2
- package/out/__test__/table.test.d.ts.map +0 -1
- package/out/__test__/table.test.js +0 -23
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useForm = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const react_hook_form_1 = require("react-hook-form");
|
|
7
|
+
const get_1 = tslib_1.__importDefault(require("lodash/get"));
|
|
8
|
+
function useForm(props = {}) {
|
|
9
|
+
const id = (0, react_1.useId)();
|
|
10
|
+
const getFieldId = (fieldName) => {
|
|
11
|
+
return `form-${id}-${fieldName}`;
|
|
12
|
+
};
|
|
13
|
+
const { register, formState, handleSubmit, setValue, getValues, trigger, clearErrors } = (0, react_hook_form_1.useForm)({
|
|
14
|
+
defaultValues: props.defaultValues,
|
|
15
|
+
mode: 'onBlur',
|
|
16
|
+
reValidateMode: 'onBlur'
|
|
17
|
+
});
|
|
18
|
+
const defaultValues = props === null || props === void 0 ? void 0 : props.defaultValues;
|
|
19
|
+
const forgeFormRegister = (fieldName, options) => {
|
|
20
|
+
const _a = register(fieldName, {
|
|
21
|
+
required: options === null || options === void 0 ? void 0 : options.required,
|
|
22
|
+
disabled: options === null || options === void 0 ? void 0 : options.disabled,
|
|
23
|
+
maxLength: options === null || options === void 0 ? void 0 : options.maxLength,
|
|
24
|
+
minLength: options === null || options === void 0 ? void 0 : options.minLength,
|
|
25
|
+
max: options === null || options === void 0 ? void 0 : options.max,
|
|
26
|
+
min: options === null || options === void 0 ? void 0 : options.min,
|
|
27
|
+
pattern: options === null || options === void 0 ? void 0 : options.pattern,
|
|
28
|
+
validate: options === null || options === void 0 ? void 0 : options.validate
|
|
29
|
+
}), { onChange, ref, required, disabled } = _a, rest = tslib_1.__rest(_a, ["onChange", "ref", "required", "disabled"]);
|
|
30
|
+
const additionalProps = {};
|
|
31
|
+
if (defaultValues) {
|
|
32
|
+
if (typeof (0, get_1.default)(defaultValues, fieldName) === 'boolean') {
|
|
33
|
+
additionalProps.defaultChecked = (0, get_1.default)(defaultValues, fieldName);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
additionalProps.defaultValue = (0, get_1.default)(defaultValues, fieldName);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const isError = !!(0, get_1.default)(formState, `errors["${fieldName}"]`);
|
|
40
|
+
const onChangeOptions = {
|
|
41
|
+
shouldDirty: true
|
|
42
|
+
};
|
|
43
|
+
return Object.assign(Object.assign(Object.assign({}, rest), { onChange: (event) => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.type) === 'checkbox') {
|
|
46
|
+
return Promise.resolve(setValue(fieldName, event.target.checked, onChangeOptions));
|
|
47
|
+
}
|
|
48
|
+
if (['number', 'text', 'textarea', 'radio', 'password'].includes((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.type)) {
|
|
49
|
+
return Promise.resolve(setValue(fieldName, event.target.value, onChangeOptions));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return Promise.resolve(setValue(fieldName, event, onChangeOptions));
|
|
53
|
+
}
|
|
54
|
+
}, isInvalid: isError, 'aria-invalid': isError, id: getFieldId(fieldName), isDisabled: disabled }), additionalProps);
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
getFieldId,
|
|
58
|
+
register: forgeFormRegister,
|
|
59
|
+
formState: {
|
|
60
|
+
errors: formState.errors,
|
|
61
|
+
isSubmitted: formState.isSubmitted,
|
|
62
|
+
isSubmitSuccessful: formState.isSubmitSuccessful,
|
|
63
|
+
isSubmitting: formState.isSubmitting,
|
|
64
|
+
submitCount: formState.submitCount,
|
|
65
|
+
isValid: formState.isValid,
|
|
66
|
+
dirtyFields: formState.dirtyFields,
|
|
67
|
+
touchedFields: formState.touchedFields
|
|
68
|
+
},
|
|
69
|
+
handleSubmit,
|
|
70
|
+
getValues,
|
|
71
|
+
trigger,
|
|
72
|
+
clearErrors
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
exports.useForm = useForm;
|
package/out/index.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export * from './components';
|
|
|
5
5
|
export { useContentProperty } from './hooks/useContentProperty';
|
|
6
6
|
export { useSpaceProperty } from './hooks/useSpaceProperty';
|
|
7
7
|
export { useIssueProperty } from './hooks/useIssueProperty';
|
|
8
|
+
export { useForm } from './hooks/useForm';
|
|
9
|
+
export * from './package-types';
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1D,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1D,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,cAAc,iBAAiB,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useIssueProperty = exports.useSpaceProperty = exports.useContentProperty = exports.default = exports.useConfig = exports.useProductContext = void 0;
|
|
3
|
+
exports.useForm = exports.useIssueProperty = exports.useSpaceProperty = exports.useContentProperty = exports.default = exports.useConfig = exports.useProductContext = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var useProductContext_1 = require("./hooks/useProductContext");
|
|
6
6
|
Object.defineProperty(exports, "useProductContext", { enumerable: true, get: function () { return useProductContext_1.useProductContext; } });
|
|
@@ -15,3 +15,6 @@ var useSpaceProperty_1 = require("./hooks/useSpaceProperty");
|
|
|
15
15
|
Object.defineProperty(exports, "useSpaceProperty", { enumerable: true, get: function () { return useSpaceProperty_1.useSpaceProperty; } });
|
|
16
16
|
var useIssueProperty_1 = require("./hooks/useIssueProperty");
|
|
17
17
|
Object.defineProperty(exports, "useIssueProperty", { enumerable: true, get: function () { return useIssueProperty_1.useIssueProperty; } });
|
|
18
|
+
var useForm_1 = require("./hooks/useForm");
|
|
19
|
+
Object.defineProperty(exports, "useForm", { enumerable: true, get: function () { return useForm_1.useForm; } });
|
|
20
|
+
tslib_1.__exportStar(require("./package-types"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare type Event = {
|
|
2
|
+
bubbles: boolean;
|
|
3
|
+
cancelable: boolean;
|
|
4
|
+
defaultPrevented: boolean;
|
|
5
|
+
eventPhase: number;
|
|
6
|
+
isTrusted: boolean;
|
|
7
|
+
nativeEvent: any;
|
|
8
|
+
target: {
|
|
9
|
+
value?: any;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
tagName?: string;
|
|
14
|
+
type?: string;
|
|
15
|
+
};
|
|
16
|
+
timeStamp: number;
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
import { BoxProps } from '@atlaskit/forge-react-types';
|
|
20
|
+
declare type SupportedSafeCSSObject = NonNullable<BoxProps['xcss']>;
|
|
21
|
+
declare const xcss: <T extends SupportedSafeCSSObject>(style: T) => T;
|
|
22
|
+
export { xcss };
|
|
23
|
+
//# sourceMappingURL=package-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-types.d.ts","sourceRoot":"","sources":["../src/package-types.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,MAAM,EAAE;QACN,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAcvD,aAAK,sBAAsB,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,CAAC,CAAC,SAAS,sBAAsB,EAAE,KAAK,EAAE,CAAC,KAAK,CAAoB,CAAC;AAEjF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/out/reconciler.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface ForgeDoc {
|
|
|
7
7
|
props: ElementProps;
|
|
8
8
|
children: ForgeDoc[];
|
|
9
9
|
key: string;
|
|
10
|
-
|
|
10
|
+
forgeReactMajorVersion?: number;
|
|
11
11
|
}
|
|
12
12
|
export declare type CallBridge = (cmd: string, data: {
|
|
13
13
|
forgeDoc: ForgeDoc;
|
|
@@ -16,17 +16,8 @@ export declare const callBridge: CallBridge;
|
|
|
16
16
|
declare type CreateElement = (args: {
|
|
17
17
|
type: ElementType;
|
|
18
18
|
props: InstanceProps;
|
|
19
|
+
forgeReactMajorVersion?: number;
|
|
19
20
|
}) => ForgeDoc;
|
|
20
|
-
export declare class ReconciliationCounter {
|
|
21
|
-
private count;
|
|
22
|
-
private disabled;
|
|
23
|
-
private static instance;
|
|
24
|
-
private constructor();
|
|
25
|
-
static getInstance(disable?: boolean): ReconciliationCounter;
|
|
26
|
-
increment(): void;
|
|
27
|
-
getCount(): number | undefined;
|
|
28
|
-
getNextCount(): number | undefined;
|
|
29
|
-
}
|
|
30
21
|
export declare const createElement: CreateElement;
|
|
31
22
|
export declare const appendChild: (parent: ForgeDoc, child: ForgeDoc) => void;
|
|
32
23
|
export declare const insertBefore: (parent: ForgeDoc, child: ForgeDoc, beforeChild: ForgeDoc) => void;
|
package/out/reconciler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconciler.d.ts","sourceRoot":"","sources":["../src/reconciler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAmB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI1D,aAAK,WAAW,GAAG,MAAM,CAAC;AAC1B,aAAK,YAAY,GAAG,aAAa,CAAC;AAElC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"reconciler.d.ts","sourceRoot":"","sources":["../src/reconciler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;A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AAQ,CAAC;AAE/B,aAAK,WAAW,GAAG,GAAG,CAAC;AAEvB,aAAK,aAAa,GAAG,GAAG,CAAC;AAEzB,aAAK,QAAQ,GAAG,GAAG,CAAC;AACpB,aAAK,aAAa,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AACnD,aAAK,SAAS,GAAG,CAAC,CAAC,CAAC;AAEpB,eAAO,MAAM,UAAU,EAAE,UAAU,CACjC,cAAc,EACd,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,aAAa,EACb,QAAQ,EACR,aAAa,EACb,SAAS,CA+IV,CAAC;AAIF,eAAO,MAAM,eAAe;sBACR,YAAY;yBAiBT,YAAY;CAiBlC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/out/reconciler.js
CHANGED
|
@@ -1,62 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ForgeReconciler = exports.hostConfig = exports.nonChildPropsAreEqual = exports.insertBefore = exports.appendChild = exports.createElement = exports.
|
|
3
|
+
exports.ForgeReconciler = exports.hostConfig = exports.nonChildPropsAreEqual = exports.insertBefore = exports.appendChild = exports.createElement = exports.callBridge = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_reconciler_1 = tslib_1.__importDefault(require("react-reconciler"));
|
|
6
6
|
const constants_1 = require("react-reconciler/constants");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const idPropsPrefixAppUUID = (0, uuid_1.v4)().slice(0, 5);
|
|
9
|
+
const idPropsPrefix = `forge-app-${idPropsPrefixAppUUID}`;
|
|
10
|
+
const newPropsWithIdPrefix = (props) => {
|
|
11
|
+
const idProps = ['id', 'labelFor', 'inputId'];
|
|
12
|
+
const newProps = idProps.reduce((acc, idProp) => {
|
|
13
|
+
if (props[idProp]) {
|
|
14
|
+
return Object.assign(Object.assign({}, acc), { [idProp]: `${idPropsPrefix}-${props[idProp]}` });
|
|
15
|
+
}
|
|
16
|
+
return acc;
|
|
17
|
+
}, props);
|
|
18
|
+
return newProps;
|
|
19
|
+
};
|
|
8
20
|
const callBridge = function (cmd, data) {
|
|
9
21
|
var _a;
|
|
10
22
|
(_a = self === null || self === void 0 ? void 0 : self.__bridge) === null || _a === void 0 ? void 0 : _a.callBridge(cmd, data);
|
|
11
23
|
};
|
|
12
24
|
exports.callBridge = callBridge;
|
|
13
|
-
|
|
14
|
-
constructor(disable = true) {
|
|
15
|
-
this.count = 0;
|
|
16
|
-
this.disabled = true;
|
|
17
|
-
this.count = 0;
|
|
18
|
-
this.disabled = disable;
|
|
19
|
-
}
|
|
20
|
-
static getInstance(disable) {
|
|
21
|
-
if (!ReconciliationCounter.instance) {
|
|
22
|
-
ReconciliationCounter.instance = new ReconciliationCounter(disable);
|
|
23
|
-
}
|
|
24
|
-
return ReconciliationCounter.instance;
|
|
25
|
-
}
|
|
26
|
-
increment() {
|
|
27
|
-
this.count++;
|
|
28
|
-
}
|
|
29
|
-
getCount() {
|
|
30
|
-
if (this.disabled === true)
|
|
31
|
-
return undefined;
|
|
32
|
-
return this.count;
|
|
33
|
-
}
|
|
34
|
-
getNextCount() {
|
|
35
|
-
if (this.disabled === true)
|
|
36
|
-
return undefined;
|
|
37
|
-
return this.count + 1;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.ReconciliationCounter = ReconciliationCounter;
|
|
41
|
-
const createElement = ({ type, props = {} }) => {
|
|
25
|
+
const createElement = ({ type, props = {}, forgeReactMajorVersion }) => {
|
|
42
26
|
const { children } = props, restProps = tslib_1.__rest(props, ["children"]);
|
|
43
|
-
const
|
|
44
|
-
if (reconciliationCount !== undefined) {
|
|
45
|
-
const element = {
|
|
46
|
-
type,
|
|
47
|
-
children: [],
|
|
48
|
-
props: restProps,
|
|
49
|
-
key: (0, uuid_1.v4)(),
|
|
50
|
-
reconciliationCount
|
|
51
|
-
};
|
|
52
|
-
return element;
|
|
53
|
-
}
|
|
27
|
+
const newProps = newPropsWithIdPrefix(restProps);
|
|
54
28
|
const element = {
|
|
55
29
|
type,
|
|
56
30
|
children: [],
|
|
57
|
-
props:
|
|
31
|
+
props: newProps,
|
|
58
32
|
key: (0, uuid_1.v4)()
|
|
59
33
|
};
|
|
34
|
+
if (forgeReactMajorVersion) {
|
|
35
|
+
element.forgeReactMajorVersion = forgeReactMajorVersion;
|
|
36
|
+
}
|
|
60
37
|
return element;
|
|
61
38
|
};
|
|
62
39
|
exports.createElement = createElement;
|
|
@@ -98,14 +75,6 @@ exports.hostConfig = {
|
|
|
98
75
|
isPrimaryRenderer: false,
|
|
99
76
|
supportsHydration: false,
|
|
100
77
|
resetAfterCommit(containerInfo) {
|
|
101
|
-
if (containerInfo.type !== 'MacroConfig') {
|
|
102
|
-
const counter = ReconciliationCounter.getInstance();
|
|
103
|
-
counter.increment();
|
|
104
|
-
const reconciliationCount = counter.getCount();
|
|
105
|
-
if (reconciliationCount !== undefined) {
|
|
106
|
-
containerInfo.reconciliationCount = reconciliationCount;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
78
|
(0, exports.callBridge)('reconcile', { forgeDoc: containerInfo });
|
|
110
79
|
},
|
|
111
80
|
createInstance(type, instanceProps) {
|
|
@@ -129,13 +98,6 @@ exports.hostConfig = {
|
|
|
129
98
|
return false;
|
|
130
99
|
},
|
|
131
100
|
prepareUpdate(instance, type, oldProps, newProps) {
|
|
132
|
-
if ((0, exports.nonChildPropsAreEqual)(oldProps, newProps)) {
|
|
133
|
-
return null;
|
|
134
|
-
}
|
|
135
|
-
const reconciliationCount = ReconciliationCounter.getInstance().getNextCount();
|
|
136
|
-
if (reconciliationCount !== undefined) {
|
|
137
|
-
instance.reconciliationCount = reconciliationCount;
|
|
138
|
-
}
|
|
139
101
|
instance.props = newProps;
|
|
140
102
|
return newProps;
|
|
141
103
|
},
|
|
@@ -177,10 +139,6 @@ exports.hostConfig = {
|
|
|
177
139
|
},
|
|
178
140
|
resetTextContent() { },
|
|
179
141
|
commitTextUpdate(textInstance, oldText, newText) {
|
|
180
|
-
const reconciliationCount = ReconciliationCounter.getInstance().getNextCount();
|
|
181
|
-
if (reconciliationCount !== undefined) {
|
|
182
|
-
textInstance.reconciliationCount = reconciliationCount;
|
|
183
|
-
}
|
|
184
142
|
textInstance.props.text = newText;
|
|
185
143
|
},
|
|
186
144
|
commitMount() { },
|
|
@@ -207,15 +165,14 @@ exports.hostConfig = {
|
|
|
207
165
|
const reconciler = (0, react_reconciler_1.default)(exports.hostConfig);
|
|
208
166
|
exports.ForgeReconciler = {
|
|
209
167
|
render: (element) => {
|
|
210
|
-
|
|
211
|
-
const rootElement = (0, exports.createElement)({ type: 'Root', props: {} });
|
|
168
|
+
const rootElement = (0, exports.createElement)({ type: 'Root', props: {}, forgeReactMajorVersion: 10 });
|
|
212
169
|
const container = reconciler.createContainer(rootElement, 0, null, false, null, 'root', (err) => {
|
|
213
170
|
console.log(err);
|
|
214
171
|
}, null);
|
|
215
172
|
reconciler.updateContainer(element, container, null, null);
|
|
216
173
|
},
|
|
217
174
|
addConfig: (element) => {
|
|
218
|
-
const macroConfigElement = (0, exports.createElement)({ type: 'MacroConfig', props: {} });
|
|
175
|
+
const macroConfigElement = (0, exports.createElement)({ type: 'MacroConfig', props: {}, forgeReactMajorVersion: 10 });
|
|
219
176
|
const container = reconciler.createContainer(macroConfigElement, 0, null, false, null, 'macroConfig', (err) => {
|
|
220
177
|
console.log(err);
|
|
221
178
|
}, null);
|
package/out/types/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare type Icon = 'activity' | 'add' | 'add-circle' | 'add-item' | 'addon' | 'app-access' | 'app-switcher' | 'arrow-down' | 'arrow-down-circle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-up' | 'arrow-up-circle' | 'attachment' | 'audio' | 'audio-circle' | 'backlog' | 'billing' | 'billing-filled' | 'bitbucket-branches' | 'bitbucket-builds' | 'bitbucket-clone' | 'bitbucket-commits' | 'bitbucket-compare' | 'bitbucket-forks' | 'bitbucket-output' | 'bitbucket-pipelines' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'board' | 'book' | 'bullet-list' | 'calendar' | 'calendar-filled' | 'camera' | 'camera-filled' | 'camera-rotate' | 'camera-take-picture' | 'canvas' | 'check' | 'check-circle' | 'check-circle-outline' | 'checkbox' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-down-circle' | 'chevron-left' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up' | 'chevron-up-circle' | 'child-issues' | 'code' | 'comment' | 'component' | 'copy' | 'creditcard' | 'creditcard-filled' | 'cross' | 'cross-circle' | 'dashboard' | 'decision' | 'department' | 'detail-view' | 'discover' | 'discover-filled' | 'document' | 'document-filled' | 'documents' | 'download' | 'drag-handler' | 'dropbox' | 'edit' | 'edit-filled' | 'editor-add' | 'editor-addon' | 'editor-advanced' | 'editor-align-center' | 'editor-align-image-center' | 'editor-align-image-left' | 'editor-align-image-right' | 'editor-align-left' | 'editor-align-right' | 'editor-attachment' | 'editor-background-color' | 'editor-bold' | 'editor-bullet-list' | 'editor-close' | 'editor-code' | 'editor-collapse' | 'editor-date' | 'editor-decision' | 'editor-divider' | 'editor-done' | 'editor-edit' | 'editor-emoji' | 'editor-error' | 'editor-expand' | 'editor-feedback' | 'editor-file' | 'editor-help' | 'editor-hint' | 'editor-horizontal-rule' | 'editor-image' | 'editor-image-border' | 'editor-image-resize' | 'editor-indent' | 'editor-info' | 'editor-italic' | 'editor-layout-three-equal' | 'editor-layout-three-with-sidebars' | 'editor-layout-two-equal' | 'editor-layout-two-left-sidebar' | 'editor-layout-two-right-sidebar' | 'editor-link' | 'editor-media-center' | 'editor-media-full-width' | 'editor-media-wide' | 'editor-media-wrap-left' | 'editor-media-wrap-right' | 'editor-mention' | 'editor-more' | 'editor-note' | 'editor-number-list' | 'editor-open' | 'editor-outdent' | 'editor-panel' | 'editor-photo' | 'editor-quote' | 'editor-recent' | 'editor-redo' | 'editor-remove' | 'editor-search' | 'editor-settings' | 'editor-strikethrough' | 'editor-success' | 'editor-table' | 'editor-table-display-options' | 'editor-task' | 'editor-text-color' | 'editor-text-style' | 'editor-underline' | 'editor-undo' | 'editor-unlink' | 'editor-warning' | 'email' | 'emoji' | 'emoji-add' | 'emoji-activity' | 'emoji-atlassian' | 'emoji-custom' | 'emoji-emoji' | 'emoji-flags' | 'emoji-food' | 'emoji-frequent' | 'emoji-keyboard' | 'emoji-nature' | 'emoji-objects' | 'emoji-people' | 'emoji-productivity' | 'emoji-symbols' | 'emoji-travel' | 'error' | 'export' | 'feedback' | 'file' | 'filter' | 'flag-filled' | 'folder' | 'folder-filled' | 'followers' | 'following' | 'googledrive' | 'graph-bar' | 'graph-line' | 'gsuite' | 'highlights' | 'hipchat-audio-only' | 'hipchat-chevron-double-down' | 'hipchat-chevron-double-up' | 'hipchat-chevron-down' | 'hipchat-chevron-up' | 'hipchat-dial-out' | 'hipchat-lobby' | 'hipchat-media-attachment-count' | 'hipchat-outgoing-sound' | 'hipchat-sd-video' | 'home' | 'home-circle' | 'image' | 'image-border' | 'image-resize' | 'info' | 'invite-team' | 'issue' | 'issue-raise' | 'issues' | 'jira-capture' | 'jira-failed-build-status' | 'jira-labs' | 'jira-test-session' | 'label' | 'lightbulb' | 'lightbulb-filled' | 'like' | 'link' | 'link-filled' | 'list' | 'location' | 'lock' | 'lock-circle' | 'lock-filled' | 'marketplace' | 'media-services-actual-size' | 'media-services-add-comment' | 'media-services-annotate' | 'media-services-arrow' | 'media-services-audio' | 'media-services-blur' | 'media-services-brush' | 'media-services-button-option' | 'media-services-code' | 'media-services-document' | 'media-services-filter' | 'media-services-fit-to-page' | 'media-services-full-screen' | 'media-services-grid' | 'media-services-image' | 'media-services-line' | 'media-services-line-thickness' | 'media-services-no-image' | 'media-services-open-mediaviewer' | 'media-services-oval' | 'media-services-pdf' | 'media-services-preselected' | 'media-services-presentation' | 'media-services-rectangle' | 'media-services-scale-large' | 'media-services-scale-small' | 'media-services-spreadsheet' | 'media-services-text' | 'media-services-unknown' | 'media-services-video' | 'media-services-zip' | 'media-services-zoom-in' | 'media-services-zoom-out' | 'mention' | 'menu' | 'menu-expand' | 'mobile' | 'more' | 'more-vertical' | 'notification' | 'notification-all' | 'notification-direct' | 'office-building' | 'office-building-filled' | 'open' | 'overview' | 'page' | 'page-filled' | 'pdf' | 'people' | 'people-group' | 'person' | 'person-circle' | 'person-with-circle' | 'person-with-cross' | 'person-with-tick' | 'portfolio' | 'preferences' | 'premium' | 'presence-active' | 'presence-busy' | 'presence-unavailable' | 'question' | 'question-circle' | 'questions' | 'queues' | 'quote' | 'radio' | 'recent' | 'redo' | 'refresh' | 'retry' | 'roadmap' | 'room-menu' | 'schedule' | 'schedule-filled' | 'screen' | 'search' | 'select-clear' | 'send' | 'settings' | 'share' | 'ship' | 'shortcut' | 'sign-in' | 'sign-out' | 'sprint' | 'star' | 'star-filled' | 'star-large' | 'status' | 'stopwatch' | 'subtask' | 'suitcase' | 'switcher' | 'table' | 'task' | 'trash' | 'tray' | 'undo' | 'unlink' | 'unlock' | 'unlock-circle' | 'unlock-filled' | 'upload' | 'user-avatar-circle' | 'vid-audio-muted' | 'vid-audio-on' | 'vid-backward' | 'vid-camera-off' | 'vid-camera-on' | 'vid-connection-circle' | 'vid-forward' | 'vid-full-screen-off' | 'vid-full-screen-on' | 'vid-hang-up' | 'vid-hd-circle' | 'vid-pause' | 'vid-play' | 'vid-raised-hand' | 'vid-share-screen' | 'vid-speaking-circle' | 'vid-volume-full' | 'vid-volume-half' | 'vid-volume-muted' | 'video-circle' | 'video-filled' | 'warning' | 'watch' | 'watch-filled' | 'world' | 'world-small';
|
|
1
|
+
export declare type Icon = 'activity' | 'add' | 'add-circle' | 'add-item' | 'addon' | 'app-access' | 'app-switcher' | 'archive' | 'arrow-down' | 'arrow-down-circle' | 'arrow-left' | 'arrow-left-circle' | 'arrow-right' | 'arrow-right-circle' | 'arrow-up' | 'arrow-up-circle' | 'attachment' | 'audio' | 'audio-circle' | 'backlog' | 'billing' | 'billing-filled' | 'bitbucket-branches' | 'bitbucket-builds' | 'bitbucket-clone' | 'bitbucket-commits' | 'bitbucket-compare' | 'bitbucket-forks' | 'bitbucket-output' | 'bitbucket-pipelines' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'board' | 'book' | 'bullet-list' | 'calendar' | 'calendar-filled' | 'camera' | 'camera-filled' | 'camera-rotate' | 'camera-take-picture' | 'canvas' | 'check' | 'check-circle' | 'check-circle-outline' | 'checkbox' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-down-circle' | 'chevron-left' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up' | 'chevron-up-circle' | 'child-issues' | 'code' | 'comment' | 'component' | 'copy' | 'creditcard' | 'creditcard-filled' | 'cross' | 'cross-circle' | 'dashboard' | 'decision' | 'department' | 'detail-view' | 'discover' | 'discover-filled' | 'document' | 'document-filled' | 'documents' | 'download' | 'drag-handler' | 'dropbox' | 'edit' | 'edit-filled' | 'editor-add' | 'editor-addon' | 'editor-advanced' | 'editor-align-center' | 'editor-align-image-center' | 'editor-align-image-left' | 'editor-align-image-right' | 'editor-align-left' | 'editor-align-right' | 'editor-attachment' | 'editor-background-color' | 'editor-bold' | 'editor-bullet-list' | 'editor-close' | 'editor-code' | 'editor-collapse' | 'editor-date' | 'editor-decision' | 'editor-divider' | 'editor-done' | 'editor-edit' | 'editor-emoji' | 'editor-error' | 'editor-expand' | 'editor-feedback' | 'editor-file' | 'editor-file-preview' | 'editor-help' | 'editor-hint' | 'editor-horizontal-rule' | 'editor-image' | 'editor-image-border' | 'editor-image-resize' | 'editor-indent' | 'editor-info' | 'editor-italic' | 'editor-layout-single' | 'editor-layout-three-equal' | 'editor-layout-three-with-sidebars' | 'editor-layout-two-equal' | 'editor-layout-two-left-sidebar' | 'editor-layout-two-right-sidebar' | 'editor-link' | 'editor-media-center' | 'editor-media-full-width' | 'editor-media-wide' | 'editor-media-wrap-left' | 'editor-media-wrap-right' | 'editor-mention' | 'editor-more' | 'editor-note' | 'editor-number-list' | 'editor-open' | 'editor-outdent' | 'editor-panel' | 'editor-photo' | 'editor-quote' | 'editor-recent' | 'editor-redo' | 'editor-remove' | 'editor-remove-emoji' | 'editor-search' | 'editor-settings' | 'editor-strikethrough' | 'editor-success' | 'editor-table' | 'editor-table-display-options' | 'editor-task' | 'editor-text-color' | 'editor-text-style' | 'editor-underline' | 'editor-undo' | 'editor-unlink' | 'editor-warning' | 'email' | 'emoji' | 'emoji-add' | 'emoji-activity' | 'emoji-atlassian' | 'emoji-custom' | 'emoji-emoji' | 'emoji-flags' | 'emoji-food' | 'emoji-frequent' | 'emoji-keyboard' | 'emoji-nature' | 'emoji-objects' | 'emoji-people' | 'emoji-productivity' | 'emoji-symbols' | 'emoji-travel' | 'error' | 'export' | 'feedback' | 'file' | 'filter' | 'flag-filled' | 'folder' | 'folder-filled' | 'followers' | 'following' | 'googledrive' | 'graph-bar' | 'graph-line' | 'gsuite' | 'highlights' | 'hipchat-audio-only' | 'hipchat-chevron-double-down' | 'hipchat-chevron-double-up' | 'hipchat-chevron-down' | 'hipchat-chevron-up' | 'hipchat-dial-out' | 'hipchat-lobby' | 'hipchat-media-attachment-count' | 'hipchat-outgoing-sound' | 'hipchat-sd-video' | 'home' | 'home-circle' | 'image' | 'image-border' | 'image-resize' | 'info' | 'invite-team' | 'issue' | 'issue-raise' | 'issues' | 'jira-capture' | 'jira-failed-build-status' | 'jira-labs' | 'jira-test-session' | 'label' | 'lightbulb' | 'lightbulb-filled' | 'like' | 'link' | 'link-filled' | 'list' | 'location' | 'lock' | 'lock-circle' | 'lock-filled' | 'marketplace' | 'media-services-actual-size' | 'media-services-add-comment' | 'media-services-annotate' | 'media-services-arrow' | 'media-services-audio' | 'media-services-blur' | 'media-services-brush' | 'media-services-button-option' | 'media-services-code' | 'media-services-document' | 'media-services-filter' | 'media-services-fit-to-page' | 'media-services-full-screen' | 'media-services-grid' | 'media-services-image' | 'media-services-line' | 'media-services-line-thickness' | 'media-services-no-image' | 'media-services-open-mediaviewer' | 'media-services-oval' | 'media-services-pdf' | 'media-services-preselected' | 'media-services-presentation' | 'media-services-rectangle' | 'media-services-scale-large' | 'media-services-scale-small' | 'media-services-spreadsheet' | 'media-services-text' | 'media-services-unknown' | 'media-services-video' | 'media-services-zip' | 'media-services-zoom-in' | 'media-services-zoom-out' | 'mention' | 'menu' | 'menu-expand' | 'mobile' | 'more' | 'more-vertical' | 'notification' | 'notification-all' | 'notification-direct' | 'office-building' | 'office-building-filled' | 'open' | 'overview' | 'page' | 'page-filled' | 'pdf' | 'people' | 'people-group' | 'person' | 'person-circle' | 'person-with-circle' | 'person-with-cross' | 'person-with-tick' | 'portfolio' | 'preferences' | 'premium' | 'presence-active' | 'presence-busy' | 'presence-unavailable' | 'question' | 'question-circle' | 'questions' | 'queues' | 'quote' | 'radio' | 'recent' | 'redo' | 'refresh' | 'retry' | 'roadmap' | 'room-menu' | 'schedule' | 'schedule-filled' | 'screen' | 'search' | 'select-clear' | 'send' | 'settings' | 'share' | 'ship' | 'shortcut' | 'sign-in' | 'sign-out' | 'sprint' | 'star' | 'star-filled' | 'star-large' | 'status' | 'stopwatch' | 'subtask' | 'suitcase' | 'switcher' | 'table' | 'task' | 'trash' | 'tray' | 'undo' | 'unlink' | 'unlock' | 'unlock-circle' | 'unlock-filled' | 'upload' | 'user-avatar-circle' | 'vid-audio-muted' | 'vid-audio-on' | 'vid-backward' | 'vid-camera-off' | 'vid-camera-on' | 'vid-connection-circle' | 'vid-forward' | 'vid-full-screen-off' | 'vid-full-screen-on' | 'vid-hang-up' | 'vid-hd-circle' | 'vid-pause' | 'vid-play' | 'vid-raised-hand' | 'vid-share-screen' | 'vid-speaking-circle' | 'vid-volume-full' | 'vid-volume-half' | 'vid-volume-muted' | 'video-circle' | 'video-filled' | 'warning' | 'watch' | 'watch-filled' | 'world' | 'world-small';
|
|
2
2
|
//# sourceMappingURL=icons.d.ts.map
|
package/out/types/icons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/types/icons.ts"],"names":[],"mappings":"AACA,oBAAY,IAAI,GACZ,UAAU,GACV,KAAK,GACL,YAAY,GACZ,UAAU,GACV,OAAO,GACP,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,mBAAmB,GACnB,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,oBAAoB,GACpB,UAAU,GACV,iBAAiB,GACjB,YAAY,GACZ,OAAO,GACP,cAAc,GACd,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,wBAAwB,GACxB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,OAAO,GACP,MAAM,GACN,aAAa,GACb,UAAU,GACV,iBAAiB,GACjB,QAAQ,GACR,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,sBAAsB,GACtB,UAAU,GACV,wBAAwB,GACxB,cAAc,GACd,qBAAqB,GACrB,cAAc,GACd,qBAAqB,GACrB,oBAAoB,GACpB,eAAe,GACf,sBAAsB,GACtB,qBAAqB,GACrB,YAAY,GACZ,mBAAmB,GACnB,cAAc,GACd,MAAM,GACN,SAAS,GACT,WAAW,GACX,MAAM,GACN,YAAY,GACZ,mBAAmB,GACnB,OAAO,GACP,cAAc,GACd,WAAW,GACX,UAAU,GACV,YAAY,GACZ,aAAa,GACb,UAAU,G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ACN,UAAU,GACV,MAAM,GACN,aAAa,GACb,KAAK,GACL,QAAQ,GACR,cAAc,GACd,QAAQ,GACR,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,aAAa,GACb,SAAS,GACT,iBAAiB,GACjB,eAAe,GACf,sBAAsB,GACtB,UAAU,GACV,iBAAiB,GACjB,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,UAAU,GACV,SAAS,GACT,UAAU,GACV,QAAQ,GACR,MAAM,GACN,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,SAAS,GACT,UAAU,GACV,UAAU,GACV,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,eAAe,GACf,QAAQ,GACR,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,uBAAuB,GACvB,aAAa,GACb,qBAAqB,GACrB,oBAAoB,GACpB,aAAa,GACb,eAAe,GACf,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,cAAc,GACd,cAAc,GACd,SAAS,GACT,OAAO,GACP,cAAc,GACd,OAAO,GACP,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/types/icons.ts"],"names":[],"mappings":"AACA,oBAAY,IAAI,GACZ,UAAU,GACV,KAAK,GACL,YAAY,GACZ,UAAU,GACV,OAAO,GACP,YAAY,GACZ,cAAc,GACd,SAAS,GACT,YAAY,GAC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,GACR,cAAc,GACd,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,UAAU,GACV,SAAS,GACT,UAAU,GACV,QAAQ,GACR,MAAM,GACN,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,SAAS,GACT,UAAU,GACV,UAAU,GACV,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,eAAe,GACf,QAAQ,GACR,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,uBAAuB,GACvB,aAAa,GACb,qBAAqB,GACrB,oBAAoB,GACpB,aAAa,GACb,eAAe,GACf,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,cAAc,GACd,cAAc,GACd,SAAS,GACT,OAAO,GACP,cAAc,GACd,OAAO,GACP,aAAa,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ForgeElement } from './types';
|
|
3
|
+
import type { BadgeProps, BoxProps, ButtonProps, ButtonGroupProps, CheckboxProps, CodeProps, CodeBlockProps, DatePickerProps, DynamicTableProps, ErrorMessageProps, HeadingProps, HelperMessageProps, InlineProps, LabelProps, LozengeProps, LinkButtonProps, ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioProps, RadioGroupProps, RangeProps, SectionMessageProps, SectionMessageActionProps, SpinnerProps, StackProps, TabsProps, TabProps, TabListProps, TabPanelProps, TagProps, TagGroupProps, FormProps, FormHeaderProps, FormFooterProps, FormSectionProps, TooltipProps, TextAreaProps, TextfieldProps, ToggleProps, ValidMessageProps, LoadingButtonProps, SelectProps, IconProps } from '@atlaskit/forge-react-types';
|
|
4
|
+
export declare const Badge: (props: BadgeProps) => ForgeElement;
|
|
5
|
+
export declare const Box: (props: BoxProps) => ForgeElement;
|
|
6
|
+
export declare const Button: (props: ButtonProps) => ForgeElement;
|
|
7
|
+
export declare const ButtonGroup: (props: ButtonGroupProps) => ForgeElement;
|
|
8
|
+
export declare const Checkbox: (props: CheckboxProps) => ForgeElement;
|
|
9
|
+
export declare const Code: (props: CodeProps) => ForgeElement;
|
|
10
|
+
export declare const CodeBlock: (props: CodeBlockProps) => ForgeElement;
|
|
11
|
+
export declare const DatePicker: (props: DatePickerProps) => ForgeElement;
|
|
12
|
+
export declare const DynamicTable: (props: DynamicTableProps) => ForgeElement;
|
|
13
|
+
export declare const ErrorMessage: (props: ErrorMessageProps) => ForgeElement;
|
|
14
|
+
export declare const Form: (props: FormProps) => ForgeElement;
|
|
15
|
+
export declare const FormFooter: (props: FormFooterProps) => ForgeElement;
|
|
16
|
+
export declare const FormHeader: (props: FormHeaderProps) => ForgeElement;
|
|
17
|
+
export declare const FormSection: (props: FormSectionProps) => ForgeElement;
|
|
18
|
+
export declare const Heading: (props: HeadingProps) => ForgeElement;
|
|
19
|
+
export declare const HelperMessage: (props: HelperMessageProps) => ForgeElement;
|
|
20
|
+
export declare const Icon: (props: IconProps) => ForgeElement;
|
|
21
|
+
export declare const Inline: (props: InlineProps) => ForgeElement;
|
|
22
|
+
export declare const Label: (props: LabelProps) => ForgeElement;
|
|
23
|
+
export declare const LinkButton: (props: LinkButtonProps) => ForgeElement;
|
|
24
|
+
export declare const LoadingButton: (props: LoadingButtonProps) => ForgeElement;
|
|
25
|
+
export declare const Lozenge: (props: LozengeProps) => ForgeElement;
|
|
26
|
+
export declare const Modal: (props: ModalProps) => ForgeElement;
|
|
27
|
+
export declare const ModalBody: (props: ModalBodyProps) => ForgeElement;
|
|
28
|
+
export declare const ModalFooter: (props: ModalFooterProps) => ForgeElement;
|
|
29
|
+
export declare const ModalHeader: (props: ModalHeaderProps) => ForgeElement;
|
|
30
|
+
export declare const ModalTitle: (props: ModalTitleProps) => ForgeElement;
|
|
31
|
+
export declare const ModalTransition: (props: ModalTransitionProps) => ForgeElement;
|
|
32
|
+
export declare const ProgressBar: (props: ProgressBarProps) => ForgeElement;
|
|
33
|
+
export declare const ProgressTracker: (props: ProgressTrackerProps) => ForgeElement;
|
|
34
|
+
export declare const Radio: (props: RadioProps) => ForgeElement;
|
|
35
|
+
export declare const RadioGroup: (props: RadioGroupProps) => ForgeElement;
|
|
36
|
+
export declare const Range: (props: RangeProps) => ForgeElement;
|
|
37
|
+
export declare const Select: (props: SelectProps) => ForgeElement;
|
|
38
|
+
export declare const SectionMessage: (props: SectionMessageProps) => ForgeElement;
|
|
39
|
+
export declare const SectionMessageAction: (props: SectionMessageActionProps) => ForgeElement;
|
|
40
|
+
export declare const Spinner: (props: SpinnerProps) => ForgeElement;
|
|
41
|
+
export declare const Stack: (props: StackProps) => ForgeElement;
|
|
42
|
+
export declare const Tab: (props: TabProps) => ForgeElement;
|
|
43
|
+
export declare const TabList: (props: TabListProps) => ForgeElement;
|
|
44
|
+
export declare const TabPanel: (props: TabPanelProps) => ForgeElement;
|
|
45
|
+
export declare const Tabs: (props: TabsProps) => ForgeElement;
|
|
46
|
+
export declare const Tag: (props: TagProps) => ForgeElement;
|
|
47
|
+
export declare const TagGroup: (props: TagGroupProps) => ForgeElement;
|
|
48
|
+
export declare const TextArea: (props: TextAreaProps) => ForgeElement;
|
|
49
|
+
export declare const Textfield: (props: TextfieldProps) => ForgeElement;
|
|
50
|
+
export declare const Toggle: (props: ToggleProps) => ForgeElement;
|
|
51
|
+
export declare const Tooltip: (props: TooltipProps) => ForgeElement;
|
|
52
|
+
export declare const ValidMessage: (props: ValidMessageProps) => ForgeElement;
|
|
53
|
+
export declare const RequiredAsterisk: () => JSX.Element;
|
|
54
|
+
//# sourceMappingURL=uikit2-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uikit2-components.d.ts","sourceRoot":"","sources":["../src/u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CAAC;AAC/E,eAAO,MAAM,UAAU,UAAsC,eAAe,KAAK,YAAY,CAAC;AAC9F,eAAO,MAAM,KAAK,UAAiC,UAAU,KAAK,YAAY,CAAC;AAC/E,eAAO,MAAM,MAAM,UAAkC,WAAW,KAAK,YAAY,CAAC;AAClF,eAAO,MAAM,cAAc,UAA0C,mBAAmB,KAAK,YAAY,CAAC;AAC1G,eAAO,MAAM,oBAAoB,UACxB,yBAAyB,KAC7B,YAAY,CAAC;AAClB,eAAO,MAAM,OAAO,UAAmC,YAAY,KAAK,YAAY,CAAC;AACrF,eAAO,MAAM,KAAK,UAAiC,UAAU,KAAK,YAAY,CAAC;AAC/E,eAAO,MAAM,GAAG,UAA+B,QAAQ,KAAK,YAAY,CAAC;AACzE,eAAO,MAAM,OAAO,UAAmC,YAAY,KAAK,YAAY,CAAC;AACrF,eAAO,MAAM,QAAQ,UAAoC,aAAa,KAAK,YAAY,CAAC;AACxF,eAAO,MAAM,IAAI,UAAgC,SAAS,KAAK,YAAY,CAAC;AAC5E,eAAO,MAAM,GAAG,UAA+B,QAAQ,KAAK,YAAY,CAAC;AACzE,eAAO,MAAM,QAAQ,UAAoC,aAAa,KAAK,YAAY,CAAC;AACxF,eAAO,MAAM,QAAQ,UAAoC,aAAa,KAAK,YAAY,CAAC;AACxF,eAAO,MAAM,SAAS,UAAqC,cAAc,KAAK,YAAY,CAAC;AAC3F,eAAO,MAAM,MAAM,UAAkC,WAAW,KAAK,YAAY,CAAC;AAClF,eAAO,MAAM,OAAO,UAAmC,YAAY,KAAK,YAAY,CAAC;AACrF,eAAO,MAAM,YAAY,UAAwC,iBAAiB,KAAK,YAAY,CAAC;AAEpG,eAAO,MAAM,gBAAgB,QAA0C,WAAW,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequiredAsterisk = exports.ValidMessage = exports.Tooltip = exports.Toggle = exports.Textfield = exports.TextArea = exports.TagGroup = exports.Tag = exports.Tabs = exports.TabPanel = exports.TabList = exports.Tab = exports.Stack = exports.Spinner = exports.SectionMessageAction = exports.SectionMessage = exports.Select = exports.Range = exports.RadioGroup = exports.Radio = exports.ProgressTracker = exports.ProgressBar = exports.ModalTransition = exports.ModalTitle = exports.ModalHeader = exports.ModalFooter = exports.ModalBody = exports.Modal = exports.Lozenge = exports.LoadingButton = exports.LinkButton = exports.Label = exports.Inline = exports.Icon = exports.HelperMessage = exports.Heading = exports.FormSection = exports.FormHeader = exports.FormFooter = exports.Form = exports.ErrorMessage = exports.DynamicTable = exports.DatePicker = exports.CodeBlock = exports.Code = exports.Checkbox = exports.ButtonGroup = exports.Button = exports.Box = exports.Badge = void 0;
|
|
4
|
+
exports.Badge = 'Badge';
|
|
5
|
+
exports.Box = 'Box';
|
|
6
|
+
exports.Button = 'Button';
|
|
7
|
+
exports.ButtonGroup = 'ButtonGroup';
|
|
8
|
+
exports.Checkbox = 'Checkbox';
|
|
9
|
+
exports.Code = 'Code';
|
|
10
|
+
exports.CodeBlock = 'CodeBlock';
|
|
11
|
+
exports.DatePicker = 'DatePicker';
|
|
12
|
+
exports.DynamicTable = 'DynamicTable';
|
|
13
|
+
exports.ErrorMessage = 'ErrorMessage';
|
|
14
|
+
exports.Form = 'Form';
|
|
15
|
+
exports.FormFooter = 'FormFooter';
|
|
16
|
+
exports.FormHeader = 'FormHeader';
|
|
17
|
+
exports.FormSection = 'FormSection';
|
|
18
|
+
exports.Heading = 'Heading';
|
|
19
|
+
exports.HelperMessage = 'HelperMessage';
|
|
20
|
+
exports.Icon = 'Icon';
|
|
21
|
+
exports.Inline = 'Inline';
|
|
22
|
+
exports.Label = 'Label';
|
|
23
|
+
exports.LinkButton = 'LinkButton';
|
|
24
|
+
exports.LoadingButton = 'LoadingButton';
|
|
25
|
+
exports.Lozenge = 'Lozenge';
|
|
26
|
+
exports.Modal = 'Modal';
|
|
27
|
+
exports.ModalBody = 'ModalBody';
|
|
28
|
+
exports.ModalFooter = 'ModalFooter';
|
|
29
|
+
exports.ModalHeader = 'ModalHeader';
|
|
30
|
+
exports.ModalTitle = 'ModalTitle';
|
|
31
|
+
exports.ModalTransition = 'ModalTransition';
|
|
32
|
+
exports.ProgressBar = 'ProgressBar';
|
|
33
|
+
exports.ProgressTracker = 'ProgressTracker';
|
|
34
|
+
exports.Radio = 'Radio';
|
|
35
|
+
exports.RadioGroup = 'RadioGroup';
|
|
36
|
+
exports.Range = 'Range';
|
|
37
|
+
exports.Select = 'Select';
|
|
38
|
+
exports.SectionMessage = 'SectionMessage';
|
|
39
|
+
exports.SectionMessageAction = 'SectionMessageAction';
|
|
40
|
+
exports.Spinner = 'Spinner';
|
|
41
|
+
exports.Stack = 'Stack';
|
|
42
|
+
exports.Tab = 'Tab';
|
|
43
|
+
exports.TabList = 'TabList';
|
|
44
|
+
exports.TabPanel = 'TabPanel';
|
|
45
|
+
exports.Tabs = 'Tabs';
|
|
46
|
+
exports.Tag = 'Tag';
|
|
47
|
+
exports.TagGroup = 'TagGroup';
|
|
48
|
+
exports.TextArea = 'TextArea';
|
|
49
|
+
exports.Textfield = 'Textfield';
|
|
50
|
+
exports.Toggle = 'Toggle';
|
|
51
|
+
exports.Tooltip = 'Tooltip';
|
|
52
|
+
exports.ValidMessage = 'ValidMessage';
|
|
53
|
+
exports.RequiredAsterisk = 'RequiredAsterisk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/react",
|
|
3
|
-
"version": "10.0.0-next.
|
|
3
|
+
"version": "10.0.0-next.4",
|
|
4
4
|
"description": "Forge React reconciler",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"compile": "tsc -p tsconfig.json",
|
|
13
13
|
"pack": "./build/bundle-types.sh"
|
|
14
14
|
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@forge/bridge": "3.3.0-next.0",
|
|
17
|
-
"@forge/ui": "1.10.6-next.1"
|
|
18
|
-
},
|
|
19
15
|
"dependencies": {
|
|
16
|
+
"@forge/bridge": "^3.3.0",
|
|
17
|
+
"@atlaskit/forge-react-types": "^0.5.0",
|
|
20
18
|
"@types/react-reconciler": "^0.28.8",
|
|
19
|
+
"lodash": "^4.17.21",
|
|
21
20
|
"react": "^18.2.0",
|
|
21
|
+
"react-hook-form": "^7.50.1",
|
|
22
22
|
"react-reconciler": "^0.29.0",
|
|
23
23
|
"react-test-renderer": "^18.2.0",
|
|
24
24
|
"uuid": "^9.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"
|
|
27
|
+
"@testing-library/react-hooks": "^8.0.1"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|