@integration-app/react 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/{dist/contexts → contexts}/integration-app-context.d.ts +0 -0
- package/{dist/contexts → contexts}/integration-app-context.js +0 -0
- package/{dist/contexts → contexts}/integration-app-context.js.map +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/index.js.map → index.js.map} +0 -0
- package/{dist/integrations → integrations}/index.d.ts +0 -0
- package/{dist/integrations → integrations}/index.js +0 -0
- package/{dist/integrations → integrations}/index.js.map +0 -0
- package/{dist/node_modules/scheduler → node_modules/@compwright/namecase}/LICENSE +8 -3
- package/node_modules/@compwright/namecase/README.md +49 -0
- package/node_modules/@compwright/namecase/bin/namecase +28 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
- package/node_modules/@compwright/namecase/package.json +46 -0
- package/node_modules/@compwright/namecase/src/index.js +146 -0
- package/node_modules/@integration-app/sdk/accessors.d.ts +56 -0
- package/node_modules/@integration-app/sdk/accessors.js +104 -0
- package/node_modules/@integration-app/sdk/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.d.ts +16 -0
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.js +38 -0
- package/node_modules/@integration-app/sdk/app-data-collections/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-collections/api.d.ts +18 -0
- package/node_modules/@integration-app/sdk/app-data-collections/api.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-collections/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-collections/index.d.ts +26 -0
- package/node_modules/@integration-app/sdk/app-data-collections/index.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-collections/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.d.ts +16 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js +38 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/api.d.ts +18 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/api.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/index.d.ts +21 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/index.js +3 -0
- package/node_modules/@integration-app/sdk/app-data-schemas/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-events/accessors.d.ts +16 -0
- package/node_modules/@integration-app/sdk/app-events/accessors.js +38 -0
- package/node_modules/@integration-app/sdk/app-events/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-events/api.d.ts +18 -0
- package/node_modules/@integration-app/sdk/app-events/api.js +3 -0
- package/node_modules/@integration-app/sdk/app-events/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/app-events/index.d.ts +46 -0
- package/node_modules/@integration-app/sdk/app-events/index.js +3 -0
- package/node_modules/@integration-app/sdk/app-events/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/auth/accessors.d.ts +7 -0
- package/node_modules/@integration-app/sdk/auth/accessors.js +13 -0
- package/node_modules/@integration-app/sdk/auth/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/auth/index.d.ts +6 -0
- package/node_modules/@integration-app/sdk/auth/index.js +3 -0
- package/node_modules/@integration-app/sdk/auth/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/bundle-index.d.ts +1 -0
- package/node_modules/@integration-app/sdk/bundle-index.js +5 -0
- package/node_modules/@integration-app/sdk/bundle-index.js.map +1 -0
- package/node_modules/@integration-app/sdk/bundle.js +30163 -0
- package/node_modules/@integration-app/sdk/bundle.js.map +1 -0
- package/node_modules/@integration-app/sdk/client.d.ts +108 -0
- package/node_modules/@integration-app/sdk/client.js +248 -0
- package/node_modules/@integration-app/sdk/client.js.map +1 -0
- package/node_modules/@integration-app/sdk/connections/accessors.d.ts +13 -0
- package/node_modules/@integration-app/sdk/connections/accessors.js +39 -0
- package/node_modules/@integration-app/sdk/connections/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/connections/api.d.ts +20 -0
- package/node_modules/@integration-app/sdk/connections/api.js +17 -0
- package/node_modules/@integration-app/sdk/connections/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/connections/index.d.ts +39 -0
- package/node_modules/@integration-app/sdk/connections/index.js +13 -0
- package/node_modules/@integration-app/sdk/connections/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/connector-api/index.d.ts +2 -0
- package/node_modules/@integration-app/sdk/connector-api/index.js +9 -0
- package/node_modules/@integration-app/sdk/connector-api/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/context.d.ts +9 -0
- package/node_modules/@integration-app/sdk/data-builder/context.js +32 -0
- package/node_modules/@integration-app/sdk/data-builder/context.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.d.ts +9 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.js +59 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +14 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +45 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.d.ts +18 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js +36 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js +22 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.d.ts +11 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js +31 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.d.ts +11 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js +31 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.d.ts +17 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js +24 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.d.ts +17 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js +24 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js +25 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.d.ts +28 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.js +177 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.d.ts +15 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js +41 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js +25 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/last-name.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.d.ts +20 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js +24 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.d.ts +17 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.js +34 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.d.ts +7 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js +20 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/plain.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.js +23 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/record.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.d.ts +12 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js +22 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/schemaOption.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.d.ts +15 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js +31 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.d.ts +8 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.js +21 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/var.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/index.d.ts +2 -0
- package/node_modules/@integration-app/sdk/data-builder/index.js +17 -0
- package/node_modules/@integration-app/sdk/data-builder/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.d.ts +56 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.js +560 -0
- package/node_modules/@integration-app/sdk/data-builder/locators.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-collections.d.ts +36 -0
- package/node_modules/@integration-app/sdk/data-collections.js +16 -0
- package/node_modules/@integration-app/sdk/data-collections.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-filter/index.d.ts +12 -0
- package/node_modules/@integration-app/sdk/data-filter/index.js +104 -0
- package/node_modules/@integration-app/sdk/data-filter/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.d.ts +13 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.js +140 -0
- package/node_modules/@integration-app/sdk/data-filter/operators.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-links/accessors.d.ts +20 -0
- package/node_modules/@integration-app/sdk/data-links/accessors.js +65 -0
- package/node_modules/@integration-app/sdk/data-links/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-links/api.d.ts +49 -0
- package/node_modules/@integration-app/sdk/data-links/api.js +3 -0
- package/node_modules/@integration-app/sdk/data-links/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-links/index.d.ts +35 -0
- package/node_modules/@integration-app/sdk/data-links/index.js +10 -0
- package/node_modules/@integration-app/sdk/data-links/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-locations/accessors.d.ts +10 -0
- package/node_modules/@integration-app/sdk/data-locations/accessors.js +22 -0
- package/node_modules/@integration-app/sdk/data-locations/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-locations/api.d.ts +4 -0
- package/node_modules/@integration-app/sdk/data-locations/api.js +3 -0
- package/node_modules/@integration-app/sdk/data-locations/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-locations/index.d.ts +138 -0
- package/node_modules/@integration-app/sdk/data-locations/index.js +17 -0
- package/node_modules/@integration-app/sdk/data-locations/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-schema/index.d.ts +49 -0
- package/node_modules/@integration-app/sdk/data-schema/index.js +88 -0
- package/node_modules/@integration-app/sdk/data-schema/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-sources/accessors.d.ts +29 -0
- package/node_modules/@integration-app/sdk/data-sources/accessors.js +71 -0
- package/node_modules/@integration-app/sdk/data-sources/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-sources/api.d.ts +37 -0
- package/node_modules/@integration-app/sdk/data-sources/api.js +3 -0
- package/node_modules/@integration-app/sdk/data-sources/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/data-sources/index.d.ts +55 -0
- package/node_modules/@integration-app/sdk/data-sources/index.js +3 -0
- package/node_modules/@integration-app/sdk/data-sources/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/datetime.d.ts +1 -0
- package/node_modules/@integration-app/sdk/datetime.js +15 -0
- package/node_modules/@integration-app/sdk/datetime.js.map +1 -0
- package/node_modules/@integration-app/sdk/entity-repository.d.ts +11 -0
- package/node_modules/@integration-app/sdk/entity-repository.js +10 -0
- package/node_modules/@integration-app/sdk/entity-repository.js.map +1 -0
- package/node_modules/@integration-app/sdk/errors.d.ts +64 -0
- package/node_modules/@integration-app/sdk/errors.js +141 -0
- package/node_modules/@integration-app/sdk/errors.js.map +1 -0
- package/node_modules/@integration-app/sdk/field-mappings/accessors.d.ts +25 -0
- package/node_modules/@integration-app/sdk/field-mappings/accessors.js +60 -0
- package/node_modules/@integration-app/sdk/field-mappings/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/field-mappings/api.d.ts +34 -0
- package/node_modules/@integration-app/sdk/field-mappings/api.js +3 -0
- package/node_modules/@integration-app/sdk/field-mappings/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/field-mappings/index.d.ts +90 -0
- package/node_modules/@integration-app/sdk/field-mappings/index.js +195 -0
- package/node_modules/@integration-app/sdk/field-mappings/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.d.ts +30 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js +11 -0
- package/node_modules/@integration-app/sdk/flow-runs/flow-node-runs.js.map +1 -0
- package/node_modules/@integration-app/sdk/flow-runs/index.d.ts +59 -0
- package/node_modules/@integration-app/sdk/flow-runs/index.js +44 -0
- package/node_modules/@integration-app/sdk/flow-runs/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/accessors.d.ts +37 -0
- package/node_modules/@integration-app/sdk/flows/accessors.js +167 -0
- package/node_modules/@integration-app/sdk/flows/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/api.d.ts +55 -0
- package/node_modules/@integration-app/sdk/flows/api.js +8 -0
- package/node_modules/@integration-app/sdk/flows/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/index.d.ts +84 -0
- package/node_modules/@integration-app/sdk/flows/index.js +26 -0
- package/node_modules/@integration-app/sdk/flows/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/api-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/app-event-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-link.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/create-data-record.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-created-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-deleted-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-updated-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/delete-data-record.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/filter.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/filter.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/filter.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-link.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-record-by-id.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/find-data-records.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/http-request.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/index.d.ts +28 -0
- package/node_modules/@integration-app/sdk/flows/nodes/index.js +50 -0
- package/node_modules/@integration-app/sdk/flows/nodes/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/list-data-records.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js +9 -0
- package/node_modules/@integration-app/sdk/flows/nodes/schedule-trigger.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/transform-data.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.d.ts +3 -0
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js +8 -0
- package/node_modules/@integration-app/sdk/flows/nodes/update-data-record.js.map +1 -0
- package/node_modules/@integration-app/sdk/flows/utils.d.ts +10 -0
- package/node_modules/@integration-app/sdk/flows/utils.js +72 -0
- package/node_modules/@integration-app/sdk/flows/utils.js.map +1 -0
- package/node_modules/@integration-app/sdk/http-requests.d.ts +37 -0
- package/node_modules/@integration-app/sdk/http-requests.js +33 -0
- package/node_modules/@integration-app/sdk/http-requests.js.map +1 -0
- package/node_modules/@integration-app/sdk/iframe.d.ts +9 -0
- package/node_modules/@integration-app/sdk/iframe.js +112 -0
- package/node_modules/@integration-app/sdk/iframe.js.map +1 -0
- package/node_modules/@integration-app/sdk/index.d.ts +4 -0
- package/node_modules/@integration-app/sdk/index.js +8 -0
- package/node_modules/@integration-app/sdk/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/integration-elements/index.d.ts +22 -0
- package/node_modules/@integration-app/sdk/integration-elements/index.js +15 -0
- package/node_modules/@integration-app/sdk/integration-elements/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +17 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.js +36 -0
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/api.d.ts +10 -0
- package/node_modules/@integration-app/sdk/integrations/api.js +3 -0
- package/node_modules/@integration-app/sdk/integrations/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/integrations/index.d.ts +27 -0
- package/node_modules/@integration-app/sdk/integrations/index.js +16 -0
- package/node_modules/@integration-app/sdk/integrations/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +32 -0
- package/node_modules/@integration-app/sdk/json-schema/index.js +207 -0
- package/node_modules/@integration-app/sdk/json-schema/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.d.ts +7 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.js +232 -0
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.js.map +1 -0
- package/node_modules/@integration-app/sdk/jwt.d.ts +1 -0
- package/node_modules/@integration-app/sdk/jwt.js +37 -0
- package/node_modules/@integration-app/sdk/jwt.js.map +1 -0
- package/node_modules/@integration-app/sdk/package.json +63 -0
- package/node_modules/@integration-app/sdk/rollup.config.js +23 -0
- package/node_modules/@integration-app/sdk/src/accessors.ts +150 -0
- package/node_modules/@integration-app/sdk/src/app-data-collections/accessors.ts +69 -0
- package/node_modules/@integration-app/sdk/src/app-data-collections/api.ts +31 -0
- package/node_modules/@integration-app/sdk/src/app-data-collections/index.ts +46 -0
- package/node_modules/@integration-app/sdk/src/app-data-schemas/accessors.ts +69 -0
- package/node_modules/@integration-app/sdk/src/app-data-schemas/api.ts +28 -0
- package/node_modules/@integration-app/sdk/src/app-data-schemas/index.ts +35 -0
- package/node_modules/@integration-app/sdk/src/app-events/accessors.ts +69 -0
- package/node_modules/@integration-app/sdk/src/app-events/api.ts +28 -0
- package/node_modules/@integration-app/sdk/src/app-events/index.ts +75 -0
- package/node_modules/@integration-app/sdk/src/auth/accessors.ts +10 -0
- package/node_modules/@integration-app/sdk/src/auth/index.ts +7 -0
- package/node_modules/@integration-app/sdk/src/bundle-index.ts +6 -0
- package/node_modules/@integration-app/sdk/src/client.ts +417 -0
- package/node_modules/@integration-app/sdk/src/connections/accessors.ts +58 -0
- package/node_modules/@integration-app/sdk/src/connections/api.ts +28 -0
- package/node_modules/@integration-app/sdk/src/connections/index.ts +70 -0
- package/node_modules/@integration-app/sdk/src/connector-api/index.ts +44 -0
- package/node_modules/@integration-app/sdk/src/data-builder/context.ts +40 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.test.ts +26 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/base.ts +95 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +158 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +53 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.test.ts +117 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/concat.ts +49 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.test.ts +70 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/copy.ts +20 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.test.ts +49 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractDate.ts +28 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.test.ts +49 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/extractTime.ts +28 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.test.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findAppRecordId.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.test.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/findExternalRecordId.ts +30 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/first-name.ts +21 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.test.ts +83 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/index.ts +190 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.test.ts +154 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/iterate.ts +46 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/last-name.ts +21 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.test.ts +20 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/lookup.ts +33 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.test.ts +125 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/map.ts +42 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/plain.ts +17 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/record.ts +20 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/schemaOption.ts +26 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.test.ts +51 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/tpl.ts +33 -0
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/var.ts +19 -0
- package/node_modules/@integration-app/sdk/src/data-builder/index.test.ts +372 -0
- package/node_modules/@integration-app/sdk/src/data-builder/index.ts +16 -0
- package/node_modules/@integration-app/sdk/src/data-builder/locators.test.ts +1045 -0
- package/node_modules/@integration-app/sdk/src/data-builder/locators.ts +702 -0
- package/node_modules/@integration-app/sdk/src/data-collections.ts +74 -0
- package/node_modules/@integration-app/sdk/src/data-filter/index.test.ts +48 -0
- package/node_modules/@integration-app/sdk/src/data-filter/index.ts +127 -0
- package/node_modules/@integration-app/sdk/src/data-filter/operators.test.ts +694 -0
- package/node_modules/@integration-app/sdk/src/data-filter/operators.ts +163 -0
- package/node_modules/@integration-app/sdk/src/data-links/accessors.ts +108 -0
- package/node_modules/@integration-app/sdk/src/data-links/api.ts +75 -0
- package/node_modules/@integration-app/sdk/src/data-links/index.ts +55 -0
- package/node_modules/@integration-app/sdk/src/data-locations/accessors.ts +24 -0
- package/node_modules/@integration-app/sdk/src/data-locations/api.ts +5 -0
- package/node_modules/@integration-app/sdk/src/data-locations/index.ts +209 -0
- package/node_modules/@integration-app/sdk/src/data-schema/index.test.ts +90 -0
- package/node_modules/@integration-app/sdk/src/data-schema/index.ts +185 -0
- package/node_modules/@integration-app/sdk/src/data-sources/accessors.ts +133 -0
- package/node_modules/@integration-app/sdk/src/data-sources/api.ts +59 -0
- package/node_modules/@integration-app/sdk/src/data-sources/index.ts +103 -0
- package/node_modules/@integration-app/sdk/src/datetime.ts +16 -0
- package/node_modules/@integration-app/sdk/src/entity-repository.ts +12 -0
- package/node_modules/@integration-app/sdk/src/errors.ts +154 -0
- package/node_modules/@integration-app/sdk/src/field-mappings/accessors.ts +100 -0
- package/node_modules/@integration-app/sdk/src/field-mappings/api.ts +61 -0
- package/node_modules/@integration-app/sdk/src/field-mappings/index.ts +341 -0
- package/node_modules/@integration-app/sdk/src/flow-runs/flow-node-runs.ts +53 -0
- package/node_modules/@integration-app/sdk/src/flow-runs/index.ts +102 -0
- package/node_modules/@integration-app/sdk/src/flows/accessors.ts +246 -0
- package/node_modules/@integration-app/sdk/src/flows/api.ts +71 -0
- package/node_modules/@integration-app/sdk/src/flows/index.ts +233 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/api-trigger.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/app-event-trigger.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-link.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/create-data-record.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-created-trigger.ts +8 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-deleted-trigger.ts +8 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/data-record-updated-trigger.ts +8 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/delete-data-record.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/filter.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-link.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-record-by-id.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/find-data-records.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/http-request.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/index.ts +60 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/list-data-records.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/schedule-trigger.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/transform-data.ts +7 -0
- package/node_modules/@integration-app/sdk/src/flows/nodes/update-data-record.ts +6 -0
- package/node_modules/@integration-app/sdk/src/flows/utils.test.ts +63 -0
- package/node_modules/@integration-app/sdk/src/flows/utils.ts +110 -0
- package/node_modules/@integration-app/sdk/src/http-requests.ts +41 -0
- package/node_modules/@integration-app/sdk/src/iframe.ts +142 -0
- package/node_modules/@integration-app/sdk/src/index.ts +5 -0
- package/node_modules/@integration-app/sdk/src/integration-elements/index.ts +24 -0
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +42 -0
- package/node_modules/@integration-app/sdk/src/integrations/api.ts +13 -0
- package/node_modules/@integration-app/sdk/src/integrations/index.ts +50 -0
- package/node_modules/@integration-app/sdk/src/json-schema/__snapshots__/schema-builder.test.ts.snap +167 -0
- package/node_modules/@integration-app/sdk/src/json-schema/index.ts +251 -0
- package/node_modules/@integration-app/sdk/src/json-schema/json-schema.test.ts +246 -0
- package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.test.ts +396 -0
- package/node_modules/@integration-app/sdk/src/json-schema/schema-builder.ts +258 -0
- package/node_modules/@integration-app/sdk/src/jwt.test.ts +11 -0
- package/node_modules/@integration-app/sdk/src/jwt.ts +40 -0
- package/node_modules/@integration-app/sdk/src/udm/activities.test.ts +43 -0
- package/node_modules/@integration-app/sdk/src/udm/activities.ts +83 -0
- package/node_modules/@integration-app/sdk/src/udm/base.ts +88 -0
- package/node_modules/@integration-app/sdk/src/udm/campaigns.ts +72 -0
- package/node_modules/@integration-app/sdk/src/udm/companies.ts +80 -0
- package/node_modules/@integration-app/sdk/src/udm/contacts.test.ts +147 -0
- package/node_modules/@integration-app/sdk/src/udm/contacts.ts +106 -0
- package/node_modules/@integration-app/sdk/src/udm/deals.ts +90 -0
- package/node_modules/@integration-app/sdk/src/udm/index.ts +28 -0
- package/node_modules/@integration-app/sdk/src/udm/leads.ts +113 -0
- package/node_modules/@integration-app/sdk/src/udm/users.ts +92 -0
- package/node_modules/@integration-app/sdk/src/users/accessors.ts +28 -0
- package/node_modules/@integration-app/sdk/src/users/api.ts +8 -0
- package/node_modules/@integration-app/sdk/src/users/index.ts +5 -0
- package/node_modules/@integration-app/sdk/src/variables.ts +33 -0
- package/node_modules/@integration-app/sdk/src/workspaces/index.ts +5 -0
- package/node_modules/@integration-app/sdk/tsconfig.build.json +10 -0
- package/node_modules/@integration-app/sdk/tsconfig.json +19 -0
- package/node_modules/@integration-app/sdk/udm/activities.d.ts +30 -0
- package/node_modules/@integration-app/sdk/udm/activities.js +70 -0
- package/node_modules/@integration-app/sdk/udm/activities.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/base.d.ts +27 -0
- package/node_modules/@integration-app/sdk/udm/base.js +62 -0
- package/node_modules/@integration-app/sdk/udm/base.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/campaigns.d.ts +25 -0
- package/node_modules/@integration-app/sdk/udm/campaigns.js +66 -0
- package/node_modules/@integration-app/sdk/udm/campaigns.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/companies.d.ts +42 -0
- package/node_modules/@integration-app/sdk/udm/companies.js +69 -0
- package/node_modules/@integration-app/sdk/udm/companies.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/contacts.d.ts +49 -0
- package/node_modules/@integration-app/sdk/udm/contacts.js +94 -0
- package/node_modules/@integration-app/sdk/udm/contacts.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/deals.d.ts +26 -0
- package/node_modules/@integration-app/sdk/udm/deals.js +84 -0
- package/node_modules/@integration-app/sdk/udm/deals.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/index.d.ts +11 -0
- package/node_modules/@integration-app/sdk/udm/index.js +31 -0
- package/node_modules/@integration-app/sdk/udm/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/leads.d.ts +52 -0
- package/node_modules/@integration-app/sdk/udm/leads.js +101 -0
- package/node_modules/@integration-app/sdk/udm/leads.js.map +1 -0
- package/node_modules/@integration-app/sdk/udm/users.d.ts +31 -0
- package/node_modules/@integration-app/sdk/udm/users.js +81 -0
- package/node_modules/@integration-app/sdk/udm/users.js.map +1 -0
- package/node_modules/@integration-app/sdk/users/accessors.d.ts +10 -0
- package/node_modules/@integration-app/sdk/users/accessors.js +21 -0
- package/node_modules/@integration-app/sdk/users/accessors.js.map +1 -0
- package/node_modules/@integration-app/sdk/users/api.d.ts +6 -0
- package/node_modules/@integration-app/sdk/users/api.js +3 -0
- package/node_modules/@integration-app/sdk/users/api.js.map +1 -0
- package/node_modules/@integration-app/sdk/users/index.d.ts +5 -0
- package/node_modules/@integration-app/sdk/users/index.js +3 -0
- package/node_modules/@integration-app/sdk/users/index.js.map +1 -0
- package/node_modules/@integration-app/sdk/variables.d.ts +3 -0
- package/node_modules/@integration-app/sdk/variables.js +30 -0
- package/node_modules/@integration-app/sdk/variables.js.map +1 -0
- package/node_modules/@integration-app/sdk/workspaces/index.d.ts +5 -0
- package/node_modules/@integration-app/sdk/workspaces/index.js +3 -0
- package/node_modules/@integration-app/sdk/workspaces/index.js.map +1 -0
- package/node_modules/@sinclair/typebox/package.json +40 -0
- package/node_modules/@sinclair/typebox/readme.md +740 -0
- package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
- package/node_modules/@sinclair/typebox/typebox.js +345 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +128 -0
- package/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/@types/node/cluster.d.ts +265 -0
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/@types/node/dns.d.ts +387 -0
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/fs.d.ts +2281 -0
- package/node_modules/@types/node/globals.d.ts +747 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +580 -0
- package/node_modules/@types/node/http2.d.ts +962 -0
- package/node_modules/@types/node/https.d.ts +271 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +3051 -0
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/@types/node/net.d.ts +308 -0
- package/node_modules/@types/node/os.d.ts +243 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/@types/node/punycode.d.ts +78 -0
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/@types/node/readline.d.ts +174 -0
- package/node_modules/@types/node/repl.d.ts +398 -0
- package/node_modules/@types/node/stream.d.ts +359 -0
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/@types/node/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/@types/node/util.d.ts +216 -0
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/zlib.d.ts +364 -0
- package/package.json +14 -38
- package/dist/node_modules/.package-lock.json +0 -111
- package/dist/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/dist/node_modules/js-tokens/LICENSE +0 -21
- package/dist/node_modules/js-tokens/README.md +0 -240
- package/dist/node_modules/js-tokens/index.js +0 -23
- package/dist/node_modules/js-tokens/package.json +0 -30
- package/dist/node_modules/loose-envify/LICENSE +0 -21
- package/dist/node_modules/loose-envify/README.md +0 -45
- package/dist/node_modules/loose-envify/cli.js +0 -16
- package/dist/node_modules/loose-envify/custom.js +0 -4
- package/dist/node_modules/loose-envify/index.js +0 -3
- package/dist/node_modules/loose-envify/loose-envify.js +0 -36
- package/dist/node_modules/loose-envify/package.json +0 -36
- package/dist/node_modules/loose-envify/replace.js +0 -65
- package/dist/node_modules/object-assign/index.js +0 -90
- package/dist/node_modules/object-assign/license +0 -21
- package/dist/node_modules/object-assign/package.json +0 -42
- package/dist/node_modules/object-assign/readme.md +0 -61
- package/dist/node_modules/scheduler/README.md +0 -9
- package/dist/node_modules/scheduler/build-info.json +0 -8
- package/dist/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -347
- package/dist/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -9
- package/dist/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -16
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -665
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -19
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -206
- package/dist/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -13
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -646
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.js +0 -20
- package/dist/node_modules/scheduler/index.js +0 -7
- package/dist/node_modules/scheduler/package.json +0 -40
- package/dist/node_modules/scheduler/tracing-profiling.js +0 -7
- package/dist/node_modules/scheduler/tracing.js +0 -7
- package/dist/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
- package/dist/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
- package/dist/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
- package/dist/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -664
- package/dist/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -18
- package/dist/node_modules/scheduler/umd/scheduler.development.js +0 -152
- package/dist/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
- package/dist/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
- package/dist/node_modules/scheduler/unstable_mock.js +0 -7
- package/dist/node_modules/scheduler/unstable_post_task.js +0 -7
- package/dist/package.json +0 -26
@@ -1,646 +0,0 @@
|
|
1
|
-
/** @license React v0.20.2
|
2
|
-
* scheduler.development.js
|
3
|
-
*
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
5
|
-
*
|
6
|
-
* This source code is licensed under the MIT license found in the
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
8
|
-
*/
|
9
|
-
|
10
|
-
'use strict';
|
11
|
-
|
12
|
-
if (process.env.NODE_ENV !== "production") {
|
13
|
-
(function() {
|
14
|
-
'use strict';
|
15
|
-
|
16
|
-
var enableSchedulerDebugging = false;
|
17
|
-
var enableProfiling = false;
|
18
|
-
|
19
|
-
var requestHostCallback;
|
20
|
-
var requestHostTimeout;
|
21
|
-
var cancelHostTimeout;
|
22
|
-
var requestPaint;
|
23
|
-
var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
|
24
|
-
|
25
|
-
if (hasPerformanceNow) {
|
26
|
-
var localPerformance = performance;
|
27
|
-
|
28
|
-
exports.unstable_now = function () {
|
29
|
-
return localPerformance.now();
|
30
|
-
};
|
31
|
-
} else {
|
32
|
-
var localDate = Date;
|
33
|
-
var initialTime = localDate.now();
|
34
|
-
|
35
|
-
exports.unstable_now = function () {
|
36
|
-
return localDate.now() - initialTime;
|
37
|
-
};
|
38
|
-
}
|
39
|
-
|
40
|
-
if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
|
41
|
-
// implementation using setTimeout.
|
42
|
-
typeof window === 'undefined' || // Check if MessageChannel is supported, too.
|
43
|
-
typeof MessageChannel !== 'function') {
|
44
|
-
// If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
|
45
|
-
// fallback to a naive implementation.
|
46
|
-
var _callback = null;
|
47
|
-
var _timeoutID = null;
|
48
|
-
|
49
|
-
var _flushCallback = function () {
|
50
|
-
if (_callback !== null) {
|
51
|
-
try {
|
52
|
-
var currentTime = exports.unstable_now();
|
53
|
-
var hasRemainingTime = true;
|
54
|
-
|
55
|
-
_callback(hasRemainingTime, currentTime);
|
56
|
-
|
57
|
-
_callback = null;
|
58
|
-
} catch (e) {
|
59
|
-
setTimeout(_flushCallback, 0);
|
60
|
-
throw e;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
};
|
64
|
-
|
65
|
-
requestHostCallback = function (cb) {
|
66
|
-
if (_callback !== null) {
|
67
|
-
// Protect against re-entrancy.
|
68
|
-
setTimeout(requestHostCallback, 0, cb);
|
69
|
-
} else {
|
70
|
-
_callback = cb;
|
71
|
-
setTimeout(_flushCallback, 0);
|
72
|
-
}
|
73
|
-
};
|
74
|
-
|
75
|
-
requestHostTimeout = function (cb, ms) {
|
76
|
-
_timeoutID = setTimeout(cb, ms);
|
77
|
-
};
|
78
|
-
|
79
|
-
cancelHostTimeout = function () {
|
80
|
-
clearTimeout(_timeoutID);
|
81
|
-
};
|
82
|
-
|
83
|
-
exports.unstable_shouldYield = function () {
|
84
|
-
return false;
|
85
|
-
};
|
86
|
-
|
87
|
-
requestPaint = exports.unstable_forceFrameRate = function () {};
|
88
|
-
} else {
|
89
|
-
// Capture local references to native APIs, in case a polyfill overrides them.
|
90
|
-
var _setTimeout = window.setTimeout;
|
91
|
-
var _clearTimeout = window.clearTimeout;
|
92
|
-
|
93
|
-
if (typeof console !== 'undefined') {
|
94
|
-
// TODO: Scheduler no longer requires these methods to be polyfilled. But
|
95
|
-
// maybe we want to continue warning if they don't exist, to preserve the
|
96
|
-
// option to rely on it in the future?
|
97
|
-
var requestAnimationFrame = window.requestAnimationFrame;
|
98
|
-
var cancelAnimationFrame = window.cancelAnimationFrame;
|
99
|
-
|
100
|
-
if (typeof requestAnimationFrame !== 'function') {
|
101
|
-
// Using console['error'] to evade Babel and ESLint
|
102
|
-
console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
|
103
|
-
}
|
104
|
-
|
105
|
-
if (typeof cancelAnimationFrame !== 'function') {
|
106
|
-
// Using console['error'] to evade Babel and ESLint
|
107
|
-
console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
var isMessageLoopRunning = false;
|
112
|
-
var scheduledHostCallback = null;
|
113
|
-
var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
|
114
|
-
// thread, like user events. By default, it yields multiple times per frame.
|
115
|
-
// It does not attempt to align with frame boundaries, since most tasks don't
|
116
|
-
// need to be frame aligned; for those that do, use requestAnimationFrame.
|
117
|
-
|
118
|
-
var yieldInterval = 5;
|
119
|
-
var deadline = 0; // TODO: Make this configurable
|
120
|
-
|
121
|
-
{
|
122
|
-
// `isInputPending` is not available. Since we have no way of knowing if
|
123
|
-
// there's pending input, always yield at the end of the frame.
|
124
|
-
exports.unstable_shouldYield = function () {
|
125
|
-
return exports.unstable_now() >= deadline;
|
126
|
-
}; // Since we yield every frame regardless, `requestPaint` has no effect.
|
127
|
-
|
128
|
-
|
129
|
-
requestPaint = function () {};
|
130
|
-
}
|
131
|
-
|
132
|
-
exports.unstable_forceFrameRate = function (fps) {
|
133
|
-
if (fps < 0 || fps > 125) {
|
134
|
-
// Using console['error'] to evade Babel and ESLint
|
135
|
-
console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
|
139
|
-
if (fps > 0) {
|
140
|
-
yieldInterval = Math.floor(1000 / fps);
|
141
|
-
} else {
|
142
|
-
// reset the framerate
|
143
|
-
yieldInterval = 5;
|
144
|
-
}
|
145
|
-
};
|
146
|
-
|
147
|
-
var performWorkUntilDeadline = function () {
|
148
|
-
if (scheduledHostCallback !== null) {
|
149
|
-
var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
|
150
|
-
// cycle. This means there's always time remaining at the beginning of
|
151
|
-
// the message event.
|
152
|
-
|
153
|
-
deadline = currentTime + yieldInterval;
|
154
|
-
var hasTimeRemaining = true;
|
155
|
-
|
156
|
-
try {
|
157
|
-
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
158
|
-
|
159
|
-
if (!hasMoreWork) {
|
160
|
-
isMessageLoopRunning = false;
|
161
|
-
scheduledHostCallback = null;
|
162
|
-
} else {
|
163
|
-
// If there's more work, schedule the next message event at the end
|
164
|
-
// of the preceding one.
|
165
|
-
port.postMessage(null);
|
166
|
-
}
|
167
|
-
} catch (error) {
|
168
|
-
// If a scheduler task throws, exit the current browser task so the
|
169
|
-
// error can be observed.
|
170
|
-
port.postMessage(null);
|
171
|
-
throw error;
|
172
|
-
}
|
173
|
-
} else {
|
174
|
-
isMessageLoopRunning = false;
|
175
|
-
} // Yielding to the browser will give it a chance to paint, so we can
|
176
|
-
};
|
177
|
-
|
178
|
-
var channel = new MessageChannel();
|
179
|
-
var port = channel.port2;
|
180
|
-
channel.port1.onmessage = performWorkUntilDeadline;
|
181
|
-
|
182
|
-
requestHostCallback = function (callback) {
|
183
|
-
scheduledHostCallback = callback;
|
184
|
-
|
185
|
-
if (!isMessageLoopRunning) {
|
186
|
-
isMessageLoopRunning = true;
|
187
|
-
port.postMessage(null);
|
188
|
-
}
|
189
|
-
};
|
190
|
-
|
191
|
-
requestHostTimeout = function (callback, ms) {
|
192
|
-
taskTimeoutID = _setTimeout(function () {
|
193
|
-
callback(exports.unstable_now());
|
194
|
-
}, ms);
|
195
|
-
};
|
196
|
-
|
197
|
-
cancelHostTimeout = function () {
|
198
|
-
_clearTimeout(taskTimeoutID);
|
199
|
-
|
200
|
-
taskTimeoutID = -1;
|
201
|
-
};
|
202
|
-
}
|
203
|
-
|
204
|
-
function push(heap, node) {
|
205
|
-
var index = heap.length;
|
206
|
-
heap.push(node);
|
207
|
-
siftUp(heap, node, index);
|
208
|
-
}
|
209
|
-
function peek(heap) {
|
210
|
-
var first = heap[0];
|
211
|
-
return first === undefined ? null : first;
|
212
|
-
}
|
213
|
-
function pop(heap) {
|
214
|
-
var first = heap[0];
|
215
|
-
|
216
|
-
if (first !== undefined) {
|
217
|
-
var last = heap.pop();
|
218
|
-
|
219
|
-
if (last !== first) {
|
220
|
-
heap[0] = last;
|
221
|
-
siftDown(heap, last, 0);
|
222
|
-
}
|
223
|
-
|
224
|
-
return first;
|
225
|
-
} else {
|
226
|
-
return null;
|
227
|
-
}
|
228
|
-
}
|
229
|
-
|
230
|
-
function siftUp(heap, node, i) {
|
231
|
-
var index = i;
|
232
|
-
|
233
|
-
while (true) {
|
234
|
-
var parentIndex = index - 1 >>> 1;
|
235
|
-
var parent = heap[parentIndex];
|
236
|
-
|
237
|
-
if (parent !== undefined && compare(parent, node) > 0) {
|
238
|
-
// The parent is larger. Swap positions.
|
239
|
-
heap[parentIndex] = node;
|
240
|
-
heap[index] = parent;
|
241
|
-
index = parentIndex;
|
242
|
-
} else {
|
243
|
-
// The parent is smaller. Exit.
|
244
|
-
return;
|
245
|
-
}
|
246
|
-
}
|
247
|
-
}
|
248
|
-
|
249
|
-
function siftDown(heap, node, i) {
|
250
|
-
var index = i;
|
251
|
-
var length = heap.length;
|
252
|
-
|
253
|
-
while (index < length) {
|
254
|
-
var leftIndex = (index + 1) * 2 - 1;
|
255
|
-
var left = heap[leftIndex];
|
256
|
-
var rightIndex = leftIndex + 1;
|
257
|
-
var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
|
258
|
-
|
259
|
-
if (left !== undefined && compare(left, node) < 0) {
|
260
|
-
if (right !== undefined && compare(right, left) < 0) {
|
261
|
-
heap[index] = right;
|
262
|
-
heap[rightIndex] = node;
|
263
|
-
index = rightIndex;
|
264
|
-
} else {
|
265
|
-
heap[index] = left;
|
266
|
-
heap[leftIndex] = node;
|
267
|
-
index = leftIndex;
|
268
|
-
}
|
269
|
-
} else if (right !== undefined && compare(right, node) < 0) {
|
270
|
-
heap[index] = right;
|
271
|
-
heap[rightIndex] = node;
|
272
|
-
index = rightIndex;
|
273
|
-
} else {
|
274
|
-
// Neither child is smaller. Exit.
|
275
|
-
return;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
function compare(a, b) {
|
281
|
-
// Compare sort index first, then task id.
|
282
|
-
var diff = a.sortIndex - b.sortIndex;
|
283
|
-
return diff !== 0 ? diff : a.id - b.id;
|
284
|
-
}
|
285
|
-
|
286
|
-
// TODO: Use symbols?
|
287
|
-
var ImmediatePriority = 1;
|
288
|
-
var UserBlockingPriority = 2;
|
289
|
-
var NormalPriority = 3;
|
290
|
-
var LowPriority = 4;
|
291
|
-
var IdlePriority = 5;
|
292
|
-
|
293
|
-
function markTaskErrored(task, ms) {
|
294
|
-
}
|
295
|
-
|
296
|
-
/* eslint-disable no-var */
|
297
|
-
// Math.pow(2, 30) - 1
|
298
|
-
// 0b111111111111111111111111111111
|
299
|
-
|
300
|
-
var maxSigned31BitInt = 1073741823; // Times out immediately
|
301
|
-
|
302
|
-
var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
|
303
|
-
|
304
|
-
var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
|
305
|
-
var NORMAL_PRIORITY_TIMEOUT = 5000;
|
306
|
-
var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
|
307
|
-
|
308
|
-
var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
|
309
|
-
|
310
|
-
var taskQueue = [];
|
311
|
-
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
|
312
|
-
|
313
|
-
var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
|
314
|
-
var currentTask = null;
|
315
|
-
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
|
316
|
-
|
317
|
-
var isPerformingWork = false;
|
318
|
-
var isHostCallbackScheduled = false;
|
319
|
-
var isHostTimeoutScheduled = false;
|
320
|
-
|
321
|
-
function advanceTimers(currentTime) {
|
322
|
-
// Check for tasks that are no longer delayed and add them to the queue.
|
323
|
-
var timer = peek(timerQueue);
|
324
|
-
|
325
|
-
while (timer !== null) {
|
326
|
-
if (timer.callback === null) {
|
327
|
-
// Timer was cancelled.
|
328
|
-
pop(timerQueue);
|
329
|
-
} else if (timer.startTime <= currentTime) {
|
330
|
-
// Timer fired. Transfer to the task queue.
|
331
|
-
pop(timerQueue);
|
332
|
-
timer.sortIndex = timer.expirationTime;
|
333
|
-
push(taskQueue, timer);
|
334
|
-
} else {
|
335
|
-
// Remaining timers are pending.
|
336
|
-
return;
|
337
|
-
}
|
338
|
-
|
339
|
-
timer = peek(timerQueue);
|
340
|
-
}
|
341
|
-
}
|
342
|
-
|
343
|
-
function handleTimeout(currentTime) {
|
344
|
-
isHostTimeoutScheduled = false;
|
345
|
-
advanceTimers(currentTime);
|
346
|
-
|
347
|
-
if (!isHostCallbackScheduled) {
|
348
|
-
if (peek(taskQueue) !== null) {
|
349
|
-
isHostCallbackScheduled = true;
|
350
|
-
requestHostCallback(flushWork);
|
351
|
-
} else {
|
352
|
-
var firstTimer = peek(timerQueue);
|
353
|
-
|
354
|
-
if (firstTimer !== null) {
|
355
|
-
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
356
|
-
}
|
357
|
-
}
|
358
|
-
}
|
359
|
-
}
|
360
|
-
|
361
|
-
function flushWork(hasTimeRemaining, initialTime) {
|
362
|
-
|
363
|
-
|
364
|
-
isHostCallbackScheduled = false;
|
365
|
-
|
366
|
-
if (isHostTimeoutScheduled) {
|
367
|
-
// We scheduled a timeout but it's no longer needed. Cancel it.
|
368
|
-
isHostTimeoutScheduled = false;
|
369
|
-
cancelHostTimeout();
|
370
|
-
}
|
371
|
-
|
372
|
-
isPerformingWork = true;
|
373
|
-
var previousPriorityLevel = currentPriorityLevel;
|
374
|
-
|
375
|
-
try {
|
376
|
-
if (enableProfiling) {
|
377
|
-
try {
|
378
|
-
return workLoop(hasTimeRemaining, initialTime);
|
379
|
-
} catch (error) {
|
380
|
-
if (currentTask !== null) {
|
381
|
-
var currentTime = exports.unstable_now();
|
382
|
-
markTaskErrored(currentTask, currentTime);
|
383
|
-
currentTask.isQueued = false;
|
384
|
-
}
|
385
|
-
|
386
|
-
throw error;
|
387
|
-
}
|
388
|
-
} else {
|
389
|
-
// No catch in prod code path.
|
390
|
-
return workLoop(hasTimeRemaining, initialTime);
|
391
|
-
}
|
392
|
-
} finally {
|
393
|
-
currentTask = null;
|
394
|
-
currentPriorityLevel = previousPriorityLevel;
|
395
|
-
isPerformingWork = false;
|
396
|
-
}
|
397
|
-
}
|
398
|
-
|
399
|
-
function workLoop(hasTimeRemaining, initialTime) {
|
400
|
-
var currentTime = initialTime;
|
401
|
-
advanceTimers(currentTime);
|
402
|
-
currentTask = peek(taskQueue);
|
403
|
-
|
404
|
-
while (currentTask !== null && !(enableSchedulerDebugging )) {
|
405
|
-
if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || exports.unstable_shouldYield())) {
|
406
|
-
// This currentTask hasn't expired, and we've reached the deadline.
|
407
|
-
break;
|
408
|
-
}
|
409
|
-
|
410
|
-
var callback = currentTask.callback;
|
411
|
-
|
412
|
-
if (typeof callback === 'function') {
|
413
|
-
currentTask.callback = null;
|
414
|
-
currentPriorityLevel = currentTask.priorityLevel;
|
415
|
-
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
416
|
-
|
417
|
-
var continuationCallback = callback(didUserCallbackTimeout);
|
418
|
-
currentTime = exports.unstable_now();
|
419
|
-
|
420
|
-
if (typeof continuationCallback === 'function') {
|
421
|
-
currentTask.callback = continuationCallback;
|
422
|
-
} else {
|
423
|
-
|
424
|
-
if (currentTask === peek(taskQueue)) {
|
425
|
-
pop(taskQueue);
|
426
|
-
}
|
427
|
-
}
|
428
|
-
|
429
|
-
advanceTimers(currentTime);
|
430
|
-
} else {
|
431
|
-
pop(taskQueue);
|
432
|
-
}
|
433
|
-
|
434
|
-
currentTask = peek(taskQueue);
|
435
|
-
} // Return whether there's additional work
|
436
|
-
|
437
|
-
|
438
|
-
if (currentTask !== null) {
|
439
|
-
return true;
|
440
|
-
} else {
|
441
|
-
var firstTimer = peek(timerQueue);
|
442
|
-
|
443
|
-
if (firstTimer !== null) {
|
444
|
-
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
445
|
-
}
|
446
|
-
|
447
|
-
return false;
|
448
|
-
}
|
449
|
-
}
|
450
|
-
|
451
|
-
function unstable_runWithPriority(priorityLevel, eventHandler) {
|
452
|
-
switch (priorityLevel) {
|
453
|
-
case ImmediatePriority:
|
454
|
-
case UserBlockingPriority:
|
455
|
-
case NormalPriority:
|
456
|
-
case LowPriority:
|
457
|
-
case IdlePriority:
|
458
|
-
break;
|
459
|
-
|
460
|
-
default:
|
461
|
-
priorityLevel = NormalPriority;
|
462
|
-
}
|
463
|
-
|
464
|
-
var previousPriorityLevel = currentPriorityLevel;
|
465
|
-
currentPriorityLevel = priorityLevel;
|
466
|
-
|
467
|
-
try {
|
468
|
-
return eventHandler();
|
469
|
-
} finally {
|
470
|
-
currentPriorityLevel = previousPriorityLevel;
|
471
|
-
}
|
472
|
-
}
|
473
|
-
|
474
|
-
function unstable_next(eventHandler) {
|
475
|
-
var priorityLevel;
|
476
|
-
|
477
|
-
switch (currentPriorityLevel) {
|
478
|
-
case ImmediatePriority:
|
479
|
-
case UserBlockingPriority:
|
480
|
-
case NormalPriority:
|
481
|
-
// Shift down to normal priority
|
482
|
-
priorityLevel = NormalPriority;
|
483
|
-
break;
|
484
|
-
|
485
|
-
default:
|
486
|
-
// Anything lower than normal priority should remain at the current level.
|
487
|
-
priorityLevel = currentPriorityLevel;
|
488
|
-
break;
|
489
|
-
}
|
490
|
-
|
491
|
-
var previousPriorityLevel = currentPriorityLevel;
|
492
|
-
currentPriorityLevel = priorityLevel;
|
493
|
-
|
494
|
-
try {
|
495
|
-
return eventHandler();
|
496
|
-
} finally {
|
497
|
-
currentPriorityLevel = previousPriorityLevel;
|
498
|
-
}
|
499
|
-
}
|
500
|
-
|
501
|
-
function unstable_wrapCallback(callback) {
|
502
|
-
var parentPriorityLevel = currentPriorityLevel;
|
503
|
-
return function () {
|
504
|
-
// This is a fork of runWithPriority, inlined for performance.
|
505
|
-
var previousPriorityLevel = currentPriorityLevel;
|
506
|
-
currentPriorityLevel = parentPriorityLevel;
|
507
|
-
|
508
|
-
try {
|
509
|
-
return callback.apply(this, arguments);
|
510
|
-
} finally {
|
511
|
-
currentPriorityLevel = previousPriorityLevel;
|
512
|
-
}
|
513
|
-
};
|
514
|
-
}
|
515
|
-
|
516
|
-
function unstable_scheduleCallback(priorityLevel, callback, options) {
|
517
|
-
var currentTime = exports.unstable_now();
|
518
|
-
var startTime;
|
519
|
-
|
520
|
-
if (typeof options === 'object' && options !== null) {
|
521
|
-
var delay = options.delay;
|
522
|
-
|
523
|
-
if (typeof delay === 'number' && delay > 0) {
|
524
|
-
startTime = currentTime + delay;
|
525
|
-
} else {
|
526
|
-
startTime = currentTime;
|
527
|
-
}
|
528
|
-
} else {
|
529
|
-
startTime = currentTime;
|
530
|
-
}
|
531
|
-
|
532
|
-
var timeout;
|
533
|
-
|
534
|
-
switch (priorityLevel) {
|
535
|
-
case ImmediatePriority:
|
536
|
-
timeout = IMMEDIATE_PRIORITY_TIMEOUT;
|
537
|
-
break;
|
538
|
-
|
539
|
-
case UserBlockingPriority:
|
540
|
-
timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
|
541
|
-
break;
|
542
|
-
|
543
|
-
case IdlePriority:
|
544
|
-
timeout = IDLE_PRIORITY_TIMEOUT;
|
545
|
-
break;
|
546
|
-
|
547
|
-
case LowPriority:
|
548
|
-
timeout = LOW_PRIORITY_TIMEOUT;
|
549
|
-
break;
|
550
|
-
|
551
|
-
case NormalPriority:
|
552
|
-
default:
|
553
|
-
timeout = NORMAL_PRIORITY_TIMEOUT;
|
554
|
-
break;
|
555
|
-
}
|
556
|
-
|
557
|
-
var expirationTime = startTime + timeout;
|
558
|
-
var newTask = {
|
559
|
-
id: taskIdCounter++,
|
560
|
-
callback: callback,
|
561
|
-
priorityLevel: priorityLevel,
|
562
|
-
startTime: startTime,
|
563
|
-
expirationTime: expirationTime,
|
564
|
-
sortIndex: -1
|
565
|
-
};
|
566
|
-
|
567
|
-
if (startTime > currentTime) {
|
568
|
-
// This is a delayed task.
|
569
|
-
newTask.sortIndex = startTime;
|
570
|
-
push(timerQueue, newTask);
|
571
|
-
|
572
|
-
if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
|
573
|
-
// All tasks are delayed, and this is the task with the earliest delay.
|
574
|
-
if (isHostTimeoutScheduled) {
|
575
|
-
// Cancel an existing timeout.
|
576
|
-
cancelHostTimeout();
|
577
|
-
} else {
|
578
|
-
isHostTimeoutScheduled = true;
|
579
|
-
} // Schedule a timeout.
|
580
|
-
|
581
|
-
|
582
|
-
requestHostTimeout(handleTimeout, startTime - currentTime);
|
583
|
-
}
|
584
|
-
} else {
|
585
|
-
newTask.sortIndex = expirationTime;
|
586
|
-
push(taskQueue, newTask);
|
587
|
-
// wait until the next time we yield.
|
588
|
-
|
589
|
-
|
590
|
-
if (!isHostCallbackScheduled && !isPerformingWork) {
|
591
|
-
isHostCallbackScheduled = true;
|
592
|
-
requestHostCallback(flushWork);
|
593
|
-
}
|
594
|
-
}
|
595
|
-
|
596
|
-
return newTask;
|
597
|
-
}
|
598
|
-
|
599
|
-
function unstable_pauseExecution() {
|
600
|
-
}
|
601
|
-
|
602
|
-
function unstable_continueExecution() {
|
603
|
-
|
604
|
-
if (!isHostCallbackScheduled && !isPerformingWork) {
|
605
|
-
isHostCallbackScheduled = true;
|
606
|
-
requestHostCallback(flushWork);
|
607
|
-
}
|
608
|
-
}
|
609
|
-
|
610
|
-
function unstable_getFirstCallbackNode() {
|
611
|
-
return peek(taskQueue);
|
612
|
-
}
|
613
|
-
|
614
|
-
function unstable_cancelCallback(task) {
|
615
|
-
// remove from the queue because you can't remove arbitrary nodes from an
|
616
|
-
// array based heap, only the first one.)
|
617
|
-
|
618
|
-
|
619
|
-
task.callback = null;
|
620
|
-
}
|
621
|
-
|
622
|
-
function unstable_getCurrentPriorityLevel() {
|
623
|
-
return currentPriorityLevel;
|
624
|
-
}
|
625
|
-
|
626
|
-
var unstable_requestPaint = requestPaint;
|
627
|
-
var unstable_Profiling = null;
|
628
|
-
|
629
|
-
exports.unstable_IdlePriority = IdlePriority;
|
630
|
-
exports.unstable_ImmediatePriority = ImmediatePriority;
|
631
|
-
exports.unstable_LowPriority = LowPriority;
|
632
|
-
exports.unstable_NormalPriority = NormalPriority;
|
633
|
-
exports.unstable_Profiling = unstable_Profiling;
|
634
|
-
exports.unstable_UserBlockingPriority = UserBlockingPriority;
|
635
|
-
exports.unstable_cancelCallback = unstable_cancelCallback;
|
636
|
-
exports.unstable_continueExecution = unstable_continueExecution;
|
637
|
-
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
|
638
|
-
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
|
639
|
-
exports.unstable_next = unstable_next;
|
640
|
-
exports.unstable_pauseExecution = unstable_pauseExecution;
|
641
|
-
exports.unstable_requestPaint = unstable_requestPaint;
|
642
|
-
exports.unstable_runWithPriority = unstable_runWithPriority;
|
643
|
-
exports.unstable_scheduleCallback = unstable_scheduleCallback;
|
644
|
-
exports.unstable_wrapCallback = unstable_wrapCallback;
|
645
|
-
})();
|
646
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/** @license React v0.20.2
|
2
|
-
* scheduler.production.min.js
|
3
|
-
*
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
5
|
-
*
|
6
|
-
* This source code is licensed under the MIT license found in the
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
8
|
-
*/
|
9
|
-
'use strict';var f,g,h,k;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}
|
10
|
-
if("undefined"===typeof window||"function"!==typeof MessageChannel){var t=null,u=null,w=function(){if(null!==t)try{var a=exports.unstable_now();t(!0,a);t=null}catch(b){throw setTimeout(w,0),b;}};f=function(a){null!==t?setTimeout(f,0,a):(t=a,setTimeout(w,0))};g=function(a,b){u=setTimeout(a,b)};h=function(){clearTimeout(u)};exports.unstable_shouldYield=function(){return!1};k=exports.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,y=window.clearTimeout;if("undefined"!==typeof console){var z=
|
11
|
-
window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills");"function"!==typeof z&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var A=!1,B=null,C=-1,D=5,E=0;exports.unstable_shouldYield=function(){return exports.unstable_now()>=
|
12
|
-
E};k=function(){};exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<a?Math.floor(1E3/a):5};var F=new MessageChannel,G=F.port2;F.port1.onmessage=function(){if(null!==B){var a=exports.unstable_now();E=a+D;try{B(!0,a)?G.postMessage(null):(A=!1,B=null)}catch(b){throw G.postMessage(null),b;}}else A=!1};f=function(a){B=a;A||(A=!0,G.postMessage(null))};g=function(a,b){C=
|
13
|
-
x(function(){a(exports.unstable_now())},b)};h=function(){y(C);C=-1}}function H(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(void 0!==e&&0<I(e,b))a[d]=b,a[c]=e,c=d;else break a}}function J(a){a=a[0];return void 0===a?null:a}
|
14
|
-
function K(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var m=2*(d+1)-1,n=a[m],v=m+1,r=a[v];if(void 0!==n&&0>I(n,c))void 0!==r&&0>I(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>I(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function I(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var L=[],M=[],N=1,O=null,P=3,Q=!1,R=!1,S=!1;
|
15
|
-
function T(a){for(var b=J(M);null!==b;){if(null===b.callback)K(M);else if(b.startTime<=a)K(M),b.sortIndex=b.expirationTime,H(L,b);else break;b=J(M)}}function U(a){S=!1;T(a);if(!R)if(null!==J(L))R=!0,f(V);else{var b=J(M);null!==b&&g(U,b.startTime-a)}}
|
16
|
-
function V(a,b){R=!1;S&&(S=!1,h());Q=!0;var c=P;try{T(b);for(O=J(L);null!==O&&(!(O.expirationTime>b)||a&&!exports.unstable_shouldYield());){var d=O.callback;if("function"===typeof d){O.callback=null;P=O.priorityLevel;var e=d(O.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?O.callback=e:O===J(L)&&K(L);T(b)}else K(L);O=J(L)}if(null!==O)var m=!0;else{var n=J(M);null!==n&&g(U,n.startTime-b);m=!1}return m}finally{O=null,P=c,Q=!1}}var W=k;exports.unstable_IdlePriority=5;
|
17
|
-
exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){R||Q||(R=!0,f(V))};exports.unstable_getCurrentPriorityLevel=function(){return P};exports.unstable_getFirstCallbackNode=function(){return J(L)};
|
18
|
-
exports.unstable_next=function(a){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var c=P;P=b;try{return a()}finally{P=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=W;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=P;P=a;try{return b()}finally{P=c}};
|
19
|
-
exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:N++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,H(M,a),null===J(L)&&a===J(M)&&(S?h():S=!0,g(U,c-d))):(a.sortIndex=e,H(L,a),R||Q||(R=!0,f(V)));return a};
|
20
|
-
exports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;try{return a.apply(this,arguments)}finally{P=c}}};
|